diff --git a/about/index.html b/about/index.html new file mode 100644 index 00000000..4faa1dcc --- /dev/null +++ b/about/index.html @@ -0,0 +1,378 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + about | 3TS-Coo | 3TS + + + + + + + + + + + + + +
+
+ +
+
+ + + + + +
+ + + + + + + + +
+ +
+ +
+
+ + +
+ + 0% +
+ + +
+
+
+ + + + +
+ + + + + +
+
+ +

about +

+ + + +
+ + + + +
+ +
+ + + +
+ + + + + + + +
+ + + + +
+ + + + + + + + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/archives/2022/09/index.html b/archives/2022/09/index.html new file mode 100644 index 00000000..ef1d45e9 --- /dev/null +++ b/archives/2022/09/index.html @@ -0,0 +1,385 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Archive | 3TS-Coo | 3TS + + + + + + + + + + + + +
+
+ +
+
+ + + + + +
+ + + + + + + + +
+ +
+ +
+
+ + +
+ + 0% +
+ + +
+
+
+ + +
+ + + + + +
+
+
+ Um..! 1 post. Keep on posting. +
+ + +
+ 2022 +
+ + + + +
+
+ + + + + + + + +
+ + + + +
+ + + + + + + + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/archives/2022/index.html b/archives/2022/index.html new file mode 100644 index 00000000..b5efdef3 --- /dev/null +++ b/archives/2022/index.html @@ -0,0 +1,385 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Archive | 3TS-Coo | 3TS + + + + + + + + + + + + +
+
+ +
+
+ + + + + +
+ + + + + + + + +
+ +
+ +
+
+ + +
+ + 0% +
+ + +
+
+
+ + +
+ + + + + +
+
+
+ Um..! 1 post. Keep on posting. +
+ + +
+ 2022 +
+ + + + +
+
+ + + + + + + + +
+ + + + +
+ + + + + + + + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/archives/index.html b/archives/index.html new file mode 100644 index 00000000..72fd293e --- /dev/null +++ b/archives/index.html @@ -0,0 +1,385 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Archive | 3TS-Coo | 3TS + + + + + + + + + + + + +
+
+ +
+
+ + + + + +
+ + + + + + + + +
+ +
+ +
+
+ + +
+ + 0% +
+ + +
+
+
+ + +
+ + + + + +
+
+
+ Um..! 1 post. Keep on posting. +
+ + +
+ 2022 +
+ + + + +
+
+ + + + + + + + +
+ + + + +
+ + + + + + + + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/contact/index.html b/contact/index.html new file mode 100644 index 00000000..555519fd --- /dev/null +++ b/contact/index.html @@ -0,0 +1,382 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Contact | 3TS-Coo | 3TS + + + + + + + + + + + + + +
+
+ +
+
+ + + + + +
+ + + + + + + + +
+ +
+ +
+
+ + +
+ + 0% +
+ + +
+
+
+ + + + +
+ + + + + +
+
+ +

Contact +

+ + + +
+ + + + +
+

Email

axingguchen(AT)tencent(dot)com; blueseali(AT)tencent(dot)com

+ +
+ + + +
+ + + + + + + +
+ + + + +
+ + + + + + + + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/css/main.css b/css/main.css new file mode 100644 index 00000000..fd495d57 --- /dev/null +++ b/css/main.css @@ -0,0 +1,2668 @@ +:root { + --body-bg-color: #eee; + --content-bg-color: #fff; + --card-bg-color: #f5f5f5; + --text-color: #555; + --blockquote-color: #666; + --link-color: #555; + --link-hover-color: #222; + --brand-color: #fff; + --brand-hover-color: #fff; + --table-row-odd-bg-color: #f9f9f9; + --table-row-hover-bg-color: #f5f5f5; + --menu-item-bg-color: #f5f5f5; + --btn-default-bg: #fff; + --btn-default-color: #555; + --btn-default-border-color: #555; + --btn-default-hover-bg: #222; + --btn-default-hover-color: #fff; + --btn-default-hover-border-color: #222; +} +html { + line-height: 1.15; /* 1 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} +body { + margin: 0; +} +main { + display: block; +} +h1 { + font-size: 2em; + margin: 0.67em 0; +} +hr { + box-sizing: content-box; /* 1 */ + height: 0; /* 1 */ + overflow: visible; /* 2 */ +} +pre { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} +a { + background: transparent; +} +abbr[title] { + border-bottom: none; /* 1 */ + text-decoration: underline; /* 2 */ + text-decoration: underline dotted; /* 2 */ +} +b, +strong { + font-weight: bolder; +} +code, +kbd, +samp { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} +small { + font-size: 80%; +} +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} +sub { + bottom: -0.25em; +} +sup { + top: -0.5em; +} +img { + border-style: none; +} +button, +input, +optgroup, +select, +textarea { + font-family: inherit; /* 1 */ + font-size: 100%; /* 1 */ + line-height: 1.15; /* 1 */ + margin: 0; /* 2 */ +} +button, +input { +/* 1 */ + overflow: visible; +} +button, +select { +/* 1 */ + text-transform: none; +} +button, +[type='button'], +[type='reset'], +[type='submit'] { + -webkit-appearance: button; +} +button::-moz-focus-inner, +[type='button']::-moz-focus-inner, +[type='reset']::-moz-focus-inner, +[type='submit']::-moz-focus-inner { + border-style: none; + padding: 0; +} +button:-moz-focusring, +[type='button']:-moz-focusring, +[type='reset']:-moz-focusring, +[type='submit']:-moz-focusring { + outline: 1px dotted ButtonText; +} +fieldset { + padding: 0.35em 0.75em 0.625em; +} +legend { + box-sizing: border-box; /* 1 */ + color: inherit; /* 2 */ + display: table; /* 1 */ + max-width: 100%; /* 1 */ + padding: 0; /* 3 */ + white-space: normal; /* 1 */ +} +progress { + vertical-align: baseline; +} +textarea { + overflow: auto; +} +[type='checkbox'], +[type='radio'] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} +[type='number']::-webkit-inner-spin-button, +[type='number']::-webkit-outer-spin-button { + height: auto; +} +[type='search'] { + outline-offset: -2px; /* 2 */ + -webkit-appearance: textfield; /* 1 */ +} +[type='search']::-webkit-search-decoration { + -webkit-appearance: none; +} +::-webkit-file-upload-button { + font: inherit; /* 2 */ + -webkit-appearance: button; /* 1 */ +} +details { + display: block; +} +summary { + display: list-item; +} +template { + display: none; +} +[hidden] { + display: none; +} +::selection { + background: #262a30; + color: #eee; +} +html, +body { + height: 100%; +} +body { + background: var(--body-bg-color); + color: var(--text-color); + font-family: 'Lato', "PingFang SC", "Microsoft YaHei", sans-serif; + font-size: 1em; + line-height: 2; +} +@media (max-width: 991px) { + body { + padding-left: 0 !important; + padding-right: 0 !important; + } +} +h1, +h2, +h3, +h4, +h5, +h6 { + font-family: 'Lato', "PingFang SC", "Microsoft YaHei", sans-serif; + font-weight: bold; + line-height: 1.5; + margin: 20px 0 15px; +} +h1 { + font-size: 1.5em; +} +h2 { + font-size: 1.375em; +} +h3 { + font-size: 1.25em; +} +h4 { + font-size: 1.125em; +} +h5 { + font-size: 1em; +} +h6 { + font-size: 0.875em; +} +p { + margin: 0 0 20px 0; +} +a, +span.exturl { + border-bottom: 1px solid #999; + color: var(--link-color); + outline: 0; + text-decoration: none; + overflow-wrap: break-word; + word-wrap: break-word; + cursor: pointer; +} +a:hover, +span.exturl:hover { + border-bottom-color: var(--link-hover-color); + color: var(--link-hover-color); +} +iframe, +img, +video { + display: block; + margin-left: auto; + margin-right: auto; + max-width: 100%; +} +hr { + background-image: repeating-linear-gradient(-45deg, #ddd, #ddd 4px, transparent 4px, transparent 8px); + border: 0; + height: 3px; + margin: 40px 0; +} +blockquote { + border-left: 4px solid #ddd; + color: var(--blockquote-color); + margin: 0; + padding: 0 15px; +} +blockquote cite::before { + content: '-'; + padding: 0 5px; +} +dt { + font-weight: bold; +} +dd { + margin: 0; + padding: 0; +} +kbd { + background-color: #f5f5f5; + background-image: linear-gradient(#eee, #fff, #eee); + border: 1px solid #ccc; + border-radius: 0.2em; + box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1); + color: #555; + font-family: inherit; + padding: 0.1em 0.3em; + white-space: nowrap; +} +.table-container { + overflow: auto; +} +table { + border-collapse: collapse; + border-spacing: 0; + font-size: 0.875em; + margin: 0 0 20px 0; + width: 100%; +} +tbody tr:nth-of-type(odd) { + background: var(--table-row-odd-bg-color); +} +tbody tr:hover { + background: var(--table-row-hover-bg-color); +} +caption, +th, +td { + font-weight: normal; + padding: 8px; + vertical-align: middle; +} +th, +td { + border: 1px solid #ddd; + border-bottom: 3px solid #ddd; +} +th { + font-weight: 700; + padding-bottom: 10px; +} +td { + border-bottom-width: 1px; +} +.btn { + background: var(--btn-default-bg); + border: 2px solid var(--btn-default-border-color); + border-radius: 2px; + color: var(--btn-default-color); + display: inline-block; + font-size: 0.875em; + line-height: 2; + padding: 0 20px; + text-decoration: none; + transition-property: background-color; + transition-delay: 0s; + transition-duration: 0.2s; + transition-timing-function: ease-in-out; +} +.btn:hover { + background: var(--btn-default-hover-bg); + border-color: var(--btn-default-hover-border-color); + color: var(--btn-default-hover-color); +} +.btn + .btn { + margin: 0 0 8px 8px; +} +.btn .fa-fw { + text-align: left; + width: 1.285714285714286em; +} +.toggle { + line-height: 0; +} +.toggle .toggle-line { + background: #fff; + display: inline-block; + height: 2px; + left: 0; + position: relative; + top: 0; + transition: all 0.4s; + vertical-align: top; + width: 100%; +} +.toggle .toggle-line:not(:first-child) { + margin-top: 3px; +} +.toggle.toggle-arrow .toggle-line-first { + left: 50%; + top: 2px; + transform: rotate(45deg); + width: 50%; +} +.toggle.toggle-arrow .toggle-line-middle { + left: 2px; + width: 90%; +} +.toggle.toggle-arrow .toggle-line-last { + left: 50%; + top: -2px; + transform: rotate(-45deg); + width: 50%; +} +.toggle.toggle-close .toggle-line-first { + transform: rotate(-45deg); + top: 5px; +} +.toggle.toggle-close .toggle-line-middle { + opacity: 0; +} +.toggle.toggle-close .toggle-line-last { + transform: rotate(45deg); + top: -5px; +} +.highlight, +pre { + background: #f7f7f7; + color: #4d4d4c; + line-height: 1.6; + margin: 0 auto 20px; +} +pre, +code { + font-family: consolas, Menlo, monospace, "PingFang SC", "Microsoft YaHei"; +} +code { + background: #eee; + border-radius: 3px; + color: #555; + padding: 2px 4px; + overflow-wrap: break-word; + word-wrap: break-word; +} +.highlight *::selection { + background: #d6d6d6; +} +.highlight pre { + border: 0; + margin: 0; + padding: 10px 0; +} +.highlight table { + border: 0; + margin: 0; + width: auto; +} +.highlight td { + border: 0; + padding: 0; +} +.highlight figcaption { + background: #eff2f3; + color: #4d4d4c; + display: flex; + font-size: 0.875em; + justify-content: space-between; + line-height: 1.2; + padding: 0.5em; +} +.highlight figcaption a { + color: #4d4d4c; +} +.highlight figcaption a:hover { + border-bottom-color: #4d4d4c; +} +.highlight .gutter { + -moz-user-select: none; + -ms-user-select: none; + -webkit-user-select: none; + user-select: none; +} +.highlight .gutter pre { + background: #eff2f3; + color: #869194; + padding-left: 10px; + padding-right: 10px; + text-align: right; +} +.highlight .code pre { + background: #f7f7f7; + padding-left: 10px; + width: 100%; +} +.gist table { + width: auto; +} +.gist table td { + border: 0; +} +pre { + overflow: auto; + padding: 10px; +} +pre code { + background: none; + color: #4d4d4c; + font-size: 0.875em; + padding: 0; + text-shadow: none; +} +pre .deletion { + background: #fdd; +} +pre .addition { + background: #dfd; +} +pre .meta { + color: #eab700; + -moz-user-select: none; + -ms-user-select: none; + -webkit-user-select: none; + user-select: none; +} +pre .comment { + color: #8e908c; +} +pre .variable, +pre .attribute, +pre .tag, +pre .name, +pre .regexp, +pre .ruby .constant, +pre .xml .tag .title, +pre .xml .pi, +pre .xml .doctype, +pre .html .doctype, +pre .css .id, +pre .css .class, +pre .css .pseudo { + color: #c82829; +} +pre .number, +pre .preprocessor, +pre .built_in, +pre .builtin-name, +pre .literal, +pre .params, +pre .constant, +pre .command { + color: #f5871f; +} +pre .ruby .class .title, +pre .css .rules .attribute, +pre .string, +pre .symbol, +pre .value, +pre .inheritance, +pre .header, +pre .ruby .symbol, +pre .xml .cdata, +pre .special, +pre .formula { + color: #718c00; +} +pre .title, +pre .css .hexcolor { + color: #3e999f; +} +pre .function, +pre .python .decorator, +pre .python .title, +pre .ruby .function .title, +pre .ruby .title .keyword, +pre .perl .sub, +pre .javascript .title, +pre .coffeescript .title { + color: #4271ae; +} +pre .keyword, +pre .javascript .function { + color: #8959a8; +} +.blockquote-center { + border-left: none; + margin: 40px 0; + padding: 0; + position: relative; + text-align: center; +} +.blockquote-center .fa { + display: block; + opacity: 0.6; + position: absolute; + width: 100%; +} +.blockquote-center .fa-quote-left { + border-top: 1px solid #ccc; + text-align: left; + top: -20px; +} +.blockquote-center .fa-quote-right { + border-bottom: 1px solid #ccc; + text-align: right; + bottom: -20px; +} +.blockquote-center p, +.blockquote-center div { + text-align: center; +} +.post-body .group-picture img { + margin: 0 auto; + padding: 0 3px; +} +.group-picture-row { + margin-bottom: 6px; + overflow: hidden; +} +.group-picture-column { + float: left; + margin-bottom: 10px; +} +.post-body .label { + color: #555; + display: inline; + padding: 0 2px; +} +.post-body .label.default { + background: #f0f0f0; +} +.post-body .label.primary { + background: #efe6f7; +} +.post-body .label.info { + background: #e5f2f8; +} +.post-body .label.success { + background: #e7f4e9; +} +.post-body .label.warning { + background: #fcf6e1; +} +.post-body .label.danger { + background: #fae8eb; +} +.post-body .tabs { + margin-bottom: 20px; +} +.post-body .tabs, +.tabs-comment { + display: block; + padding-top: 10px; + position: relative; +} +.post-body .tabs ul.nav-tabs, +.tabs-comment ul.nav-tabs { + display: flex; + flex-wrap: wrap; + margin: 0; + margin-bottom: -1px; + padding: 0; +} +@media (max-width: 413px) { + .post-body .tabs ul.nav-tabs, + .tabs-comment ul.nav-tabs { + display: block; + margin-bottom: 5px; + } +} +.post-body .tabs ul.nav-tabs li.tab, +.tabs-comment ul.nav-tabs li.tab { + border-bottom: 1px solid #ddd; + border-left: 1px solid transparent; + border-right: 1px solid transparent; + border-top: 3px solid transparent; + flex-grow: 1; + list-style-type: none; + border-radius: 0 0 0 0; +} +@media (max-width: 413px) { + .post-body .tabs ul.nav-tabs li.tab, + .tabs-comment ul.nav-tabs li.tab { + border-bottom: 1px solid transparent; + border-left: 3px solid transparent; + border-right: 1px solid transparent; + border-top: 1px solid transparent; + } +} +@media (max-width: 413px) { + .post-body .tabs ul.nav-tabs li.tab, + .tabs-comment ul.nav-tabs li.tab { + border-radius: 0; + } +} +.post-body .tabs ul.nav-tabs li.tab a, +.tabs-comment ul.nav-tabs li.tab a { + border-bottom: initial; + display: block; + line-height: 1.8; + outline: 0; + padding: 0.25em 0.75em; + text-align: center; + transition-delay: 0s; + transition-duration: 0.2s; + transition-timing-function: ease-out; +} +.post-body .tabs ul.nav-tabs li.tab a i, +.tabs-comment ul.nav-tabs li.tab a i { + width: 1.285714285714286em; +} +.post-body .tabs ul.nav-tabs li.tab.active, +.tabs-comment ul.nav-tabs li.tab.active { + border-bottom: 1px solid transparent; + border-left: 1px solid #ddd; + border-right: 1px solid #ddd; + border-top: 3px solid #fc6423; +} +@media (max-width: 413px) { + .post-body .tabs ul.nav-tabs li.tab.active, + .tabs-comment ul.nav-tabs li.tab.active { + border-bottom: 1px solid #ddd; + border-left: 3px solid #fc6423; + border-right: 1px solid #ddd; + border-top: 1px solid #ddd; + } +} +.post-body .tabs ul.nav-tabs li.tab.active a, +.tabs-comment ul.nav-tabs li.tab.active a { + color: var(--link-color); + cursor: default; +} +.post-body .tabs .tab-content .tab-pane, +.tabs-comment .tab-content .tab-pane { + border: 1px solid #ddd; + border-top: 0; + padding: 20px 20px 0 20px; + border-radius: 0; +} +.post-body .tabs .tab-content .tab-pane:not(.active), +.tabs-comment .tab-content .tab-pane:not(.active) { + display: none; +} +.post-body .tabs .tab-content .tab-pane.active, +.tabs-comment .tab-content .tab-pane.active { + display: block; +} +.post-body .tabs .tab-content .tab-pane.active:nth-of-type(1), +.tabs-comment .tab-content .tab-pane.active:nth-of-type(1) { + border-radius: 0 0 0 0; +} +@media (max-width: 413px) { + .post-body .tabs .tab-content .tab-pane.active:nth-of-type(1), + .tabs-comment .tab-content .tab-pane.active:nth-of-type(1) { + border-radius: 0; + } +} +.post-body .note { + border-radius: 3px; + margin-bottom: 20px; + padding: 1em; + position: relative; + border: 1px solid #eee; + border-left-width: 5px; +} +.post-body .note h2, +.post-body .note h3, +.post-body .note h4, +.post-body .note h5, +.post-body .note h6 { + margin-top: 0; + border-bottom: initial; + margin-bottom: 0; + padding-top: 0; +} +.post-body .note p:first-child, +.post-body .note ul:first-child, +.post-body .note ol:first-child, +.post-body .note table:first-child, +.post-body .note pre:first-child, +.post-body .note blockquote:first-child, +.post-body .note img:first-child { + margin-top: 0; +} +.post-body .note p:last-child, +.post-body .note ul:last-child, +.post-body .note ol:last-child, +.post-body .note table:last-child, +.post-body .note pre:last-child, +.post-body .note blockquote:last-child, +.post-body .note img:last-child { + margin-bottom: 0; +} +.post-body .note.default { + border-left-color: #777; +} +.post-body .note.default h2, +.post-body .note.default h3, +.post-body .note.default h4, +.post-body .note.default h5, +.post-body .note.default h6 { + color: #777; +} +.post-body .note.primary { + border-left-color: #6f42c1; +} +.post-body .note.primary h2, +.post-body .note.primary h3, +.post-body .note.primary h4, +.post-body .note.primary h5, +.post-body .note.primary h6 { + color: #6f42c1; +} +.post-body .note.info { + border-left-color: #428bca; +} +.post-body .note.info h2, +.post-body .note.info h3, +.post-body .note.info h4, +.post-body .note.info h5, +.post-body .note.info h6 { + color: #428bca; +} +.post-body .note.success { + border-left-color: #5cb85c; +} +.post-body .note.success h2, +.post-body .note.success h3, +.post-body .note.success h4, +.post-body .note.success h5, +.post-body .note.success h6 { + color: #5cb85c; +} +.post-body .note.warning { + border-left-color: #f0ad4e; +} +.post-body .note.warning h2, +.post-body .note.warning h3, +.post-body .note.warning h4, +.post-body .note.warning h5, +.post-body .note.warning h6 { + color: #f0ad4e; +} +.post-body .note.danger { + border-left-color: #d9534f; +} +.post-body .note.danger h2, +.post-body .note.danger h3, +.post-body .note.danger h4, +.post-body .note.danger h5, +.post-body .note.danger h6 { + color: #d9534f; +} +.pagination .prev, +.pagination .next, +.pagination .page-number, +.pagination .space { + display: inline-block; + margin: 0 10px; + padding: 0 11px; + position: relative; + top: -1px; +} +@media (max-width: 767px) { + .pagination .prev, + .pagination .next, + .pagination .page-number, + .pagination .space { + margin: 0 5px; + } +} +.pagination { + border-top: 1px solid #eee; + margin: 120px 0 0; + text-align: center; +} +.pagination .prev, +.pagination .next, +.pagination .page-number { + border-bottom: 0; + border-top: 1px solid #eee; + transition-property: border-color; + transition-delay: 0s; + transition-duration: 0.2s; + transition-timing-function: ease-in-out; +} +.pagination .prev:hover, +.pagination .next:hover, +.pagination .page-number:hover { + border-top-color: #222; +} +.pagination .space { + margin: 0; + padding: 0; +} +.pagination .prev { + margin-left: 0; +} +.pagination .next { + margin-right: 0; +} +.pagination .page-number.current { + background: #ccc; + border-top-color: #ccc; + color: #fff; +} +@media (max-width: 767px) { + .pagination { + border-top: none; + } + .pagination .prev, + .pagination .next, + .pagination .page-number { + border-bottom: 1px solid #eee; + border-top: 0; + margin-bottom: 10px; + padding: 0 10px; + } + .pagination .prev:hover, + .pagination .next:hover, + .pagination .page-number:hover { + border-bottom-color: #222; + } +} +.comments { + margin-top: 60px; + overflow: hidden; +} +.comment-button-group { + display: flex; + flex-wrap: wrap-reverse; + justify-content: center; + margin: 1em 0; +} +.comment-button-group .comment-button { + margin: 0.1em 0.2em; +} +.comment-button-group .comment-button.active { + background: var(--btn-default-hover-bg); + border-color: var(--btn-default-hover-border-color); + color: var(--btn-default-hover-color); +} +.comment-position { + display: none; +} +.comment-position.active { + display: block; +} +.tabs-comment { + background: var(--content-bg-color); + margin-top: 4em; + padding-top: 0; +} +.tabs-comment .comments { + border: 0; + box-shadow: none; + margin-top: 0; + padding-top: 0; +} +.container { + min-height: 100%; + position: relative; +} +.main-inner { + margin: 0 auto; + width: calc(100% - 20px); +} +@media (min-width: 1200px) { + .main-inner { + width: 1160px; + } +} +@media (min-width: 1600px) { + .main-inner { + width: 73%; + } +} +@media (max-width: 767px) { + .content-wrap { + padding: 0 20px; + } +} +.header { + background: transparent; +} +.header-inner { + margin: 0 auto; + width: calc(100% - 20px); +} +@media (min-width: 1200px) { + .header-inner { + width: 1160px; + } +} +@media (min-width: 1600px) { + .header-inner { + width: 73%; + } +} +.site-brand-container { + display: flex; + flex-shrink: 0; + padding: 0 10px; +} +.headband { + background: #222; + height: 3px; +} +.site-meta { + flex-grow: 1; + text-align: center; +} +@media (max-width: 767px) { + .site-meta { + text-align: center; + } +} +.brand { + border-bottom: none; + color: var(--brand-color); + display: inline-block; + line-height: 1.375em; + padding: 0 40px; + position: relative; +} +.brand:hover { + color: var(--brand-hover-color); +} +.site-title { + font-family: 'Lato', "PingFang SC", "Microsoft YaHei", sans-serif; + font-size: 1.375em; + font-weight: normal; + margin: 0; +} +.site-subtitle { + color: #ddd; + font-size: 0.8125em; + margin: 10px 0; +} +.use-motion .brand { + opacity: 0; +} +.use-motion .site-title, +.use-motion .site-subtitle, +.use-motion .custom-logo-image { + opacity: 0; + position: relative; + top: -10px; +} +.site-nav-toggle, +.site-nav-right { + display: none; +} +@media (max-width: 767px) { + .site-nav-toggle, + .site-nav-right { + display: flex; + flex-direction: column; + justify-content: center; + } +} +.site-nav-toggle .toggle, +.site-nav-right .toggle { + color: var(--text-color); + padding: 10px; + width: 22px; +} +.site-nav-toggle .toggle .toggle-line, +.site-nav-right .toggle .toggle-line { + background: var(--text-color); + border-radius: 1px; +} +.site-nav { + display: block; +} +@media (max-width: 767px) { + .site-nav { + clear: both; + display: none; + } +} +.site-nav.site-nav-on { + display: block; +} +.menu { + margin-top: 20px; + padding-left: 0; + text-align: center; +} +.menu-item { + display: inline-block; + list-style: none; + margin: 0 10px; +} +@media (max-width: 767px) { + .menu-item { + display: block; + margin-top: 10px; + } + .menu-item.menu-item-search { + display: none; + } +} +.menu-item a, +.menu-item span.exturl { + border-bottom: 0; + display: block; + font-size: 0.8125em; + transition-property: border-color; + transition-delay: 0s; + transition-duration: 0.2s; + transition-timing-function: ease-in-out; +} +@media (hover: none) { + .menu-item a:hover, + .menu-item span.exturl:hover { + border-bottom-color: transparent !important; + } +} +.menu-item .fa, +.menu-item .fab, +.menu-item .far, +.menu-item .fas { + margin-right: 8px; +} +.menu-item .badge { + display: inline-block; + font-weight: bold; + line-height: 1; + margin-left: 0.35em; + margin-top: 0.35em; + text-align: center; + white-space: nowrap; +} +@media (max-width: 767px) { + .menu-item .badge { + float: right; + margin-left: 0; + } +} +.menu-item-active a, +.menu .menu-item a:hover, +.menu .menu-item span.exturl:hover { + background: var(--menu-item-bg-color); +} +.use-motion .menu-item { + opacity: 0; +} +.sidebar { + background: #222; + bottom: 0; + box-shadow: inset 0 2px 6px #000; + position: fixed; + top: 0; +} +@media (max-width: 991px) { + .sidebar { + display: none; + } +} +.sidebar-inner { + color: #999; + padding: 18px 10px; + text-align: center; +} +.cc-license { + margin-top: 10px; + text-align: center; +} +.cc-license .cc-opacity { + border-bottom: none; + opacity: 0.7; +} +.cc-license .cc-opacity:hover { + opacity: 0.9; +} +.cc-license img { + display: inline-block; +} +.site-author-image { + border: 1px solid #eee; + display: block; + margin: 0 auto; + max-width: 120px; + padding: 2px; +} +.site-author-name { + color: var(--text-color); + font-weight: 600; + margin: 0; + text-align: center; +} +.site-description { + color: #999; + font-size: 0.8125em; + margin-top: 0; + text-align: center; +} +.links-of-author { + margin-top: 15px; +} +.links-of-author a, +.links-of-author span.exturl { + border-bottom-color: #555; + display: inline-block; + font-size: 0.8125em; + margin-bottom: 10px; + margin-right: 10px; + vertical-align: middle; +} +.links-of-author a::before, +.links-of-author span.exturl::before { + background: #78d41a; + border-radius: 50%; + content: ' '; + display: inline-block; + height: 4px; + margin-right: 3px; + vertical-align: middle; + width: 4px; +} +.sidebar-button { + margin-top: 15px; +} +.sidebar-button a { + border: 1px solid #fc6423; + border-radius: 4px; + color: #fc6423; + display: inline-block; + padding: 0 15px; +} +.sidebar-button a .fa, +.sidebar-button a .fab, +.sidebar-button a .far, +.sidebar-button a .fas { + margin-right: 5px; +} +.sidebar-button a:hover { + background: #fc6423; + border: 1px solid #fc6423; + color: #fff; +} +.sidebar-button a:hover .fa, +.sidebar-button a:hover .fab, +.sidebar-button a:hover .far, +.sidebar-button a:hover .fas { + color: #fff; +} +.links-of-blogroll { + font-size: 0.8125em; + margin-top: 10px; +} +.links-of-blogroll-title { + font-size: 0.875em; + font-weight: 600; + margin-top: 0; +} +.links-of-blogroll-list { + list-style: none; + margin: 0; + padding: 0; +} +#sidebar-dimmer { + display: none; +} +@media (max-width: 767px) { + #sidebar-dimmer { + background: #000; + display: block; + height: 100%; + left: 100%; + opacity: 0; + position: fixed; + top: 0; + width: 100%; + z-index: 1100; + } + .sidebar-active + #sidebar-dimmer { + opacity: 0.7; + transform: translateX(-100%); + transition: opacity 0.5s; + } +} +.sidebar-nav { + margin: 0; + padding-bottom: 20px; + padding-left: 0; +} +.sidebar-nav li { + border-bottom: 1px solid transparent; + color: var(--text-color); + cursor: pointer; + display: inline-block; + font-size: 0.875em; +} +.sidebar-nav li.sidebar-nav-overview { + margin-left: 10px; +} +.sidebar-nav li:hover { + color: #fc6423; +} +.sidebar-nav .sidebar-nav-active { + border-bottom-color: #fc6423; + color: #fc6423; +} +.sidebar-nav .sidebar-nav-active:hover { + color: #fc6423; +} +.sidebar-panel { + display: none; + overflow-x: hidden; + overflow-y: auto; +} +.sidebar-panel-active { + display: block; +} +.sidebar-toggle { + background: #222; + bottom: 45px; + cursor: pointer; + height: 14px; + left: 30px; + padding: 5px; + position: fixed; + width: 14px; + z-index: 1300; +} +@media (max-width: 991px) { + .sidebar-toggle { + left: 20px; + opacity: 0.8; + display: none; + } +} +.sidebar-toggle:hover .toggle-line { + background: #fc6423; +} +.post-toc { + font-size: 0.875em; +} +.post-toc ol { + list-style: none; + margin: 0; + padding: 0 2px 5px 10px; + text-align: left; +} +.post-toc ol > ol { + padding-left: 0; +} +.post-toc ol a { + transition-property: all; + transition-delay: 0s; + transition-duration: 0.2s; + transition-timing-function: ease-in-out; +} +.post-toc .nav-item { + line-height: 1.8; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +.post-toc .nav .nav-child { + display: none; +} +.post-toc .nav .active > .nav-child { + display: block; +} +.post-toc .nav .active-current > .nav-child { + display: block; +} +.post-toc .nav .active-current > .nav-child > .nav-item { + display: block; +} +.post-toc .nav .active > a { + border-bottom-color: #fc6423; + color: #fc6423; +} +.post-toc .nav .active-current > a { + color: #fc6423; +} +.post-toc .nav .active-current > a:hover { + color: #fc6423; +} +.site-state { + display: flex; + justify-content: center; + line-height: 1.4; + margin-top: 10px; + overflow: hidden; + text-align: center; + white-space: nowrap; +} +.site-state-item { + padding: 0 15px; +} +.site-state-item:not(:first-child) { + border-left: 1px solid #eee; +} +.site-state-item a { + border-bottom: none; +} +.site-state-item-count { + display: block; + font-size: 1em; + font-weight: 600; + text-align: center; +} +.site-state-item-name { + color: #999; + font-size: 0.8125em; +} +.footer { + color: #999; + font-size: 0.875em; + padding: 20px 0; +} +.footer.footer-fixed { + bottom: 0; + left: 0; + position: absolute; + right: 0; +} +.footer-inner { + box-sizing: border-box; + margin: 0 auto; + text-align: center; + width: calc(100% - 20px); +} +@media (min-width: 1200px) { + .footer-inner { + width: 1160px; + } +} +@media (min-width: 1600px) { + .footer-inner { + width: 73%; + } +} +.languages { + display: inline-block; + font-size: 1.125em; + position: relative; +} +.languages .lang-select-label span { + margin: 0 0.5em; +} +.languages .lang-select { + height: 100%; + left: 0; + opacity: 0; + position: absolute; + top: 0; + width: 100%; +} +.with-love { + color: #ff0000; + display: inline-block; + margin: 0 5px; +} +.powered-by, +.theme-info { + display: inline-block; +} +@-moz-keyframes iconAnimate { + 0%, 100% { + transform: scale(1); + } + 10%, 30% { + transform: scale(0.9); + } + 20%, 40%, 60%, 80% { + transform: scale(1.1); + } + 50%, 70% { + transform: scale(1.1); + } +} +@-webkit-keyframes iconAnimate { + 0%, 100% { + transform: scale(1); + } + 10%, 30% { + transform: scale(0.9); + } + 20%, 40%, 60%, 80% { + transform: scale(1.1); + } + 50%, 70% { + transform: scale(1.1); + } +} +@-o-keyframes iconAnimate { + 0%, 100% { + transform: scale(1); + } + 10%, 30% { + transform: scale(0.9); + } + 20%, 40%, 60%, 80% { + transform: scale(1.1); + } + 50%, 70% { + transform: scale(1.1); + } +} +@keyframes iconAnimate { + 0%, 100% { + transform: scale(1); + } + 10%, 30% { + transform: scale(0.9); + } + 20%, 40%, 60%, 80% { + transform: scale(1.1); + } + 50%, 70% { + transform: scale(1.1); + } +} +.back-to-top { + font-size: 12px; + text-align: center; + transition-delay: 0s; + transition-duration: 0.2s; + transition-timing-function: ease-in-out; +} +.back-to-top { + background: #222; + bottom: -100px; + box-sizing: border-box; + color: #fff; + cursor: pointer; + left: 30px; + opacity: 0.6; + padding: 0 6px; + position: fixed; + transition-property: bottom; + z-index: 1300; + width: 24px; +} +.back-to-top span { + display: none; +} +.back-to-top:hover { + color: #fc6423; +} +.back-to-top.back-to-top-on { + bottom: 30px; +} +@media (max-width: 991px) { + .back-to-top { + left: 20px; + opacity: 0.8; + } +} +.post-body { + font-family: 'Lato', "PingFang SC", "Microsoft YaHei", sans-serif; + overflow-wrap: break-word; + word-wrap: break-word; +} +@media (min-width: 1200px) { + .post-body { + font-size: 1.125em; + } +} +.post-body .exturl .fa { + font-size: 0.875em; + margin-left: 4px; +} +.post-body .image-caption, +.post-body .figure .caption { + color: #999; + font-size: 0.875em; + font-weight: bold; + line-height: 1; + margin: -20px auto 15px; + text-align: center; +} +.post-sticky-flag { + display: inline-block; + transform: rotate(30deg); +} +.post-button { + margin-top: 40px; + text-align: center; +} +.use-motion .post-block, +.use-motion .pagination, +.use-motion .comments { + opacity: 0; +} +.use-motion .post-header { + opacity: 0; +} +.use-motion .post-body { + opacity: 0; +} +.use-motion .collection-header { + opacity: 0; +} +.posts-collapse { + margin-left: 35px; + position: relative; +} +@media (max-width: 767px) { + .posts-collapse { + margin-left: 0px; + margin-right: 0px; + } +} +.posts-collapse .collection-title { + font-size: 1.125em; + position: relative; +} +.posts-collapse .collection-title::before { + background: #999; + border: 1px solid #fff; + border-radius: 50%; + content: ' '; + height: 10px; + left: 0; + margin-left: -6px; + margin-top: -4px; + position: absolute; + top: 50%; + width: 10px; +} +.posts-collapse .collection-year { + font-size: 1.5em; + font-weight: bold; + margin: 60px 0; + position: relative; +} +.posts-collapse .collection-year::before { + background: #bbb; + border-radius: 50%; + content: ' '; + height: 8px; + left: 0; + margin-left: -4px; + margin-top: -4px; + position: absolute; + top: 50%; + width: 8px; +} +.posts-collapse .collection-header { + display: block; + margin: 0 0 0 20px; +} +.posts-collapse .collection-header small { + color: #bbb; + margin-left: 5px; +} +.posts-collapse .post-header { + border-bottom: 1px dashed #ccc; + margin: 30px 0; + padding-left: 15px; + position: relative; + transition-property: border; + transition-delay: 0s; + transition-duration: 0.2s; + transition-timing-function: ease-in-out; +} +.posts-collapse .post-header::before { + background: #bbb; + border: 1px solid #fff; + border-radius: 50%; + content: ' '; + height: 6px; + left: 0; + margin-left: -4px; + position: absolute; + top: 0.75em; + transition-property: background; + width: 6px; + transition-delay: 0s; + transition-duration: 0.2s; + transition-timing-function: ease-in-out; +} +.posts-collapse .post-header:hover { + border-bottom-color: #666; +} +.posts-collapse .post-header:hover::before { + background: #222; +} +.posts-collapse .post-meta { + display: inline; + font-size: 0.75em; + margin-right: 10px; +} +.posts-collapse .post-title { + display: inline; +} +.posts-collapse .post-title a, +.posts-collapse .post-title span.exturl { + border-bottom: none; + color: var(--link-color); +} +.posts-collapse .post-title .fa-external-link-alt { + font-size: 0.875em; + margin-left: 5px; +} +.posts-collapse::before { + background: #f5f5f5; + content: ' '; + height: 100%; + left: 0; + margin-left: -2px; + position: absolute; + top: 1.25em; + width: 4px; +} +.post-eof { + background: #ccc; + height: 1px; + margin: 80px auto 60px; + text-align: center; + width: 8%; +} +.post-block:last-of-type .post-eof { + display: none; +} +.content { + padding-top: 40px; +} +@media (min-width: 992px) { + .post-body { + text-align: justify; + } +} +@media (max-width: 991px) { + .post-body { + text-align: justify; + } +} +.post-body h1, +.post-body h2, +.post-body h3, +.post-body h4, +.post-body h5, +.post-body h6 { + padding-top: 10px; +} +.post-body h1 .header-anchor, +.post-body h2 .header-anchor, +.post-body h3 .header-anchor, +.post-body h4 .header-anchor, +.post-body h5 .header-anchor, +.post-body h6 .header-anchor { + border-bottom-style: none; + color: #ccc; + float: right; + margin-left: 10px; + visibility: hidden; +} +.post-body h1 .header-anchor:hover, +.post-body h2 .header-anchor:hover, +.post-body h3 .header-anchor:hover, +.post-body h4 .header-anchor:hover, +.post-body h5 .header-anchor:hover, +.post-body h6 .header-anchor:hover { + color: inherit; +} +.post-body h1:hover .header-anchor, +.post-body h2:hover .header-anchor, +.post-body h3:hover .header-anchor, +.post-body h4:hover .header-anchor, +.post-body h5:hover .header-anchor, +.post-body h6:hover .header-anchor { + visibility: visible; +} +.post-body iframe, +.post-body img, +.post-body video { + margin-bottom: 20px; +} +.post-body .video-container { + height: 0; + margin-bottom: 20px; + overflow: hidden; + padding-top: 75%; + position: relative; + width: 100%; +} +.post-body .video-container iframe, +.post-body .video-container object, +.post-body .video-container embed { + height: 100%; + left: 0; + margin: 0; + position: absolute; + top: 0; + width: 100%; +} +.post-gallery { + align-items: center; + display: grid; + grid-gap: 10px; + grid-template-columns: 1fr 1fr 1fr; + margin-bottom: 20px; +} +@media (max-width: 767px) { + .post-gallery { + grid-template-columns: 1fr 1fr; + } +} +.post-gallery a { + border: 0; +} +.post-gallery img { + margin: 0; +} +.posts-expand .post-header { + font-size: 1.125em; +} +.posts-expand .post-title { + font-size: 1.5em; + font-weight: normal; + margin: initial; + text-align: center; + overflow-wrap: break-word; + word-wrap: break-word; +} +.posts-expand .post-title-link { + border-bottom: none; + color: var(--link-color); + display: inline-block; + position: relative; + vertical-align: top; +} +.posts-expand .post-title-link::before { + background: var(--link-color); + bottom: 0; + content: ''; + height: 2px; + left: 0; + position: absolute; + transform: scaleX(0); + visibility: hidden; + width: 100%; + transition-delay: 0s; + transition-duration: 0.2s; + transition-timing-function: ease-in-out; +} +.posts-expand .post-title-link:hover::before { + transform: scaleX(1); + visibility: visible; +} +.posts-expand .post-title-link .fa-external-link-alt { + font-size: 0.875em; + margin-left: 5px; +} +.posts-expand .post-meta { + color: #999; + font-family: 'Lato', "PingFang SC", "Microsoft YaHei", sans-serif; + font-size: 0.75em; + margin: 3px 0 60px 0; + text-align: center; +} +.posts-expand .post-meta .post-description { + font-size: 0.875em; + margin-top: 2px; +} +.posts-expand .post-meta time { + border-bottom: 1px dashed #999; + cursor: pointer; +} +.post-meta .post-meta-item + .post-meta-item::before { + content: '|'; + margin: 0 0.5em; +} +.post-meta-divider { + margin: 0 0.5em; +} +.post-meta-item-icon { + margin-right: 3px; +} +@media (max-width: 991px) { + .post-meta-item-icon { + display: inline-block; + } +} +.post-meta-item-text { + display: none; +} +@media (max-width: 991px) { + .post-meta-item-text { + display: none; + } +} +.post-nav { + border-top: 1px solid #eee; + display: flex; + justify-content: space-between; + margin-top: 15px; + padding: 10px 5px 0; +} +.post-nav-item { + flex: 1; +} +.post-nav-item a { + border-bottom: none; + display: block; + font-size: 0.875em; + line-height: 1.6; + position: relative; +} +.post-nav-item a:active { + top: 2px; +} +.post-nav-item .fa { + font-size: 0.75em; +} +.post-nav-item:first-child { + margin-right: 15px; +} +.post-nav-item:first-child .fa { + margin-right: 5px; +} +.post-nav-item:last-child { + margin-left: 15px; + text-align: right; +} +.post-nav-item:last-child .fa { + margin-left: 5px; +} +.rtl.post-body p, +.rtl.post-body a, +.rtl.post-body h1, +.rtl.post-body h2, +.rtl.post-body h3, +.rtl.post-body h4, +.rtl.post-body h5, +.rtl.post-body h6, +.rtl.post-body li, +.rtl.post-body ul, +.rtl.post-body ol { + direction: rtl; + font-family: UKIJ Ekran; +} +.rtl.post-title { + font-family: UKIJ Ekran; +} +.post-tags { + margin-top: 40px; + text-align: center; +} +.post-tags a { + display: inline-block; + font-size: 0.8125em; +} +.post-tags a:not(:last-child) { + margin-right: 10px; +} +.post-widgets { + border-top: 1px solid #eee; + margin-top: 15px; + text-align: center; +} +.wp_rating { + height: 20px; + line-height: 20px; + margin-top: 10px; + padding-top: 6px; + text-align: center; +} +.social-like { + display: flex; + font-size: 0.875em; + justify-content: center; + text-align: center; +} +.reward-container { + margin: 20px auto; + padding: 10px 0; + text-align: center; + width: 90%; +} +.reward-container button { + background: transparent; + border: 1px solid #fc6423; + border-radius: 0; + color: #fc6423; + cursor: pointer; + line-height: 2; + outline: 0; + padding: 0 15px; + vertical-align: text-top; +} +.reward-container button:hover { + background: #fc6423; + border: 1px solid transparent; + color: #fa9366; +} +#qr { + padding-top: 20px; +} +#qr a { + border: 0; +} +#qr img { + display: inline-block; + margin: 0.8em 2em 0 2em; + max-width: 100%; + width: 180px; +} +#qr p { + text-align: center; +} +.category-all-page .category-all-title { + text-align: center; +} +.category-all-page .category-all { + margin-top: 20px; +} +.category-all-page .category-list { + list-style: none; + margin: 0; + padding: 0; +} +.category-all-page .category-list-item { + margin: 5px 10px; +} +.category-all-page .category-list-count { + color: #bbb; +} +.category-all-page .category-list-count::before { + content: ' ('; + display: inline; +} +.category-all-page .category-list-count::after { + content: ') '; + display: inline; +} +.category-all-page .category-list-child { + padding-left: 10px; +} +.event-list { + padding: 0; +} +.event-list hr { + background: #222; + margin: 20px 0 45px 0; +} +.event-list hr::after { + background: #222; + color: #fff; + content: 'NOW'; + display: inline-block; + font-weight: bold; + padding: 0 5px; + text-align: right; +} +.event-list .event { + background: #222; + margin: 20px 0; + min-height: 40px; + padding: 15px 0 15px 10px; +} +.event-list .event .event-summary { + color: #fff; + margin: 0; + padding-bottom: 3px; +} +.event-list .event .event-summary::before { + animation: dot-flash 1s alternate infinite ease-in-out; + color: #fff; + content: '\f111'; + display: inline-block; + font-size: 10px; + margin-right: 25px; + vertical-align: middle; + font-family: 'Font Awesome 5 Free'; + font-weight: 900; +} +.event-list .event .event-relative-time { + color: #bbb; + display: inline-block; + font-size: 12px; + font-weight: normal; + padding-left: 12px; +} +.event-list .event .event-details { + color: #fff; + display: block; + line-height: 18px; + margin-left: 56px; + padding-bottom: 6px; + padding-top: 3px; + text-indent: -24px; +} +.event-list .event .event-details::before { + color: #fff; + display: inline-block; + margin-right: 9px; + text-align: center; + text-indent: 0; + width: 14px; + font-family: 'Font Awesome 5 Free'; + font-weight: 900; +} +.event-list .event .event-details.event-location::before { + content: '\f041'; +} +.event-list .event .event-details.event-duration::before { + content: '\f017'; +} +.event-list .event-past { + background: #f5f5f5; +} +.event-list .event-past .event-summary, +.event-list .event-past .event-details { + color: #bbb; + opacity: 0.9; +} +.event-list .event-past .event-summary::before, +.event-list .event-past .event-details::before { + animation: none; + color: #bbb; +} +@-moz-keyframes dot-flash { + from { + opacity: 1; + transform: scale(1); + } + to { + opacity: 0; + transform: scale(0.8); + } +} +@-webkit-keyframes dot-flash { + from { + opacity: 1; + transform: scale(1); + } + to { + opacity: 0; + transform: scale(0.8); + } +} +@-o-keyframes dot-flash { + from { + opacity: 1; + transform: scale(1); + } + to { + opacity: 0; + transform: scale(0.8); + } +} +@keyframes dot-flash { + from { + opacity: 1; + transform: scale(1); + } + to { + opacity: 0; + transform: scale(0.8); + } +} +ul.breadcrumb { + font-size: 0.75em; + list-style: none; + margin: 1em 0; + padding: 0 2em; + text-align: center; +} +ul.breadcrumb li { + display: inline; +} +ul.breadcrumb li + li::before { + content: '/\00a0'; + font-weight: normal; + padding: 0.5em; +} +ul.breadcrumb li + li:last-child { + font-weight: bold; +} +.tag-cloud { + text-align: center; +} +.tag-cloud a { + display: inline-block; + margin: 10px; +} +.tag-cloud a:hover { + color: var(--link-hover-color) !important; +} +.search-pop-overlay { + background: rgba(0,0,0,0); + height: 100%; + left: 0; + position: fixed; + top: 0; + transition: visibility 0s linear 0.2s, background 0.2s; + visibility: hidden; + width: 100%; + z-index: 1400; +} +.search-pop-overlay.search-active { + background: rgba(0,0,0,0.3); + transition: background 0.2s; + visibility: visible; +} +.search-popup { + background: var(--card-bg-color); + border-radius: 5px; + height: 80%; + left: calc(50% - 350px); + position: fixed; + top: 10%; + transform: scale(0); + transition: transform 0.2s; + width: 700px; + z-index: 1500; +} +.search-active .search-popup { + transform: scale(1); +} +@media (max-width: 767px) { + .search-popup { + border-radius: 0; + height: 100%; + left: 0; + margin: 0; + top: 0; + width: 100%; + } +} +.search-popup .search-icon, +.search-popup .popup-btn-close { + color: #999; + font-size: 18px; + padding: 0 10px; +} +.search-popup .popup-btn-close { + cursor: pointer; +} +.search-popup .popup-btn-close:hover .fa { + color: #222; +} +.search-popup .search-header { + background: #eee; + border-top-left-radius: 5px; + border-top-right-radius: 5px; + display: flex; + padding: 5px; +} +.search-popup input.search-input { + background: transparent; + border: 0; + outline: 0; + width: 100%; +} +.search-popup input.search-input::-webkit-search-cancel-button { + display: none; +} +.search-popup .search-input-container { + flex-grow: 1; + padding: 2px; +} +.search-popup ul.search-result-list { + margin: 0 5px; + padding: 0; + width: 100%; +} +.search-popup p.search-result { + border-bottom: 1px dashed #ccc; + padding: 5px 0; +} +.search-popup a.search-result-title { + font-weight: bold; +} +.search-popup .search-keyword { + border-bottom: 1px dashed #ff2a2a; + color: #ff2a2a; + font-weight: bold; +} +.search-popup #search-result { + display: flex; + height: calc(100% - 55px); + overflow: auto; + padding: 5px 25px; +} +.search-popup #no-result { + color: #ccc; + margin: auto; +} +.header { + margin: 0 auto; + position: relative; + width: calc(100% - 20px); +} +@media (min-width: 1200px) { + .header { + width: 1160px; + } +} +@media (min-width: 1600px) { + .header { + width: 73%; + } +} +@media (max-width: 991px) { + .header { + width: auto; + } +} +.header-inner { + background: var(--content-bg-color); + border-radius: initial; + box-shadow: 0 2px 2px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.06), 0 1px 5px 0 rgba(0,0,0,0.12); + overflow: hidden; + padding: 0; + position: absolute; + top: 0; + width: 240px; +} +@media (min-width: 1200px) { + .header-inner { + width: 240px; + } +} +@media (max-width: 991px) { + .header-inner { + border-radius: initial; + position: relative; + width: auto; + } +} +.main-inner { + align-items: flex-start; + display: flex; + justify-content: space-between; + flex-direction: row-reverse; +} +@media (max-width: 991px) { + .main-inner { + width: auto; + } +} +.content-wrap { + background: var(--content-bg-color); + border-radius: initial; + box-shadow: 0 2px 2px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.06), 0 1px 5px 0 rgba(0,0,0,0.12); + box-sizing: border-box; + padding: 40px; + width: calc(100% - 252px); +} +@media (max-width: 991px) { + .content-wrap { + border-radius: initial; + padding: 20px; + width: 100%; + } +} +.footer-inner { + padding-left: 260px; +} +.back-to-top { + left: auto; + right: 30px; +} +@media (max-width: 991px) { + .back-to-top { + right: 20px; + } +} +@media (max-width: 991px) { + .footer-inner { + padding-left: 0; + padding-right: 0; + width: auto; + } +} +.site-brand-container { + background: #222; +} +@media (max-width: 991px) { + .site-brand-container { + box-shadow: 0 0 16px rgba(0,0,0,0.5); + } +} +.site-meta { + padding: 20px 0; +} +.brand { + padding: 0; +} +.site-subtitle { + margin: 10px 10px 0; +} +.custom-logo-image { + margin-top: 20px; +} +@media (max-width: 991px) { + .custom-logo-image { + display: none; + } +} +@media (min-width: 768px) and (max-width: 991px) { + .site-nav-toggle, + .site-nav-right { + display: flex; + flex-direction: column; + justify-content: center; + } +} +.site-nav-toggle .toggle, +.site-nav-right .toggle { + color: #fff; +} +.site-nav-toggle .toggle .toggle-line, +.site-nav-right .toggle .toggle-line { + background: #fff; +} +@media (min-width: 768px) and (max-width: 991px) { + .site-nav { + display: none; + } +} +.menu .menu-item { + display: block; + margin: 0; +} +.menu .menu-item a, +.menu .menu-item span.exturl { + padding: 5px 20px; + position: relative; + text-align: left; + transition-property: background-color; +} +@media (max-width: 991px) { + .menu .menu-item.menu-item-search { + display: none; + } +} +.menu .menu-item .badge { + background: #ccc; + border-radius: 10px; + color: #fff; + float: right; + padding: 2px 5px; + text-shadow: 1px 1px 0 rgba(0,0,0,0.1); + vertical-align: middle; +} +.main-menu .menu-item-active a::after { + background: #bbb; + border-radius: 50%; + content: ' '; + height: 6px; + margin-top: -3px; + position: absolute; + right: 15px; + top: 50%; + width: 6px; +} +.sub-menu { + background: var(--content-bg-color); + border-bottom: 1px solid #ddd; + margin: 0; + padding: 6px 0; +} +.sub-menu .menu-item { + display: inline-block; +} +.sub-menu .menu-item a, +.sub-menu .menu-item span.exturl { + background: transparent; + margin: 5px 10px; + padding: initial; +} +.sub-menu .menu-item a:hover, +.sub-menu .menu-item span.exturl:hover { + background: transparent; + color: #fc6423; +} +.sub-menu .menu-item-active a { + border-bottom-color: #fc6423; + color: #fc6423; +} +.sub-menu .menu-item-active a:hover { + border-bottom-color: #fc6423; +} +.sidebar { + background: var(--body-bg-color); + box-shadow: none; + margin-top: 100%; + position: static; + width: 240px; +} +@media (max-width: 991px) { + .sidebar { + display: none; + } +} +.sidebar-toggle { + display: none; +} +.sidebar-inner { + background: var(--content-bg-color); + border-radius: initial; + box-shadow: 0 2px 2px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.06), 0 1px 5px 0 rgba(0,0,0,0.12), 0 -1px 0.5px 0 rgba(0,0,0,0.09); + box-sizing: border-box; + color: var(--text-color); + width: 240px; + opacity: 0; +} +.sidebar-inner.affix { + position: fixed; + top: 12px; +} +.sidebar-inner.affix-bottom { + position: absolute; +} +.site-state-item { + padding: 0 10px; +} +.sidebar-button { + border-bottom: 1px dotted #ccc; + border-top: 1px dotted #ccc; + margin-top: 10px; + text-align: center; +} +.sidebar-button a { + border: 0; + color: #fc6423; + display: block; +} +.sidebar-button a:hover { + background: none; + border: 0; + color: #e34603; +} +.sidebar-button a:hover .fa, +.sidebar-button a:hover .fab, +.sidebar-button a:hover .far, +.sidebar-button a:hover .fas { + color: #e34603; +} +.links-of-author { + display: flex; + flex-wrap: wrap; + margin-top: 10px; + justify-content: center; +} +.links-of-author-item { + margin: 5px 0 0; + width: 50%; +} +.links-of-author-item a, +.links-of-author-item span.exturl { + box-sizing: border-box; + display: inline-block; + margin-bottom: 0; + margin-right: 0; + max-width: 216px; + overflow: hidden; + padding: 0 5px; + text-overflow: ellipsis; + white-space: nowrap; +} +.links-of-author-item a, +.links-of-author-item span.exturl { + border-bottom: none; + display: block; + text-decoration: none; +} +.links-of-author-item a::before, +.links-of-author-item span.exturl::before { + display: none; +} +.links-of-author-item a:hover, +.links-of-author-item span.exturl:hover { + background: var(--body-bg-color); + border-radius: 4px; +} +.links-of-author-item .fa, +.links-of-author-item .fab, +.links-of-author-item .far, +.links-of-author-item .fas { + margin-right: 2px; +} +.links-of-blogroll-item { + padding: 0; +} +.content-wrap { + background: initial; + box-shadow: initial; + padding: initial; +} +.post-block { + background: var(--content-bg-color); + border-radius: initial; + box-shadow: 0 2px 2px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.06), 0 1px 5px 0 rgba(0,0,0,0.12); + padding: 40px; +} +.post-block + .post-block { + border-radius: initial; + box-shadow: 0 2px 2px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.06), 0 1px 5px 0 rgba(0,0,0,0.12), 0 -1px 0.5px 0 rgba(0,0,0,0.09); + margin-top: 12px; +} +.comments { + background: var(--content-bg-color); + border-radius: initial; + box-shadow: 0 2px 2px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.06), 0 1px 5px 0 rgba(0,0,0,0.12), 0 -1px 0.5px 0 rgba(0,0,0,0.09); + margin-top: 12px; + padding: 40px; +} +.tabs-comment { + margin-top: 1em; +} +.content { + padding-top: initial; +} +.post-eof { + display: none; +} +.pagination { + background: var(--content-bg-color); + border-radius: initial; + border-top: initial; + box-shadow: 0 2px 2px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.06), 0 1px 5px 0 rgba(0,0,0,0.12), 0 -1px 0.5px 0 rgba(0,0,0,0.09); + margin: 12px 0 0; + padding: 10px 0 10px; +} +.pagination .prev, +.pagination .next, +.pagination .page-number { + margin-bottom: initial; + top: initial; +} +.main { + padding-bottom: initial; +} +.footer { + bottom: auto; +} +.sub-menu { + border-bottom: initial; + box-shadow: 0 2px 2px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.06), 0 1px 5px 0 rgba(0,0,0,0.12); +} +.sub-menu + .content .post-block { + box-shadow: 0 2px 2px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.06), 0 1px 5px 0 rgba(0,0,0,0.12), 0 -1px 0.5px 0 rgba(0,0,0,0.09); + margin-top: 12px; +} +@media (min-width: 768px) and (max-width: 991px) { + .sub-menu + .content .post-block { + margin-top: 10px; + } +} +@media (max-width: 767px) { + .sub-menu + .content .post-block { + margin-top: 8px; + } +} +.post-body h1, +.post-body h2 { + border-bottom: 1px solid #eee; +} +.post-body h3 { + border-bottom: 1px dotted #eee; +} +@media (min-width: 768px) and (max-width: 991px) { + .content-wrap { + padding: 10px; + } + .posts-expand .post-button { + margin-top: 20px; + } + .post-block { + border-radius: initial; + box-shadow: 0 2px 2px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.06), 0 1px 5px 0 rgba(0,0,0,0.12), 0 -1px 0.5px 0 rgba(0,0,0,0.09); + padding: 20px; + } + .post-block + .post-block { + margin-top: 10px; + } + .comments { + margin-top: 10px; + padding: 10px 20px; + } + .pagination { + margin: 10px 0 0; + } +} +@media (max-width: 767px) { + .content-wrap { + padding: 8px; + } + .posts-expand .post-button { + margin: 12px 0; + } + .post-block { + border-radius: initial; + box-shadow: 0 2px 2px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.06), 0 1px 5px 0 rgba(0,0,0,0.12), 0 -1px 0.5px 0 rgba(0,0,0,0.09); + min-height: auto; + padding: 12px; + } + .post-block + .post-block { + margin-top: 8px; + } + .comments { + margin-top: 8px; + padding: 10px 12px; + } + .pagination { + margin: 8px 0 0; + } +} diff --git a/images/algolia_logo.svg b/images/algolia_logo.svg new file mode 100644 index 00000000..47024234 --- /dev/null +++ b/images/algolia_logo.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/images/apple-touch-icon-next.png b/images/apple-touch-icon-next.png new file mode 100644 index 00000000..86a0d1d3 Binary files /dev/null and b/images/apple-touch-icon-next.png differ diff --git a/images/avatar.gif b/images/avatar.gif new file mode 100644 index 00000000..28411fd0 Binary files /dev/null and b/images/avatar.gif differ diff --git a/images/cc-by-nc-nd.svg b/images/cc-by-nc-nd.svg new file mode 100644 index 00000000..79a4f2e0 --- /dev/null +++ b/images/cc-by-nc-nd.svg @@ -0,0 +1,121 @@ + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + diff --git a/images/cc-by-nc-sa.svg b/images/cc-by-nc-sa.svg new file mode 100644 index 00000000..bf6bc26f --- /dev/null +++ b/images/cc-by-nc-sa.svg @@ -0,0 +1,121 @@ + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + diff --git a/images/cc-by-nc.svg b/images/cc-by-nc.svg new file mode 100644 index 00000000..36973490 --- /dev/null +++ b/images/cc-by-nc.svg @@ -0,0 +1,121 @@ + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + diff --git a/images/cc-by-nd.svg b/images/cc-by-nd.svg new file mode 100644 index 00000000..934c61e1 --- /dev/null +++ b/images/cc-by-nd.svg @@ -0,0 +1,117 @@ + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + diff --git a/images/cc-by-sa.svg b/images/cc-by-sa.svg new file mode 100644 index 00000000..463276a8 --- /dev/null +++ b/images/cc-by-sa.svg @@ -0,0 +1,121 @@ + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + diff --git a/images/cc-by.svg b/images/cc-by.svg new file mode 100644 index 00000000..4bccd14f --- /dev/null +++ b/images/cc-by.svg @@ -0,0 +1,121 @@ + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + diff --git a/images/cc-zero.svg b/images/cc-zero.svg new file mode 100644 index 00000000..0f866392 --- /dev/null +++ b/images/cc-zero.svg @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/images/favicon-16x16-next.png b/images/favicon-16x16-next.png new file mode 100644 index 00000000..de8c5d3a Binary files /dev/null and b/images/favicon-16x16-next.png differ diff --git a/images/favicon-32x32-next.png b/images/favicon-32x32-next.png new file mode 100644 index 00000000..e02f5f4d Binary files /dev/null and b/images/favicon-32x32-next.png differ diff --git a/images/logo.png b/images/logo.png new file mode 100644 index 00000000..decfd5b1 Binary files /dev/null and b/images/logo.png differ diff --git a/images/logo.svg b/images/logo.svg new file mode 100644 index 00000000..cbb3937e --- /dev/null +++ b/images/logo.svg @@ -0,0 +1,23 @@ + +image/svg+xml diff --git a/index.html b/index.html new file mode 100644 index 00000000..bfbf3972 --- /dev/null +++ b/index.html @@ -0,0 +1,401 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3TS-Coo | 3TS + + + + + + + + + + + + +
+
+ +
+
+ + + + + +
+ + + + + + + + +
+ +
+ +
+
+ + +
+ + 0% +
+ + +
+
+
+ + +
+ + + + +
+ + + + + +
+

+ + +

+ + +
+ + + + +
+ + +

Tencent Transaction Processing Testbed System (3TS)

+ +
+ + Read more » + +
+ + + +
+ + + + +
+
+
+
+ + + + + + + + + +
+ + + + +
+ + + + + + + + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/index/images/logo.png b/index/images/logo.png new file mode 100644 index 00000000..decfd5b1 Binary files /dev/null and b/index/images/logo.png differ diff --git a/index/index.html b/index/index.html new file mode 100644 index 00000000..1b865ea8 --- /dev/null +++ b/index/index.html @@ -0,0 +1,405 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3TS-Coo | 3TS-Coo | 3TS + + + + + + + + + + + + +
+
+ +
+
+ + + + + +
+ + + + + + + + +
+ +
+ +
+
+ + +
+ + 0% +
+ + +
+
+
+ + +
+ + + + + +
+ + + + + +
+

+ 3TS-Coo +

+ + +
+ + + + +
+ + +

3TS-Coo

3TS-Coo is a consistency check tool for transactional databases. Coo checks the consistency of databases in accurate (all types of anomalies), user-friendly (SQL-based test), and cost-effective (one-time checking in a few minutes) ways. You can check out the code and detailed result on GitHub branch. Contributions in any kind are welcome.

+

The original and executed schedules are available for analysis and debugging. You can click each hyperlink for more detailed test cases and executed results. The formal expressions of test cases are also available.

+

The result behaviors are classified into two types, i.e., anomaly (A) and consistency. For anomaly occurrence, data anomalies are not recognized by databases, resulting in data inconsistencies, meaning the executed schedule with no equivalent serializable execution (or a Partial Order Pair (POP) cycle). While for the consistent performance, databases either pass (P) the anomaly test cases with a serializable result (no POP cycle) or rollback transactions due to rules (R), deadlock detection (D), or timeout (T) reached. The isolation levels are Serializable (SER), Repeatable Read (RR), Read Committed (RC), Read Uncommitted (RU), and Snapshot Isolation (SI).

+

Follow up

We are testing the scenarios with predicates. Please stay tuned!

+ +
+ + + + + +
+ + + + + +
+ +
+ + + + + + +
+ + + + +
+ + + + + + + + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/index/result/crdb_19.2.2/result_summary/serializable_total-result.txt b/index/result/crdb_19.2.2/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..63240c80 --- /dev/null +++ b/index/result/crdb_19.2.2/result_summary/serializable_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Avoid + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Avoid + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Avoid + +rat_mda_step_rat_predicate_based_insert: Avoid + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +iat_mda_step_iat_predicate_based_delete: Rollback + +iat_mda_step_iat_predicate_based_insert: Rollback + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Rollback + diff --git a/index/result/crdb_19.2.2/serializable/iat_dda_read_skew_committed.txt b/index/result/crdb_19.2.2/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..da1d915e --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:6:619:49 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:53:6:622:619 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:6:720:978 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:53:6:724:491 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:53:6:727:692 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:53:6:730:895 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 16:53:6:823:571 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:53:6:825:405 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:53:6:828:827 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/iat_dda_read_write_skew1_committed.txt b/index/result/crdb_19.2.2/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..70d32f52 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:7:145:274 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:53:7:148:534 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:7:247:353 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:53:7:250:486 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:53:7:253:575 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:53:7:256:516 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889587.144869253,0 too old; wrote at 1648889587.246952816,1 errcode: HY000 +Q7 failed at: 2022-4-2 16:53:8:48:989 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889587.144869253,0 too old; wrote at 1648889587.246952816,1 + diff --git a/index/result/crdb_19.2.2/serializable/iat_dda_write_skew.txt b/index/result/crdb_19.2.2/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..c8c75c64 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/iat_dda_write_skew.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:8:400:595 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:53:8:403:821 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:8:500:401 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:53:8:503:880 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:53:8:507:190 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 16:53:8:601:965 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-2 16:53:8:703:2 +Q7 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=8947d20d key=/Table/330/1/1/0 rw=true pri=0.04650676 stat=PENDING epo=0 ts=1648889588.50002684 errcode: HY000 +Q7 failed at: 2022-4-2 16:53:9:306:390 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=8947d20d key=/Table/330/1/1/0 rw=true pri=0.04650676 stat=PENDING epo=0 ts=1648889588.50002684 + diff --git a/index/result/crdb_19.2.2/serializable/iat_dda_write_skew_committed.txt b/index/result/crdb_19.2.2/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..3b4c03ff --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:11:383:976 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:53:11:387:951 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:11:483:991 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:53:11:487:620 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:53:11:491:337 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:53:11:495:486 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 16:53:11:585:833 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=27646345 key=/Table/333/1/1/0 rw=true pri=0.01261970 stat=PENDING epo=0 ts=1648889591.48360386 errcode: HY000 +Q8 failed at: 2022-4-2 16:53:12:390:533 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=27646345 key=/Table/333/1/1/0 rw=true pri=0.01261970 stat=PENDING epo=0 ts=1648889591.48360386 + diff --git a/index/result/crdb_19.2.2/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/index/result/crdb_19.2.2/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..3f1e9364 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,71 @@ +#### db_type: crdb #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:9:553:603 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 16:53:9:557:927 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 16:53:9:560:904 + Q4-T2 execute sql: 'BEGIN TRANSACTION;' + Q4 finished at: 2022-4-2 16:53:9:653:444 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:53:9:755:484 + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 16:53:9:763:506 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 16:53:9:766:343 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:53:9:769:535 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 16:53:9:773:367 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 16:53:9:776:569 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/index/result/crdb_19.2.2/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..49077e81 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:10:48:555 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 16:53:10:52:730 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:10:148:628 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 16:53:10:153:630 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 16:53:10:170:832 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:53:10:174:944 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-2 16:53:10:250:997 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=c6ca7478 key=/Table/332/1/"kevin"/"checking"/0 rw=true pri=0.06037639 stat=PENDING epo=0 ts=16 errcode: HY000 +Q8 failed at: 2022-4-2 16:53:11:55:114 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=c6ca7478 key=/Table/332/1/"kevin"/"checking"/0 rw=true pri=0.06037639 stat=PENDING epo=0 ts=16 + diff --git a/index/result/crdb_19.2.2/serializable/iat_mda_step_iat.txt b/index/result/crdb_19.2.2/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..c9156645 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/iat_mda_step_iat.txt @@ -0,0 +1,90 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:12:714:385 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 16:53:12:717:793 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:12:814:282 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 16:53:12:817:887 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-2 16:53:12:916:503 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 16:53:12:920:179 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 16:53:13:16:387 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 16:53:13:116:164 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 16:53:13:216:323 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-2 16:53:13:317:177 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:53:13:516:406 + Q11 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=bc65461d key=/Table/334/1/1/0 rw=true pri=0.00452134 stat=PENDING epo=0 ts=1648889592.91615675 errcode: HY000 + Q11 failed at: 2022-4-2 16:53:14:517:981 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=bc65461d key=/Table/334/1/1/0 rw=true pri=0.00452134 stat=PENDING epo=0 ts=1648889592.91615675 + diff --git a/index/result/crdb_19.2.2/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/index/result/crdb_19.2.2/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..af310a1f --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,105 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:20:506:798 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:53:20:510:541 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:20:605:331 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 16:53:20:609:906 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 16:53:20:613:911 + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-2 16:53:20:708:644 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 16:53:20:712:234 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 16:53:20:716:229 + Q9-T3 execute sql: 'COMMIT TRANSACTION;' + Q9 finished at: 2022-4-2 16:53:20:719:599 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 16:53:20:810:537 +Q11-T1 execute sql: 'COMMIT TRANSACTION;' +Q11 finished at: 2022-4-2 16:53:20:812:290 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 16:53:20:815:850 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/iat_mda_step_iat_cross_phenomenon.txt b/index/result/crdb_19.2.2/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..180d08f7 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,206 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:19:677:63 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:53:19:681:657 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:19:776:517 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:53:19:780:669 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-2 16:53:19:873:76 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 16:53:19:876:915 + Q7-T3 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:53:19:880:466 + Q8-T4 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-2 16:53:19:976:338 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 16:53:19:979:715 + Q10-T4 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-2 16:53:19:982:881 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 16:53:20:75:321 + Q12-T2 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:53:20:77:211 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 16:53:20:173:706 +Q14-T1 execute sql: 'COMMIT TRANSACTION;' +Q14 finished at: 2022-4-2 16:53:20:175:621 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 16:53:20:180:642 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/iat_mda_step_iat_predicate_based_delete.txt b/index/result/crdb_19.2.2/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..fb54777c --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,90 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:14:846:121 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 16:53:14:849:986 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:14:945:358 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 16:53:14:949:504 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-2 16:53:15:45:108 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 16:53:15:49:342 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 16:53:15:151:612 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 16:53:15:248:369 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 16:53:15:348:54 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-2 16:53:15:448:324 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:53:15:647:444 + Q11 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=28793754 key=/Table/335/1/1 rw=true pri=0.03177472 stat=PENDING epo=0 ts=1648889595.044727208, errcode: HY000 + Q11 failed at: 2022-4-2 16:53:16:650:0 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=28793754 key=/Table/335/1/1 rw=true pri=0.03177472 stat=PENDING epo=0 ts=1648889595.044727208, + diff --git a/index/result/crdb_19.2.2/serializable/iat_mda_step_iat_predicate_based_insert.txt b/index/result/crdb_19.2.2/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..e5d92f92 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,87 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:16:948:897 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 16:53:16:961:521 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:17:48:486 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 16:53:17:52:290 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-2 16:53:17:148:412 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 16:53:17:152:120 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 16:53:17:250:314 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 16:53:17:351:85 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 16:53:17:450:336 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-2 16:53:17:552:164 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:53:17:751:324 + Q11 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=56c02bb7 key=/Table/336/1/1/0 rw=true pri=0.00554938 stat=PENDING epo=0 ts=1648889597.14800837 errcode: HY000 + Q11 failed at: 2022-4-2 16:53:18:752:22 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=56c02bb7 key=/Table/336/1/1/0 rw=true pri=0.00554938 stat=PENDING epo=0 ts=1648889597.14800837 + diff --git a/index/result/crdb_19.2.2/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/index/result/crdb_19.2.2/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..e2d25f5c --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,121 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:21:147:87 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 16:53:21:151:376 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 16:53:21:155:190 + Q4-T2 execute sql: 'BEGIN TRANSACTION;' + Q4 finished at: 2022-4-2 16:53:21:246:842 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 16:53:21:250:476 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 16:53:21:253:908 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:53:21:257:421 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-2 16:53:21:349:72 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 16:53:21:353:526 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 16:53:21:356:956 + Q11-T3 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-2 16:53:21:358:628 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-2 16:53:21:454:623 +Q13-T1 execute sql: 'COMMIT TRANSACTION;' +Q13 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=fda15299 key=/Table/340/1/0/0 rw=true pri=0.01143240 stat=PENDING epo=0 ts=1648889601.34859007 errcode: HY000 +Q13 failed at: 2022-4-2 16:53:22:759:597 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=fda15299 key=/Table/340/1/0/0 rw=true pri=0.01143240 stat=PENDING epo=0 ts=1648889601.34859007 + diff --git a/index/result/crdb_19.2.2/serializable/iat_mda_step_iat_uname_anomaly.txt b/index/result/crdb_19.2.2/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..b9814723 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,161 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:19:32:345 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 16:53:19:35:955 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:19:132:460 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 16:53:19:136:690 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:53:19:140:56 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 16:53:19:144:462 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-2 16:53:19:147:665 + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-2 16:53:19:150:542 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-2 16:53:19:232:785 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 16:53:19:236:461 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-2 16:53:19:239:523 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 16:53:19:243:290 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 16:53:19:246:559 + Q14-T3 execute sql: 'COMMIT TRANSACTION;' + Q14 finished at: 2022-4-2 16:53:19:250:546 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 16:53:19:334:943 +Q16-T1 execute sql: 'COMMIT TRANSACTION;' +Q16 finished at: 2022-4-2 16:53:19:337:19 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 16:53:19:341:278 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/iat_sda_lost_update_committed.txt b/index/result/crdb_19.2.2/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..b96c3930 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: crdb #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:5:486:810 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 16:53:5:490:194 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:5:586:870 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 16:53:5:590:159 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 16:53:5:597:748 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889585.486334849,0 too old; wrote at 1648889585.586497792,1 errcode: HY000 +Q6 failed at: 2022-4-2 16:53:6:291:46 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889585.486334849,0 too old; wrote at 1648889585.586497792,1 + diff --git a/index/result/crdb_19.2.2/serializable/iat_sda_non_repeatable_read_committed.txt b/index/result/crdb_19.2.2/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..a8fe60af --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,57 @@ +#### db_type: crdb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 17:11:2:974:620 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 17:11:2:987:952 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 17:11:3:69:739 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 17:11:3:76:433 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 17:11:3:80:252 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 17:11:3:172:212 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 17:11:3:175:236 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 17:11:3:179:334 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/rat_dda_double_write_skew1.txt b/index/result/crdb_19.2.2/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..b60794da --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,34 @@ +#### db_type: crdb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:35:843:731 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:35:848:536 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:35:943:160 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:35:947:281 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q6 finished at: 2022-4-2 16:52:36:59:421 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:36:246:191 + Q5 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=6dfc20ac key=/Table/297/1/1/0 rw=true pri=0.01388052 stat=ABORTED epo=0 ts=1648889555.942584994 errcode: HY000 + Q5 failed at: 2022-4-2 16:52:36:576:336 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=6dfc20ac key=/Table/297/1/1/0 rw=true pri=0.01388052 stat=ABORTED epo=0 ts=1648889555.942584994 + diff --git a/index/result/crdb_19.2.2/serializable/rat_dda_double_write_skew1_committed.txt b/index/result/crdb_19.2.2/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..ce138127 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:36:906:164 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:36:910:645 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:37:6:93 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:37:9:779 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 16:52:37:119:777 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:37:123:752 +Q7 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_ABORT_SPAN): "sql txn" id=74990123 key=/Table/298/1/0/0 rw=true pri=0.01323698 stat=ABORTED epo=0 ts=1648889557.005586845,1 o errcode: HY000 +Q7 failed at: 2022-4-2 16:52:37:832:763 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_ABORT_SPAN): "sql txn" id=74990123 key=/Table/298/1/0/0 rw=true pri=0.01323698 stat=ABORTED epo=0 ts=1648889557.005586845,1 o + diff --git a/index/result/crdb_19.2.2/serializable/rat_dda_double_write_skew2.txt b/index/result/crdb_19.2.2/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..a1906abf --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,53 @@ +#### db_type: crdb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:38:176:466 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:38:180:183 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:38:276:786 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:38:280:743 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 16:52:38:378:469 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:38:382:239 + Q5 finished at: 2022-4-2 16:52:38:390:589 + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-2 16:52:38:483:60 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:52:38:486:960 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/rat_dda_read_skew.txt b/index/result/crdb_19.2.2/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..3fceb3a6 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/rat_dda_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:38:808:758 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:52:38:812:426 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:38:908:512 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:38:912:320 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:52:38:915:832 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 16:52:39:11:248 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:52:39:110:523 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:39:208:728 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:52:39:212:592 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/rat_dda_read_skew2.txt b/index/result/crdb_19.2.2/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..5c81b566 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:40:581:343 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:40:584:775 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:40:681:552 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:52:40:685:445 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 16:52:40:783:156 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:40:787:95 + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 16:52:40:794:871 + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-2 16:52:40:881:336 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:52:40:896:759 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/rat_dda_read_skew2_committed.txt b/index/result/crdb_19.2.2/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..556ef637 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:41:217:439 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:41:221:680 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:41:317:547 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:52:41:321:482 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 16:52:41:419:20 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:41:422:969 + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 16:52:41:430:871 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:41:432:972 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:52:41:436:425 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/rat_dda_read_skew_predicate_based_delete.txt b/index/result/crdb_19.2.2/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..f7b52476 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:39:525:393 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 16:52:39:529:591 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:39:623:985 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:39:628:603 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:52:39:640:990 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:39:644:745 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 16:52:39:725:617 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:39:727:575 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 16:52:39:730:764 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/rat_dda_read_skew_predicate_based_insert.txt b/index/result/crdb_19.2.2/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..7d892e39 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,58 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:40:29:59 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 16:52:40:39:609 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:40:128:893 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 16:52:40:132:102 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 16:52:40:134:933 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:40:138:58 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 16:52:40:249:669 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:40:251:983 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 16:52:40:255:335 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/rat_dda_write_read_skew.txt b/index/result/crdb_19.2.2/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..9ee7ba9f --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:34:530:528 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:34:534:579 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:34:630:662 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:34:634:645 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 16:52:34:732:539 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:34:933:761 + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 16:52:34:942:919 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:52:34:963:972 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:52:34:970:209 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/rat_dda_write_read_skew_committed.txt b/index/result/crdb_19.2.2/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..de802241 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:35:306:802 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:35:310:707 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:35:406:781 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:35:411:616 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 16:52:35:507:707 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:35:512:969 + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 16:52:35:520:904 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:35:524:857 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:52:35:528:228 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/rat_mda_step_rat.txt b/index/result/crdb_19.2.2/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..6188472f --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: crdb #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:41:759:44 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:41:762:637 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:41:858:928 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:41:863:128 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:41:961:857 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 16:52:41:969:486 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-2 16:52:42:61:131 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-2 16:52:42:65:429 + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + (3) expected_result: + (0,0) + (4) expected_result: + (0,0) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 16:52:42:74:447 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-2 16:52:42:166:622 + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 16:52:42:175:58 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:52:42:263:624 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 16:52:42:268:672 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/rat_mda_step_rat_long_fork.txt b/index/result/crdb_19.2.2/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..8fdbeba7 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,206 @@ +#### db_type: crdb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN TRANSACTION;' + Q1 finished at: 2022-4-2 17:27:5:712:79 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 17:27:5:726:913 +Q3-T1 execute sql: 'BEGIN TRANSACTION;' +Q3 finished at: 2022-4-2 17:27:5:806:747 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 17:27:5:813:256 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-2 17:27:5:906:907 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 17:27:5:912:640 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-2 17:27:6:7:141 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 17:27:6:12:179 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 17:27:6:110:283 +Q11-T1 execute sql: 'COMMIT TRANSACTION;' +Q11 finished at: 2022-4-2 17:27:6:209:42 + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + *(7) expected_result: + (0,1) + *(8) expected_result: + (0,1) + *(9) expected_result: + (0,1) + (10) expected_result: + (0,0) + (11) expected_result: + (0,0) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + (14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 17:27:6:217:667 + Q12-T2 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 17:27:6:312:35 + Q13-T3 execute sql: 'COMMIT TRANSACTION;' + Q13 finished at: 2022-4-2 17:27:6:407:35 + Q14-T4 execute sql: 'COMMIT TRANSACTION;' + Q14 finished at: 2022-4-2 17:27:6:410:227 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 17:27:6:415:876 + +The current result is consistent with the [(13) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/rat_mda_step_rat_predicate_based_delete.txt b/index/result/crdb_19.2.2/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..969ce569 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: crdb #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:43:636:278 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:43:641:204 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:43:735:949 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:43:740:773 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:43:836:102 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 16:52:43:841:389 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-2 16:52:43:940:639 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-2 16:52:43:946:302 + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 16:52:43:952:913 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-2 16:52:44:38:381 + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 16:52:44:45:341 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:52:44:138:47 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 16:52:44:141:809 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/rat_mda_step_rat_predicate_based_insert.txt b/index/result/crdb_19.2.2/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..a33c8c47 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: crdb #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:44:445:477 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 16:52:44:454:239 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:44:545:188 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 16:52:44:549:659 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:44:645:752 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 16:52:44:651:894 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 16:52:44:747:897 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-2 16:52:44:752:774 + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 16:52:44:759:643 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-2 16:52:44:847:478 + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + (4) expected_result: + (,) + *(5) expected_result: + (1,) + (6) expected_result: + (,) + + Q8 finished at: 2022-4-2 16:52:44:872:86 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:52:44:947:943 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 16:52:44:951:764 + +The current result is consistent with the [(5) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/rat_sda_dirty_read.txt b/index/result/crdb_19.2.2/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..8494439b --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,44 @@ +#### db_type: crdb #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:30:123:669 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:30:131:464 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:30:217:226 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 16:52:30:335:656 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:30:417:922 +Q5 finished at: 2022-4-2 16:52:30:514:207 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 16:52:30:519:396 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/rat_sda_intermediate_read.txt b/index/result/crdb_19.2.2/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..92fc2d2c --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:31:565:893 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:31:570:753 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:31:666:67 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 16:52:31:765:904 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:31:965:271 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 16:52:31:973:611 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:31:976:572 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 16:52:31:980:356 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/rat_sda_intermediate_read_committed.txt b/index/result/crdb_19.2.2/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..b6301d37 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:32:294:584 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:32:299:673 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:32:394:636 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 16:52:32:496:908 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:32:501:408 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 16:52:32:509:523 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 16:52:32:511:834 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 16:52:32:515:124 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/rat_sda_lost_self_update.txt b/index/result/crdb_19.2.2/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..210509ba --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:33:904:863 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:33:909:653 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:34:5:399 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 16:52:34:106:576 +Q6-T1 execute sql: 'COMMIT TRANSACTION;' +Q6 finished at: 2022-4-2 16:52:34:111:258 + Q4 finished at: 2022-4-2 16:52:34:117:225 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:52:34:207:471 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 16:52:34:213:48 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/rat_sda_non_repeatable_read.txt b/index/result/crdb_19.2.2/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..6edfa97f --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,57 @@ +#### db_type: crdb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 17:3:16:212:181 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 17:3:16:226:708 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 17:3:16:307:584 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 17:3:16:314:243 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 17:3:16:407:747 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 17:3:16:508:114 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 17:3:16:604:887 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 17:3:16:609:389 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/index/result/crdb_19.2.2/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..99d97dbd --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,57 @@ +#### db_type: crdb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:32:824:457 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 16:52:32:828:771 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:32:924:263 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 16:52:32:929:870 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 16:52:32:933:787 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 16:52:33:26:448 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:33:29:15 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 16:52:33:32:509 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/index/result/crdb_19.2.2/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..6a859974 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,56 @@ +#### db_type: crdb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:33:385:681 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 16:52:33:399:667 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:33:485:555 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 16:52:33:489:411 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 16:52:33:493:43 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 16:52:33:587:210 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:33:589:858 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 16:52:33:593:715 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/wat_dda_double_write_skew2_committed.txt b/index/result/crdb_19.2.2/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..1d9fe1ad --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,53 @@ +#### db_type: crdb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:50:472:711 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:50:476:546 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:50:573:57 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:50:576:493 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 16:52:50:671:334 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:50:675:357 + Q5 finished at: 2022-4-2 16:52:50:682:789 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:50:687:384 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:52:50:690:695 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/wat_dda_full_write_skew_c1.txt b/index/result/crdb_19.2.2/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..c4888768 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: crdb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:51:31:130 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:51:34:372 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:51:131:333 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:51:135:368 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 16:52:51:251:927 + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-2 16:52:51:334:959 +Q6 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=a169cc1e key=/Table/316/1/0/0 rw=true pri=0.00752718 stat=ABORTED epo=0 ts=1648889571.030721457 errcode: HY000 +Q6 failed at: 2022-4-2 16:52:51:846:79 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=a169cc1e key=/Table/316/1/0/0 rw=true pri=0.00752718 stat=ABORTED epo=0 ts=1648889571.030721457 + diff --git a/index/result/crdb_19.2.2/serializable/wat_dda_full_write_skew_c2.txt b/index/result/crdb_19.2.2/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..f215eea5 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,34 @@ +#### db_type: crdb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:52:189:799 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:52:193:155 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:52:289:670 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:52:292:897 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 16:52:52:398:920 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:52:52:492:639 +Q6 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=2eaf352b key=/Table/317/1/0/0 rw=true pri=0.00510947 stat=ABORTED epo=0 ts=1648889572.189359556 errcode: HY000 +Q6 failed at: 2022-4-2 16:52:52:992:684 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=2eaf352b key=/Table/317/1/0/0 rw=true pri=0.00510947 stat=ABORTED epo=0 ts=1648889572.189359556 + diff --git a/index/result/crdb_19.2.2/serializable/wat_dda_full_write_skew_committed.txt b/index/result/crdb_19.2.2/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..9247baee --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,34 @@ +#### db_type: crdb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:53:325:159 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:53:329:229 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:53:432:990 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:53:436:234 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 16:52:53:536:572 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:53:539:534 +Q7 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=e329b49a key=/Table/318/1/0/0 rw=true pri=0.00928901 stat=ABORTED epo=0 ts=1648889573.324600888 errcode: HY000 +Q7 failed at: 2022-4-2 16:52:54:227:705 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=e329b49a key=/Table/318/1/0/0 rw=true pri=0.00928901 stat=ABORTED epo=0 ts=1648889573.324600888 + diff --git a/index/result/crdb_19.2.2/serializable/wat_dda_read_write_skew1_c1.txt b/index/result/crdb_19.2.2/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..ffeefd9a --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:54:555:746 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:52:54:559:501 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:54:655:902 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:54:659:146 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:52:54:662:213 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-2 16:52:54:859:363 +Q6 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889574.555247881,0 too old; wrote at 1648889574.655508025,1 errcode: HY000 +Q6 failed at: 2022-4-2 16:52:55:468:761 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889574.555247881,0 too old; wrote at 1648889574.655508025,1 + diff --git a/index/result/crdb_19.2.2/serializable/wat_dda_read_write_skew1_c2.txt b/index/result/crdb_19.2.2/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..697c113f --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:55:812:679 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:52:55:816:529 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:55:912:464 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:55:916:58 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:52:55:918:987 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:52:56:114:906 +Q6 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889575.812167779,0 too old; wrote at 1648889575.911965607,1 errcode: HY000 +Q6 failed at: 2022-4-2 16:52:56:724:661 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889575.812167779,0 too old; wrote at 1648889575.911965607,1 + diff --git a/index/result/crdb_19.2.2/serializable/wat_dda_read_write_skew2_c1.txt b/index/result/crdb_19.2.2/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..938a005e --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:57:81:303 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:57:85:211 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:57:180:891 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:52:57:184:569 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 16:52:57:282:373 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:57:286:335 + Q5 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889577.180503439,0 too old; wrote at 1648889577.180503439,2 errcode: HY000 + Q5 failed at: 2022-4-2 16:52:57:795:551 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889577.180503439,0 too old; wrote at 1648889577.180503439,2 + diff --git a/index/result/crdb_19.2.2/serializable/wat_dda_read_write_skew2_c2.txt b/index/result/crdb_19.2.2/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..d2748e59 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:58:126:383 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:58:129:711 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:58:229:101 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:52:58:232:499 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 16:52:58:327:904 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:58:533:580 + Q5 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889578.228739680,0 too old; wrote at 1648889578.228739680,2 errcode: HY000 + Q5 failed at: 2022-4-2 16:52:59:44:731 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889578.228739680,0 too old; wrote at 1648889578.228739680,2 + diff --git a/index/result/crdb_19.2.2/serializable/wat_dda_read_write_skew2_committed.txt b/index/result/crdb_19.2.2/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..db5a2aa9 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:59:371:862 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:59:375:572 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:59:471:508 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:52:59:490:17 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 16:52:59:574:538 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:59:578:375 + Q5 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889579.471137871,0 too old; wrote at 1648889579.471137871,2 errcode: HY000 + Q5 failed at: 2022-4-2 16:53:0:88:400 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889579.471137871,0 too old; wrote at 1648889579.471137871,2 + diff --git a/index/result/crdb_19.2.2/serializable/wat_mda_step_wat_c1.txt b/index/result/crdb_19.2.2/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..f0389c2c --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: crdb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:0:452:107 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:53:0:455:384 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:0:552:119 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:53:0:555:491 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-2 16:53:0:652:3 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 16:53:0:655:276 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 16:53:0:762:614 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-2 16:53:0:854:432 + Q8 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=e76ccdd4 key=/Table/324/1/2/0 rw=true pri=0.00480525 stat=ABORTED epo=0 ts=1648889580.651684517 errcode: HY000 + Q8 failed at: 2022-4-2 16:53:1:555:694 +Q9 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_ABORT_SPAN): "sql txn" id=7a95c40f key=/Table/324/1/0/0 rw=true pri=0.01270054 stat=ABORTED epo=0 ts=1648889580.651684517,1 o errcode: HY000 +Q9 failed at: 2022-4-2 16:53:1:662:239 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=e76ccdd4 key=/Table/324/1/2/0 rw=true pri=0.00480525 stat=ABORTED epo=0 ts=1648889580.651684517 + diff --git a/index/result/crdb_19.2.2/serializable/wat_mda_step_wat_c2.txt b/index/result/crdb_19.2.2/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..cef6b97a --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,42 @@ +#### db_type: crdb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:2:11:895 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:53:2:15:947 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:2:113:226 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:53:2:117:345 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-2 16:53:2:210:128 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 16:53:2:414:924 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 finished at: 2022-4-2 16:53:2:520:958 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:53:2:814:848 + Q6 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=e7f9c264 key=/Table/325/1/1/0 rw=true pri=0.00574430 stat=ABORTED epo=0 ts=1648889582.112823795 errcode: HY000 + Q6 failed at: 2022-4-2 16:53:3:114:416 +Q9 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889582.011428435,0 too old; wrote at 1648889582.209768259,1 errcode: HY000 +Q9 failed at: 2022-4-2 16:53:3:724:704 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=e7f9c264 key=/Table/325/1/1/0 rw=true pri=0.00574430 stat=ABORTED epo=0 ts=1648889582.112823795 + diff --git a/index/result/crdb_19.2.2/serializable/wat_sda_dirty_write_1abort.txt b/index/result/crdb_19.2.2/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..92d8a128 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,43 @@ +#### db_type: crdb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:45:269:798 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:45:273:620 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:45:369:781 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 16:52:45:473:538 + Q4 finished at: 2022-4-2 16:52:45:478:464 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:45:572:576 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 16:52:45:576:368 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 16:52:45:664:625 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/wat_sda_dirty_write_2commit.txt b/index/result/crdb_19.2.2/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..714c1f7f --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,43 @@ +#### db_type: crdb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 17:5:35:407:121 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 17:5:35:414:26 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 17:5:35:502:377 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'COMMIT TRANSACTION;' +Q5 finished at: 2022-4-2 17:5:35:606:400 + Q4 finished at: 2022-4-2 17:5:35:618:397 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 17:5:35:704:339 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 17:5:35:717:642 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 17:5:35:812:352 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/wat_sda_full_write.txt b/index/result/crdb_19.2.2/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..efa1e3e5 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/wat_sda_full_write.txt @@ -0,0 +1,43 @@ +#### db_type: crdb #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:46:431:18 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:46:434:925 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:46:531:264 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 16:52:46:633:72 +Q6-T1 execute sql: 'COMMIT TRANSACTION;' +Q6 finished at: 2022-4-2 16:52:46:660:813 + Q4 finished at: 2022-4-2 16:52:46:668:526 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:52:46:732:830 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 16:52:46:736:459 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/wat_sda_full_write_committed.txt b/index/result/crdb_19.2.2/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..8bba31e4 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,43 @@ +#### db_type: crdb #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:47:67:354 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:47:71:395 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:47:167:615 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 16:52:47:274:472 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:47:278:240 + Q4 finished at: 2022-4-2 16:52:47:285:416 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 16:52:47:289:56 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 16:52:47:291:951 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/wat_sda_lost_self_update_committed.txt b/index/result/crdb_19.2.2/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..6fb6a10e --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:49:915:427 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:49:918:994 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:50:17:366 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 16:52:50:115:468 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:50:119:496 + Q4 finished at: 2022-4-2 16:52:50:131:463 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 16:52:50:135:699 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 16:52:50:139:273 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/crdb_19.2.2/serializable/wat_sda_lost_update_c1.txt b/index/result/crdb_19.2.2/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..14d3f34e --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,38 @@ +#### db_type: crdb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:47:611:890 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 16:52:47:616:239 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:47:712:408 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 16:52:47:716:327 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:52:47:914:368 +Q5 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889567.611475606,0 too old; wrote at 1648889567.711824399,1 errcode: HY000 +Q5 failed at: 2022-4-2 16:52:48:423:981 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889567.611475606,0 too old; wrote at 1648889567.711824399,1 + diff --git a/index/result/crdb_19.2.2/serializable/wat_sda_lost_update_c2.txt b/index/result/crdb_19.2.2/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..9ea41593 --- /dev/null +++ b/index/result/crdb_19.2.2/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,38 @@ +#### db_type: crdb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:48:747:850 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 16:52:48:751:882 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:48:847:508 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 16:52:48:851:303 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:49:53:829 +Q5 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889568.747395113,0 too old; wrote at 1648889568.847053441,1 errcode: HY000 +Q5 failed at: 2022-4-2 16:52:49:564:48 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889568.747395113,0 too old; wrote at 1648889568.847053441,1 + diff --git a/index/result/docs/coo_anomaly_cookbook.pdf b/index/result/docs/coo_anomaly_cookbook.pdf new file mode 100644 index 00000000..d6b11d82 Binary files /dev/null and b/index/result/docs/coo_anomaly_cookbook.pdf differ diff --git a/index/result/docs/coo_pop_model.pdf b/index/result/docs/coo_pop_model.pdf new file mode 100644 index 00000000..0903f067 Binary files /dev/null and b/index/result/docs/coo_pop_model.pdf differ diff --git a/index/result/gp_6.20.0/read-committed/iat_dda_read_skew_committed.txt b/index/result/gp_6.20.0/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..b6985d44 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:57:12:824:612 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:57:12:836:415 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:57:13:824:601 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:57:13:838:35 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:57:13:844:653 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:57:13:861:813 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 12:57:14:830:225 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:57:14:831:814 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:57:24:833:421 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:57:24:833:635 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/iat_dda_read_write_skew1_committed.txt b/index/result/gp_6.20.0/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..64be99f9 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:57:28:891:725 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:57:28:902:737 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:57:29:891:689 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:57:29:905:956 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:57:29:913:3 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:57:29:934:634 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 12:57:30:898:664 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:57:30:912:990 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:57:40:900:16 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:57:40:900:220 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/iat_dda_write_skew.txt b/index/result/gp_6.20.0/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..92de881c --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:57:44:954:218 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:57:44:965:161 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:57:45:954:211 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:57:45:966:381 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:57:45:973:199 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:57:47:971:687 +Q6 finished at: 2022-4-11 12:57:47:976:856 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:57:47:987:530 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:57:57:962:623 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:57:57:962:815 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/iat_dda_write_skew_committed.txt b/index/result/gp_6.20.0/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..0eb68f98 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:58:34:214:936 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:58:34:226:988 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:58:35:214:931 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:58:35:229:13 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:58:35:235:678 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:58:35:253:244 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 12:58:36:221:808 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:58:36:239:644 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:58:46:223:202 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:58:46:223:390 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/index/result/gp_6.20.0/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..ee29034a --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:58:2:27:841 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-11 12:58:2:40:668 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-11 12:58:2:47:702 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-11 12:58:3:27:832 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-11 12:58:3:43:541 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-11 12:58:3:49:83 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:58:3:60:256 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:58:4:38:820 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-11 12:58:14:36:252 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-11 12:58:14:41:574 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:58:14:41:767 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/index/result/gp_6.20.0/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..00fa66da --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:58:18:132:300 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-11 12:58:18:152:908 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:58:19:132:287 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-11 12:58:19:151:431 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-11 12:58:19:160:654 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:58:19:180:65 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-11 12:58:20:141:752 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:58:20:155:678 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-11 12:58:30:141:896 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:58:30:142:205 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/iat_mda_step_iat.txt b/index/result/gp_6.20.0/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..703e462b --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: gp #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:58:50:295:955 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-11 12:58:50:309:8 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:58:51:295:964 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:58:51:308:413 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:58:52:295:957 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 12:58:52:307:56 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-11 12:58:53:303:46 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:58:56:308:676 + Q8 finished at: 2022-4-11 12:58:56:314:21 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:58:57:318:846 + Q9 finished at: 2022-4-11 12:58:57:324:197 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:58:58:317:573 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 12:59:8:313:72 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:59:8:313:297 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/index/result/gp_6.20.0/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..f8111cf1 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:0:32:676:97 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:0:32:687:336 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:0:33:676:115 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 13:0:33:688:652 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 13:0:33:705:569 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 13:0:34:676:103 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 13:0:34:687:346 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-11 13:0:34:694:145 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:0:34:708:150 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-11 13:0:35:681:898 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-11 13:0:35:683:602 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-11 13:0:45:684:686 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-11 13:0:45:686:324 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/index/result/gp_6.20.0/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..9c5d4d22 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:0:13:587:775 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:0:13:599:304 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:0:14:587:773 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 13:0:14:600:200 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 13:0:15:587:790 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-11 13:0:15:600:92 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:0:15:614:753 + Q8-T4 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 13:0:16:587:806 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-11 13:0:16:601:195 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:0:16:621:377 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-11 13:0:17:593:523 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 13:0:17:595:211 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-11 13:0:18:593:442 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-11 13:0:18:595:73 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-11 13:0:28:604:844 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 13:0:28:605:94 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/index/result/gp_6.20.0/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..940d1826 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:59:12:391:894 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-11 12:59:12:405:321 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:59:13:391:881 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:59:13:403:845 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:59:14:391:879 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 12:59:14:402:767 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-11 12:59:15:399:318 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:59:18:408:286 + Q8 finished at: 2022-4-11 12:59:18:413:359 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:59:19:410:954 + Q9 finished at: 2022-4-11 12:59:19:415:820 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:59:20:407:94 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-11 12:59:30:399:762 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:59:30:399:982 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/index/result/gp_6.20.0/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..bab370fb --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:59:34:442:817 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-11 12:59:34:455:886 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:59:35:442:810 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-11 12:59:35:454:769 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:59:36:442:825 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-11 12:59:36:454:141 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-11 12:59:37:452:621 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:59:40:454:709 + Q8 finished at: 2022-4-11 12:59:40:460:817 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:59:41:459:30 + Q9 finished at: 2022-4-11 12:59:41:464:939 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:59:42:459:789 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 12:59:52:451:683 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:59:52:451:913 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/index/result/gp_6.20.0/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..1f35803c --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:0:49:745:803 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 13:0:49:756:794 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-11 13:0:49:762:113 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-11 13:0:50:745:818 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-11 13:0:50:757:8 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-11 13:0:50:764:51 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:0:50:784:126 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 13:0:51:745:834 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-11 13:0:51:756:937 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-11 13:0:51:762:302 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:0:51:763:961 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-11 13:0:52:752:819 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-11 13:0:52:779:326 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-11 13:1:2:751:335 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-11 13:1:2:752:897 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/iat_mda_step_iat_uname_anomaly.txt b/index/result/gp_6.20.0/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..aaba9d81 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:59:56:520:289 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-11 12:59:56:532:261 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:59:57:520:310 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-11 12:59:57:532:451 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:59:57:539:348 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 12:59:57:544:663 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-11 12:59:57:551:283 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:59:57:564:423 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-11 12:59:58:520:304 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-11 12:59:58:533:161 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-11 12:59:58:539:707 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-11 12:59:58:544:765 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-11 12:59:58:551:89 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:59:58:562:80 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-11 12:59:59:527:889 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-11 12:59:59:529:518 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-11 13:0:9:528:928 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-11 13:0:9:529:148 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/iat_sda_lost_update_committed.txt b/index/result/gp_6.20.0/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..b53235ef --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:56:56:760:790 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 12:56:56:771:607 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:56:57:760:786 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 12:56:57:774:778 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:56:57:790:899 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-11 12:56:58:767:808 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:56:58:780:903 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:57:8:768:445 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:57:8:768:629 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/iat_sda_non_repeatable_read_committed.txt b/index/result/gp_6.20.0/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..00313de2 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:56:40:695:132 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:56:40:706:456 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:56:41:695:147 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 12:56:41:715:677 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:56:41:727:347 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-11 12:56:42:701:59 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:56:42:702:672 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:56:52:710:383 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:56:52:710:592 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:56:52:710:762 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/rat_dda_double_write_skew1.txt b/index/result/gp_6.20.0/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..9f06ada5 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,67 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:27:22:891:679 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:27:22:904:191 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:27:23:891:667 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:27:23:905:272 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:27:23:913:682 +Q6-T1 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:27:25:910:859 +Q6 finished at: 2022-4-11 12:27:25:917:647 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:27:26:909:471 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:27:36:900:27 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,2) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,2) + + Q10 finished at: 2022-4-11 12:27:36:905:218 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:27:36:905:412 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/read-committed/rat_dda_double_write_skew1_committed.txt b/index/result/gp_6.20.0/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..67c508fa --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,67 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:27:40:986:935 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:27:40:999:448 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:27:41:986:896 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:27:42:6:552 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:27:42:12:749 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:27:42:29:768 +Q7-T1 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-11 12:27:42:995:398 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:27:43:19:82 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:27:52:995:249 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,2) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,2) + + Q10 finished at: 2022-4-11 12:27:53:0:336 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:27:53:0:541 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/read-committed/rat_dda_double_write_skew2.txt b/index/result/gp_6.20.0/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..17f1165a --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,67 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:27:57:124:301 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:27:57:136:830 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:27:58:124:285 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:27:58:138:424 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 12:27:59:131:141 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:27:59:150:438 + Q5 finished at: 2022-4-11 12:27:59:156:776 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:28:0:174:342 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:28:10:132:716 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 12:28:10:137:842 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:28:10:138:37 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/read-committed/rat_dda_read_skew.txt b/index/result/gp_6.20.0/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..ae56cb79 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:28:14:209:141 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:28:14:220:192 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:28:15:209:145 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:28:15:223:42 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:28:15:229:202 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 12:28:16:214:668 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:28:17:229:82 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:28:18:210:853 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:28:28:217:417 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:28:28:217:636 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/read-committed/rat_dda_read_skew2.txt b/index/result/gp_6.20.0/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..6007c42f --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:29:4:416:265 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:29:4:428:685 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:29:5:416:273 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:29:5:432:430 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:29:5:437:250 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 12:29:6:423:165 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:29:6:439:77 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:29:7:417:821 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:29:17:424:729 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:29:17:424:951 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/read-committed/rat_dda_read_skew2_committed.txt b/index/result/gp_6.20.0/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..469436d7 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:29:21:481:608 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:29:21:493:978 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:29:22:481:594 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:29:22:494:30 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:29:22:498:786 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:29:22:500:516 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 12:29:23:488:522 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:29:23:513:26 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:29:33:490:41 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:29:33:490:277 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/index/result/gp_6.20.0/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..91d11a13 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:28:32:276:152 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-11 12:28:32:289:396 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:28:33:276:168 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:28:33:287:901 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:28:33:293:696 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:28:33:317:498 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-11 12:28:34:283:500 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:28:34:285:109 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-11 12:28:44:284:608 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:28:44:284:818 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/index/result/gp_6.20.0/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..5b0a7b5c --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:28:48:332:127 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-11 12:28:48:345:381 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:28:49:332:137 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-11 12:28:49:347:26 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-11 12:28:49:359:723 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:28:49:377:865 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (1,0) (0,0) + (1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-11 12:28:50:339:522 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:28:50:341:300 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-11 12:29:0:340:613 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:29:0:340:825 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/rat_dda_write_read_skew.txt b/index/result/gp_6.20.0/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..15f720fb --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,72 @@ +#### db_type: gp #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:26:48:619:914 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:26:48:632:521 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:26:49:619:905 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:26:49:632:16 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:26:49:638:334 +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 12:26:50:626:913 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:26:51:634:706 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:26:52:639:176 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:27:2:629:0 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 12:27:2:634:428 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:27:2:634:648 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/rat_dda_write_read_skew_committed.txt b/index/result/gp_6.20.0/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..e4e305aa --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,74 @@ +#### db_type: gp #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:27:6:782:146 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:27:6:794:893 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:27:7:782:184 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:27:7:795:507 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:27:7:801:792 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:27:7:815:66 +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 12:27:8:789:99 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:27:8:807:443 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:27:18:790:633 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 12:27:18:796:196 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:27:18:796:423 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/read-committed/rat_mda_step_rat.txt b/index/result/gp_6.20.0/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..3a3e1153 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,147 @@ +#### db_type: gp #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:29:37:624:541 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:29:37:637:247 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:29:38:624:552 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:29:38:636:695 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:29:38:642:930 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 12:29:39:624:553 + Q7-T3 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-11 12:29:39:637:370 + Q8-T3 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-11 12:29:39:644:47 +Q9-T1 execute sql: 'SELECT * FROM t3 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-11 12:29:40:633:658 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:29:40:651:684 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:29:41:635:472 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:29:42:638:795 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + *(6) expected_result: + (0,1) + + Q13 finished at: 2022-4-11 12:29:52:642:211 + Q14-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + + Q14 finished at: 2022-4-11 12:29:52:647:726 + Q15-T4 execute sql: 'SELECT * FROM t3 ORDER BY k;' + current_result: + (2,1) + *(1) expected_result: + (2,1) + *(2) expected_result: + (2,1) + *(3) expected_result: + (2,1) + *(4) expected_result: + (2,1) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + + Q15 finished at: 2022-4-11 12:29:52:653:273 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 12:29:52:653:624 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/rat_mda_step_rat_long_fork.txt b/index/result/gp_6.20.0/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..31fd4b13 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN' + Q1 finished at: 2022-4-11 12:29:56:716:583 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-11 12:29:56:728:78 +Q3-T1 execute opt: 'BEGIN' +Q3 finished at: 2022-4-11 12:29:57:716:572 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-11 12:29:57:730:595 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:29:58:716:574 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-11 12:29:58:727:790 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 12:29:58:733:578 + Q8-T2 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 12:29:59:716:602 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-11 12:30:0:722:308 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-11 12:30:1:731:342 + Q9 finished at: 2022-4-11 12:30:1:740:282 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:30:2:734:326 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-11 12:30:3:718:331 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:30:13:718:302 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-11 12:30:13:724:159 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 12:30:13:725:890 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/index/result/gp_6.20.0/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..c6fdda55 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,147 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:30:17:849:106 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:30:17:861:243 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:30:18:849:89 + Q4-T2 execute sql: 'DELETE FROM t2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:30:18:860:686 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-11 12:30:18:868:872 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 12:30:19:849:103 + Q7-T3 execute sql: 'DELETE FROM t3 WHERE k=2;' + Q7 finished at: 2022-4-11 12:30:19:861:17 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t2 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-11 12:30:19:870:547 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t3 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-11 12:30:20:859:958 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:30:20:874:557 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:30:21:862:557 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:30:22:866:921 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-11 12:30:32:856:984 + Q14-T4 execute sql: 'SELECT * FROM t2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q14 finished at: 2022-4-11 12:30:32:864:698 + Q15-T4 execute sql: 'SELECT * FROM t3;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q15 finished at: 2022-4-11 12:30:32:872:245 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 12:30:32:873:820 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/index/result/gp_6.20.0/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..47c93493 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:30:36:910:79 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-11 12:30:36:924:326 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:30:37:910:54 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-11 12:30:37:920:583 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-11 12:30:37:928:228 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 12:30:38:910:66 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-11 12:30:38:921:47 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-11 12:30:38:929:41 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-11 12:30:39:923:369 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:30:39:936:799 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:30:40:921:702 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:30:41:921:472 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 12:30:51:918:607 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:30:51:920:192 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/rat_sda_dirty_read.txt b/index/result/gp_6.20.0/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..7d20b6e2 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: gp #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:24:50:95:376 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:24:50:108:195 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:24:51:95:357 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:24:51:114:278 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-11 12:24:52:97:77 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:24:53:96:940 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 12:25:3:110:845 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:25:3:111:27 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/read-committed/rat_sda_intermediate_read.txt b/index/result/gp_6.20.0/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..e3cf2923 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:25:25:241:31 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:25:25:253:513 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:25:26:241:12 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:25:26:251:576 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-11 12:25:27:247:909 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:25:28:242:588 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:25:29:259:82 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-11 12:25:39:248:524 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:25:39:248:706 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/read-committed/rat_sda_intermediate_read_committed.txt b/index/result/gp_6.20.0/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..df059c11 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:25:43:309:658 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:25:43:322:103 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:25:44:309:659 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:25:44:320:175 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:25:44:321:665 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-11 12:25:45:316:573 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:25:45:332:82 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-11 12:25:55:317:153 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:25:55:317:334 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/read-committed/rat_sda_lost_self_update.txt b/index/result/gp_6.20.0/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..adc2ebce --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:26:31:496:312 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:26:31:508:775 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:26:32:496:289 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-11 12:26:33:501:763 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-11 12:26:33:519:780 + Q4 finished at: 2022-4-11 12:26:33:528:677 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:26:34:511:691 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:26:44:503:899 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:26:44:504:88 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/read-committed/rat_sda_non_repeatable_read.txt b/index/result/gp_6.20.0/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..0f92c2a0 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:25:7:176:922 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:25:7:188:12 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:25:8:176:914 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 12:25:8:191:523 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-11 12:25:9:182:541 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:25:10:195:946 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:25:11:178:573 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:25:21:184:595 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:25:21:184:779 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/index/result/gp_6.20.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..32fd6117 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:25:59:375:160 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 12:25:59:389:560 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:26:0:375:154 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-11 12:26:0:386:776 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:26:0:409:85 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-11 12:26:1:382:552 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:26:1:384:170 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-11 12:26:11:382:638 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:26:11:382:827 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/index/result/gp_6.20.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..dc23ada2 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:26:15:427:112 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 12:26:15:440:834 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:26:16:427:264 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-11 12:26:16:442:948 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:26:16:458:141 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-11 12:26:17:434:517 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:26:17:436:124 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-11 12:26:27:434:713 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:26:27:434:894 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/wat_dda_double_write_skew2_committed.txt b/index/result/gp_6.20.0/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..1df88bfc --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,67 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:44:48:698:135 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:44:48:710:664 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:44:49:698:149 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:44:49:710:580 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 12:44:50:705:10 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:44:50:716:500 + Q5 finished at: 2022-4-11 12:44:50:723:168 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:44:50:735:376 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:45:0:707:137 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 12:45:0:712:461 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:45:0:712:644 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/read-committed/wat_dda_full_write_skew_c1.txt b/index/result/gp_6.20.0/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..4393731b --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:45:4:800:874 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:45:4:813:547 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:45:5:800:891 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:45:5:813:537 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 12:45:7:318:489 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-11 12:45:27:405:777 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/index/result/gp_6.20.0/read-committed/wat_dda_full_write_skew_c2.txt b/index/result/gp_6.20.0/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..76421f95 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:45:31:494:447 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:45:31:506:904 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:45:32:494:457 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:45:32:508:343 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 12:45:34:13:59 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-11 12:45:54:99:341 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/index/result/gp_6.20.0/read-committed/wat_dda_full_write_skew_committed.txt b/index/result/gp_6.20.0/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..6d3b6948 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:45:58:184:883 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:45:58:197:534 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:45:59:184:886 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:45:59:199:26 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 12:46:0:703:824 +Q7 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q7 failed at: 2022-4-11 12:46:20:889:734 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/index/result/gp_6.20.0/read-committed/wat_dda_read_write_skew1_c1.txt b/index/result/gp_6.20.0/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..5008ea7f --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:46:24:982:105 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:46:24:993:109 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:46:25:982:142 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:46:25:995:970 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:46:26:10:163 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:46:27:999:579 +Q6 finished at: 2022-4-11 12:46:28:10:408 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:46:28:27:112 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:46:37:990:499 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:46:37:990:716 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/wat_dda_read_write_skew1_c2.txt b/index/result/gp_6.20.0/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..96f7a007 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:46:42:87:134 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:46:42:98:402 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:46:43:87:121 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:46:43:101:238 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:46:43:108:7 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:46:45:111:223 +Q6 finished at: 2022-4-11 12:46:45:116:517 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:46:46:113:20 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:46:56:95:411 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:46:56:95:632 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/wat_dda_read_write_skew2_c1.txt b/index/result/gp_6.20.0/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..1cf1917e --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:47:0:161:609 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:47:0:174:224 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:47:1:161:607 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:47:1:174:977 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 12:47:2:168:480 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:47:2:184:748 + Q5 finished at: 2022-4-11 12:47:2:190:185 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:47:3:186:317 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:47:13:169:895 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:47:13:170:104 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/wat_dda_read_write_skew2_c2.txt b/index/result/gp_6.20.0/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..ed090d74 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:47:17:233:611 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:47:17:246:271 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:47:18:233:562 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:47:18:244:549 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 12:47:19:240:425 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:47:21:246:438 + Q5 finished at: 2022-4-11 12:47:21:252:95 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:47:21:265:337 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:47:31:241:859 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:47:31:242:207 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/wat_dda_read_write_skew2_committed.txt b/index/result/gp_6.20.0/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..35516b2f --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:47:35:303:274 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:47:35:315:853 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:47:36:303:277 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:47:36:316:164 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 12:47:37:310:111 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:47:37:322:263 + Q5 finished at: 2022-4-11 12:47:37:327:895 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:47:37:339:976 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:47:47:311:744 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:47:47:311:975 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/wat_mda_step_wat_c1.txt b/index/result/gp_6.20.0/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..46c5a4d2 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 10:20:57:467:238 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 10:20:57:481:193 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 10:20:58:467:214 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 10:20:58:489:466 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 10:20:59:467:220 + Q7-T3 execute sql: 'UPDATE t3 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 10:20:59:489:312 + Q8-T3 execute sql: 'UPDATE t2 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected errcode: 40P01 + Q8 failed at: 2022-4-18 10:21:1:294:582 + Q5 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q5 failed at: 2022-4-18 10:21:18:994:830 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-18 10:21:21:372:464 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/index/result/gp_6.20.0/read-committed/wat_mda_step_wat_c2.txt b/index/result/gp_6.20.0/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..e032ea6f --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 10:20:17:994:618 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 10:20:18:8:721 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 10:20:18:994:599 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 10:20:19:20:289 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 10:20:19:994:719 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t3 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 10:20:22:9:184 + Q8-T3 execute sql: 'UPDATE t2 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected errcode: 40P01 + Q8 failed at: 2022-4-18 10:20:23:814:261 + Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q6 failed at: 2022-4-18 10:20:41:599:828 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-18 10:20:43:899:746 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/index/result/gp_6.20.0/read-committed/wat_sda_dirty_write_1abort.txt b/index/result/gp_6.20.0/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..953e4592 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:42:50:137:988 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:42:50:150:890 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:42:51:137:963 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-11 12:42:52:139:961 + Q4 finished at: 2022-4-11 12:42:52:149:614 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:42:53:152:119 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-11 12:43:3:162:715 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-11 12:43:3:188:644 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:43:3:188:910 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/read-committed/wat_sda_dirty_write_2commit.txt b/index/result/gp_6.20.0/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..7338eb48 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:43:7:239:57 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:43:7:251:435 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:43:8:238:853 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-11 12:43:9:254:358 + Q4 finished at: 2022-4-11 12:43:9:263:507 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:43:10:255:567 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-11 12:43:20:246:673 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-11 12:43:20:265:739 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:43:20:265:942 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/read-committed/wat_sda_full_write.txt b/index/result/gp_6.20.0/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..a66f25cd --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:43:24:316:654 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:43:24:329:552 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:43:25:316:501 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-11 12:43:26:323:243 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-11 12:43:26:335:503 + Q4 finished at: 2022-4-11 12:43:26:345:44 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:43:27:342:123 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-11 12:43:37:323:986 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:43:37:324:162 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/read-committed/wat_sda_full_write_committed.txt b/index/result/gp_6.20.0/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..5c10574f --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:43:41:378:669 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:43:41:391:394 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:43:42:378:656 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-11 12:43:43:386:754 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:43:43:411:554 + Q4 finished at: 2022-4-11 12:43:43:420:732 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:43:43:432:831 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-11 12:43:53:386:144 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:43:53:386:345 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/read-committed/wat_sda_lost_self_update_committed.txt b/index/result/gp_6.20.0/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..024990d2 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:44:32:587:289 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:44:32:599:761 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:44:33:587:292 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-11 12:44:34:592:579 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:44:34:607:481 + Q4 finished at: 2022-4-11 12:44:34:616:636 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:44:34:629:835 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:44:44:594:675 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:44:44:594:974 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/read-committed/wat_sda_lost_update_c1.txt b/index/result/gp_6.20.0/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..787d7383 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:43:57:463:501 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 12:43:57:474:623 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:43:58:463:495 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 12:43:58:477:357 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:44:0:492:231 +Q5 finished at: 2022-4-11 12:44:0:497:768 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-11 12:44:0:509:12 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:44:10:471:185 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:44:10:471:368 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/read-committed/wat_sda_lost_update_c2.txt b/index/result/gp_6.20.0/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..96bfee69 --- /dev/null +++ b/index/result/gp_6.20.0/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:44:14:524:775 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 12:44:14:535:860 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:44:15:524:733 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 12:44:15:539:234 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:44:17:538:894 +Q5 finished at: 2022-4-11 12:44:17:544:151 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:44:18:536:518 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:44:28:532:175 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:44:28:532:591 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/result_summary/read-committed_total-result.txt b/index/result/gp_6.20.0/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..18ad6ce8 --- /dev/null +++ b/index/result/gp_6.20.0/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Avoid + +wat_mda_step_wat_c2: Avoid + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/index/result/gp_6.20.0/result_summary/serializable_total-result.txt b/index/result/gp_6.20.0/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..1ba5280a --- /dev/null +++ b/index/result/gp_6.20.0/result_summary/serializable_total-result.txt @@ -0,0 +1,107 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly diff --git a/index/result/gp_6.20.0/serializable/iat_dda_read_skew_committed.txt b/index/result/gp_6.20.0/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..0fd72e06 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:18:44:307:450 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:18:44:318:851 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:18:45:307:601 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:18:45:320:35 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:18:45:326:441 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:18:45:347:255 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 12:18:46:313:35 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:18:46:314:798 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:18:56:316:873 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:18:56:317:188 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/serializable/iat_dda_read_write_skew1_committed.txt b/index/result/gp_6.20.0/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..d2de88f3 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:19:0:378:11 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:19:0:389:248 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:19:1:378:11 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:19:1:394:396 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:19:1:400:615 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:19:1:426:426 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=23981); errcode: 40001 +Q7 failed at: 2022-4-11 12:19:3:86:619 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=23981); + diff --git a/index/result/gp_6.20.0/serializable/iat_dda_write_skew.txt b/index/result/gp_6.20.0/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..fa83cdef --- /dev/null +++ b/index/result/gp_6.20.0/serializable/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:19:16:445:656 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:19:16:457:64 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:19:17:445:675 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:19:17:456:729 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:19:17:463:421 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:19:19:461:53 +Q6 finished at: 2022-4-11 12:19:19:467:278 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:19:19:478:310 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:19:29:454:96 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:19:29:454:279 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/serializable/iat_dda_write_skew_committed.txt b/index/result/gp_6.20.0/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..5206ac97 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:20:5:692:127 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:20:5:703:37 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:20:6:692:128 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:20:6:704:531 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:20:6:711:73 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:20:6:725:671 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 12:20:7:699:597 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:20:7:715:416 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:20:17:700:938 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:20:17:701:150 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/index/result/gp_6.20.0/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..5fd18f76 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:19:33:509:540 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-11 12:19:33:522:207 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-11 12:19:33:529:390 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-11 12:19:34:509:535 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-11 12:19:34:523:965 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-11 12:19:34:529:928 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:19:34:545:233 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:19:35:524:216 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-11 12:19:45:517:849 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-11 12:19:45:523:387 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:19:45:523:617 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/index/result/gp_6.20.0/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..de686585 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:19:49:615:72 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-11 12:19:49:635:67 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:19:50:615:65 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-11 12:19:50:631:776 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-11 12:19:50:641:706 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:19:50:658:58 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-11 12:19:51:624:719 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:19:51:640:13 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-11 12:20:1:624:737 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:20:1:625:24 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/serializable/iat_mda_step_iat.txt b/index/result/gp_6.20.0/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..f4947b76 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: gp #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:20:21:763:720 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-11 12:20:21:777:194 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:20:22:763:717 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:20:22:775:652 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:20:23:763:737 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 12:20:23:775:12 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-11 12:20:24:770:839 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:20:27:778:95 + Q8 finished at: 2022-4-11 12:20:27:783:445 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:20:28:793:183 + Q9 finished at: 2022-4-11 12:20:28:798:738 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:20:29:775:444 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 12:20:39:775:395 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:20:39:775:706 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/index/result/gp_6.20.0/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..62bfe290 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:22:4:172:489 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:22:4:184:48 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:22:5:172:472 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 12:22:5:184:761 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:22:5:201:887 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 12:22:6:172:470 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 12:22:6:183:448 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-11 12:22:6:190:23 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:22:6:208:481 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-11 12:22:7:178:103 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-11 12:22:7:179:877 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-11 12:22:17:181:210 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-11 12:22:17:182:964 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/serializable/iat_mda_step_iat_cross_phenomenon.txt b/index/result/gp_6.20.0/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..c280ac51 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:21:45:63:889 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:21:45:75:442 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:21:46:63:883 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:21:46:75:89 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:21:47:63:878 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-11 12:21:47:76:502 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:21:47:91:991 + Q8-T4 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 12:21:48:63:904 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-11 12:21:48:78:214 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:21:48:92:263 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-11 12:21:49:69:489 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:21:49:71:61 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-11 12:21:50:69:563 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-11 12:21:50:71:253 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-11 12:22:0:74:799 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 12:22:0:75:38 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/serializable/iat_mda_step_iat_predicate_based_delete.txt b/index/result/gp_6.20.0/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..51105eba --- /dev/null +++ b/index/result/gp_6.20.0/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:20:43:844:136 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-11 12:20:43:857:511 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:20:44:844:142 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:20:44:854:935 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:20:45:844:161 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 12:20:45:855:320 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-11 12:20:46:850:760 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:20:49:857:131 + Q8 finished at: 2022-4-11 12:20:49:862:2 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:20:50:860:806 + Q9 finished at: 2022-4-11 12:20:50:866:162 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:20:51:857:20 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-11 12:21:1:852:447 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:21:1:852:653 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/serializable/iat_mda_step_iat_predicate_based_insert.txt b/index/result/gp_6.20.0/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..fc70a83d --- /dev/null +++ b/index/result/gp_6.20.0/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:21:5:900:133 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-11 12:21:5:913:887 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:21:6:900:107 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-11 12:21:6:912:4 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:21:7:900:118 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-11 12:21:7:911:199 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-11 12:21:8:910:12 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:21:11:914:840 + Q8 finished at: 2022-4-11 12:21:11:920:812 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:21:12:917:291 + Q9 finished at: 2022-4-11 12:21:12:923:470 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:21:13:913:821 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 12:21:23:908:886 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:21:23:909:89 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/index/result/gp_6.20.0/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..6c4e80ee --- /dev/null +++ b/index/result/gp_6.20.0/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:22:21:240:343 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 12:22:21:251:747 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-11 12:22:21:256:829 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-11 12:22:22:240:331 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-11 12:22:22:251:697 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-11 12:22:22:258:276 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:22:22:280:960 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 12:22:23:240:358 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-11 12:22:23:251:801 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-11 12:22:23:257:516 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:22:23:259:173 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-11 12:22:24:247:466 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-11 12:22:24:265:113 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-11 12:22:34:246:355 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-11 12:22:34:248:50 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/serializable/iat_mda_step_iat_uname_anomaly.txt b/index/result/gp_6.20.0/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..4b1e1abc --- /dev/null +++ b/index/result/gp_6.20.0/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:21:27:973:860 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-11 12:21:27:984:959 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:21:28:973:855 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-11 12:21:28:986:144 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:21:28:992:778 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 12:21:28:997:741 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-11 12:21:29:9:845 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:21:29:25:907 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-11 12:21:29:973:866 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-11 12:21:29:987:476 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-11 12:21:29:994:281 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-11 12:21:29:999:552 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-11 12:21:30:10:526 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:21:30:26:919 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-11 12:21:30:981:610 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-11 12:21:30:983:287 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-11 12:21:40:982:520 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-11 12:21:40:982:739 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/serializable/iat_sda_lost_update_committed.txt b/index/result/gp_6.20.0/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..45a5aa16 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:18:28:244:17 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 12:18:28:255:195 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:18:29:243:996 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 12:18:29:257:536 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:18:29:273:805 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=23981); errcode: 40001 +Q6 failed at: 2022-4-11 12:18:30:852:827 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=23981); + diff --git a/index/result/gp_6.20.0/serializable/iat_sda_non_repeatable_read_committed.txt b/index/result/gp_6.20.0/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..f106cddf --- /dev/null +++ b/index/result/gp_6.20.0/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:18:12:170:972 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:18:12:182:556 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:18:13:170:943 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 12:18:13:185:182 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:18:13:205:733 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-11 12:18:14:176:567 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:18:14:178:280 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:18:24:180:384 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:18:24:180:600 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:18:24:180:789 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/serializable/rat_dda_double_write_skew1.txt b/index/result/gp_6.20.0/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..96f3921b --- /dev/null +++ b/index/result/gp_6.20.0/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,44 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:4:4:941:179 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:4:4:953:655 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:4:5:941:184 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:4:5:954:905 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:4:5:961:226 +Q6-T1 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:4:7:954:742 +Q6 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14973); errcode: 40001 +Q6 failed at: 2022-4-11 12:4:8:563:44 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14973); + diff --git a/index/result/gp_6.20.0/serializable/rat_dda_double_write_skew1_committed.txt b/index/result/gp_6.20.0/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..e4b6886b --- /dev/null +++ b/index/result/gp_6.20.0/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,44 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:4:23:48:742 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:4:23:61:150 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:4:24:48:747 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:4:24:61:214 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:4:24:67:587 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:4:24:95:416 +Q7-T1 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14973); errcode: 40001 +Q7 failed at: 2022-4-11 12:4:25:758:717 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14973); + diff --git a/index/result/gp_6.20.0/serializable/rat_dda_double_write_skew2.txt b/index/result/gp_6.20.0/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..9e7eeb38 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,44 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:4:39:171:436 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:4:39:184:127 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:4:40:171:413 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:4:40:184:130 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 12:4:41:178:498 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:4:41:194:116 + Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14977); errcode: 40001 + Q5 failed at: 2022-4-11 12:4:41:702:105 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14977); + diff --git a/index/result/gp_6.20.0/serializable/rat_dda_read_skew.txt b/index/result/gp_6.20.0/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..15665ee0 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:4:56:228:69 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:4:56:239:345 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:4:57:228:61 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:4:57:240:533 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:4:57:246:933 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 12:4:58:233:567 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:4:59:243:209 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:5:0:229:780 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:5:10:236:698 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:5:10:236:934 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/serializable/rat_dda_read_skew2.txt b/index/result/gp_6.20.0/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..bdc4ba16 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:5:46:425:298 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:5:46:437:993 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:5:47:425:294 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:5:47:436:193 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:5:47:441:205 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 12:5:48:432:197 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:5:48:452:623 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:5:49:426:928 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:5:59:434:303 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:5:59:434:608 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/serializable/rat_dda_read_skew2_committed.txt b/index/result/gp_6.20.0/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..077280af --- /dev/null +++ b/index/result/gp_6.20.0/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:6:3:496:202 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:6:3:508:763 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:6:4:496:187 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:6:4:508:409 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:6:4:513:500 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:6:4:515:182 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 12:6:5:503:228 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:6:5:517:55 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:6:15:504:955 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:6:15:505:263 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/serializable/rat_dda_read_skew_predicate_based_delete.txt b/index/result/gp_6.20.0/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..1765ae14 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:5:14:305:418 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-11 12:5:14:318:640 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:5:15:305:418 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:5:15:318:556 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:5:15:324:635 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:5:15:339:725 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-11 12:5:16:312:679 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:5:16:314:381 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-11 12:5:26:313:879 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:5:26:314:83 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/serializable/rat_dda_read_skew_predicate_based_insert.txt b/index/result/gp_6.20.0/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..89e94c42 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:5:30:353:821 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-11 12:5:30:367:362 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:5:31:353:824 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-11 12:5:31:370:157 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-11 12:5:31:377:972 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:5:31:391:314 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-11 12:5:32:361:188 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:5:32:362:847 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-11 12:5:42:362:165 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:5:42:362:403 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/serializable/rat_dda_write_read_skew.txt b/index/result/gp_6.20.0/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..068d6b3f --- /dev/null +++ b/index/result/gp_6.20.0/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,72 @@ +#### db_type: gp #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:3:30:726:490 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:3:30:739:182 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:3:31:726:439 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:3:31:738:858 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:3:31:745:429 +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 12:3:32:733:733 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:3:33:749:919 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:3:34:738:708 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:3:44:735:457 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 12:3:44:740:726 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:3:44:740:922 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/serializable/rat_dda_write_read_skew_committed.txt b/index/result/gp_6.20.0/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..7e34b375 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,72 @@ +#### db_type: gp #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:3:48:830:815 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:3:48:843:415 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:3:49:830:813 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:3:49:844:639 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:3:49:851:35 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:3:49:867:294 +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 12:3:50:837:721 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:3:50:853:345 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:4:0:839:348 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 12:4:0:844:636 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:4:0:844:825 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/serializable/rat_mda_step_rat.txt b/index/result/gp_6.20.0/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..b3d91cb3 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/rat_mda_step_rat.txt @@ -0,0 +1,147 @@ +#### db_type: gp #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:6:19:642:821 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:6:19:655:264 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:6:20:642:821 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:6:20:655:223 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:6:20:661:711 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 12:6:21:642:825 + Q7-T3 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-11 12:6:21:655:691 + Q8-T3 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-11 12:6:21:662:343 +Q9-T1 execute sql: 'SELECT * FROM t3 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-11 12:6:22:651:951 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:6:22:666:507 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:6:23:654:9 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:6:24:670:71 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + *(6) expected_result: + (0,1) + + Q13 finished at: 2022-4-11 12:6:34:653:647 + Q14-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + + Q14 finished at: 2022-4-11 12:6:34:659:227 + Q15-T4 execute sql: 'SELECT * FROM t3 ORDER BY k;' + current_result: + (2,1) + *(1) expected_result: + (2,1) + *(2) expected_result: + (2,1) + *(3) expected_result: + (2,1) + *(4) expected_result: + (2,1) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + + Q15 finished at: 2022-4-11 12:6:34:664:774 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 12:6:34:665:79 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/serializable/rat_mda_step_rat_long_fork.txt b/index/result/gp_6.20.0/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..1191b92c --- /dev/null +++ b/index/result/gp_6.20.0/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN' + Q1 finished at: 2022-4-11 12:6:38:764:429 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-11 12:6:38:776:112 +Q3-T1 execute opt: 'BEGIN' +Q3 finished at: 2022-4-11 12:6:39:764:432 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-11 12:6:39:778:749 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:6:40:764:433 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-11 12:6:40:775:460 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 12:6:40:780:756 + Q8-T2 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 12:6:41:764:449 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-11 12:6:42:770:186 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-11 12:6:43:779:599 + Q9 finished at: 2022-4-11 12:6:43:788:755 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:6:44:781:985 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-11 12:6:45:766:228 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:6:55:766:260 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-11 12:6:55:771:942 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 12:6:55:773:574 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/serializable/rat_mda_step_rat_predicate_based_delete.txt b/index/result/gp_6.20.0/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..2fcb3598 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,147 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:6:59:913:458 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:6:59:925:784 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:7:0:913:443 + Q4-T2 execute sql: 'DELETE FROM t2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:7:0:925:642 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-11 12:7:0:933:969 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 12:7:1:913:396 + Q7-T3 execute sql: 'DELETE FROM t3 WHERE k=2;' + Q7 finished at: 2022-4-11 12:7:1:925:559 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t2 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-11 12:7:1:934:241 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t3 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-11 12:7:2:924:242 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:7:2:938:953 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:7:3:931:162 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:7:4:925:437 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-11 12:7:14:921:228 + Q14-T4 execute sql: 'SELECT * FROM t2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q14 finished at: 2022-4-11 12:7:14:929:68 + Q15-T4 execute sql: 'SELECT * FROM t3;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q15 finished at: 2022-4-11 12:7:14:936:762 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 12:7:14:938:439 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/serializable/rat_mda_step_rat_predicate_based_insert.txt b/index/result/gp_6.20.0/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..30aa0ee1 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:7:18:975:868 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-11 12:7:18:990:249 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:7:19:975:845 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-11 12:7:19:985:822 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-11 12:7:19:993:703 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 12:7:20:975:845 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-11 12:7:20:987:55 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-11 12:7:20:994:909 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-11 12:7:21:988:753 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:7:22:9:565 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:7:22:988:679 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:7:23:991:163 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 12:7:33:984:524 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:7:33:986:270 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/gp_6.20.0/serializable/rat_sda_dirty_read.txt b/index/result/gp_6.20.0/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..0795ce32 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: gp #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:1:32:218:982 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:1:32:232:108 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:1:33:218:944 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:1:33:232:505 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-11 12:1:34:220:657 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:1:35:220:679 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 12:1:45:228:353 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:1:45:228:552 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/serializable/rat_sda_intermediate_read.txt b/index/result/gp_6.20.0/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..c0361c87 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:2:7:401:43 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:2:7:413:584 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:2:8:401:10 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:2:8:411:946 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-11 12:2:9:408:35 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:2:10:402:725 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:2:11:445:464 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-11 12:2:21:408:718 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:2:21:408:898 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/serializable/rat_sda_intermediate_read_committed.txt b/index/result/gp_6.20.0/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..95f9c6da --- /dev/null +++ b/index/result/gp_6.20.0/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:2:25:461:403 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:2:25:473:978 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:2:26:461:405 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:2:26:473:444 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:2:26:475:17 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-11 12:2:27:468:401 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:2:27:481:619 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-11 12:2:37:469:126 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:2:37:469:332 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/serializable/rat_sda_lost_self_update.txt b/index/result/gp_6.20.0/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..ea52e305 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,39 @@ +#### db_type: gp #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:3:13:640:927 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:3:13:653:568 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:3:14:640:884 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-11 12:3:15:646:444 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-11 12:3:15:663:204 + Q4 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14977); errcode: 40001 + Q4 failed at: 2022-4-11 12:3:16:73:779 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14977); + diff --git a/index/result/gp_6.20.0/serializable/rat_sda_non_repeatable_read.txt b/index/result/gp_6.20.0/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..fb4d7acc --- /dev/null +++ b/index/result/gp_6.20.0/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:1:49:307:355 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:1:49:318:471 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:1:50:307:365 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 12:1:50:322:6 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-11 12:1:51:312:969 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:1:52:319:684 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:1:53:309:18 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:2:3:315:464 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:2:3:315:643 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/index/result/gp_6.20.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..a1db5262 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:2:41:531:947 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 12:2:41:545:180 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:2:42:531:905 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-11 12:2:42:543:982 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:2:42:561:783 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-11 12:2:43:539:338 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:2:43:540:969 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-11 12:2:53:539:699 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:2:53:539:927 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/index/result/gp_6.20.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..c0dc52ad --- /dev/null +++ b/index/result/gp_6.20.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:2:57:577:870 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 12:2:57:591:165 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:2:58:577:848 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-11 12:2:58:592:408 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:2:58:607:338 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-11 12:2:59:585:376 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:2:59:586:984 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-11 12:3:9:585:471 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:3:9:585:663 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/serializable/wat_dda_double_write_skew2_committed.txt b/index/result/gp_6.20.0/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..682e8fba --- /dev/null +++ b/index/result/gp_6.20.0/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,44 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:11:58:415:697 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:11:58:428:52 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:11:59:415:704 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:11:59:428:110 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 12:12:0:422:599 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:12:0:443:257 + Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q5 failed at: 2022-4-11 12:12:0:951:946 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/index/result/gp_6.20.0/serializable/wat_dda_full_write_skew_c1.txt b/index/result/gp_6.20.0/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..ff8b71bb --- /dev/null +++ b/index/result/gp_6.20.0/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 14:21:14:825:804 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 14:21:14:838:710 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 14:21:15:825:871 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 14:21:15:840:625 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 14:21:17:345:264 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-11 14:21:37:430:869 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/index/result/gp_6.20.0/serializable/wat_dda_full_write_skew_c2.txt b/index/result/gp_6.20.0/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..4ea3d24e --- /dev/null +++ b/index/result/gp_6.20.0/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 14:22:17:554:901 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 14:22:17:567:537 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 14:22:18:554:778 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 14:22:18:569:288 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 14:22:20:74:185 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-11 14:22:40:159:610 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/index/result/gp_6.20.0/serializable/wat_dda_full_write_skew_committed.txt b/index/result/gp_6.20.0/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..f4970452 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 14:22:57:696:729 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 14:22:57:709:336 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 14:22:58:696:742 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 14:22:58:716:641 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 14:23:0:221:676 +Q7 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q7 failed at: 2022-4-11 14:23:20:401:658 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/index/result/gp_6.20.0/serializable/wat_dda_read_write_skew1_c1.txt b/index/result/gp_6.20.0/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..889c8086 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:13:5:814:929 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:13:5:825:798 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:13:6:814:906 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:13:6:827:342 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:13:6:833:805 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:13:8:848:579 +Q6 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); errcode: 40001 +Q6 failed at: 2022-4-11 12:13:9:455:223 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); + diff --git a/index/result/gp_6.20.0/serializable/wat_dda_read_write_skew1_c2.txt b/index/result/gp_6.20.0/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..4be37c54 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:13:22:883:667 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:13:22:894:686 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:13:23:883:653 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:13:23:896:137 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:13:23:902:589 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:13:25:899:821 +Q6 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); errcode: 40001 +Q6 failed at: 2022-4-11 12:13:26:506:921 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); + diff --git a/index/result/gp_6.20.0/serializable/wat_dda_read_write_skew2_c1.txt b/index/result/gp_6.20.0/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..d9343406 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:13:40:947:387 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:13:40:959:690 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:13:41:947:393 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:13:41:958:354 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 12:13:42:954:179 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:13:42:968:258 + Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q5 failed at: 2022-4-11 12:13:43:474:986 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/index/result/gp_6.20.0/serializable/wat_dda_read_write_skew2_c2.txt b/index/result/gp_6.20.0/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..3915c919 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:13:58:24:437 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:13:58:36:925 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:13:59:24:401 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:13:59:35:336 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 12:14:0:31:515 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:14:2:43:884 + Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q5 failed at: 2022-4-11 12:14:2:550:546 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/index/result/gp_6.20.0/serializable/wat_dda_read_write_skew2_committed.txt b/index/result/gp_6.20.0/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..59bfdf1c --- /dev/null +++ b/index/result/gp_6.20.0/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:14:16:91:17 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:14:16:103:308 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:14:17:91:5 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:14:17:101:925 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 12:14:18:97:643 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:14:18:125:63 + Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q5 failed at: 2022-4-11 12:14:18:631:592 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/index/result/gp_6.20.0/serializable/wat_mda_step_wat_c1.txt b/index/result/gp_6.20.0/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..19c01b13 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 10:22:34:300:123 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 10:22:34:314:172 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 10:22:35:300:252 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 10:22:35:319:757 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 10:22:36:300:147 + Q7-T3 execute sql: 'UPDATE t3 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 10:22:36:315:760 + Q8-T3 execute sql: 'UPDATE t2 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected errcode: 40P01 + Q8 failed at: 2022-4-18 10:22:38:120:775 + Q5 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q5 failed at: 2022-4-18 10:22:55:824:997 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-18 10:22:58:205:2 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/index/result/gp_6.20.0/serializable/wat_mda_step_wat_c2.txt b/index/result/gp_6.20.0/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..2edb6fc0 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 10:23:13:219:398 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 10:23:13:233:50 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 10:23:14:219:413 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 10:23:14:235:774 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 10:23:15:219:431 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t3 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 10:23:17:233:454 + Q8-T3 execute sql: 'UPDATE t2 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected errcode: 40P01 + Q8 failed at: 2022-4-18 10:23:19:38:590 + Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q6 failed at: 2022-4-18 10:23:36:824:434 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-18 10:23:39:124:442 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/index/result/gp_6.20.0/serializable/wat_sda_dirty_write_1abort.txt b/index/result/gp_6.20.0/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..89ef5fb6 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:9:59:920:531 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:9:59:933:361 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:10:0:920:565 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-11 12:10:1:922:233 + Q4 finished at: 2022-4-11 12:10:1:933:98 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:10:2:951:842 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-11 12:10:12:929:946 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-11 12:10:12:949:221 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:10:12:949:408 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/gp_6.20.0/serializable/wat_sda_dirty_write_2commit.txt b/index/result/gp_6.20.0/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..a26a17fd --- /dev/null +++ b/index/result/gp_6.20.0/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,30 @@ +#### db_type: gp #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:10:17:5:734 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:10:17:18:152 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:10:18:5:738 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-11 12:10:19:23:242 + Q4 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q4 failed at: 2022-4-11 12:10:19:434:57 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/index/result/gp_6.20.0/serializable/wat_sda_full_write.txt b/index/result/gp_6.20.0/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..f9e2a27f --- /dev/null +++ b/index/result/gp_6.20.0/serializable/wat_sda_full_write.txt @@ -0,0 +1,32 @@ +#### db_type: gp #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:10:34:60:675 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:10:34:73:32 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:10:35:60:848 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-11 12:10:36:67:372 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-11 12:10:36:90:348 + Q4 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q4 failed at: 2022-4-11 12:10:36:500:936 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/index/result/gp_6.20.0/serializable/wat_sda_full_write_committed.txt b/index/result/gp_6.20.0/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..7a2c2404 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,32 @@ +#### db_type: gp #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:10:51:113:556 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:10:51:125:949 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:10:52:113:544 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-11 12:10:53:120:225 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:10:53:143:813 + Q4 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q4 failed at: 2022-4-11 12:10:53:554:39 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/index/result/gp_6.20.0/serializable/wat_sda_lost_self_update_committed.txt b/index/result/gp_6.20.0/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..a79a2e68 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: gp #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:11:42:303:393 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:11:42:315:789 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:11:43:303:391 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-11 12:11:44:308:581 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:11:44:352:983 + Q4 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q4 failed at: 2022-4-11 12:11:44:763:409 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/index/result/gp_6.20.0/serializable/wat_sda_lost_update_c1.txt b/index/result/gp_6.20.0/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..dffec363 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:11:7:168:297 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 12:11:7:179:295 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:11:8:168:308 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 12:11:8:182:815 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:11:10:187:226 +Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); errcode: 40001 +Q5 failed at: 2022-4-11 12:11:10:693:851 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); + diff --git a/index/result/gp_6.20.0/serializable/wat_sda_lost_update_c2.txt b/index/result/gp_6.20.0/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..e7c0de33 --- /dev/null +++ b/index/result/gp_6.20.0/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,39 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:11:24:227:728 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 12:11:24:238:715 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:11:25:227:726 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 12:11:25:240:299 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:11:27:247:511 +Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); errcode: 40001 +Q5 failed at: 2022-4-11 12:11:27:754:317 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); + diff --git a/index/result/mongodb_4.4.4/mongodb_snapshot_total-result.txt b/index/result/mongodb_4.4.4/mongodb_snapshot_total-result.txt new file mode 100644 index 00000000..38119496 --- /dev/null +++ b/index/result/mongodb_4.4.4/mongodb_snapshot_total-result.txt @@ -0,0 +1,96 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Rollback + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Rollback + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +wat_sda_dirty_write_1abort: Rollback + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_uname_anomaly: Rollback + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/index/result/mongodb_4.4.4/snapshot/iat_dda_read_skew_committed.txt b/index/result/mongodb_4.4.4/snapshot/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..7992c237 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/iat_dda_read_skew_committed.txt @@ -0,0 +1,45 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.put(0, 1)' + T2 COMMIT transaction success +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mongodb_4.4.4/snapshot/iat_dda_read_write_skew1_committed.txt b/index/result/mongodb_4.4.4/snapshot/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..ee21b19d --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,28 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 2)' + T2 execute stmt: 't1.put(0, 1)' + T2 COMMIT transaction success +T1 execute stmt: 't1.put(1, 1)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/iat_dda_write_skew.txt b/index/result/mongodb_4.4.4/snapshot/iat_dda_write_skew.txt new file mode 100644 index 00000000..9db24d63 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/iat_dda_write_skew.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_write_skew #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.put(1, 1)' +T1 COMMIT transaction success + T2 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mongodb_4.4.4/snapshot/iat_dda_write_skew_committed.txt b/index/result/mongodb_4.4.4/snapshot/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..08e84475 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/iat_dda_write_skew_committed.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_write_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + T2 execute stmt: 't1.put(0, 1)' +T1 COMMIT transaction success +T1 execute stmt: 't1.put(1, 1)' + T2 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mongodb_4.4.4/snapshot/iat_mda_step_iat.txt b/index/result/mongodb_4.4.4/snapshot/iat_mda_step_iat.txt new file mode 100644 index 00000000..079793ec --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/iat_mda_step_iat.txt @@ -0,0 +1,87 @@ +#### db_type: mongodb #### +#### test_type: mda_step_iat #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 execute stmt: 't1.put(2, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(2)' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + + T2 start transaction success + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + T3 start transaction success + T3 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + +T1 execute stmt: 't1.put(0, 1)' + T2 execute stmt: 't1.put(1, 1)' + T3 execute stmt: 't1.put(2, 1)' +T1 COMMIT transaction success + T2 COMMIT transaction success + T3 COMMIT transaction success + T4 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_causality_violation_anomaly.txt b/index/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..1f2e5df0 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,87 @@ +#### db_type: mongodb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 1)' + T2 COMMIT transaction success + T3 start transaction success + T3 execute stmt: 't1.get(0)' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + T3 execute stmt: 't1.put(1, 1)' + T3 COMMIT transaction success +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +T1 COMMIT transaction success + T4 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_cross_phenomenon.txt b/index/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..bd28717c --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,185 @@ +#### db_type: mongodb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + T3 start transaction success + T3 execute stmt: 't1.put(0, 1)' + T3 COMMIT transaction success + T4 start transaction success + T4 execute stmt: 't1.put(1, 1)' + T4 COMMIT transaction success + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + T2 COMMIT transaction success +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +T1 COMMIT transaction success + T4 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt b/index/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..091e05a5 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,57 @@ +#### db_type: mongodb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,20) + + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + + T2 execute stmt: 't1.put(1, 20)' + T2 COMMIT transaction success + T3 start transaction success + T3 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + T3 execute stmt: 't1.get(1)' + current_result: + (1,20) + (1) expected_result: + (1,0) + + T3 COMMIT transaction success +T1 execute stmt: 't1.put(0, 11)' +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_uname_anomaly.txt b/index/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..fde424c5 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,69 @@ +#### db_type: mongodb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 execute stmt: 't1.put(2, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + + T2 start transaction success + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + T2 execute stmt: 't1.put(0, 1)' + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + T2 execute stmt: 't1.put(1,1)' + T3 start transaction success + T3 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/iat_sda_lost_update_committed.txt b/index/result/mongodb_4.4.4/snapshot/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..9b004276 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/iat_sda_lost_update_committed.txt @@ -0,0 +1,26 @@ +#### db_type: mongodb #### +#### test_type: sda_lost_update_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + T2 COMMIT transaction success +T1 execute stmt: 't1.put(0, 1)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/iat_sda_non_repeatable_read_committed.txt b/index/result/mongodb_4.4.4/snapshot/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..53530f5a --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 1)' + T2 COMMIT transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mongodb_4.4.4/snapshot/rat_dda_double_write_skew1.txt b/index/result/mongodb_4.4.4/snapshot/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..446bd5e5 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/rat_dda_double_write_skew1.txt @@ -0,0 +1,27 @@ +#### db_type: mongodb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + +T1 execute stmt: 't1.put(1, 2)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/rat_dda_double_write_skew1_committed.txt b/index/result/mongodb_4.4.4/snapshot/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..d94e02d1 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,28 @@ +#### db_type: mongodb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + T2 COMMIT transaction success +T1 execute stmt: 't1.put(1, 2)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/rat_dda_double_write_skew2.txt b/index/result/mongodb_4.4.4/snapshot/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..ff4cc00a --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/rat_dda_double_write_skew2.txt @@ -0,0 +1,19 @@ +#### db_type: mongodb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/rat_dda_read_skew.txt b/index/result/mongodb_4.4.4/snapshot/rat_dda_read_skew.txt new file mode 100644 index 00000000..f678050c --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/rat_dda_read_skew.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.getpred(0)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) (1,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.getpred(1)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) (1,1) + + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (1,1) (0,1) + *(1) expected_result: + (1,1) (0,1) + *(2) expected_result: + (1,1) (0,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mongodb_4.4.4/snapshot/rat_dda_read_skew2.txt b/index/result/mongodb_4.4.4/snapshot/rat_dda_read_skew2.txt new file mode 100644 index 00000000..0949c602 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/rat_dda_read_skew2.txt @@ -0,0 +1,45 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + +T1 execute stmt: 't1.put(1, 1)' + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mongodb_4.4.4/snapshot/rat_dda_read_skew2_committed.txt b/index/result/mongodb_4.4.4/snapshot/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..7a264ae2 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/rat_dda_read_skew2_committed.txt @@ -0,0 +1,45 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + T2 COMMIT transaction success +T1 execute stmt: 't1.put(1, 1)' +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mongodb_4.4.4/snapshot/rat_dda_read_skew_predicate_based_delete.txt b/index/result/mongodb_4.4.4/snapshot/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..8f1af041 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.getpred(0)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.getpred(1)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (1,1) + + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (1,1) (0,1) + *(1) expected_result: + (1,1) (0,1) + *(2) expected_result: + (1,1) (0,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mongodb_4.4.4/snapshot/rat_dda_read_skew_predicate_based_insert.txt b/index/result/mongodb_4.4.4/snapshot/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..91cd714b --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.getpred(0)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.getpred(1)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (1,1) + + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (1,1) (0,1) + *(1) expected_result: + (1,1) (0,1) + *(2) expected_result: + (1,1) (0,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mongodb_4.4.4/snapshot/rat_dda_write_read_skew.txt b/index/result/mongodb_4.4.4/snapshot/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..1f75f989 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/rat_dda_write_read_skew.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_write_read_skew #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mongodb_4.4.4/snapshot/rat_dda_write_read_skew_committed.txt b/index/result/mongodb_4.4.4/snapshot/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..ce414368 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + T2 COMMIT transaction success +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mongodb_4.4.4/snapshot/rat_mda_step_rat.txt b/index/result/mongodb_4.4.4/snapshot/rat_mda_step_rat.txt new file mode 100644 index 00000000..173a98be --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/rat_mda_step_rat.txt @@ -0,0 +1,87 @@ +#### db_type: mongodb #### +#### test_type: mda_step_rat #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 execute stmt: 't1.put(2, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + T3 start transaction success + T3 execute stmt: 't1.put(2, 1)' + T3 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + +T1 execute stmt: 't1.get(2)' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +T1 COMMIT transaction success + T2 COMMIT transaction success + T3 COMMIT transaction success + T4 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mongodb_4.4.4/snapshot/rat_mda_step_rat_long_fork.txt b/index/result/mongodb_4.4.4/snapshot/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..6812249a --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,115 @@ +#### db_type: mongodb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' + T4 start transaction success + T4 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T3 start transaction success + T3 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + + T3 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (1,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T4 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + +T1 COMMIT transaction success + T2 COMMIT transaction success + T3 COMMIT transaction success + T4 COMMIT transaction success + T4 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mongodb_4.4.4/snapshot/rat_sda_dirty_read.txt b/index/result/mongodb_4.4.4/snapshot/rat_sda_dirty_read.txt new file mode 100644 index 00000000..9c0caa07 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/rat_sda_dirty_read.txt @@ -0,0 +1,29 @@ +#### db_type: mongodb #### +#### test_type: sda_dirty_read #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.put(0, 0)' + T2 start transaction success + T2 execute stmt: 't1.get(0)' + current_result: + null + *(1) expected_result: + null + + T2 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + null + *(1) expected_result: + null + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mongodb_4.4.4/snapshot/rat_sda_intermediate_read.txt b/index/result/mongodb_4.4.4/snapshot/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..ded07c96 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/rat_sda_intermediate_read.txt @@ -0,0 +1,36 @@ +#### db_type: mongodb #### +#### test_type: sda_intermediate_read #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + +T1 execute stmt: 't1.put(0, 2)' + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mongodb_4.4.4/snapshot/rat_sda_intermediate_read_committed.txt b/index/result/mongodb_4.4.4/snapshot/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..74e1fee4 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,36 @@ +#### db_type: mongodb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + T2 COMMIT transaction success +T1 execute stmt: 't1.put(0, 2)' +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mongodb_4.4.4/snapshot/rat_sda_lost_self_update.txt b/index/result/mongodb_4.4.4/snapshot/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..943c62cc --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/rat_sda_lost_self_update.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_lost_self_update #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/rat_sda_non_repeatable_read.txt b/index/result/mongodb_4.4.4/snapshot/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..4d66d15f --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/rat_sda_non_repeatable_read.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mongodb_4.4.4/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/index/result/mongodb_4.4.4/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..dea6ed7f --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,25 @@ +#### db_type: mongodb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.getpred(0)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 0)' + T2 COMMIT transaction success +T1 execute stmt: 't1.getpred(0)' +[ERROR] in MongoConnector::ExecFindkV ->Unable to read from a snapshot due to pending collection catalog changes; please retry the operation. Snapshot timestamp is Timestamp(1651677643, 7). Collection minimum is Timestamp(1651677643, 8): generic server error + +Test Result: Rollback +Reason: Unable to read from a snapshot due to pending collection catalog changes; please retry the operation. Snapshot timestamp is Timestamp(1651677643, 7). Collection minimum is Timestamp(1651677643, 8): generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/index/result/mongodb_4.4.4/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..58692d18 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,25 @@ +#### db_type: mongodb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.getpred(0)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 0)' + T2 COMMIT transaction success +T1 execute stmt: 't1.getpred(0)' +[ERROR] in MongoConnector::ExecFindkV ->Unable to read from a snapshot due to pending collection catalog changes; please retry the operation. Snapshot timestamp is Timestamp(1651677643, 3). Collection minimum is Timestamp(1651677643, 4): generic server error + +Test Result: Rollback +Reason: Unable to read from a snapshot due to pending collection catalog changes; please retry the operation. Snapshot timestamp is Timestamp(1651677643, 3). Collection minimum is Timestamp(1651677643, 4): generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/wat_dda_double_write_skew2_committed.txt b/index/result/mongodb_4.4.4/snapshot/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..0f58314b --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,19 @@ +#### db_type: mongodb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/wat_dda_full_write_skew_c1.txt b/index/result/mongodb_4.4.4/snapshot/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..ba6cddb9 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,18 @@ +#### db_type: mongodb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/wat_dda_full_write_skew_c2.txt b/index/result/mongodb_4.4.4/snapshot/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..10f1b1a5 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,18 @@ +#### db_type: mongodb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/wat_dda_full_write_skew_committed.txt b/index/result/mongodb_4.4.4/snapshot/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..caa683c7 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,18 @@ +#### db_type: mongodb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew1_c1.txt b/index/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..b5ca6d5a --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,27 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 2)' + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.put(1, 1)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew1_c2.txt b/index/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..2200a7ab --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,27 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 2)' + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.put(1, 1)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew2_c1.txt b/index/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..eb37768b --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,26 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew2_c2.txt b/index/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..86a584ba --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,26 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew2_committed.txt b/index/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..87dfd066 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,26 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/wat_mda_step_wat_c1.txt b/index/result/mongodb_4.4.4/snapshot/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..d97861cb --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/wat_mda_step_wat_c1.txt @@ -0,0 +1,20 @@ +#### db_type: mongodb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 execute stmt: 't1.put(2, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 2)' + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/wat_mda_step_wat_c2.txt b/index/result/mongodb_4.4.4/snapshot/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..a72dce7a --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/wat_mda_step_wat_c2.txt @@ -0,0 +1,20 @@ +#### db_type: mongodb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 execute stmt: 't1.put(2, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 2)' + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/wat_sda_dirty_write_1abort.txt b/index/result/mongodb_4.4.4/snapshot/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..1cc1018d --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/wat_sda_dirty_write_2commit.txt b/index/result/mongodb_4.4.4/snapshot/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..66d36468 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/wat_sda_full_write.txt b/index/result/mongodb_4.4.4/snapshot/wat_sda_full_write.txt new file mode 100644 index 00000000..e057f4c9 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/wat_sda_full_write.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_full_write #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/wat_sda_full_write_committed.txt b/index/result/mongodb_4.4.4/snapshot/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..65581c56 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/wat_sda_full_write_committed.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_full_write_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/wat_sda_lost_self_update_committed.txt b/index/result/mongodb_4.4.4/snapshot/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..cc27e358 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/wat_sda_lost_update_c1.txt b/index/result/mongodb_4.4.4/snapshot/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..f67f3686 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/wat_sda_lost_update_c1.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/mongodb_4.4.4/snapshot/wat_sda_lost_update_c2.txt b/index/result/mongodb_4.4.4/snapshot/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..910560b5 --- /dev/null +++ b/index/result/mongodb_4.4.4/snapshot/wat_sda_lost_update_c2.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/index/result/myrocks_8.0.26/read-committed/iat_dda_read_skew_committed.txt b/index/result/myrocks_8.0.26/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..e8fbc326 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:45:667:873 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:45:668:657 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:45:767:860 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:45:768:596 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:45:769:47 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:45:776:968 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:7:45:868:464 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:45:883:773 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:45:884:848 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:45:887:461 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/iat_dda_read_write_skew1_committed.txt b/index/result/myrocks_8.0.26/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..355c54c9 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:46:159:215 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:46:164:405 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:46:259:47 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:46:259:789 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:46:260:284 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:46:268:628 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:46:359:476 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:46:372:344 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:46:373:256 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:46:376:635 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/iat_dda_write_skew.txt b/index/result/myrocks_8.0.26/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..a0b84a26 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:46:658:393 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:46:659:270 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:46:758:429 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:46:759:387 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:46:759:972 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:7:46:858:800 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:46:872:476 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:46:969:591 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:46:970:599 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:46:974:350 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/iat_dda_write_skew_committed.txt b/index/result/myrocks_8.0.26/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..75279811 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:48:301:972 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:48:302:908 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:48:401:812 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:48:402:669 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:48:403:235 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:48:413:155 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:48:502:226 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:48:511:523 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:48:512:576 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:48:516:187 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/index/result/myrocks_8.0.26/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..d1df63f4 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:47:307:116 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 11:7:47:308:109 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 11:7:47:308:683 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:7:47:407:79 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 11:7:47:408:71 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 11:7:47:408:616 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:47:426:713 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:47:516:453 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 11:7:47:517:434 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 11:7:47:518:93 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:47:520:784 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/index/result/myrocks_8.0.26/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..6e68d22c --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:47:800:978 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 11:7:47:802:12 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:47:900:873 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 11:7:47:901:953 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 11:7:47:902:593 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:47:909:576 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-2 11:7:48:6:722 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:48:14:565 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 11:7:48:15:590 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:48:19:603 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/iat_mda_step_iat.txt b/index/result/myrocks_8.0.26/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..0c371727 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:48:814:308 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:7:48:815:275 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:48:914:259 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:48:915:347 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:49:14:211 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:7:49:15:316 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 11:7:49:114:845 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:7:49:214:954 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 11:7:49:314:931 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:49:429:215 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:49:532:259 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:49:620:662 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:7:49:622:8 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:49:632:480 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/index/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..60c15975 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:53:525:46 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:53:526:144 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:53:624:918 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:53:625:660 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:53:633:29 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:7:53:725:36 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:7:53:726:72 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:7:53:726:631 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:53:734:756 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 11:7:53:825:823 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 11:7:53:832:384 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 11:7:53:833:417 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:7:53:839:190 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/index/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..a10c161a --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:52:744:245 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:52:745:517 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:52:844:225 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:52:845:727 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:52:944:226 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 11:7:52:944:912 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:52:952:191 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:7:53:44:261 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 11:7:53:45:26 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:53:67:566 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 11:7:53:145:251 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:53:149:891 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 11:7:53:245:462 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 11:7:53:249:845 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 11:7:53:251:377 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 11:7:53:255:157 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/index/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..b625e729 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:49:934:996 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 11:7:49:935:966 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:50:34:961 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:50:35:960 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:50:135:56 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:7:50:135:995 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 11:7:50:235:504 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:7:50:335:506 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 11:7:50:435:486 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:50:541:708 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:50:645:797 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:50:741:270 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 11:7:50:742:297 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:50:746:29 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/index/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..23051cbb --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:51:33:34 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:7:51:34:384 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:51:133:25 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 11:7:51:133:995 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:51:233:61 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 11:7:51:234:86 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 11:7:51:333:418 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 11:7:51:433:488 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 11:7:51:533:548 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:51:642:160 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:51:742:146 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:51:842:1 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:7:51:843:185 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:51:851:662 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/index/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..3ff1a41c --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:54:121:269 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:7:54:122:288 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 11:7:54:123:46 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:7:54:221:402 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 11:7:54:222:735 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 11:7:54:223:317 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:54:232:711 + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:7:54:321:312 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 11:7:54:322:534 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:7:54:323:282 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:54:325:2 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-2 11:7:54:421:732 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 11:7:54:431:442 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 11:7:54:432:525 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 11:7:54:436:134 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_uname_anomaly.txt b/index/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..1400ebd2 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:52:129:607 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 11:7:52:130:821 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:52:229:617 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 11:7:52:230:708 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:52:231:273 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:7:52:232:98 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-2 11:7:52:232:584 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:52:249:930 + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 11:7:52:329:560 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 11:7:52:330:601 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-2 11:7:52:331:178 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 11:7:52:332:31 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 11:7:52:332:584 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:52:341:676 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 11:7:52:430:230 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 11:7:52:437:278 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 11:7:52:438:369 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-2 11:7:52:441:968 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/iat_sda_lost_update_committed.txt b/index/result/myrocks_8.0.26/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..6604794e --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:45:154:326 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:7:45:155:141 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:45:254:272 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:45:255:74 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:45:263:465 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 11:7:45:354:697 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:45:366:835 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:45:367:749 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:45:379:53 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/iat_sda_non_repeatable_read_committed.txt b/index/result/myrocks_8.0.26/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..ebe42747 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:44:669:577 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:44:670:384 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:44:769:445 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:44:770:313 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:44:795:429 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:7:44:870:397 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:44:872:132 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:44:872:973 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:44:877:415 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:44:882:902 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/rat_dda_double_write_skew1.txt b/index/result/myrocks_8.0.26/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..2f4c53b6 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:22:402:987 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:22:403:668 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:22:503:12 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:22:503:690 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:22:504:319 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:7:22:712:271 + Q7 finished at: 2022-4-2 11:7:22:715:971 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:22:810:744 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 11:7:22:811:764 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:22:820:723 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-committed/rat_dda_double_write_skew1_committed.txt b/index/result/myrocks_8.0.26/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..ef074195 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:23:109:480 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:23:110:167 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:23:209:509 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:23:210:299 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:23:211:93 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:23:220:734 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:23:310:0 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:23:318:373 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 11:7:23:319:252 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:23:322:901 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-committed/rat_dda_double_write_skew2.txt b/index/result/myrocks_8.0.26/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..f46afd56 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:23:613:655 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:23:614:349 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:23:713:593 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:23:714:358 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:7:23:814:151 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:23:822:459 +Q7 finished at: 2022-4-2 11:7:23:827:157 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:23:923:547 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:23:924:551 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:23:928:212 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-committed/rat_dda_read_skew.txt b/index/result/myrocks_8.0.26/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..aeb94d77 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:24:213:33 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:24:213:896 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:24:313:27 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:24:313:777 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:24:314:223 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:7:24:413:643 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:24:521:928 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:24:615:67 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:24:615:979 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:24:624:429 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-committed/rat_dda_read_skew2.txt b/index/result/myrocks_8.0.26/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..a9895205 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:25:872:295 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:25:873:17 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:25:972:222 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:25:973:3 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:25:973:561 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:7:26:72:729 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:26:82:449 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:26:174:424 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:26:175:412 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:26:179:372 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-committed/rat_dda_read_skew2_committed.txt b/index/result/myrocks_8.0.26/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..c20b2ec9 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:26:448:472 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:26:449:173 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:26:548:528 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:26:549:518 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:26:550:122 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:26:554:986 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:26:648:994 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:26:666:828 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:26:667:889 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:26:672:35 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/index/result/myrocks_8.0.26/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..e6b64bfb --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:24:896:675 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:7:24:897:449 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:24:996:679 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:24:997:371 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:24:997:847 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:25:8:316 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:7:25:97:298 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:25:102:261 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 11:7:25:103:214 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:25:106:717 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/index/result/myrocks_8.0.26/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..08134f2a --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:25:404:164 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:7:25:405:179 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:25:504:69 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 11:7:25:504:758 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 11:7:25:505:182 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:25:513:120 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:7:25:604:805 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:25:608:533 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 11:7:25:609:422 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:25:612:505 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/rat_dda_write_read_skew.txt b/index/result/myrocks_8.0.26/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..5f5c3578 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:21:155:645 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:21:156:385 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:21:255:704 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:21:256:554 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:21:257:300 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:7:21:356:297 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:21:463:484 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:21:567:990 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:21:568:981 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:21:573:799 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/rat_dda_write_read_skew_committed.txt b/index/result/myrocks_8.0.26/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..f67e3542 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:21:864:298 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:21:865:56 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:21:964:288 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:21:965:20 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:21:965:694 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:21:975:363 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:7:22:64:928 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:22:75:211 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:22:76:256 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:22:84:86 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-committed/rat_mda_step_rat.txt b/index/result/myrocks_8.0.26/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..a29ae0dc --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:26:936:259 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:26:937:3 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:27:36:234 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:27:36:920 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:27:37:752 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:7:27:136:438 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:7:27:137:66 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 11:7:27:137:862 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-2 11:7:27:237:72 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:27:244:376 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:27:342:508 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:27:445:457 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:7:27:446:803 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:27:448:390 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/rat_mda_step_rat_long_fork.txt b/index/result/myrocks_8.0.26/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..de25b62c --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 11:7:27:719:37 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 11:7:27:720:309 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 11:7:27:818:792 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 11:7:27:819:503 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:27:918:839 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 11:7:27:920:345 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:7:27:921:406 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:7:28:18:814 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 11:7:28:19:535 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:7:28:119:918 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 11:7:28:225:722 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:28:327:751 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:7:28:427:786 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:28:433:18 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 11:7:28:434:206 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 11:7:28:438:962 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/index/result/myrocks_8.0.26/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..1ccc0827 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:28:715:490 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:28:716:136 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:28:815:474 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:28:816:193 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:7:28:817:105 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:7:28:915:516 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:7:28:916:248 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 11:7:28:917:67 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-2 11:7:29:16:352 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:29:25:737 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:29:127:632 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:29:221:99 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 11:7:29:222:132 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:29:225:779 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/index/result/myrocks_8.0.26/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..fb4bf0ab --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:29:487:453 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 11:7:29:488:379 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:29:587:416 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 11:7:29:588:120 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:7:29:588:987 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:7:29:687:455 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 11:7:29:688:276 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-2 11:7:29:689:190 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 11:7:29:788:218 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:29:802:636 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:29:894:963 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:30:10:868 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:7:30:12:152 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:30:16:128 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/rat_sda_dirty_read.txt b/index/result/myrocks_8.0.26/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..c48013b3 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:17:29:235 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:17:29:836 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:17:129:220 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:17:130:294 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 11:7:17:237:594 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:17:331:633 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:7:17:332:557 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:17:336:724 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-committed/rat_sda_intermediate_read.txt b/index/result/myrocks_8.0.26/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..3240909e --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:18:354:249 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:18:354:944 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:18:454:219 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:18:455:106 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 11:7:18:554:728 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:18:657:638 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:18:761:428 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:7:18:762:346 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:18:765:786 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-committed/rat_sda_intermediate_read_committed.txt b/index/result/myrocks_8.0.26/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..736ac698 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:19:59:752 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:19:60:456 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:19:159:770 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:19:160:705 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:19:169:76 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 11:7:19:260:237 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:19:269:165 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:7:19:270:179 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:19:281:487 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-committed/rat_sda_lost_self_update.txt b/index/result/myrocks_8.0.26/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..dcb63958 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:20:569:511 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:20:570:218 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:20:669:462 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:7:20:770:136 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:7:20:774:616 +Q6 finished at: 2022-4-2 11:7:20:777:383 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:20:874:189 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:20:875:163 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:20:879:355 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-committed/rat_sda_non_repeatable_read.txt b/index/result/myrocks_8.0.26/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..83e8b89f --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:17:642:676 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:17:643:482 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:17:742:662 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:17:743:381 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:7:17:843:264 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:17:953:11 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:18:50:110 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:18:51:99 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:18:55:276 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/index/result/myrocks_8.0.26/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..072b9ab9 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:19:580:770 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:7:19:581:636 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:19:680:801 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:19:681:579 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:19:691:510 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:7:19:781:451 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:19:788:167 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 11:7:19:788:936 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:19:792:765 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/index/result/myrocks_8.0.26/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..7f1cd9de --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:20:73:189 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:7:20:74:352 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:20:173:131 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 11:7:20:173:839 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:20:186:668 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:7:20:273:859 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:20:279:493 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 11:7:20:280:430 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:20:285:29 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/wat_dda_double_write_skew2_committed.txt b/index/result/myrocks_8.0.26/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..76e8b886 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:34:418:979 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:34:419:704 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:34:518:987 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:34:519:846 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:7:34:619:513 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:34:623:649 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:34:626:247 + Q6 finished at: 2022-4-2 11:7:34:630:893 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:34:631:799 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:34:635:248 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-committed/wat_dda_full_write_skew_c1.txt b/index/result/myrocks_8.0.26/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..6a65778b --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:34:916:751 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:34:917:424 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:35:16:886 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:35:17:703 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:7:35:117:298 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:35:231:856 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:7:35:723:84 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/read-committed/wat_dda_full_write_skew_c2.txt b/index/result/myrocks_8.0.26/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..3ab33fd3 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:35:988:620 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:35:989:376 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:36:88:759 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:36:89:508 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:7:36:189:179 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:36:295:319 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:7:36:794:551 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/read-committed/wat_dda_full_write_skew_committed.txt b/index/result/myrocks_8.0.26/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..6ed216f2 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:37:83:309 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:37:84:81 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:37:183:235 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:37:184:59 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:7:37:283:743 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:37:295:941 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:7:37:990:367 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew1_c1.txt b/index/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..1bd4f4ec --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:38:291:674 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:38:292:571 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:38:391:570 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:38:392:446 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:38:393:33 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:7:38:596:578 +Q7-T1 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:38:599:932 +Q7 finished at: 2022-4-2 11:7:38:603:150 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:38:604:85 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:38:610:875 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew1_c2.txt b/index/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..ea77f378 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:38:907:604 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:38:908:429 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:39:7:582 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:39:8:445 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:39:9:128 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:7:39:217:933 + Q7 finished at: 2022-4-2 11:7:39:222:591 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:39:318:243 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:39:319:200 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:39:328:360 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew2_c1.txt b/index/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..c728341f --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:39:634:274 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:39:634:937 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:39:734:231 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:39:735:58 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:7:39:834:688 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:39:840:682 +Q7 finished at: 2022-4-2 11:7:39:846:702 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:39:943:813 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:39:944:963 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:39:948:415 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew2_c2.txt b/index/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..3617e4bf --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:40:251:40 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:40:251:895 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:40:351:66 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:40:352:182 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:7:40:451:589 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:40:654:974 + Q7-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:40:658:170 + Q7 finished at: 2022-4-2 11:7:40:661:719 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:40:662:581 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:40:667:251 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew2_committed.txt b/index/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..d9016710 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:40:944:376 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:40:945:252 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:41:44:308 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:41:45:214 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:41:147:748 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:41:154:695 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:41:164:17 + Q6 finished at: 2022-4-2 11:7:41:170:335 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:41:171:231 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:41:176:589 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/wat_mda_step_wat_c1.txt b/index/result/myrocks_8.0.26/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..ab5022a9 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:41:451:86 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:41:451:933 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:41:551:128 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:41:551:971 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:7:41:651:143 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:7:41:651:956 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 11:7:41:751:771 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:41:856:395 + Q11 finished at: 2022-4-2 11:7:41:859:707 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:41:963:206 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:7:42:656:543 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/read-committed/wat_mda_step_wat_c2.txt b/index/result/myrocks_8.0.26/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..dd610223 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:42:959:628 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:42:960:428 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:43:59:666 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:43:60:494 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:43:159:640 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:7:43:360:149 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 11:7:43:460:346 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:43:564:191 + Q10 finished at: 2022-4-2 11:7:43:570:282 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:43:768:4 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:7:44:365:598 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/read-committed/wat_sda_dirty_write_1abort.txt b/index/result/myrocks_8.0.26/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..9f5a046f --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:30:320:901 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:30:321:669 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:30:420:819 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 11:7:30:521:387 +Q5 finished at: 2022-4-2 11:7:30:525:168 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:30:629:603 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:7:30:630:545 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:7:30:649:408 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:30:653:942 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-committed/wat_sda_dirty_write_2commit.txt b/index/result/myrocks_8.0.26/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..af9a5b88 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:30:909:503 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:30:910:226 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:31:9:508 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:7:31:117:584 +Q5 finished at: 2022-4-2 11:7:31:121:45 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:31:216:751 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:7:31:217:599 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:7:31:239:388 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:31:242:994 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-committed/wat_sda_full_write.txt b/index/result/myrocks_8.0.26/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..91124df4 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:31:494:449 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:31:495:124 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:31:594:410 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 11:7:31:694:847 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:7:31:706:865 +Q6 finished at: 2022-4-2 11:7:31:711:116 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:31:802:529 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:7:31:803:444 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:31:810:91 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-committed/wat_sda_full_write_committed.txt b/index/result/myrocks_8.0.26/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..fd4601b6 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:32:81:535 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:32:82:277 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:32:181:526 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 11:7:32:281:960 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:7:32:286:702 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:32:289:779 + Q5 finished at: 2022-4-2 11:7:32:292:819 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:7:32:293:741 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:32:297:737 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-committed/wat_sda_lost_self_update_committed.txt b/index/result/myrocks_8.0.26/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..c4f64f58 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:33:875:295 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:33:875:977 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:33:975:246 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:7:34:75:943 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:7:34:82:320 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:34:85:688 + Q5 finished at: 2022-4-2 11:7:34:95:316 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:34:96:230 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:34:99:899 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-committed/wat_sda_lost_update_c1.txt b/index/result/myrocks_8.0.26/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..15dd4c81 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:32:575:78 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:7:32:575:957 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:32:675:28 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:32:675:839 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 11:7:32:880:176 +Q6-T1 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:32:884:55 +Q6 finished at: 2022-4-2 11:7:32:890:368 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:32:891:397 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:32:895:861 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-committed/wat_sda_lost_update_c2.txt b/index/result/myrocks_8.0.26/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..0f263338 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:33:162:956 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:7:33:163:790 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:33:262:846 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:33:263:585 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 11:7:33:466:797 + Q6 finished at: 2022-4-2 11:7:33:470:652 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:33:568:518 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:33:569:488 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:33:573:294 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/iat_dda_read_skew_committed.txt b/index/result/myrocks_8.0.26/read-uncommitted/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..854be0aa --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:7:864:299 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:7:865:240 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:7:964:227 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:7:965:8 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:7:965:527 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:8:8:328 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:7:8:64:885 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:8:71:195 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:8:72:66 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:8:73:895 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/iat_dda_read_write_skew1_committed.txt b/index/result/myrocks_8.0.26/read-uncommitted/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..e2294f00 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:8:361:730 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:8:362:739 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:8:461:632 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:8:462:502 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:8:463:58 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:8:472:126 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:8:561:986 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:8:574:438 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:8:575:337 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:8:579:53 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew.txt b/index/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew.txt new file mode 100644 index 00000000..bd9ec014 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:8:886:103 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:8:886:984 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:8:985:949 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:8:986:763 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:8:987:226 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:7:9:86:500 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:9:95:547 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:9:194:412 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:9:195:366 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:9:199:439 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew_committed.txt b/index/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..34a00465 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:10:528:27 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:10:528:850 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:10:628:14 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:10:628:868 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:10:629:466 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:10:641:499 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:10:728:466 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:10:739:981 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:10:740:941 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:10:751:813 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt b/index/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..163e995e --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:9:513:489 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 11:7:9:514:351 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 11:7:9:514:798 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:7:9:613:390 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 11:7:9:614:281 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 11:7:9:614:769 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:9:623:295 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:9:723:921 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 11:7:9:724:895 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 11:7:9:725:464 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:9:726:953 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/index/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..22551446 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:10:15:920 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 11:7:10:16:958 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:10:109:60 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 11:7:10:110:253 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 11:7:10:111:163 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:10:120:515 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-2 11:7:10:209:740 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:10:222:583 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 11:7:10:223:536 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:10:230:144 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat.txt b/index/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat.txt new file mode 100644 index 00000000..86b41b13 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:11:49:131 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:7:11:50:92 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:11:149:146 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:11:150:181 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:11:249:131 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:7:11:250:190 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 11:7:11:349:579 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:7:11:449:540 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 11:7:11:549:678 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:11:661:189 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:11:760:870 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:11:854:831 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:7:11:855:924 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:11:859:356 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt b/index/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..8fdf032d --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:15:757:776 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:15:758:823 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:15:857:499 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:15:858:416 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:15:866:635 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:7:15:957:532 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:7:15:958:552 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:7:15:959:153 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:15:968:412 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 11:7:16:58:256 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 11:7:16:68:957 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 11:7:16:70:181 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:7:16:80:987 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt b/index/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..b32f1af8 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:14:947:18 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:14:948:194 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:15:47:13 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:15:48:458 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:15:147:27 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 11:7:15:147:812 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:15:175:627 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:7:15:247:29 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 11:7:15:247:837 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:15:255:866 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 11:7:15:348:141 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:15:350:112 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 11:7:15:448:180 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 11:7:15:452:268 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 11:7:15:453:750 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 11:7:15:457:306 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt b/index/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..a1839cb9 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:12:143:893 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 11:7:12:144:910 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:12:243:880 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:12:244:937 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:12:343:875 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:7:12:344:905 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 11:7:12:444:351 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:7:12:544:274 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 11:7:12:644:334 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:12:757:431 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:12:853:933 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:12:951:101 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 11:7:12:952:226 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:12:956:66 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt b/index/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..b4e4aa45 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:13:225:343 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:7:13:226:599 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:13:325:290 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 11:7:13:326:355 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:13:425:327 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 11:7:13:426:473 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 11:7:13:525:646 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 11:7:13:625:683 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 11:7:13:725:691 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:13:840:705 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:13:933:242 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:14:34:934 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:7:14:36:96 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:14:39:576 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt b/index/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..c01a7172 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:16:374:985 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:7:16:376:80 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 11:7:16:376:835 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:7:16:488:201 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 11:7:16:489:151 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 11:7:16:489:647 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:16:506:570 + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:7:16:596:180 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 11:7:16:597:220 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:7:16:597:944 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:16:599:950 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-2 11:7:16:675:406 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 11:7:16:689:30 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 11:7:16:690:99 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 11:7:16:694:109 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt b/index/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..3a674bda --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:14:332:843 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 11:7:14:333:861 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:14:432:832 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 11:7:14:434:5 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:14:434:638 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:7:14:435:568 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-2 11:7:14:436:31 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:14:447:700 + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 11:7:14:532:845 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 11:7:14:533:861 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-2 11:7:14:534:345 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 11:7:14:535:41 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 11:7:14:535:515 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:14:543:627 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 11:7:14:633:570 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 11:7:14:649:210 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 11:7:14:650:431 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-2 11:7:14:657:90 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/iat_sda_lost_update_committed.txt b/index/result/myrocks_8.0.26/read-uncommitted/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..02a461b2 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:7:342:513 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:7:7:343:368 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:7:442:527 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:7:443:377 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:7:464:612 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 11:7:7:543:7 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:7:558:311 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:7:559:374 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:7:563:837 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/iat_sda_non_repeatable_read_committed.txt b/index/result/myrocks_8.0.26/read-uncommitted/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..68a31d3c --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:6:781:947 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:6:782:830 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:6:881:847 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:6:882:576 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:6:897:644 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:7:6:982:601 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:6:985:89 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:6:986:60 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:6:991:354 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:6:996:156 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_double_write_skew1.txt b/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..b6b91463 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_double_write_skew1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:44:111:881 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:44:112:595 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:44:211:883 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:44:212:622 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:6:44:213:221 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:6:44:415:841 + Q7 finished at: 2022-4-2 11:6:44:419:23 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:44:517:507 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 11:6:44:518:651 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:44:522:575 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_double_write_skew1_committed.txt b/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..3db0145a --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:44:813:948 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:44:814:705 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:44:913:852 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:44:914:595 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:6:44:915:293 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:44:927:639 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-2 11:6:45:14:402 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:45:23:653 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 11:6:45:24:564 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:45:29:59 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_double_write_skew2.txt b/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..b4db5bc9 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_double_write_skew2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:45:360:876 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:45:361:638 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:45:460:874 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:45:461:679 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:6:45:561:457 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:6:45:585:200 +Q7 finished at: 2022-4-2 11:6:45:591:983 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:6:45:667:901 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:6:45:668:778 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:45:672:659 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew.txt b/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew.txt new file mode 100644 index 00000000..8b9ad8a9 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:45:976:382 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:6:45:977:241 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:46:76:299 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:46:77:78 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:6:46:77:570 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:6:46:176:975 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:6:46:285:709 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:46:378:160 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:6:46:379:229 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:46:383:464 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew2.txt b/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew2.txt new file mode 100644 index 00000000..f6c64bb3 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew2.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:47:680:890 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:47:681:754 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:47:780:851 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:6:47:781:740 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:6:47:782:398 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:6:47:881:397 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:47:890:477 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:6:47:985:974 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:6:47:986:965 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:47:992:365 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew2_committed.txt b/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..6efd92e7 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew2_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:48:288:685 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:48:289:453 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:48:388:655 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:6:48:389:496 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:6:48:390:150 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:48:393:938 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:6:48:489:194 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:48:498:972 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:6:48:499:906 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:48:503:168 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt b/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..0d0e9e92 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:46:698:199 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:6:46:699:135 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:46:798:223 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:46:798:930 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:6:46:799:446 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:46:809:696 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:6:46:898:810 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:46:902:944 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 11:6:46:903:725 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:46:907:625 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt b/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..550ea609 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:47:203:401 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:6:47:204:389 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:47:303:353 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 11:6:47:304:49 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 11:6:47:304:536 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:47:312:368 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:6:47:403:975 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:47:408:219 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 11:6:47:409:189 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:47:413:65 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_write_read_skew.txt b/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..d111d122 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:42:904:178 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:42:904:895 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:43:4:374 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:43:5:431 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:6:43:6:174 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:6:43:104:877 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:6:43:211:113 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:43:317:822 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:6:43:318:823 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:43:322:868 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_write_read_skew_committed.txt b/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..b9e3b4e1 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:43:611:538 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:43:612:270 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:43:711:539 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:43:712:636 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:6:43:713:192 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:43:721:280 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:6:43:812:121 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:43:820:283 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:6:43:821:199 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:43:824:769 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat.txt b/index/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat.txt new file mode 100644 index 00000000..4dd84f5b --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:48:761:99 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:48:761:824 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:48:861:66 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:48:861:829 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + (3) expected_result: + (0,0) + (4) expected_result: + (0,0) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:6:48:862:666 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:6:48:961:403 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:6:48:962:82 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 11:6:48:962:900 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + *(4) expected_result: + (2,1) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q9 finished at: 2022-4-2 11:6:49:61:960 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:6:49:87:748 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:6:49:168:306 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:6:49:274:493 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:6:49:275:776 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:6:49:277:591 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat_long_fork.txt b/index/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..d6bb57f6 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,207 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 11:6:49:582:181 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 11:6:49:583:532 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 11:6:49:682:71 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 11:6:49:682:929 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:6:49:782:38 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 11:6:49:783:629 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + *(7) expected_result: + (0,1) + *(8) expected_result: + (0,1) + *(9) expected_result: + (0,1) + (10) expected_result: + (0,0) + (11) expected_result: + (0,0) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + (14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:6:49:784:954 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:6:49:882:137 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 11:6:49:882:862 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:6:49:983:183 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 11:6:50:92:437 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:6:50:193:820 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:6:50:286:440 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:6:50:291:537 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 11:6:50:292:762 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 11:6:50:296:633 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt b/index/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..41e9b4aa --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:50:576:630 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:50:577:327 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:50:676:633 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:50:677:353 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:6:50:678:133 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:6:50:776:649 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:6:50:777:393 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 11:6:50:778:188 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + (3) expected_result: + (1,) + *(4) expected_result: + (,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 11:6:50:877:635 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:6:50:888:165 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:6:50:989:97 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:6:51:87:480 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 11:6:51:88:578 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:6:51:94:508 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt b/index/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..971b8e35 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:51:406:105 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 11:6:51:406:978 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:51:505:975 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 11:6:51:506:637 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:6:51:507:664 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:6:51:606:31 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 11:6:51:606:662 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + (4) expected_result: + (,) + *(5) expected_result: + (1,) + (6) expected_result: + (,) + + Q8 finished at: 2022-4-2 11:6:51:607:504 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-2 11:6:51:706:907 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:6:51:714:953 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:6:51:821:716 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:6:51:934:908 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:6:51:936:57 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:6:51:942:36 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/rat_sda_dirty_read.txt b/index/result/myrocks_8.0.26/read-uncommitted/rat_sda_dirty_read.txt new file mode 100644 index 00000000..77bf0090 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/rat_sda_dirty_read.txt @@ -0,0 +1,45 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:38:642:614 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:38:643:217 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:38:742:658 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:6:38:743:637 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 11:6:38:850:102 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:38:944:122 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:6:38:945:77 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:6:38:953:392 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/rat_sda_intermediate_read.txt b/index/result/myrocks_8.0.26/read-uncommitted/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..c5ff27d2 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/rat_sda_intermediate_read.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:40:47:38 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:40:47:727 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:40:147:13 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:6:40:147:926 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 11:6:40:247:645 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:40:353:55 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:40:457:521 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:6:40:458:467 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:40:474:141 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/rat_sda_intermediate_read_committed.txt b/index/result/myrocks_8.0.26/read-uncommitted/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..8be05dea --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:40:784:975 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:40:785:644 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:40:884:874 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:6:40:885:681 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:6:40:892:24 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 11:6:40:985:478 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:40:990:503 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:6:40:991:355 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:40:994:684 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/rat_sda_lost_self_update.txt b/index/result/myrocks_8.0.26/read-uncommitted/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..666fd609 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:42:303:573 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:42:304:282 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:42:403:559 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:6:42:504:176 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:6:42:514:564 +Q6 finished at: 2022-4-2 11:6:42:518:117 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:6:42:611:236 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:6:42:612:124 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:42:616:388 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/rat_sda_non_repeatable_read.txt b/index/result/myrocks_8.0.26/read-uncommitted/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..21a785fe --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/rat_sda_non_repeatable_read.txt @@ -0,0 +1,58 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:39:288:802 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:6:39:289:676 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:39:388:756 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:6:39:389:486 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:6:39:489:344 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:39:600:730 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:39:703:661 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:6:39:704:573 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:39:714:814 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/index/result/myrocks_8.0.26/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..3b691c75 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:41:305:628 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:6:41:306:419 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:41:405:514 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:6:41:406:250 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:6:41:415:95 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:6:41:506:107 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:41:510:37 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 11:6:41:510:851 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:41:514:997 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/index/result/myrocks_8.0.26/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..55bf3710 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:41:785:724 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:6:41:786:651 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:41:885:726 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 11:6:41:886:397 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:6:41:896:626 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:6:41:986:284 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:41:991:30 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 11:6:41:991:748 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:41:996:220 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_double_write_skew2_committed.txt b/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..134598bd --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:56:435:566 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:56:436:272 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:56:535:569 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:56:536:287 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:6:56:636:142 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:6:56:639:945 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:56:644:289 + Q6 finished at: 2022-4-2 11:6:56:647:996 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:6:56:649:26 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:56:653:198 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_full_write_skew_c1.txt b/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..8430b280 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:56:941:270 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:56:942:62 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:57:41:343 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:57:42:179 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:6:57:141:750 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:6:57:248:229 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:6:57:752:966 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_full_write_skew_c2.txt b/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..ff34857c --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:58:35:180 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:58:35:904 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:58:135:168 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:58:135:878 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:6:58:235:729 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:6:58:342:781 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:6:58:840:372 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_full_write_skew_committed.txt b/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..f36d80c6 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:59:122:192 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:59:122:917 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:59:222:178 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:59:223:25 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:6:59:322:766 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:59:332:418 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:7:0:29:211 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew1_c1.txt b/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..47f01067 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:0:338:484 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:0:339:283 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:0:438:502 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:0:439:231 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:0:439:730 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:7:0:645:185 +Q7-T1 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:0:649:265 +Q7 finished at: 2022-4-2 11:7:0:653:661 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:0:654:674 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:0:658:385 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew1_c2.txt b/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..790ea3af --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:0:937:716 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:0:938:511 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:1:37:757 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:1:38:558 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:1:39:1 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:7:1:242:962 + Q7 finished at: 2022-4-2 11:7:1:246:31 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:1:346:986 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:1:347:972 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:1:352:740 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew2_c1.txt b/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..bfaa4189 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:1:659:903 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:1:660:575 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:1:759:930 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:1:760:835 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:7:1:862:482 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:1:875:929 +Q7 finished at: 2022-4-2 11:7:1:882:111 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:1:969:540 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:1:970:584 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:1:976:834 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew2_c2.txt b/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..d03b514a --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:2:316:777 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:2:317:489 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:2:416:794 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:2:417:842 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:7:2:517:142 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:2:726:2 + Q7-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:2:730:926 + Q7 finished at: 2022-4-2 11:7:2:746:22 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:2:746:999 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:2:757:586 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew2_committed.txt b/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..2bae8673 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:3:34:87 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:3:34:820 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:3:134:139 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:3:135:78 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:3:234:651 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:3:249:238 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:3:258:511 + Q6 finished at: 2022-4-2 11:7:3:272:783 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:3:273:696 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:3:284:229 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/wat_mda_step_wat_c1.txt b/index/result/myrocks_8.0.26/read-uncommitted/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..ea91f3ba --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:3:605:341 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:3:606:70 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:3:705:355 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:3:706:130 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:7:3:805:393 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:7:3:806:180 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 11:7:3:906:14 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:4:9:947 + Q11 finished at: 2022-4-2 11:7:4:13:179 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:4:117:98 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:7:4:812:768 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/wat_mda_step_wat_c2.txt b/index/result/myrocks_8.0.26/read-uncommitted/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..649ae5d0 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:5:90:470 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:5:91:122 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:5:190:593 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:5:191:426 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:5:290:443 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:7:5:490:951 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 11:7:5:591:81 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:5:697:777 + Q10 finished at: 2022-4-2 11:7:5:701:539 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:5:903:269 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:7:6:495:23 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/wat_sda_dirty_write_1abort.txt b/index/result/myrocks_8.0.26/read-uncommitted/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..ed1e38a0 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:52:235:675 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:52:236:413 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:52:335:668 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 11:6:52:436:26 +Q5 finished at: 2022-4-2 11:6:52:439:932 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:52:552:497 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:6:52:553:486 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:6:52:574:844 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:52:584:32 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/wat_sda_dirty_write_2commit.txt b/index/result/myrocks_8.0.26/read-uncommitted/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..df2a0f2c --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:52:884:520 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:52:885:253 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:52:984:484 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:6:53:89:339 +Q5 finished at: 2022-4-2 11:6:53:99:767 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:53:197:979 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:6:53:198:923 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:6:53:231:174 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:53:238:543 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/wat_sda_full_write.txt b/index/result/myrocks_8.0.26/read-uncommitted/wat_sda_full_write.txt new file mode 100644 index 00000000..89c0df77 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:53:505:379 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:53:506:95 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:53:605:361 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 11:6:53:705:765 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:6:53:717:820 +Q6 finished at: 2022-4-2 11:6:53:723:651 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:6:53:812:585 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:6:53:813:509 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:53:817:1 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/wat_sda_full_write_committed.txt b/index/result/myrocks_8.0.26/read-uncommitted/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..539563d6 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:54:94:0 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:54:94:722 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:54:194:31 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 11:6:54:294:558 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:6:54:299:695 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:54:304:13 + Q5 finished at: 2022-4-2 11:6:54:309:7 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:6:54:309:857 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:54:314:512 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/wat_sda_lost_self_update_committed.txt b/index/result/myrocks_8.0.26/read-uncommitted/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..fc044d0a --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:55:876:191 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:55:876:905 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:55:976:167 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:6:56:76:775 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:6:56:81:598 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:56:84:479 + Q5 finished at: 2022-4-2 11:6:56:87:975 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:6:56:88:779 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:56:94:707 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/wat_sda_lost_update_c1.txt b/index/result/myrocks_8.0.26/read-uncommitted/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..39a63d59 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:54:579:769 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:6:54:580:599 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:54:679:702 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:6:54:680:467 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 11:6:54:884:880 +Q6-T1 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:6:54:888:77 +Q6 finished at: 2022-4-2 11:6:54:891:220 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:6:54:892:233 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:54:896:414 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/read-uncommitted/wat_sda_lost_update_c2.txt b/index/result/myrocks_8.0.26/read-uncommitted/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..f0a2a2a7 --- /dev/null +++ b/index/result/myrocks_8.0.26/read-uncommitted/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:55:174:509 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:6:55:175:331 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:55:274:451 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:6:55:275:226 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 11:6:55:479:203 + Q6 finished at: 2022-4-2 11:6:55:489:484 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:55:588:52 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:6:55:589:203 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:55:595:188 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/repeatable-read/iat_dda_read_skew_committed.txt b/index/result/myrocks_8.0.26/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..baf23007 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:23:687:664 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:23:688:476 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:23:787:651 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:23:788:537 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:23:789:66 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:23:796:356 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:8:23:888:251 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:23:893:952 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:23:894:908 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:23:896:322 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/iat_dda_read_write_skew1_committed.txt b/index/result/myrocks_8.0.26/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..1118f91f --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:24:169:902 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:24:170:696 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:24:269:902 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:24:270:719 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:24:271:242 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:24:278:630 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:8:24:370:401 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:24:377:510 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:24:378:485 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:24:384:224 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew.txt b/index/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..8110e480 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:24:653:359 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:24:654:400 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:24:753:387 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:24:754:521 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:24:755:67 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:8:24:853:853 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:24:861:334 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:24:960:272 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:24:961:309 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:24:965:147 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew_committed.txt b/index/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..6f3415c1 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:26:270:912 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:26:271:754 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:26:370:803 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:26:371:680 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:26:372:219 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:26:382:665 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:8:26:471:280 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:26:480:593 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:26:481:412 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:26:485:157 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/index/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..bba08a36 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:25:242:402 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 11:8:25:243:304 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 11:8:25:243:839 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:8:25:342:382 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 11:8:25:343:289 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 11:8:25:343:827 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:25:351:14 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:25:449:377 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 11:8:25:450:316 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 11:8:25:450:949 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:25:452:616 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/index/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..b0de6e5f --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:25:738:167 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 11:8:25:739:87 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:25:838:154 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 11:8:25:839:274 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 11:8:25:840:36 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:25:845:391 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-2 11:8:25:938:738 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:25:947:795 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 11:8:25:948:733 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:25:952:592 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat.txt b/index/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..9a24db4a --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:26:759:773 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:8:26:760:782 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:26:859:708 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:8:26:860:760 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:8:26:959:679 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:8:26:960:773 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 11:8:27:60:176 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:8:27:160:129 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 11:8:27:260:238 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:8:27:376:617 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:8:27:472:39 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:27:566:69 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:8:27:567:234 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:27:571:183 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/index/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..7c11ec3d --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:31:419:476 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:31:420:433 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:31:519:426 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:8:31:520:226 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:31:529:296 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:31:619:509 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:8:31:620:645 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:8:31:621:156 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:31:639:314 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 11:8:31:720:285 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 11:8:31:729:189 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 11:8:31:730:288 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:8:31:735:404 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/index/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..532ae9c4 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:30:592:911 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:30:594:280 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:30:692:940 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:30:694:302 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:8:30:792:918 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 11:8:30:793:570 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:30:800:74 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:8:30:892:967 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 11:8:30:893:767 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:30:901:613 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 11:8:30:993:911 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:30:995:963 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 11:8:31:94:31 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 11:8:31:101:9 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 11:8:31:102:714 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 11:8:31:106:116 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/index/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..c3bbd353 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:27:849:40 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 11:8:27:850:75 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:27:949:40 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:8:27:950:251 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:8:28:49:43 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:8:28:50:294 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 11:8:28:149:439 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:8:28:249:409 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 11:8:28:349:613 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:8:28:458:138 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:8:28:556:222 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:28:655:321 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 11:8:28:656:379 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:28:660:142 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/index/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..ac70bf44 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:28:922:432 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:8:28:923:587 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:29:22:439 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 11:8:29:23:405 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:8:29:122:460 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 11:8:29:123:466 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 11:8:29:222:808 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 11:8:29:322:961 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 11:8:29:422:851 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:8:29:529:869 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:8:29:629:952 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:29:728:426 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:8:29:729:517 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:29:733:202 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/index/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..9c04ff7d --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:32:34:495 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:8:32:35:592 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 11:8:32:36:404 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:8:32:134:478 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 11:8:32:135:609 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 11:8:32:136:138 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:32:170:576 + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:8:32:234:410 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 11:8:32:235:477 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:8:32:236:332 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:8:32:238:721 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-2 11:8:32:334:814 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 11:8:32:343:572 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 11:8:32:344:703 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 11:8:32:349:705 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/index/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..7a9dc4cf --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:30:15:182 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 11:8:30:16:318 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:30:115:186 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 11:8:30:116:266 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:30:116:806 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:8:30:117:945 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-2 11:8:30:118:427 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:30:128:464 + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 11:8:30:215:129 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 11:8:30:216:500 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-2 11:8:30:217:151 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 11:8:30:218:97 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 11:8:30:218:698 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:30:230:166 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 11:8:30:315:960 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 11:8:30:319:917 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 11:8:30:321:37 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-2 11:8:30:324:659 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/iat_sda_lost_update_committed.txt b/index/result/myrocks_8.0.26/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..cd1fcc46 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:23:168:505 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:8:23:169:274 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:23:268:506 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:8:23:269:276 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:23:285:777 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 11:8:23:368:983 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:23:389:562 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:23:390:437 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:23:398:574 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/index/result/myrocks_8.0.26/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..71e1c9ef --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:22:646:65 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:22:646:989 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:22:745:988 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:8:22:746:731 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:22:758:336 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:8:22:846:568 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:22:848:352 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:22:849:109 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:22:853:464 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:22:863:612 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/rat_dda_double_write_skew1.txt b/index/result/myrocks_8.0.26/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..f34aee42 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:0:150:916 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:0:151:633 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:0:250:929 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:0:251:761 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:0:252:411 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:8:0:455:824 + Q7 finished at: 2022-4-2 11:8:0:461:678 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:0:555:556 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 11:8:0:556:468 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:0:560:157 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/rat_dda_double_write_skew1_committed.txt b/index/result/myrocks_8.0.26/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..5a042986 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:0:832:843 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:0:833:518 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:0:932:787 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:0:933:529 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:0:934:184 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:0:949:633 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-2 11:8:1:33:414 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:1:48:235 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 11:8:1:49:129 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:1:56:48 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/rat_dda_double_write_skew2.txt b/index/result/myrocks_8.0.26/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..3b77a80e --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:1:398:881 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:1:399:575 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:1:498:941 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:1:499:986 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:8:1:599:543 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:1:614:598 +Q7 finished at: 2022-4-2 11:8:1:619:160 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:1:719:948 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:1:720:987 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:1:738:548 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew.txt b/index/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..2b66f286 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:2:41:367 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:2:42:169 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:2:141:345 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:2:142:75 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:2:142:601 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:8:2:242:44 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:2:351:896 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:2:443:913 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:2:445:21 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:2:449:130 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew2.txt b/index/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..5ca94dc9 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:3:757:658 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:3:758:381 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:3:857:695 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:3:858:604 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:3:859:254 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:8:3:958:205 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:3:972:656 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:4:61:323 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:4:62:293 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:4:70:550 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew2_committed.txt b/index/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..bcd35616 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:4:353:507 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:4:354:183 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:4:453:478 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:4:454:262 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:4:454:846 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:4:461:920 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:8:4:554:32 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:4:562:247 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:4:563:300 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:4:568:518 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/index/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..92ec9ed2 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:2:734:491 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:8:2:735:299 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:2:834:537 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:2:835:319 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:2:835:818 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:2:846:950 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:8:2:935:222 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:2:939:915 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 11:8:2:940:779 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:2:945:921 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/index/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..1557f5b4 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:3:242:499 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:8:3:243:536 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:3:342:475 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 11:8:3:343:201 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 11:8:3:343:730 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:3:358:426 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:8:3:443:21 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:3:450:629 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 11:8:3:451:597 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:3:457:839 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/rat_dda_write_read_skew.txt b/index/result/myrocks_8.0.26/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..483264de --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:58:921:285 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:58:921:995 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:59:21:239 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:59:22:40 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:59:22:739 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:7:59:122:9 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:59:228:389 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:59:328:286 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:59:329:513 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:59:333:95 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/repeatable-read/rat_dda_write_read_skew_committed.txt b/index/result/myrocks_8.0.26/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..ac195807 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:59:606:47 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:59:606:811 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:59:705:980 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:59:706:704 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:59:707:360 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:59:726:76 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:7:59:806:614 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:59:816:11 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:59:816:984 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:59:828:409 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat.txt b/index/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..fa6ae70e --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:4:855:914 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:4:856:584 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:4:955:901 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:4:956:643 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:4:957:506 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:5:56:70 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:8:5:56:657 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 11:8:5:57:446 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-2 11:8:5:156:629 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:8:5:171:265 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:8:5:264:969 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:5:368:542 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:8:5:369:713 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:5:371:269 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat_long_fork.txt b/index/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..0c6ef2fe --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 11:8:5:658:904 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 11:8:5:660:162 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 11:8:5:758:735 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 11:8:5:759:445 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:8:5:858:757 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 11:8:5:860:133 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:8:5:861:204 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:8:5:958:781 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 11:8:5:959:571 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:8:6:59:815 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 11:8:6:166:525 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:6:265:635 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:8:6:363:72 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:6:366:630 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 11:8:6:368:22 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 11:8:6:371:479 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/index/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..5d42f494 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:6:636:389 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:6:637:146 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:6:736:331 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:6:737:145 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:8:6:737:946 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:6:836:318 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:8:6:837:111 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 11:8:6:837:959 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-2 11:8:6:937:92 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:8:6:952:547 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:8:7:49:608 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:7:152:54 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 11:8:7:153:146 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:7:159:516 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/index/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..616eac3a --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:7:441:962 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 11:8:7:442:786 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:7:541:938 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 11:8:7:542:683 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:8:7:543:646 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:7:641:952 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 11:8:7:642:665 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-2 11:8:7:643:547 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 11:8:7:742:845 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:8:7:765:328 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:8:7:869:975 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:7:953:130 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:8:7:954:349 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:7:963:553 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/repeatable-read/rat_sda_dirty_read.txt b/index/result/myrocks_8.0.26/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..cd5576b2 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:54:795:644 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:54:796:229 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:54:895:609 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:54:896:372 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 11:7:55:7:17 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:55:97:107 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:7:55:98:13 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:55:102:161 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/rat_sda_intermediate_read.txt b/index/result/myrocks_8.0.26/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..7726055a --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:56:88:794 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:56:89:550 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:56:188:725 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:56:189:695 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 11:7:56:289:362 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:56:393:229 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:56:495:117 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:7:56:495:996 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:56:499:374 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/rat_sda_intermediate_read_committed.txt b/index/result/myrocks_8.0.26/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..b2767375 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:56:804:15 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:56:804:757 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:56:904:22 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:56:904:981 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:56:909:455 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 11:7:57:4:633 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:57:11:351 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:7:57:12:299 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:57:16:87 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/rat_sda_lost_self_update.txt b/index/result/myrocks_8.0.26/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..457fe501 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:58:308:16 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:58:308:711 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:58:408:63 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:7:58:508:639 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:7:58:515:512 +Q6 finished at: 2022-4-2 11:7:58:518:958 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:58:616:757 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:58:617:774 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:58:624:312 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/rat_sda_non_repeatable_read.txt b/index/result/myrocks_8.0.26/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..a6995f26 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:55:409:106 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:55:409:951 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:55:509:137 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:55:509:836 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:7:55:609:746 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:55:729:635 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:55:815:23 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:55:816:27 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:55:820:112 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/index/result/myrocks_8.0.26/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..936f4a4a --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:57:303:267 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:7:57:304:120 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:57:403:261 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:57:404:27 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:57:411:627 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:7:57:503:835 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:57:512:634 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 11:7:57:513:480 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:57:519:190 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/index/result/myrocks_8.0.26/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..b1b7c4b0 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:57:790:398 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:7:57:791:382 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:57:890:425 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 11:7:57:891:98 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:57:910:782 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:7:57:991:122 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:57:996:139 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 11:7:57:996:887 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:58:8:775 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/wat_dda_double_write_skew2_committed.txt b/index/result/myrocks_8.0.26/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..62ee7a51 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:12:461:170 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:12:461:858 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:12:561:138 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:12:561:975 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:8:12:661:806 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:12:665:772 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:12:668:696 + Q6 finished at: 2022-4-2 11:8:12:671:497 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:12:672:490 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:12:675:636 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/wat_dda_full_write_skew_c1.txt b/index/result/myrocks_8.0.26/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..2c8699dc --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:12:939:854 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:12:940:699 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:13:39:860 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:13:40:723 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:13:140:459 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:13:254:185 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:13:754:308 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/repeatable-read/wat_dda_full_write_skew_c2.txt b/index/result/myrocks_8.0.26/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..6e96da1f --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:14:44:621 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:14:45:382 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:14:144:639 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:14:145:482 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:14:245:315 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:14:355:722 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:14:849:561 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/repeatable-read/wat_dda_full_write_skew_committed.txt b/index/result/myrocks_8.0.26/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..a5ddb856 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:15:141:817 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:15:142:532 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:15:241:853 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:15:242:691 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:15:342:522 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:15:350:395 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:8:16:46:891 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew1_c1.txt b/index/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..3aa4b768 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:16:347:968 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:16:348:976 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:16:447:924 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:16:448:748 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:16:449:238 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:8:16:660:912 +Q7-T1 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:16:665:500 +Q7 finished at: 2022-4-2 11:8:16:668:369 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:16:669:354 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:16:677:576 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew1_c2.txt b/index/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..7fd6f58e --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:16:933:637 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:16:934:538 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:17:33:605 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:17:34:318 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:17:34:798 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:8:17:237:514 + Q7 finished at: 2022-4-2 11:8:17:240:411 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:17:340:973 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:17:341:939 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:17:345:266 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew2_c1.txt b/index/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..b29cf0d5 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:17:636:967 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:17:637:683 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:17:736:975 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:17:737:926 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:8:17:837:404 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:17:842:984 +Q7 finished at: 2022-4-2 11:8:17:846:878 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:17:944:754 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:17:945:700 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:17:949:8 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew2_c2.txt b/index/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..ec0ab3e8 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:18:218:441 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:18:219:177 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:18:318:427 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:18:319:294 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:8:18:418:776 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:18:629:475 + Q7-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:18:639:311 + Q7 finished at: 2022-4-2 11:8:18:644:539 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:18:645:560 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:18:655:457 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew2_committed.txt b/index/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..605c760b --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:18:964:505 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:18:965:259 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:19:64:492 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:19:65:404 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:8:19:164:883 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:19:170:569 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:19:177:27 + Q6 finished at: 2022-4-2 11:8:19:180:421 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:19:181:387 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:19:184:978 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/repeatable-read/wat_mda_step_wat_c1.txt b/index/result/myrocks_8.0.26/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..d18d05f4 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:19:469:567 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:19:470:358 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:19:569:522 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:19:570:260 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:19:669:546 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:8:19:670:313 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 11:8:19:770:157 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:19:879:241 + Q11 finished at: 2022-4-2 11:8:19:882:615 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:19:975:603 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:8:20:674:333 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/repeatable-read/wat_mda_step_wat_c2.txt b/index/result/myrocks_8.0.26/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..076371a2 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:20:945:495 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:20:946:330 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:21:45:431 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:21:46:318 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:8:21:145:355 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:8:21:345:971 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 11:8:21:446:67 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:21:552:811 + Q10 finished at: 2022-4-2 11:8:21:559:762 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:21:752:962 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:8:22:353:623 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/repeatable-read/wat_sda_dirty_write_1abort.txt b/index/result/myrocks_8.0.26/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..827df83a --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:8:297:488 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:8:298:158 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:8:397:439 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 11:8:8:497:870 +Q5 finished at: 2022-4-2 11:8:8:501:405 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:8:608:716 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:8:8:609:598 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:8:8:634:669 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:8:641:837 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/wat_sda_dirty_write_2commit.txt b/index/result/myrocks_8.0.26/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..84a3b9eb --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:8:893:549 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:8:894:358 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:8:993:492 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:9:105:703 +Q5 finished at: 2022-4-2 11:8:9:111:128 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:9:202:872 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:8:9:203:773 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:8:9:237:34 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:9:242:779 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/wat_sda_full_write.txt b/index/result/myrocks_8.0.26/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..55c4dfc5 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:9:509:970 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:9:510:696 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:9:609:909 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 11:8:9:710:416 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:9:717:149 +Q6 finished at: 2022-4-2 11:8:9:720:554 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:9:815:216 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:8:9:816:94 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:9:822:228 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/wat_sda_full_write_committed.txt b/index/result/myrocks_8.0.26/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..885ad8e6 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:10:81:468 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:10:82:237 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:10:181:465 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 11:8:10:281:977 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:10:286:200 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:10:289:28 + Q5 finished at: 2022-4-2 11:8:10:292:532 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:8:10:293:504 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:10:297:85 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/wat_sda_lost_self_update_committed.txt b/index/result/myrocks_8.0.26/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..a725a706 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:11:918:75 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:11:918:796 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:12:18:19 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:8:12:118:723 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:12:149:10 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:12:158:44 + Q5 finished at: 2022-4-2 11:8:12:163:79 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:12:163:981 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:12:168:700 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/repeatable-read/wat_sda_lost_update_c1.txt b/index/result/myrocks_8.0.26/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..f47112f0 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:10:555:956 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:8:10:556:889 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:10:655:943 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:8:10:656:718 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 11:8:10:860:699 +Q6-T1 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:10:865:226 +Q6 finished at: 2022-4-2 11:8:10:871:876 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:10:872:824 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:10:886:631 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/repeatable-read/wat_sda_lost_update_c2.txt b/index/result/myrocks_8.0.26/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..3dc5f513 --- /dev/null +++ b/index/result/myrocks_8.0.26/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:11:226:913 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:8:11:227:789 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:11:326:820 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:8:11:327:614 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 11:8:11:531:50 + Q6 finished at: 2022-4-2 11:8:11:534:686 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:11:639:665 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:11:640:755 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:11:644:334 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/myrocks_8.0.26/result_summary/read-committed_total-result.txt b/index/result/myrocks_8.0.26/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..38745346 --- /dev/null +++ b/index/result/myrocks_8.0.26/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/index/result/myrocks_8.0.26/result_summary/read-uncommitted_total-result.txt b/index/result/myrocks_8.0.26/result_summary/read-uncommitted_total-result.txt new file mode 100644 index 00000000..f709ccda --- /dev/null +++ b/index/result/myrocks_8.0.26/result_summary/read-uncommitted_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Anomaly + +rat_sda_non_repeatable_read: Anomaly + +rat_sda_intermediate_read: Anomaly + +rat_sda_intermediate_read_committed: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Anomaly + +rat_dda_double_write_skew1_committed: Anomaly + +rat_dda_double_write_skew2: Anomaly + +rat_dda_read_skew: Anomaly + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Anomaly + +rat_dda_read_skew2_committed: Anomaly + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Anomaly + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Anomaly + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/index/result/myrocks_8.0.26/result_summary/repeatable-read_total-result.txt b/index/result/myrocks_8.0.26/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..ef182286 --- /dev/null +++ b/index/result/myrocks_8.0.26/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/index/result/myrocks_8.0.26/result_summary/serializable_total-result.txt b/index/result/myrocks_8.0.26/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..b5b686cf --- /dev/null +++ b/index/result/myrocks_8.0.26/result_summary/serializable_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Rollback + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Rollback + +rat_dda_read_skew2_committed: Rollback + +rat_mda_step_rat: Rollback + +rat_mda_step_rat_long_fork: Rollback + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Rollback + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Rollback + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +iat_mda_step_iat_predicate_based_delete: Rollback + +iat_mda_step_iat_predicate_based_insert: Rollback + +iat_mda_step_iat_uname_anomaly: Rollback + +iat_mda_step_iat_cross_phenomenon: Rollback + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Rollback + diff --git a/index/result/myrocks_8.0.26/serializable/iat_dda_read_skew_committed.txt b/index/result/myrocks_8.0.26/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..bad23c9a --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:11:737:443 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:11:738:336 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:11:837:411 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:9:11:838:72 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:11:937:920 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:9:11:946:111 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:9:12:638:63 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/iat_dda_read_write_skew1_committed.txt b/index/result/myrocks_8.0.26/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..378f6589 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:12:938:43 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:12:938:902 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:13:37:977 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:9:13:38:753 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:13:138:510 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:9:13:164:130 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:9:13:838:632 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/iat_dda_write_skew.txt b/index/result/myrocks_8.0.26/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..24ab6a11 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/iat_dda_write_skew.txt @@ -0,0 +1,49 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:14:153:583 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:14:156:600 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:14:253:612 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:9:14:254:503 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:14:354:110 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:9:14:462:209 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:9:14:954:214 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/iat_dda_write_skew_committed.txt b/index/result/myrocks_8.0.26/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..9d18f0f7 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,49 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:16:931:83 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:16:931:971 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:17:31:40 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:9:17:31:874 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:17:131:541 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:9:17:148:216 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:9:17:831:643 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/index/result/myrocks_8.0.26/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..67c11f47 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:15:243:702 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 11:9:15:244:600 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 11:9:15:245:156 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:9:15:343:706 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute opt: 'COMMIT'; + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 11:9:15:448:636 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 11:9:15:449:176 + Q7-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:9:15:454:763 + Q7 finished at: 2022-4-2 11:9:15:458:445 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 11:9:15:459:512 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 11:9:15:460:145 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:9:15:467:68 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/index/result/myrocks_8.0.26/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..5a4957d0 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,49 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:15:751:986 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 11:9:15:752:955 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:15:851:984 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 11:9:15:853:12 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q5 finished at: 2022-4-2 11:9:15:952:625 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:9:15:963:630 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:9:16:652:723 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/iat_mda_step_iat.txt b/index/result/myrocks_8.0.26/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..7d8f3d27 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/iat_mda_step_iat.txt @@ -0,0 +1,89 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:18:106:946 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:9:18:107:880 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:18:206:931 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:9:18:207:945 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:9:18:307:86 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:9:18:308:142 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 finished at: 2022-4-2 11:9:18:607:562 + Q11-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:9:18:812:697 +Q10-T1 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:9:18:815:821 +Q10 finished at: 2022-4-2 11:9:18:816:947 + Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q9 failed at: 2022-4-2 11:9:19:507:694 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/index/result/myrocks_8.0.26/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..b24bcbee --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:26:604:635 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:26:605:532 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:26:704:638 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:9:26:804:616 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 11:9:26:905:298 +Q11-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:9:26:912:554 +Q11 finished at: 2022-4-2 11:9:26:912:569 + Q5-T2 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:9:26:916:505 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:9:26:917:79 + Q9-T3 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:9:26:930:77 + Q9 finished at: 2022-4-2 11:9:26:933:672 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 11:9:26:935:16 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:9:26:939:750 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/serializable/iat_mda_step_iat_cross_phenomenon.txt b/index/result/myrocks_8.0.26/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..a2814e73 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,171 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:25:227:940 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:25:229:401 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:25:327:980 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:9:25:329:248 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:9:25:427:967 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:9:25:527:983 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 11:9:25:729:339 + Q12-T2 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:9:25:734:489 + Q12 finished at: 2022-4-2 11:9:25:734:500 + Q10-T4 execute opt: 'COMMIT'; + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 11:9:25:738:956 +Q14-T1 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:9:25:740:974 +Q14 finished at: 2022-4-2 11:9:25:743:747 + Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q6 failed at: 2022-4-2 11:9:26:328:789 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/iat_mda_step_iat_predicate_based_delete.txt b/index/result/myrocks_8.0.26/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..142ac590 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,89 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:19:796:135 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 11:9:19:797:162 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:19:896:73 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:9:19:897:102 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:9:19:996:82 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:9:19:997:115 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q8 finished at: 2022-4-2 11:9:20:296:678 + Q11-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:9:20:498:339 +Q10-T1 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:9:20:503:938 +Q10 finished at: 2022-4-2 11:9:20:506:922 + Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q9 failed at: 2022-4-2 11:9:21:196:777 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/iat_mda_step_iat_predicate_based_insert.txt b/index/result/myrocks_8.0.26/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..003ea8dd --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,85 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:21:476:226 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:9:21:477:387 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:21:576:130 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 11:9:21:577:237 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:9:21:676:155 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 11:9:21:677:293 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q7 finished at: 2022-4-2 11:9:21:976:648 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:9:22:92:158 + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q8 failed at: 2022-4-2 11:9:22:676:749 + Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q9 failed at: 2022-4-2 11:9:22:876:945 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/index/result/myrocks_8.0.26/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..7215878b --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,120 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:27:213:626 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:9:27:214:640 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 11:9:27:215:435 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:9:27:313:591 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 11:9:27:314:610 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:9:27:413:596 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 11:9:27:414:654 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q6 finished at: 2022-4-2 11:9:27:514:95 + Q7-T2 execute opt: 'COMMIT'; + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:9:27:520:673 + Q11-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:9:27:527:321 + Q11 finished at: 2022-4-2 11:9:27:527:333 +Q12 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q12 failed at: 2022-4-2 11:9:28:714:226 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/iat_mda_step_iat_uname_anomaly.txt b/index/result/myrocks_8.0.26/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..348a3efa --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,127 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:23:154:163 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 11:9:23:155:280 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:23:254:129 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 11:9:23:255:249 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:9:23:255:804 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:9:23:256:543 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 11:9:23:354:132 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 11:9:23:355:166 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-2 11:9:23:355:669 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:9:23:454:599 + Q8-T2 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 11:9:23:463:522 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 11:9:23:464:104 + Q14-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:9:23:466:51 + Q14 finished at: 2022-4-2 11:9:23:476:121 +Q15 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q15 failed at: 2022-4-2 11:9:24:954:752 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/iat_sda_lost_update_committed.txt b/index/result/myrocks_8.0.26/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..ec4c2313 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:10:870:756 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:9:10:871:607 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:10:970:743 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 11:9:11:71:233 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:9:11:81:861 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q4 failed at: 2022-4-2 11:9:11:471:412 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/iat_sda_non_repeatable_read_committed.txt b/index/result/myrocks_8.0.26/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..1da43254 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:10:352:253 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:10:353:53 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:10:452:262 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:9:10:552:832 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:9:10:554:683 + Q4 finished at: 2022-4-2 11:9:10:554:744 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:9:10:564:613 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:9:10:565:652 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:9:10:572:350 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:9:10:580:415 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/serializable/rat_dda_double_write_skew1.txt b/index/result/myrocks_8.0.26/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..40e821f3 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:39:207:984 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:39:208:730 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:39:308:25 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:39:308:865 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:39:408:785 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:39:514:910 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:40:12:340 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/rat_dda_double_write_skew1_committed.txt b/index/result/myrocks_8.0.26/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..e48407e8 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:40:304:963 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:40:305:788 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:40:404:977 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:40:405:813 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:40:505:694 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:40:514:513 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:8:41:210:37 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/rat_dda_double_write_skew2.txt b/index/result/myrocks_8.0.26/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..608342f0 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:41:481:395 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:41:482:71 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:41:581:330 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:41:582:78 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:41:681:961 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:41:792:168 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:42:286:404 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/rat_dda_read_skew.txt b/index/result/myrocks_8.0.26/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..7561b934 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/rat_dda_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:42:561:618 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:42:562:453 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:42:661:676 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:42:662:469 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:42:762:134 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:42:868:639 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:43:362:229 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/rat_dda_read_skew2.txt b/index/result/myrocks_8.0.26/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..2a2eacdf --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:44:605:590 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:44:606:240 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:44:705:549 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:44:706:385 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:8:44:806:86 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:44:813:190 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-2 11:8:45:306:229 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/rat_dda_read_skew2_committed.txt b/index/result/myrocks_8.0.26/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..ef32048c --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:45:589:624 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:45:590:408 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:45:689:648 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:45:690:600 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:8:45:790:285 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:45:801:187 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-2 11:8:46:290:388 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/rat_dda_read_skew_predicate_based_delete.txt b/index/result/myrocks_8.0.26/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..d08eb3e1 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:43:647:367 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:8:43:648:366 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:43:747:283 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:8:43:848:110 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:43:853:104 + Q4 finished at: 2022-4-2 11:8:43:853:144 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:43:853:719 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:43:859:378 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 11:8:43:860:174 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:43:863:328 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/serializable/rat_dda_read_skew_predicate_based_insert.txt b/index/result/myrocks_8.0.26/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..85da2bdd --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:44:117:438 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:8:44:118:492 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:44:217:479 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:8:44:318:157 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:44:322:101 + Q4 finished at: 2022-4-2 11:8:44:322:114 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 11:8:44:322:760 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:44:334:527 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 11:8:44:337:601 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:44:340:892 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/serializable/rat_dda_write_read_skew.txt b/index/result/myrocks_8.0.26/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..a6fdd2f3 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:36:912:804 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:36:913:546 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:37:12:817 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:37:13:656 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:37:113:552 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:37:228:234 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:37:722:667 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/rat_dda_write_read_skew_committed.txt b/index/result/myrocks_8.0.26/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..8e116ac6 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:37:993:992 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:37:994:738 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:38:93:976 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:38:94:780 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:38:194:837 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:38:201:624 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:8:38:898:312 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/rat_mda_step_rat.txt b/index/result/myrocks_8.0.26/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..9b91f9e7 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/rat_mda_step_rat.txt @@ -0,0 +1,74 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:46:568:760 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:46:569:522 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:46:668:673 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:46:669:388 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:46:768:969 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:8:46:769:581 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:46:869:585 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 11:8:46:973:894 + Q11 finished at: 2022-4-2 11:8:46:976:624 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:47:78:651 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:8:47:774:625 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/rat_mda_step_rat_long_fork.txt b/index/result/myrocks_8.0.26/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..2dc7e42c --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,169 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 11:8:48:110:275 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 11:8:48:111:812 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 11:8:48:209:958 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:8:48:310:6 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 11:8:48:311:477 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:8:48:410:39 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:8:48:511:238 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:8:48:812:305 + Q9 finished at: 2022-4-2 11:8:48:812:388 + Q12-T2 execute opt: 'COMMIT'; + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:8:48:818:376 + Q12 finished at: 2022-4-2 11:8:48:823:676 +Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q4 failed at: 2022-4-2 11:8:48:910:718 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/rat_mda_step_rat_predicate_based_delete.txt b/index/result/myrocks_8.0.26/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..58b37a81 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,74 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:49:238:772 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:49:239:589 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:49:338:734 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:49:339:545 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:49:438:741 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:8:49:439:478 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:8:49:539:967 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 11:8:49:644:286 + Q11 finished at: 2022-4-2 11:8:49:646:966 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:49:754:66 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:8:50:444:511 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/rat_mda_step_rat_predicate_based_insert.txt b/index/result/myrocks_8.0.26/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..0317bf9e --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,71 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:50:712:664 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 11:8:50:713:454 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:50:812:676 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 11:8:50:813:620 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:50:912:628 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 11:8:50:913:279 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:8:51:13:540 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + (4) expected_result: + (,) + *(5) expected_result: + (1,) + (6) expected_result: + (,) + + Q8 finished at: 2022-4-2 11:8:51:118:665 + Q11 finished at: 2022-4-2 11:8:51:122:535 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:51:223:163 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:8:51:924:212 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/rat_sda_dirty_read.txt b/index/result/myrocks_8.0.26/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..547b1b58 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:32:701:628 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:32:702:212 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:32:801:554 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:8:32:901:921 +Q5 finished at: 2022-4-2 11:8:32:905:59 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:33:8:155 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:8:33:9:194 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:33:16:916 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/serializable/rat_sda_intermediate_read.txt b/index/result/myrocks_8.0.26/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..aa2d252c --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:34:55:775 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:34:56:644 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:34:155:779 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 11:8:34:256:292 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:8:34:459:853 + Q6-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:34:462:664 + Q6 finished at: 2022-4-2 11:8:34:464:656 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:8:34:465:575 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:34:469:503 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/serializable/rat_sda_intermediate_read_committed.txt b/index/result/myrocks_8.0.26/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..fe1acea6 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:34:741:32 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:34:742:4 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:34:840:962 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 11:8:34:941:558 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:8:34:949:206 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:34:952:936 +Q7 finished at: 2022-4-2 11:8:34:955:483 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:8:34:956:324 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:34:963:44 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/serializable/rat_sda_lost_self_update.txt b/index/result/myrocks_8.0.26/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..cce36b90 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:36:327:698 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:36:328:546 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:36:427:656 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:8:36:528:279 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:36:533:617 +Q6 finished at: 2022-4-2 11:8:36:539:850 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:36:632:789 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:36:633:618 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:36:637:33 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/serializable/rat_sda_non_repeatable_read.txt b/index/result/myrocks_8.0.26/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..c38460ec --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:33:333:995 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:33:334:751 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:33:434:23 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:8:33:534:624 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:33:745:440 + Q4 finished at: 2022-4-2 11:8:33:745:462 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:33:757:815 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:33:758:772 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:33:762:322 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/index/result/myrocks_8.0.26/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..37bfe9df --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:35:310:795 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:8:35:311:793 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:35:410:746 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:8:35:511:467 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:35:517:229 + Q4 finished at: 2022-4-2 11:8:35:517:287 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:35:527:236 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 11:8:35:531:657 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:35:536:372 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/index/result/myrocks_8.0.26/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..a7a567a7 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:35:813:337 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:8:35:814:487 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:35:913:217 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:8:36:13:960 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:36:18:997 + Q4 finished at: 2022-4-2 11:8:36:19:20 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:36:35:166 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 11:8:36:36:54 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:36:39:980 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/serializable/wat_dda_double_write_skew2_committed.txt b/index/result/myrocks_8.0.26/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..7235db7f --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:56:887:814 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:56:888:502 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:56:987:890 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:56:988:663 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:57:88:374 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:57:94:988 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:8:57:792:377 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/wat_dda_full_write_skew_c1.txt b/index/result/myrocks_8.0.26/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..60f3d62c --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:58:81:764 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:58:82:449 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:58:181:754 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:58:182:480 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:58:282:342 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:58:393:737 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:58:891:565 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/wat_dda_full_write_skew_c2.txt b/index/result/myrocks_8.0.26/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..22b166fc --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:59:186:271 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:59:187:119 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:59:286:197 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:59:286:954 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:59:386:840 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:59:494:87 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:59:990:461 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/wat_dda_full_write_skew_committed.txt b/index/result/myrocks_8.0.26/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..fabca386 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:0:289:519 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:9:0:290:298 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:0:389:491 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:9:0:390:347 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:0:489:963 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:9:0:497:440 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:9:1:194:396 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew1_c1.txt b/index/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..64fe36f1 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:1:470:903 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:1:471:725 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:1:570:924 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:9:1:571:740 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:1:671:414 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:9:1:781:875 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:9:2:271:533 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew1_c2.txt b/index/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..3d3edfff --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:2:587:34 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:2:587:927 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:2:686:989 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:9:2:687:772 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:2:787:604 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:9:2:898:162 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:9:3:387:725 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew2_c1.txt b/index/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..1afc2bdf --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:3:713:916 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:9:3:714:673 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:3:813:916 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:9:3:814:774 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:3:914:418 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:9:4:20:941 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:9:4:518:303 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew2_c2.txt b/index/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..27602adb --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:4:827:884 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:9:4:828:589 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:4:927:893 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:9:4:928:725 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:5:28:452 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:9:5:135:659 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:9:5:634:279 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew2_committed.txt b/index/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..adc7c8b5 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:5:915:939 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:9:5:916:633 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:6:15:937 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:9:6:16:832 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:6:116:587 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:9:6:127:199 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:9:6:823:549 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/wat_mda_step_wat_c1.txt b/index/result/myrocks_8.0.26/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..1692e477 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:7:127:479 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:9:7:128:209 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:7:227:484 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:9:7:228:229 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:9:7:327:569 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:9:7:328:398 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 11:9:7:428:94 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:9:7:532:822 + Q11 finished at: 2022-4-2 11:9:7:536:483 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:9:7:637:531 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:9:8:333:941 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/wat_mda_step_wat_c2.txt b/index/result/myrocks_8.0.26/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..57b438ca --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:8:619:204 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:9:8:620:49 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:8:719:139 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:9:8:719:884 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:9:8:819:134 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:9:9:19:748 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 11:9:9:119:788 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:9:9:224:749 + Q10 finished at: 2022-4-2 11:9:9:229:470 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:9:9:429:526 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:9:10:25:884 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/wat_sda_dirty_write_1abort.txt b/index/result/myrocks_8.0.26/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..886672f9 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:52:243:958 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:52:244:730 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:52:343:879 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 11:8:52:444:310 +Q5 finished at: 2022-4-2 11:8:52:447:761 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:52:554:450 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:8:52:555:312 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:8:52:589:809 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:52:591:629 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/serializable/wat_sda_dirty_write_2commit.txt b/index/result/myrocks_8.0.26/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..3c006f17 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:52:900:979 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:52:901:697 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:53:0:989 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:53:102:708 +Q5 finished at: 2022-4-2 11:8:53:108:891 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:53:210:469 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:8:53:211:370 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:8:53:226:450 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:53:229:620 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/serializable/wat_sda_full_write.txt b/index/result/myrocks_8.0.26/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..a2b56b9a --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:53:474:162 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:53:474:866 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:53:574:67 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 11:8:53:674:538 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:53:678:892 +Q6 finished at: 2022-4-2 11:8:53:681:788 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:53:780:627 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:8:53:781:509 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:53:783:255 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/serializable/wat_sda_full_write_committed.txt b/index/result/myrocks_8.0.26/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..46c245e2 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:54:61:703 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:54:62:428 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:54:161:689 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 11:8:54:262:246 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:54:264:743 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:54:280:573 + Q5 finished at: 2022-4-2 11:8:54:290:421 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:8:54:291:460 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:54:299:181 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/serializable/wat_sda_lost_self_update_committed.txt b/index/result/myrocks_8.0.26/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..78a80ad3 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:56:371:131 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:56:371:864 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:56:471:108 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:8:56:571:788 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:56:575:665 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:56:579:220 + Q5 finished at: 2022-4-2 11:8:56:582:863 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:56:583:784 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:56:587:658 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/myrocks_8.0.26/serializable/wat_sda_lost_update_c1.txt b/index/result/myrocks_8.0.26/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..5ed58e0d --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:54:586:468 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:8:54:587:416 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:54:686:443 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-2 11:8:54:787:19 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:8:54:795:3 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q4 failed at: 2022-4-2 11:8:55:187:138 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/myrocks_8.0.26/serializable/wat_sda_lost_update_c2.txt b/index/result/myrocks_8.0.26/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..7caf2d21 --- /dev/null +++ b/index/result/myrocks_8.0.26/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,39 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:55:479:84 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:8:55:479:866 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:55:579:107 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-2 11:8:55:679:657 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:55:892:492 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q4 failed at: 2022-4-2 11:8:56:79:839 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/read-committed/iat_dda_read_skew_committed.txt b/index/result/mysql_8.0.20/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..30b7ba41 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:43:774:210 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:43:775:942 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:43:874:270 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:43:876:139 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:43:877:710 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:43:884:333 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:40:43:975:186 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:43:976:170 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:43:977:952 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:43:978:863 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/iat_dda_read_write_skew1_committed.txt b/index/result/mysql_8.0.20/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..a8d9b2af --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:44:255:190 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:44:256:724 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:44:359:510 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:44:361:141 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:44:362:538 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:44:369:54 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:44:456:190 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:44:462:330 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:44:464:513 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:44:465:340 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/iat_dda_write_skew.txt b/index/result/mysql_8.0.20/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..6fe72c8c --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:44:741:392 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:44:743:32 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:44:841:455 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:44:843:257 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:44:844:754 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:40:44:942:346 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:44:948:830 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:45:47:173 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:45:49:581 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:45:50:661 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/iat_dda_write_skew_committed.txt b/index/result/mysql_8.0.20/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..f7c38655 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:46:347:661 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:46:349:326 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:46:447:697 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:46:449:384 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:46:450:863 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:46:457:488 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:46:548:649 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:46:554:913 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:46:557:277 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:46:558:154 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/index/result/mysql_8.0.20/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..3bd95d86 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:45:368:754 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 17:40:45:370:644 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 17:40:45:372:228 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:40:45:468:758 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 17:40:45:470:714 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 17:40:45:472:206 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:45:477:882 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:45:576:86 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 17:40:45:578:817 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 17:40:45:580:513 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:45:581:452 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/index/result/mysql_8.0.20/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..9bf6680c --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:45:859:577 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 17:40:45:861:800 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:45:959:567 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 17:40:45:962:1 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 17:40:45:964:421 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:45:971:354 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 17:40:46:61:501 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:46:70:6 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 17:40:46:72:377 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:46:73:483 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/iat_mda_step_iat.txt b/index/result/mysql_8.0.20/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..ce340f85 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:46:823:250 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:40:46:825:386 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:46:924:79 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:46:926:475 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:47:23:157 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:40:47:25:321 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:40:47:124:498 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:40:47:225:93 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:40:47:328:444 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:47:429:676 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:47:534:153 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:47:629:338 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:40:47:631:778 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:47:632:822 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/index/result/mysql_8.0.20/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..061cc64c --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:51:440:451 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:51:442:366 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:51:540:516 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:51:542:188 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:51:549:325 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:40:51:640:648 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:40:51:642:881 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:40:51:644:462 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:51:651:352 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 17:40:51:741:901 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:40:51:742:976 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 17:40:51:745:336 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:40:51:746:373 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/index/result/mysql_8.0.20/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..8254711a --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:50:639:649 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:50:642:214 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:50:739:664 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:50:742:355 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:50:839:913 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 17:40:50:841:825 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:50:849:36 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:40:50:939:808 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:40:50:941:694 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:50:949:265 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 17:40:51:41:868 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:51:42:968 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 17:40:51:141:815 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 17:40:51:143:40 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:40:51:146:203 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:40:51:147:268 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/index/result/mysql_8.0.20/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..4b516abf --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:47:910:455 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 17:40:47:912:590 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:48:13:476 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:48:15:588 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:48:110:349 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:40:48:112:487 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:40:48:213:587 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:40:48:311:428 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:40:48:411:619 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:48:516:885 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:48:618:352 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:48:716:709 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:40:48:719:137 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:48:720:923 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/index/result/mysql_8.0.20/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..42203e93 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:48:981:47 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:40:48:984:14 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:49:81:695 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 17:40:49:83:908 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:49:181:107 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 17:40:49:183:411 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 17:40:49:282:139 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 17:40:49:388:35 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 17:40:49:481:900 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:49:586:607 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:49:686:966 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:49:786:958 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:40:49:789:469 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:49:790:394 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/index/result/mysql_8.0.20/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..e45e5ad9 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:52:22:706 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:40:52:24:614 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 17:40:52:26:414 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:40:52:122:733 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 17:40:52:127:285 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 17:40:52:129:3 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:52:147:64 + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:40:52:222:792 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 17:40:52:225:83 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:40:52:227:106 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:52:228:284 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 17:40:52:323:534 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 17:40:52:332:309 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 17:40:52:336:713 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 17:40:52:337:850 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/iat_mda_step_iat_uname_anomaly.txt b/index/result/mysql_8.0.20/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..65e52e7d --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:50:61:804 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 17:40:50:63:844 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:50:163:673 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 17:40:50:166:140 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:50:167:884 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:40:50:170:399 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 17:40:50:172:371 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:50:180:15 + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-1 17:40:50:261:731 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 17:40:50:263:895 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 17:40:50:265:341 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 17:40:50:267:98 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 17:40:50:268:542 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:50:279:329 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 17:40:50:363:41 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 17:40:50:364:28 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 17:40:50:366:651 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 17:40:50:367:822 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/iat_sda_lost_update_committed.txt b/index/result/mysql_8.0.20/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..374cd63d --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:43:301:803 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:40:43:303:442 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:43:401:817 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:43:403:744 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:43:410:98 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 17:40:43:502:605 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:43:510:741 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:43:512:448 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:43:513:814 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/iat_sda_non_repeatable_read_committed.txt b/index/result/mysql_8.0.20/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..20b4032f --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:42:834:341 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:42:836:254 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:42:934:300 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:42:936:87 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:42:942:910 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:40:43:35:191 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:43:36:163 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:43:37:866 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:43:38:779 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:43:39:599 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/rat_dda_double_write_skew1.txt b/index/result/mysql_8.0.20/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..fe17017a --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:21:57:517 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:21:59:574 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:21:157:412 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:21:159:216 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:21:160:933 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:21:363:529 +Q6 finished at: 2022-4-1 17:40:21:363:660 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:21:463:393 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:40:21:465:417 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:21:467:45 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-committed/rat_dda_double_write_skew1_committed.txt b/index/result/mysql_8.0.20/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..d76c40c1 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:21:743:975 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:21:745:953 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:21:843:820 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:21:845:479 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:21:846:952 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:21:853:340 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:21:944:817 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:21:952:284 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:40:21:955:352 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:21:956:178 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-committed/rat_dda_double_write_skew2.txt b/index/result/mysql_8.0.20/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..a8a49597 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:22:227:920 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:22:229:458 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:22:327:949 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:22:329:679 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:40:22:430:129 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:22:436:666 + Q5 finished at: 2022-4-1 17:40:22:436:734 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:22:537:263 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:22:539:144 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:22:539:916 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-committed/rat_dda_read_skew.txt b/index/result/mysql_8.0.20/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..e0a2e357 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:22:805:890 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:22:807:577 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:22:905:831 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:22:907:532 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:22:908:961 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:40:23:6:990 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:23:112:721 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:23:206:196 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:23:208:129 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:23:208:944 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-committed/rat_dda_read_skew2.txt b/index/result/mysql_8.0.20/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..ec0dcf9c --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:24:422:541 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:24:424:342 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:24:522:542 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:24:524:529 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:24:526:226 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:40:24:627:580 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:24:634:355 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:24:723:88 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:24:725:135 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:24:726:70 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-committed/rat_dda_read_skew2_committed.txt b/index/result/mysql_8.0.20/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..6a34338b --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:25:2:94 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:25:3:816 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:25:102:162 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:25:104:311 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:25:105:936 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:25:107:65 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:25:202:890 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:25:209:14 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:25:211:466 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:25:212:262 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/index/result/mysql_8.0.20/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..c733a9bf --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:23:474:410 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:40:23:476:291 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:23:575:520 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:23:577:167 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:23:578:440 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:23:585:79 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:40:23:675:515 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:23:676:471 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 17:40:23:678:347 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:23:679:173 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/index/result/mysql_8.0.20/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..72d206be --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:23:942:580 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:40:23:945:195 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:24:43:434 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 17:40:24:45:96 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 17:40:24:46:410 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:24:58:843 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:40:24:143:830 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:24:144:886 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 17:40:24:146:898 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:24:147:760 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/rat_dda_write_read_skew.txt b/index/result/mysql_8.0.20/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..3f9f30a5 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:19:891:1 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:19:892:678 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:19:991:5 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:19:992:753 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:19:994:310 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:40:20:92:495 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:20:197:561 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:20:297:390 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:20:299:473 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:20:300:262 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/rat_dda_write_read_skew_committed.txt b/index/result/mysql_8.0.20/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..41f6b904 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:20:577:791 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:20:579:499 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:20:679:573 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:20:681:313 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:20:682:831 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:20:688:686 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:40:20:780:421 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:20:786:799 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:20:788:817 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:20:789:638 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-committed/rat_mda_step_rat.txt b/index/result/mysql_8.0.20/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..7f607c36 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:25:478:13 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:25:480:35 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:25:577:913 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:25:579:764 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:25:581:773 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:40:25:679:779 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:40:25:681:504 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 17:40:25:683:454 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 17:40:25:779:383 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:25:787:218 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:25:883:744 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:25:983:901 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:40:25:987:432 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:25:988:388 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/rat_mda_step_rat_long_fork.txt b/index/result/mysql_8.0.20/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..c723348c --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-1 17:40:26:255:828 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 17:40:26:258:487 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-1 17:40:26:355:730 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 17:40:26:357:463 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:26:455:632 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 17:40:26:458:531 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:40:26:461:61 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:40:26:555:584 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:40:26:557:408 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:40:26:658:687 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:40:26:765:797 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:26:861:590 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:40:26:956:62 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:26:957:150 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:40:26:959:667 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:40:26:960:558 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/index/result/mysql_8.0.20/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..51f42de0 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:27:229:291 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:27:230:812 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:27:329:286 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:27:330:988 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:40:27:332:963 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:40:27:429:344 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:40:27:430:936 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 17:40:27:433:751 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:40:27:532:872 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:27:539:179 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:27:637:598 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:27:737:685 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:40:27:739:851 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:27:741:305 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/index/result/mysql_8.0.20/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..298b52a7 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:28:16:120 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 17:40:28:18:499 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:28:115:950 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 17:40:28:117:544 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:40:28:121:428 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:40:28:216:31 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 17:40:28:217:629 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 17:40:28:219:489 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:40:28:317:496 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:28:323:109 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:28:421:825 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:28:524:273 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:40:28:527:990 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:28:529:95 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/rat_sda_dirty_read.txt b/index/result/mysql_8.0.20/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..1986c857 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:15:890:980 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:15:892:589 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:15:993:861 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:15:995:742 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:40:16:94:495 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:16:190:828 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:40:16:192:564 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:16:193:381 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-committed/rat_sda_intermediate_read.txt b/index/result/mysql_8.0.20/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..a7e8469b --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:17:154:927 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:17:156:654 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:17:254:999 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:17:256:983 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 17:40:17:356:724 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:17:455:302 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:17:566:305 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:40:17:567:993 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:17:569:950 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-committed/rat_sda_intermediate_read_committed.txt b/index/result/mysql_8.0.20/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..0cf5e574 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:17:848:79 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:17:849:656 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:17:948:99 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:17:949:820 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:17:950:718 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 17:40:18:48:940 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:18:55:929 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:40:18:57:528 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:18:59:232 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-committed/rat_sda_lost_self_update.txt b/index/result/mysql_8.0.20/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..f240e0fd --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:19:301:868 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:19:303:666 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:19:401:780 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:40:19:502:910 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:40:19:510:767 + Q4 finished at: 2022-4-1 17:40:19:510:909 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:19:608:883 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:19:610:797 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:19:612:479 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-committed/rat_sda_non_repeatable_read.txt b/index/result/mysql_8.0.20/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..f88e19f1 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:16:468:343 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:16:470:207 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:16:568:157 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:16:569:902 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:40:16:669:308 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:16:775:69 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:16:868:607 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:16:870:357 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:16:871:302 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/index/result/mysql_8.0.20/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..ff494e5b --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:18:341:911 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:40:18:343:853 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:18:442:80 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:18:443:753 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:18:452:393 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:40:18:544:640 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:18:545:495 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 17:40:18:549:357 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:18:550:300 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/index/result/mysql_8.0.20/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..8a54dac0 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:18:813:974 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:40:18:816:480 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:18:915:494 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 17:40:18:917:236 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:18:923:630 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:40:19:15:104 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:19:16:0 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 17:40:19:17:632 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:19:18:350 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/wat_dda_double_write_skew2_committed.txt b/index/result/mysql_8.0.20/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..20a66e32 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:32:811:166 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:32:814:255 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:32:911:631 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:32:913:625 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:40:33:16:894 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:33:26:994 +Q8 finished at: 2022-4-1 17:40:33:27:6 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:33:34:272 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:33:37:176 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:33:38:144 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-committed/wat_dda_full_write_skew_c1.txt b/index/result/mysql_8.0.20/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..d729419c --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:33:314:306 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:33:316:20 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:33:415:734 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:33:417:608 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:40:33:517:654 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:33:621:671 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:40:34:120:473 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/read-committed/wat_dda_full_write_skew_c2.txt b/index/result/mysql_8.0.20/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..a603fdd5 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:34:415:439 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:34:417:262 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:34:515:115 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:34:516:853 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:40:34:615:687 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:34:733:699 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:40:35:219:901 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/read-committed/wat_dda_full_write_skew_committed.txt b/index/result/mysql_8.0.20/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..51c32066 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:35:498:266 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:35:499:937 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:35:598:226 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:35:600:340 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:40:35:699:497 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:35:705:227 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:40:36:403:84 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew1_c1.txt b/index/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..f37cb41b --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:36:678:591 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:36:680:243 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:36:778:582 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:36:780:505 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:36:782:412 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:36:984:743 +Q6 finished at: 2022-4-1 17:40:36:984:792 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:36:990:533 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:36:993:583 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:36:994:533 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew1_c2.txt b/index/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..8e5c8913 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:37:265:517 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:37:267:369 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:37:364:469 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:37:366:303 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:37:367:954 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:37:570:542 +Q6 finished at: 2022-4-1 17:40:37:570:573 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:37:669:435 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:37:672:194 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:37:673:83 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew2_c1.txt b/index/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..17b53bf2 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:37:939:77 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:37:940:754 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:38:39:8 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:38:40:786 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:40:38:139:821 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:38:146:59 + Q5 finished at: 2022-4-1 17:40:38:146:72 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:38:244:715 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:38:247:219 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:38:248:174 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew2_c2.txt b/index/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..5611e392 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:38:514:709 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:38:516:569 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:38:618:557 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:38:620:415 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:40:38:716:402 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:38:920:194 + Q5 finished at: 2022-4-1 17:40:38:920:225 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:38:925:816 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:38:928:176 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:38:929:179 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew2_committed.txt b/index/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..bdcf551c --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:39:190:504 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:39:192:207 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:39:290:544 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:39:292:414 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:39:391:408 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:39:397:728 + Q5 finished at: 2022-4-1 17:40:39:397:769 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:39:405:143 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:39:407:25 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:39:407:915 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/wat_mda_step_wat_c1.txt b/index/result/mysql_8.0.20/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..58074662 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:39:677:713 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:39:679:316 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:39:777:870 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:39:780:117 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:40:39:877:899 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:40:39:880:124 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-1 17:40:39:979:319 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:40:84:249 + Q11 finished at: 2022-4-1 17:40:40:84:270 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:40:184:366 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:40:40:892:678 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/read-committed/wat_mda_step_wat_c2.txt b/index/result/mysql_8.0.20/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..331a0499 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:41:161:985 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:41:163:597 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:41:261:892 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:41:263:657 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:41:362:212 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:40:41:563:79 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-1 17:40:41:663:267 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:41:768:371 + Q8 finished at: 2022-4-1 17:40:41:768:384 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:41:967:628 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:40:42:566:315 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/read-committed/wat_sda_dirty_write_1abort.txt b/index/result/mysql_8.0.20/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..4f6c06b9 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:28:797:597 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:28:799:409 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:28:897:606 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-1 17:40:28:998:137 +Q5 finished at: 2022-4-1 17:40:29:2:388 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:29:103:414 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:40:29:105:394 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:40:29:130:212 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:29:131:260 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-committed/wat_sda_dirty_write_2commit.txt b/index/result/mysql_8.0.20/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..09637b67 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:29:375:328 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:29:377:97 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:29:475:388 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:40:29:580:856 + Q4 finished at: 2022-4-1 17:40:29:580:863 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:29:681:49 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:40:29:683:282 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:40:29:712:910 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:29:715:362 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-committed/wat_sda_full_write.txt b/index/result/mysql_8.0.20/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..b841677d --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:29:963:442 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:29:965:119 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:30:63:538 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 17:40:30:164:826 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:40:30:172:905 + Q4 finished at: 2022-4-1 17:40:30:172:957 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:30:269:21 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:40:30:271:269 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:30:272:152 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-committed/wat_sda_full_write_committed.txt b/index/result/mysql_8.0.20/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..d853b4dd --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:30:541:214 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:30:542:884 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:30:641:207 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 17:40:30:742:84 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:30:748:958 + Q4 finished at: 2022-4-1 17:40:30:749:11 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:30:755:567 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:40:30:757:212 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:30:757:970 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-committed/wat_sda_lost_self_update_committed.txt b/index/result/mysql_8.0.20/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..4c1c5e1a --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:32:326:409 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:32:328:422 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:32:426:243 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:40:32:527:179 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-1 17:40:32:533:615 +Q7 finished at: 2022-4-1 17:40:32:533:750 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:32:541:442 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:32:543:400 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:32:544:293 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-committed/wat_sda_lost_update_c1.txt b/index/result/mysql_8.0.20/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..1a98cf28 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:31:30:713 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:40:31:32:434 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:31:130:886 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:31:132:780 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:31:336:301 +Q5 finished at: 2022-4-1 17:40:31:336:374 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:40:31:342:485 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:31:344:918 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:31:345:863 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-committed/wat_sda_lost_update_c2.txt b/index/result/mysql_8.0.20/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..c8c85c62 --- /dev/null +++ b/index/result/mysql_8.0.20/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:31:623:518 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:40:31:625:306 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:31:723:592 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:31:725:645 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:40:31:931:279 + Q6 finished at: 2022-4-1 17:40:31:931:602 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:32:30:442 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:32:32:443 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:32:34:87 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/iat_dda_read_skew_committed.txt b/index/result/mysql_8.0.20/read-uncommitted/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..477a84a5 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:6:826:866 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:6:828:598 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:6:927:53 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:6:928:821 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:6:930:353 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:6:936:966 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:40:7:28:523 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:7:29:561 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:7:31:360 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:7:32:280 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/iat_dda_read_write_skew1_committed.txt b/index/result/mysql_8.0.20/read-uncommitted/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..da363c98 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:7:323:223 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:7:324:987 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:7:424:32 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:7:425:952 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:7:427:488 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:7:435:62 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:7:524:469 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:7:531:562 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:7:533:325 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:7:534:962 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew.txt b/index/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew.txt new file mode 100644 index 00000000..b7c82da9 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:7:813:987 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:7:815:673 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:7:913:997 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:7:915:718 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:7:917:258 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:40:8:14:812 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:8:21:505 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:8:123:498 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:8:126:739 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:8:127:937 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew_committed.txt b/index/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..2a5f4641 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:9:396:707 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:9:398:285 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:9:496:639 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:9:498:294 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:9:499:851 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:9:508:219 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:9:597:593 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:9:604:144 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:9:606:78 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:9:607:17 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt b/index/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..fdd1bbe8 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:8:393:222 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 17:40:8:395:259 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 17:40:8:397:10 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:40:8:493:84 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 17:40:8:495:116 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 17:40:8:496:571 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:8:503:942 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:8:598:422 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 17:40:8:601:118 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 17:40:8:602:779 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:8:603:591 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/index/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..32b3ae6f --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:8:891:288 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 17:40:8:893:541 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:8:991:348 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 17:40:8:993:784 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 17:40:8:996:69 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:9:3:928 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 17:40:9:93:245 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:9:100:217 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 17:40:9:102:214 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:9:103:752 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat.txt b/index/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat.txt new file mode 100644 index 00000000..e045e94e --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:9:887:349 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:40:9:889:366 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:9:987:371 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:9:989:375 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:10:87:580 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:40:10:89:732 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:40:10:188:262 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:40:10:288:399 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:40:10:388:502 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:10:493:435 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:10:593:802 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:10:694:521 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:40:10:696:870 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:10:697:785 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt b/index/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..248193a8 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:14:522:914 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:14:524:834 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:14:623:141 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:14:624:842 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:14:630:942 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:40:14:723:29 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:40:14:725:496 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:40:14:727:345 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:14:741:803 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 17:40:14:824:207 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:40:14:825:279 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 17:40:14:827:749 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:40:14:828:641 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt b/index/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..cf4a4f32 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:13:731:403 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:13:733:945 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:13:831:332 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:13:834:78 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:13:931:394 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 17:40:13:933:148 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:13:940:425 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:40:14:31:493 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:40:14:33:321 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:14:40:772 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 17:40:14:133:446 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:14:134:589 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 17:40:14:237:288 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 17:40:14:238:808 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:40:14:243:362 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:40:14:244:368 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt b/index/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..6e1f37b5 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:10:977:933 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 17:40:10:979:939 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:11:77:462 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:11:79:656 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:11:177:570 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:40:11:179:675 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:40:11:278:708 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:40:11:380:283 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:40:11:478:747 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:11:584:444 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:11:688:160 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:11:784:536 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:40:11:786:622 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:11:787:844 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt b/index/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..7404e52d --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:12:59:257 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:40:12:62:249 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:12:159:163 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 17:40:12:161:215 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:12:259:213 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 17:40:12:261:310 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 17:40:12:360:30 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 17:40:12:460:226 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 17:40:12:560:133 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:12:665:725 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:12:765:470 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:12:865:602 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:40:12:869:58 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:12:870:2 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt b/index/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..67722dfa --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:15:132:593 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:40:15:134:730 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 17:40:15:136:893 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:40:15:232:934 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 17:40:15:235:601 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 17:40:15:237:353 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:15:244:628 + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:40:15:332:690 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 17:40:15:335:173 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:40:15:337:283 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:15:338:280 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 17:40:15:433:711 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 17:40:15:441:25 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 17:40:15:443:352 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 17:40:15:445:10 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt b/index/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..9800e172 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:13:152:23 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 17:40:13:153:960 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:13:252:29 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 17:40:13:254:496 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:13:256:167 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:40:13:258:160 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 17:40:13:259:654 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:13:266:525 + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-1 17:40:13:352:45 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 17:40:13:354:423 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 17:40:13:356:62 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 17:40:13:357:915 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 17:40:13:359:283 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:13:365:617 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 17:40:13:453:513 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 17:40:13:454:557 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 17:40:13:457:119 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 17:40:13:458:114 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/iat_sda_lost_update_committed.txt b/index/result/mysql_8.0.20/read-uncommitted/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..292b57b8 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:6:333:610 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:40:6:335:263 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:6:433:566 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:6:435:358 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:6:447:846 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 17:40:6:534:503 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:6:542:540 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:6:544:859 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:6:545:794 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/iat_sda_non_repeatable_read_committed.txt b/index/result/mysql_8.0.20/read-uncommitted/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..0504d43b --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:5:854:385 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:5:855:975 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:5:954:380 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:5:956:152 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:5:964:276 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:40:6:55:277 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:6:56:173 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:6:57:769 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:6:58:614 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:6:59:389 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/rat_dda_double_write_skew1.txt b/index/result/mysql_8.0.20/read-uncommitted/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..8a7c4803 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/rat_dda_double_write_skew1.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:43:833:232 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:43:835:98 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:43:933:132 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:43:934:977 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:39:43:936:597 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:39:44:141:732 +Q6 finished at: 2022-4-1 17:39:44:141:792 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:44:239:636 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:39:44:242:685 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:44:243:535 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/rat_dda_double_write_skew1_committed.txt b/index/result/mysql_8.0.20/read-uncommitted/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..10a5748f --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:44:529:880 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:44:531:601 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:44:629:807 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:44:631:572 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:39:44:633:373 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:44:641:689 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 17:39:44:730:780 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:44:736:877 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:39:44:739:198 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:44:740:138 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/rat_dda_double_write_skew2.txt b/index/result/mysql_8.0.20/read-uncommitted/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..89be7cb3 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/rat_dda_double_write_skew2.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:44:997:822 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:44:999:448 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:45:97:765 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:45:99:524 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:39:45:200:480 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:45:206:816 + Q5 finished at: 2022-4-1 17:39:45:206:876 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:39:45:303:507 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:45:306:282 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:45:307:266 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew.txt b/index/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew.txt new file mode 100644 index 00000000..0137f173 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:45:584:923 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:39:45:586:606 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:45:684:972 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:45:686:706 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:39:45:688:258 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:39:45:786:201 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:39:45:891:940 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:45:985:438 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:45:987:478 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:45:988:330 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew2.txt b/index/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew2.txt new file mode 100644 index 00000000..0c5eddf9 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew2.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:47:226:388 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:47:228:91 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:47:327:184 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:39:47:329:215 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:39:47:330:953 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:39:47:430:931 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:47:440:49 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:39:47:526:773 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:47:528:821 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:47:529:780 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew2_committed.txt b/index/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..8ad1094c --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew2_committed.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:47:808:337 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:47:810:69 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:47:911:10 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:39:47:912:808 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:39:47:914:294 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:47:915:205 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:39:48:11:680 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:48:19:580 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:48:22:499 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:48:23:502 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt b/index/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..b5ff46a2 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:46:275:991 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:39:46:277:929 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:46:382:27 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:46:383:840 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:39:46:385:392 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:46:392:277 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:39:46:477:142 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:46:478:64 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 17:39:46:479:909 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:46:480:733 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt b/index/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..8fcc0981 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:46:751:597 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:39:46:754:336 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:46:851:383 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 17:39:46:852:934 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 17:39:46:854:303 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:46:863:884 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:39:46:952:521 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:46:953:402 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 17:39:46:955:356 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:46:956:409 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/rat_dda_write_read_skew.txt b/index/result/mysql_8.0.20/read-uncommitted/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..150dd007 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:42:629:945 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:42:631:733 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:42:729:877 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:42:731:587 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:39:42:733:230 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:39:42:830:860 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:39:42:935:539 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:43:38:156 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:43:40:192 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:43:41:56 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/rat_dda_write_read_skew_committed.txt b/index/result/mysql_8.0.20/read-uncommitted/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..c9813c8c --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:43:326:747 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:43:328:401 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:43:426:897 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:43:428:961 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:39:43:430:689 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:43:437:575 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:39:43:528:49 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:43:533:988 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:43:536:506 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:43:538:169 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat.txt b/index/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat.txt new file mode 100644 index 00000000..b47261a0 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:48:297:107 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:48:298:785 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:48:397:82 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:48:399:148 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + (3) expected_result: + (0,0) + (4) expected_result: + (0,0) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:39:48:400:951 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:39:48:497:440 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:39:48:499:479 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 17:39:48:501:655 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + *(4) expected_result: + (2,1) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 17:39:48:598:447 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:39:48:604:583 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:39:48:702:268 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:39:48:802:397 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:39:48:805:401 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:39:48:806:254 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat_long_fork.txt b/index/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..4384965e --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,207 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-1 17:39:49:70:157 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 17:39:49:72:745 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-1 17:39:49:170:313 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 17:39:49:172:370 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:39:49:269:832 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 17:39:49:272:775 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + *(7) expected_result: + (0,1) + *(8) expected_result: + (0,1) + *(9) expected_result: + (0,1) + (10) expected_result: + (0,0) + (11) expected_result: + (0,0) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + (14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:39:49:275:702 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:39:49:372:581 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:39:49:374:575 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:39:49:472:182 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:39:49:576:318 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:39:49:681:15 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:39:49:770:326 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:39:49:771:475 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:39:49:774:505 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:39:49:775:363 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt b/index/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..5f4a01c4 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:50:65:653 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:50:67:202 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:50:165:660 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:50:167:457 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:39:50:169:402 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:39:50:265:743 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:39:50:267:480 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 17:39:50:269:538 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + (3) expected_result: + (1,) + *(4) expected_result: + (,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:39:50:367:234 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:39:50:374:16 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:39:50:471:785 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:39:50:573:688 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:39:50:575:770 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:39:50:577:729 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt b/index/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..9e0a0fc9 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:50:846:572 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 17:39:50:848:910 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:50:946:728 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 17:39:50:948:411 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:39:50:950:518 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:39:51:46:832 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 17:39:51:48:412 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + (4) expected_result: + (,) + *(5) expected_result: + (1,) + (6) expected_result: + (,) + + Q8 finished at: 2022-4-1 17:39:51:50:205 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:39:51:148:12 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:39:51:154:124 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:39:51:252:223 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:39:51:353:698 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:39:51:355:904 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:39:51:356:836 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/rat_sda_dirty_read.txt b/index/result/mysql_8.0.20/read-uncommitted/rat_sda_dirty_read.txt new file mode 100644 index 00000000..14a67a80 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/rat_sda_dirty_read.txt @@ -0,0 +1,45 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:38:681:749 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:38:728:904 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:38:781:667 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:39:38:784:510 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:39:38:884:460 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:38:981:744 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:39:38:984:441 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:39:38:985:337 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/rat_sda_intermediate_read.txt b/index/result/mysql_8.0.20/read-uncommitted/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..d854b0f0 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/rat_sda_intermediate_read.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:39:920:717 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:39:922:316 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:40:20:713 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:39:40:22:658 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 17:39:40:124:431 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:40:221:187 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:40:326:344 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:39:40:328:689 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:40:329:445 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/rat_sda_intermediate_read_committed.txt b/index/result/mysql_8.0.20/read-uncommitted/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..9d80ed59 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:40:589:388 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:40:590:920 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:40:689:556 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:39:40:691:661 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:39:40:692:779 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 17:39:40:790:634 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:40:801:155 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:39:40:803:543 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:40:804:400 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/rat_sda_lost_self_update.txt b/index/result/mysql_8.0.20/read-uncommitted/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..183ba2af --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:42:46:206 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:42:48:285 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:42:147:672 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:39:42:248:5 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-1 17:39:42:254:419 +Q6 finished at: 2022-4-1 17:39:42:254:459 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:39:42:352:863 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:39:42:354:771 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:42:356:109 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-uncommitted/rat_sda_non_repeatable_read.txt b/index/result/mysql_8.0.20/read-uncommitted/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..7703699d --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/rat_sda_non_repeatable_read.txt @@ -0,0 +1,58 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:39:251:736 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:39:39:253:862 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:39:351:455 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:39:39:353:220 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:39:39:452:462 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:39:557:141 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:39:652:739 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:39:39:654:613 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:39:655:480 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/index/result/mysql_8.0.20/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..3434dab0 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:41:67:322 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:39:41:69:302 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:41:167:216 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:39:41:169:93 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:39:41:182:198 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:39:41:268:726 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:41:269:725 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 17:39:41:271:340 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:41:272:234 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/index/result/mysql_8.0.20/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..73456bb7 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:41:575:649 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:39:41:578:224 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:41:675:821 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 17:39:41:677:584 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:39:41:684:10 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:39:41:776:680 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:41:777:495 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 17:39:41:779:79 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:41:779:909 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/wat_dda_double_write_skew2_committed.txt b/index/result/mysql_8.0.20/read-uncommitted/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..df85a5d4 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:55:593:938 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:55:595:533 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:55:694:10 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:55:695:841 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:39:55:794:942 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:55:800:887 + Q5 finished at: 2022-4-1 17:39:55:800:911 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:55:806:851 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:55:809:483 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:55:810:313 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/wat_dda_full_write_skew_c1.txt b/index/result/mysql_8.0.20/read-uncommitted/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..3e9c4489 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:56:78:714 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:56:80:295 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:56:178:895 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:56:180:828 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:39:56:324:376 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:39:56:383:898 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:39:56:927:783 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/read-uncommitted/wat_dda_full_write_skew_c2.txt b/index/result/mysql_8.0.20/read-uncommitted/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..06c93f4b --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:57:199:724 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:57:201:344 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:57:299:599 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:57:301:243 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:39:57:401:49 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:39:57:505:341 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:39:58:4:636 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/read-uncommitted/wat_dda_full_write_skew_committed.txt b/index/result/mysql_8.0.20/read-uncommitted/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..a5639f2e --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:58:274:340 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:58:276:82 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:58:374:272 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:58:376:210 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:39:58:475:509 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:58:487:155 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:39:59:182:225 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew1_c1.txt b/index/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..75e9d872 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:59:472:577 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:39:59:474:229 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:59:575:607 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:59:577:348 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:39:59:578:985 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:39:59:780:453 +Q6 finished at: 2022-4-1 17:39:59:780:490 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:59:794:56 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:59:796:290 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:59:797:269 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew1_c2.txt b/index/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..bd8bb911 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:0:78:939 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:0:80:761 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:0:183:683 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:0:185:525 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:0:187:129 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:0:389:242 +Q6 finished at: 2022-4-1 17:40:0:389:313 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:0:492:693 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:0:494:946 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:0:496:67 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew2_c1.txt b/index/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..e6af5785 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:0:777:705 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:0:779:369 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:0:891:423 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:0:893:299 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:40:0:979:991 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:0:991:431 +Q7 finished at: 2022-4-1 17:40:0:991:506 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:1:96:797 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:1:98:993 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:1:100:54 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew2_c2.txt b/index/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..faaa43cc --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:1:454:914 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:1:456:613 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:1:555:594 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:1:558:660 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:40:1:660:418 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:1:862:820 +Q8 finished at: 2022-4-1 17:40:1:863:225 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:1:870:777 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:1:872:856 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:1:873:781 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew2_committed.txt b/index/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..51f9bb82 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:2:181:45 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:2:183:4 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:2:281:674 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:2:283:545 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:2:384:228 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:2:391:19 + Q5 finished at: 2022-4-1 17:40:2:391:32 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:2:397:974 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:2:400:68 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:2:402:52 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/wat_mda_step_wat_c1.txt b/index/result/mysql_8.0.20/read-uncommitted/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..c6b6be40 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:2:685:118 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:2:686:998 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:2:785:25 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:2:786:749 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:40:2:885:393 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:40:2:887:437 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-1 17:40:2:988:770 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:3:91:707 + Q8 finished at: 2022-4-1 17:40:3:91:696 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:3:190:779 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:40:3:891:829 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/read-uncommitted/wat_mda_step_wat_c2.txt b/index/result/mysql_8.0.20/read-uncommitted/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..d1dcf17d --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:4:166:194 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:4:168:44 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:4:266:160 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:4:267:900 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:4:366:205 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:40:4:567:463 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-1 17:40:4:667:558 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:4:773:53 + Q10 finished at: 2022-4-1 17:40:4:773:100 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:4:972:580 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:40:5:572:326 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/read-uncommitted/wat_sda_dirty_write_1abort.txt b/index/result/mysql_8.0.20/read-uncommitted/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..d144d54e --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:51:619:701 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:51:621:288 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:51:719:849 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-1 17:39:51:820:253 +Q5 finished at: 2022-4-1 17:39:51:822:958 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:51:926:925 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:39:51:929:393 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:39:51:951:194 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:51:952:125 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-uncommitted/wat_sda_dirty_write_2commit.txt b/index/result/mysql_8.0.20/read-uncommitted/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..6da04e2c --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:52:204:716 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:52:206:304 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:52:304:769 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:39:52:410:410 + Q4 finished at: 2022-4-1 17:39:52:410:472 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:52:510:582 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:39:52:512:812 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:39:52:534:171 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:52:535:69 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-uncommitted/wat_sda_full_write.txt b/index/result/mysql_8.0.20/read-uncommitted/wat_sda_full_write.txt new file mode 100644 index 00000000..a9aa7cb5 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:52:786:722 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:52:788:377 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:52:886:685 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 17:39:52:987:623 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:39:52:997:172 + Q4 finished at: 2022-4-1 17:39:52:997:163 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:39:53:93:286 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:39:53:95:175 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:53:96:625 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-uncommitted/wat_sda_full_write_committed.txt b/index/result/mysql_8.0.20/read-uncommitted/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..36e3b654 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:53:363:712 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:53:365:761 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:53:463:620 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 17:39:53:564:485 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:53:570:956 + Q4 finished at: 2022-4-1 17:39:53:571:21 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:39:53:577:44 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:39:53:579:341 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:53:580:197 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-uncommitted/wat_sda_lost_self_update_committed.txt b/index/result/mysql_8.0.20/read-uncommitted/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..b00112fb --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:55:97:661 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:55:99:275 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:55:197:702 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:39:55:298:737 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:55:305:633 + Q4 finished at: 2022-4-1 17:39:55:305:712 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:39:55:312:522 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:39:55:314:177 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:55:315:819 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/read-uncommitted/wat_sda_lost_update_c1.txt b/index/result/mysql_8.0.20/read-uncommitted/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..4abfdd13 --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:53:842:95 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:39:53:843:805 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:53:941:978 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:39:53:943:582 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:39:54:148:195 +Q5 finished at: 2022-4-1 17:39:54:148:203 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:39:54:155:277 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:39:54:157:35 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:54:158:492 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/read-uncommitted/wat_sda_lost_update_c2.txt b/index/result/mysql_8.0.20/read-uncommitted/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..694305aa --- /dev/null +++ b/index/result/mysql_8.0.20/read-uncommitted/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:54:424:768 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:39:54:426:385 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:54:524:680 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:39:54:526:881 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:39:54:730:776 + Q6 finished at: 2022-4-1 17:39:54:730:752 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:54:830:937 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:39:54:832:815 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:54:834:745 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/repeatable-read/iat_dda_read_skew_committed.txt b/index/result/mysql_8.0.20/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..73966363 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:20:925:714 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:20:927:605 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:21:26:49 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:21:27:855 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:21:29:318 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:21:36:421 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:41:21:126:615 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:21:127:670 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:21:130:115 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:21:131:57 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/iat_dda_read_write_skew1_committed.txt b/index/result/mysql_8.0.20/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..4bfbb67c --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:21:398:261 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:21:400:123 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:21:500:613 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:21:502:707 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:21:504:354 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:21:515:760 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:41:21:600:656 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:21:607:540 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:21:609:468 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:21:611:427 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew.txt b/index/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..47755e54 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:21:887:33 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:21:888:752 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:21:987:283 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:21:989:286 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:21:990:864 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:41:22:87:965 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:22:93:993 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:22:192:411 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:22:195:215 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:22:196:184 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew_committed.txt b/index/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..04a9228e --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:23:445:726 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:23:447:501 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:23:545:756 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:23:547:542 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:23:549:9 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:23:555:483 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:41:23:646:872 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:23:656:882 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:23:659:540 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:23:660:569 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/index/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..9c350e70 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:22:466:988 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 17:41:22:469:190 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 17:41:22:470:919 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:41:22:567:99 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 17:41:22:569:639 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 17:41:22:571:566 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:22:578:441 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:22:676:3 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 17:41:22:679:98 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 17:41:22:680:928 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:22:681:879 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/index/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..20a776ed --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:22:956:213 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 17:41:22:958:708 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:23:59:645 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 17:41:23:62:72 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 17:41:23:64:565 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:23:70:692 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 17:41:23:158:79 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:23:163:692 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 17:41:23:166:333 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:23:167:261 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat.txt b/index/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..976074be --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:23:921:833 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:41:23:923:973 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:24:21:862 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:41:24:24:234 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:41:24:122:195 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:41:24:124:267 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:41:24:223:185 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:41:24:324:514 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:41:24:423:297 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:41:24:527:717 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:24:627:593 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:24:729:275 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:41:24:732:379 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:24:733:423 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/index/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..e5b3ef53 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:28:568:514 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:28:576:755 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:28:668:537 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:41:28:670:298 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:28:676:209 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:28:768:719 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:41:28:771:138 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:41:28:772:877 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:28:782:26 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 17:41:28:869:681 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:41:28:870:768 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 17:41:28:872:873 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:41:28:873:768 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/index/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..6499ed26 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:27:781:36 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:27:783:766 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:27:881:659 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:27:884:628 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:41:27:981:126 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 17:41:27:983:12 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:27:994:250 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:41:28:81:380 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:41:28:83:467 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:28:89:921 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 17:41:28:183:362 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:28:184:699 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 17:41:28:283:283 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 17:41:28:284:809 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:41:28:287:964 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:41:28:289:10 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/index/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..21a264de --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:25:16:96 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 17:41:25:18:5 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:25:116:203 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:41:25:118:513 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:41:25:216:182 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:41:25:218:338 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:41:25:317:184 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:41:25:417:141 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:41:25:517:211 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:41:25:622:959 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:25:723:140 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:25:823:660 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:41:25:826:887 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:25:828:239 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/index/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..c3312682 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:26:92:118 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:41:26:95:43 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:26:193:50 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 17:41:26:195:209 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:41:26:292:167 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 17:41:26:294:370 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 17:41:26:393:206 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 17:41:26:493:243 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 17:41:26:593:114 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:41:26:698:792 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:26:798:168 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:26:900:198 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:41:26:902:865 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:26:903:950 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/index/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..66d3b6cb --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:29:141:92 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:41:29:143:46 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 17:41:29:144:839 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:41:29:240:921 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 17:41:29:243:103 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 17:41:29:244:672 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:29:252:368 + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:41:29:340:946 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 17:41:29:343:15 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:41:29:344:961 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:29:345:937 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 17:41:29:441:822 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 17:41:29:448:398 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 17:41:29:450:805 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 17:41:29:452:247 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/index/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..1182f47d --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:27:195:256 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 17:41:27:197:427 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:27:295:238 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 17:41:27:297:615 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:27:299:95 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:41:27:300:959 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 17:41:27:302:499 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:27:309:448 + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-1 17:41:27:395:332 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 17:41:27:397:765 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 17:41:27:399:466 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 17:41:27:401:529 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 17:41:27:402:977 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:27:411:361 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 17:41:27:496:715 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 17:41:27:497:882 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 17:41:27:500:265 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 17:41:27:501:214 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/iat_sda_lost_update_committed.txt b/index/result/mysql_8.0.20/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..6ae309b1 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:20:438:682 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:41:20:440:302 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:20:538:633 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:41:20:540:369 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:20:547:567 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 17:41:20:639:702 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:20:646:556 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:20:648:540 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:20:650:74 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/index/result/mysql_8.0.20/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..6f93c59e --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:19:967:2 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:19:968:735 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:20:67:605 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:41:20:69:469 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:20:81:370 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:41:20:167:790 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:20:168:828 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:20:170:758 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:20:171:636 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:20:172:470 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/rat_dda_double_write_skew1.txt b/index/result/mysql_8.0.20/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..f0df128f --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:58:16:0 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:58:17:883 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:58:115:771 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:58:117:479 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:58:119:93 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:40:58:321:891 + Q7 finished at: 2022-4-1 17:40:58:322:330 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:58:421:882 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:40:58:423:843 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:58:424:713 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/rat_dda_double_write_skew1_committed.txt b/index/result/mysql_8.0.20/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..e9446a07 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:58:701:38 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:58:702:692 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:58:800:944 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:58:802:615 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:58:804:137 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:58:809:909 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:58:901:861 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:58:908:334 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:40:58:910:468 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:58:912:41 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/rat_dda_double_write_skew2.txt b/index/result/mysql_8.0.20/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..b1ae7deb --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:59:183:187 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:59:185:163 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:59:283:114 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:59:284:864 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:40:59:384:209 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:59:391:507 + Q5 finished at: 2022-4-1 17:40:59:391:568 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:59:490:956 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:59:493:555 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:59:494:337 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew.txt b/index/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..21838f02 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:59:762:97 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:59:763:811 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:59:862:133 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:59:863:912 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:59:865:325 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:40:59:963:226 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:0:67:597 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:0:162:527 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:0:164:613 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:0:165:455 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew2.txt b/index/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..3397bada --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:1:376:85 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:1:377:788 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:1:476:70 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:1:477:972 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:1:479:634 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:41:1:577:233 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:1:585:115 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:1:679:738 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:1:681:610 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:1:682:426 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew2_committed.txt b/index/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..3ade1796 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:1:985:744 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:1:987:334 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:2:84:463 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:2:86:691 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:2:88:244 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:2:89:124 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:41:2:186:969 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:2:224:224 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:2:226:220 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:2:227:27 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/index/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..1b91b6c8 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:0:429:798 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:41:0:431:510 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:0:529:801 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:0:531:568 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:0:532:966 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:0:539:587 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:41:0:631:148 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:0:632:123 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 17:41:0:633:870 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:0:635:555 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/index/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..9347cb70 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:0:890:604 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:41:0:893:7 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:0:990:534 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 17:41:0:992:78 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 17:41:0:993:374 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:1:5:325 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:41:1:91:681 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:1:92:627 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 17:41:1:94:416 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:1:95:220 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/rat_dda_write_read_skew.txt b/index/result/mysql_8.0.20/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..99e3035f --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:56:862:683 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:56:864:322 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:56:962:743 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:56:964:747 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:56:967:978 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:40:57:64:746 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:57:168:408 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:57:268:557 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:57:271:179 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:57:272:122 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/repeatable-read/rat_dda_write_read_skew_committed.txt b/index/result/mysql_8.0.20/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..7ac35b5a --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:57:538:874 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:57:540:466 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:57:638:903 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:57:640:610 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:57:643:37 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:57:648:517 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:40:57:740:68 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:57:746:412 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:57:748:227 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:57:749:70 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat.txt b/index/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..310822cf --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:2:551:705 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:2:553:374 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:2:651:670 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:2:653:390 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:2:655:356 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:2:751:923 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:41:2:753:647 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 17:41:2:756:609 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 17:41:2:853:108 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:41:2:860:21 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:2:957:826 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:3:57:649 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:41:3:60:113 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:3:62:172 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat_long_fork.txt b/index/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..3544d936 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-1 17:41:3:345:877 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 17:41:3:348:596 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-1 17:41:3:445:790 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 17:41:3:447:481 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:41:3:545:708 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 17:41:3:548:528 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:41:3:551:155 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:41:3:645:765 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:41:3:647:417 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:41:3:747:790 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:41:3:851:401 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:3:952:576 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:41:4:46:290 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:4:48:499 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:41:4:51:16 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:41:4:51:877 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/index/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..b6615d93 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:4:319:792 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:4:321:384 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:4:419:809 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:4:421:651 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:41:4:423:832 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:4:519:824 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:41:4:521:398 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 17:41:4:523:308 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:41:4:621:427 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:41:4:628:105 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:4:737:319 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:4:830:397 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:41:4:833:606 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:4:834:754 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/index/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..fe4f73cb --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:5:94:615 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 17:41:5:96:915 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:5:194:839 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 17:41:5:196:928 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:41:5:199:898 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:5:294:794 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 17:41:5:296:474 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 17:41:5:298:445 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:41:5:396:203 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:41:5:402:534 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:5:500:522 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:5:601:227 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:41:5:604:441 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:5:605:368 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/repeatable-read/rat_sda_dirty_read.txt b/index/result/mysql_8.0.20/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..49dceac2 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:52:785:213 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:52:786:983 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:52:886:208 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:52:888:238 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:40:52:991:192 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:53:84:746 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:40:53:86:903 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:53:87:875 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/rat_sda_intermediate_read.txt b/index/result/mysql_8.0.20/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..6a2ac94f --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:54:29:887 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:54:31:590 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:54:129:669 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:54:131:636 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 17:40:54:230:804 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:54:330:39 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:54:438:364 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:40:54:440:324 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:54:441:504 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/rat_sda_intermediate_read_committed.txt b/index/result/mysql_8.0.20/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..a7db0e22 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:54:757:542 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:54:759:333 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:54:856:977 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:54:858:804 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:54:859:687 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 17:40:54:959:698 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:54:966:539 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:40:54:968:451 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:54:969:341 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/rat_sda_lost_self_update.txt b/index/result/mysql_8.0.20/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..ad38f1da --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:56:277:702 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:56:279:390 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:56:377:601 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:40:56:478:823 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:40:56:484:943 + Q4 finished at: 2022-4-1 17:40:56:485:135 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:56:582:794 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:56:584:675 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:56:585:526 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/rat_sda_non_repeatable_read.txt b/index/result/mysql_8.0.20/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..871ca4c7 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:53:353:285 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:53:355:143 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:53:453:214 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:53:454:988 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:40:53:559:86 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:53:659:391 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:53:753:914 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:53:756:99 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:53:757:244 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/index/result/mysql_8.0.20/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..9b5ba6d2 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:55:244:756 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:40:55:246:567 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:55:344:713 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:55:346:446 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:55:354:890 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:40:55:446:856 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:55:447:747 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 17:40:55:449:514 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:55:450:323 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/index/result/mysql_8.0.20/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..4cbc80e1 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:55:725:340 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:40:55:727:931 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:55:825:264 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 17:40:55:826:955 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:55:841:475 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:40:55:926:181 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:55:927:46 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 17:40:55:928:726 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:55:929:557 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/wat_dda_double_write_skew2_committed.txt b/index/result/mysql_8.0.20/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..de9b81d3 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:9:949:309 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:9:951:73 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:10:49:313 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:10:51:149 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:41:10:150:634 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:10:159:657 + Q5 finished at: 2022-4-1 17:41:10:159:769 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:10:165:716 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:10:167:660 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:10:168:621 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/wat_dda_full_write_skew_c1.txt b/index/result/mysql_8.0.20/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..0c1f5bd2 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:10:458:512 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:10:460:402 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:10:558:358 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:10:560:338 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:10:659:705 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:10:769:193 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:11:266:333 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/repeatable-read/wat_dda_full_write_skew_c2.txt b/index/result/mysql_8.0.20/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..7f3d2da0 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:11:542:140 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:11:543:753 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:11:642:183 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:11:643:872 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:11:744:707 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:11:848:11 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:12:347:797 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/repeatable-read/wat_dda_full_write_skew_committed.txt b/index/result/mysql_8.0.20/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..1e756ddf --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:12:618:252 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:12:619:970 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:12:718:55 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:12:719:869 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:12:819:383 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:12:825:466 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:41:13:522:540 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew1_c1.txt b/index/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..480f33ad --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:13:789:844 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:13:791:525 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:13:889:899 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:13:891:934 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:13:893:617 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:14:95:594 +Q6 finished at: 2022-4-1 17:41:14:95:645 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:14:101:311 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:14:103:679 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:14:104:625 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew1_c2.txt b/index/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..5d373f07 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:14:374:75 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:14:375:831 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:14:474:49 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:14:475:889 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:14:477:343 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:14:679:984 +Q6 finished at: 2022-4-1 17:41:14:680:26 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:14:790:748 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:14:794:168 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:14:795:118 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew2_c1.txt b/index/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..18e31d03 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:15:62:119 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:15:64:125 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:15:162:76 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:15:164:279 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:41:15:262:986 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:15:269:956 + Q5 finished at: 2022-4-1 17:41:15:269:990 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:15:367:669 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:15:370:22 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:15:371:66 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew2_c2.txt b/index/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..5cceefeb --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:15:642:786 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:15:644:373 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:15:742:785 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:15:744:698 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:41:15:843:831 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:16:50:57 + Q5 finished at: 2022-4-1 17:41:16:50:88 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:16:57:412 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:16:59:392 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:16:60:741 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew2_committed.txt b/index/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..d94ca8d2 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:16:333:724 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:16:335:460 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:16:433:777 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:16:435:573 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:41:16:534:632 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:16:541:75 + Q5 finished at: 2022-4-1 17:41:16:541:122 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:16:547:354 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:16:549:678 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:16:550:519 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/repeatable-read/wat_mda_step_wat_c1.txt b/index/result/mysql_8.0.20/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..0b8c173c --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:16:811:365 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:16:812:861 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:16:911:673 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:16:913:768 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:17:11:424 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:41:17:13:175 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-1 17:41:17:112:920 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:17:217:602 + Q8 finished at: 2022-4-1 17:41:17:217:685 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:17:317:218 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:41:18:15:762 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/repeatable-read/wat_mda_step_wat_c2.txt b/index/result/mysql_8.0.20/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..199e35a8 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:18:289:639 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:18:291:276 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:18:389:595 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:18:391:330 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:41:18:491:558 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:41:18:691:16 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-1 17:41:18:791:65 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:18:895:111 + Q8 finished at: 2022-4-1 17:41:18:895:136 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:19:98:171 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:41:19:693:844 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/repeatable-read/wat_sda_dirty_write_1abort.txt b/index/result/mysql_8.0.20/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..ac890cf5 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:5:880:900 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:5:882:621 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:5:981:755 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-1 17:41:6:84:638 +Q5 finished at: 2022-4-1 17:41:6:87:991 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:6:189:788 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:41:6:191:759 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:41:6:211:626 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:6:212:873 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/wat_sda_dirty_write_2commit.txt b/index/result/mysql_8.0.20/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..3146d9a5 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:6:483:266 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:6:485:211 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:6:583:24 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-1 17:41:6:689:404 +Q5 finished at: 2022-4-1 17:41:6:689:460 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:6:789:544 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:41:6:791:372 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:41:6:810:731 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:6:811:874 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/wat_sda_full_write.txt b/index/result/mysql_8.0.20/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..504b886e --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:7:78:630 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:7:80:736 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:7:179:670 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 17:41:7:280:750 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:41:7:294:793 + Q4 finished at: 2022-4-1 17:41:7:294:846 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:7:385:655 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:41:7:387:658 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:7:388:771 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/wat_sda_full_write_committed.txt b/index/result/mysql_8.0.20/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..e9daf4c9 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:7:667:163 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:7:668:890 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:7:771:601 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 17:41:7:868:451 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:7:874:214 + Q4 finished at: 2022-4-1 17:41:7:874:286 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:7:880:177 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:41:7:882:176 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:7:883:946 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/wat_sda_lost_self_update_committed.txt b/index/result/mysql_8.0.20/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..37a71435 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:9:461:428 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:9:462:927 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:9:561:416 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:41:9:662:414 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:9:668:895 + Q4 finished at: 2022-4-1 17:41:9:669:18 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:9:675:304 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:9:677:478 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:9:678:318 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/repeatable-read/wat_sda_lost_update_c1.txt b/index/result/mysql_8.0.20/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..4b6bc958 --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:8:162:942 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:41:8:164:772 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:8:262:848 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:41:8:265:92 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:8:470:733 +Q5 finished at: 2022-4-1 17:41:8:470:780 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:41:8:478:390 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:8:480:208 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:8:481:890 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/repeatable-read/wat_sda_lost_update_c2.txt b/index/result/mysql_8.0.20/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..cae557ef --- /dev/null +++ b/index/result/mysql_8.0.20/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:8:782:160 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:41:8:784:47 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:8:882:378 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:41:8:884:451 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:9:88:968 +Q5 finished at: 2022-4-1 17:41:9:88:995 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:9:188:692 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:9:190:892 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:9:193:13 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/mysql_8.0.20/result_summary/read-committed_total-result.txt b/index/result/mysql_8.0.20/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..38745346 --- /dev/null +++ b/index/result/mysql_8.0.20/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/index/result/mysql_8.0.20/result_summary/read-uncommitted_total-result.txt b/index/result/mysql_8.0.20/result_summary/read-uncommitted_total-result.txt new file mode 100644 index 00000000..f709ccda --- /dev/null +++ b/index/result/mysql_8.0.20/result_summary/read-uncommitted_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Anomaly + +rat_sda_non_repeatable_read: Anomaly + +rat_sda_intermediate_read: Anomaly + +rat_sda_intermediate_read_committed: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Anomaly + +rat_dda_double_write_skew1_committed: Anomaly + +rat_dda_double_write_skew2: Anomaly + +rat_dda_read_skew: Anomaly + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Anomaly + +rat_dda_read_skew2_committed: Anomaly + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Anomaly + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Anomaly + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/index/result/mysql_8.0.20/result_summary/repeatable-read_total-result.txt b/index/result/mysql_8.0.20/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..ef182286 --- /dev/null +++ b/index/result/mysql_8.0.20/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/index/result/mysql_8.0.20/result_summary/serializable_total-result.txt b/index/result/mysql_8.0.20/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..b5b686cf --- /dev/null +++ b/index/result/mysql_8.0.20/result_summary/serializable_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Rollback + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Rollback + +rat_dda_read_skew2_committed: Rollback + +rat_mda_step_rat: Rollback + +rat_mda_step_rat_long_fork: Rollback + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Rollback + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Rollback + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +iat_mda_step_iat_predicate_based_delete: Rollback + +iat_mda_step_iat_predicate_based_insert: Rollback + +iat_mda_step_iat_uname_anomaly: Rollback + +iat_mda_step_iat_cross_phenomenon: Rollback + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Rollback + diff --git a/index/result/mysql_8.0.20/serializable/iat_dda_read_skew_committed.txt b/index/result/mysql_8.0.20/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..e0b53796 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:8:25:707 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:42:8:27:361 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:8:125:799 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:42:8:127:830 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:42:8:228:473 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:42:8:234:781 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:42:8:928:633 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/iat_dda_read_write_skew1_committed.txt b/index/result/mysql_8.0.20/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..8a78f41c --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:9:207:392 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:42:9:209:102 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:9:307:383 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:42:9:309:74 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:42:9:408:592 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:42:9:415:624 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:42:10:108:725 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/iat_dda_write_skew.txt b/index/result/mysql_8.0.20/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..0f3ae3bd --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/iat_dda_write_skew.txt @@ -0,0 +1,49 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:10:382:465 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:42:10:384:278 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:10:482:443 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:42:10:484:206 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:42:10:583:656 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:42:10:693:391 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:42:11:183:797 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/iat_dda_write_skew_committed.txt b/index/result/mysql_8.0.20/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..b452e7fd --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,49 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:13:130:199 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:42:13:132:963 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:13:231:637 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:42:13:233:633 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:42:13:333:102 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:42:13:339:928 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:42:14:33:67 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/index/result/mysql_8.0.20/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..69a11cd6 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:11:459:600 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 17:42:11:461:475 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 17:42:11:462:884 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:42:11:559:586 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:42:11:666:67 + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 17:42:11:666:330 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 17:42:11:668:262 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:42:11:673:435 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 17:42:11:675:836 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 17:42:11:678:593 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:42:11:679:584 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/index/result/mysql_8.0.20/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..ed636e29 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,49 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:11:958:859 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 17:42:11:961:651 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:12:58:825 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 17:42:12:61:640 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q5 finished at: 2022-4-1 17:42:12:161:585 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:42:12:168:826 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:42:12:861:827 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/iat_mda_step_iat.txt b/index/result/mysql_8.0.20/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..38413186 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/iat_mda_step_iat.txt @@ -0,0 +1,89 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:14:332:357 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:42:14:334:774 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:14:432:758 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:42:14:435:199 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:42:14:533:212 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:42:14:535:337 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 finished at: 2022-4-1 17:42:14:834:916 + Q11-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:42:15:45:452 + Q11 finished at: 2022-4-1 17:42:15:45:475 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:42:15:53:360 + Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q9 failed at: 2022-4-1 17:42:15:734:864 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/index/result/mysql_8.0.20/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..d0602268 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:22:942:657 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:42:22:944:626 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:23:42:577 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:42:23:142:686 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 17:42:23:244:149 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:42:23:245:318 + Q4 finished at: 2022-4-1 17:42:23:245:391 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:42:23:250:920 + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:42:23:251:494 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:42:23:253:644 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:42:23:257:953 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 17:42:23:260:52 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:42:23:261:386 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/serializable/iat_mda_step_iat_cross_phenomenon.txt b/index/result/mysql_8.0.20/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..c6f8f44e --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,171 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:21:575:144 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:42:21:577:667 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:21:675:94 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:42:21:677:800 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:42:21:775:204 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:42:21:875:539 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 17:42:22:77:874 + Q12-T2 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:42:22:79:154 + Q12 finished at: 2022-4-1 17:42:22:79:135 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:42:22:85:726 + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 17:42:22:86:641 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 17:42:22:87:800 + Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q6 failed at: 2022-4-1 17:42:22:676:982 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/iat_mda_step_iat_predicate_based_delete.txt b/index/result/mysql_8.0.20/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..ec79f9e5 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,89 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:16:15:347 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 17:42:16:17:345 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:16:115:280 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:42:16:117:484 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:42:16:218:851 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:42:16:221:60 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q8 finished at: 2022-4-1 17:42:16:516:568 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:42:16:722:240 +Q7 finished at: 2022-4-1 17:42:16:722:447 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:42:16:730:211 + Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q9 failed at: 2022-4-1 17:42:17:416:605 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/iat_mda_step_iat_predicate_based_insert.txt b/index/result/mysql_8.0.20/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..1647aa2d --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,85 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:17:706:872 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:42:17:709:871 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:17:806:813 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 17:42:17:809:46 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:42:17:906:773 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 17:42:17:908:812 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q7 finished at: 2022-4-1 17:42:18:208:94 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:42:18:320:428 + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q8 failed at: 2022-4-1 17:42:19:8:90 + Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q9 failed at: 2022-4-1 17:42:19:108:264 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/index/result/mysql_8.0.20/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..2f8ba04c --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,105 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:23:521:178 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:42:23:523:349 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 17:42:23:525:372 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:42:23:620:959 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 17:42:23:623:186 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:42:23:721:130 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 17:42:23:723:536 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 17:42:23:823:75 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 17:42:23:831:676 + Q6 finished at: 2022-4-1 17:42:23:831:732 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:42:23:838:601 + Q10 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q10 failed at: 2022-4-1 17:42:24:823:261 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/iat_mda_step_iat_uname_anomaly.txt b/index/result/mysql_8.0.20/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..1de048b5 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,127 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:19:454:404 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 17:42:19:456:562 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:19:554:353 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 17:42:19:556:571 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:42:19:558:179 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:42:19:560:195 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-1 17:42:19:654:409 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 17:42:19:656:728 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 17:42:19:658:206 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:42:19:755:691 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:42:19:763:422 + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 17:42:19:764:136 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 17:42:19:765:752 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:42:19:779:603 +Q15 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q15 failed at: 2022-4-1 17:42:21:255:752 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/iat_sda_lost_update_committed.txt b/index/result/mysql_8.0.20/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..b02d6556 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:7:157:422 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:42:7:159:286 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:7:257:397 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 17:42:7:358:313 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:42:7:364:857 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q4 failed at: 2022-4-1 17:42:7:758:442 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/iat_sda_non_repeatable_read_committed.txt b/index/result/mysql_8.0.20/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..5768b4cf --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:6:671:13 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:42:6:672:696 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:6:771:118 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:42:6:874:573 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:42:6:875:560 + Q4 finished at: 2022-4-1 17:42:6:875:640 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:42:6:883:427 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:42:6:885:819 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:42:6:886:698 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:42:6:887:450 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/serializable/rat_dda_double_write_skew1.txt b/index/result/mysql_8.0.20/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..b0c0ec57 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:36:72:810 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:36:74:503 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:36:172:707 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:36:174:556 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:36:274:474 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:36:379:701 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:36:877:176 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/rat_dda_double_write_skew1_committed.txt b/index/result/mysql_8.0.20/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..0877edc9 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:37:146:696 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:37:148:379 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:37:246:809 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:37:248:829 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:37:348:230 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:37:354:963 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:41:38:51:230 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/rat_dda_double_write_skew2.txt b/index/result/mysql_8.0.20/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..e7d208bc --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:38:325:985 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:38:327:720 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:38:425:965 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:38:427:701 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:38:527:285 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:38:633:313 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:39:130:385 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/rat_dda_read_skew.txt b/index/result/mysql_8.0.20/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..757def2b --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/rat_dda_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:39:414:333 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:39:416:324 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:39:514:365 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:39:516:258 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:39:615:527 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:39:722:139 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:40:215:668 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/rat_dda_read_skew2.txt b/index/result/mysql_8.0.20/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..2c29de85 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:41:487:735 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:41:489:539 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:41:587:733 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:41:589:730 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:41:41:689:701 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:41:698:391 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-1 17:41:42:190:183 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/rat_dda_read_skew2_committed.txt b/index/result/mysql_8.0.20/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..212ddd91 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:42:461:357 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:42:462:979 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:42:561:402 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:42:563:299 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:41:42:664:952 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:42:670:849 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-1 17:41:43:165:75 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/rat_dda_read_skew_predicate_based_delete.txt b/index/result/mysql_8.0.20/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..52f11fa5 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:40:512:588 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:41:40:514:356 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:40:614:23 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:41:40:715:175 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:40:716:723 + Q4 finished at: 2022-4-1 17:41:40:716:844 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:40:718:366 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:40:725:19 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 17:41:40:727:5 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:40:727:951 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/serializable/rat_dda_read_skew_predicate_based_insert.txt b/index/result/mysql_8.0.20/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..a05ab5bc --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:41:3:753 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:41:41:6:456 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:41:104:98 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:41:41:209:666 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:41:211:717 + Q4 finished at: 2022-4-1 17:41:41:211:906 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 17:41:41:213:588 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:41:221:79 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 17:41:41:223:512 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:41:224:517 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/serializable/rat_dda_write_read_skew.txt b/index/result/mysql_8.0.20/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..ecf4eb06 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:33:817:277 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:33:818:859 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:33:917:313 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:33:919:31 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:34:18:965 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:34:124:938 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:34:622:434 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/rat_dda_write_read_skew_committed.txt b/index/result/mysql_8.0.20/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..635132e6 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:34:899:58 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:34:900:598 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:34:999:88 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:35:0:747 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:35:100:539 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:35:106:173 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:41:35:803:95 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/rat_mda_step_rat.txt b/index/result/mysql_8.0.20/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..7f36962e --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/rat_mda_step_rat.txt @@ -0,0 +1,74 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:43:437:745 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:43:439:334 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:43:539:23 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:43:540:848 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:43:639:816 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:41:43:641:587 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:43:739:462 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:43:844:617 + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 17:41:43:845:190 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:43:943:656 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:41:44:642:471 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/rat_mda_step_rat_long_fork.txt b/index/result/mysql_8.0.20/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..602d06f2 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,169 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-1 17:41:44:906:691 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 17:41:44:909:579 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-1 17:41:45:6:307 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:41:45:106:381 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 17:41:45:109:229 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:41:45:206:433 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:41:45:308:780 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:41:45:606:891 + Q9 finished at: 2022-4-1 17:41:45:607:101 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:45:613:644 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:41:45:614:867 +Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q4 failed at: 2022-4-1 17:41:45:707:950 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/rat_mda_step_rat_predicate_based_delete.txt b/index/result/mysql_8.0.20/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..3aa905cb --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,74 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:45:976:146 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:45:977:698 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:46:76:301 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:46:78:210 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:46:176:118 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:41:46:177:726 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:41:46:288:818 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:46:381:346 + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 17:41:46:382:20 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:46:484:1 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:41:47:191:175 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/rat_mda_step_rat_predicate_based_insert.txt b/index/result/mysql_8.0.20/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..29a3b639 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,71 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:47:446:656 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 17:41:47:449:76 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:47:546:738 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 17:41:47:548:474 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:47:651:532 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 17:41:47:653:280 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:41:47:748:738 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:47:852:489 + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + (4) expected_result: + (,) + *(5) expected_result: + (1,) + (6) expected_result: + (,) + + Q8 finished at: 2022-4-1 17:41:47:853:72 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:47:952:352 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:41:48:651:150 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/rat_sda_dirty_read.txt b/index/result/mysql_8.0.20/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..fd8f3ed6 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:29:872:206 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:29:873:776 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:29:972:28 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:41:30:72:843 +Q5 finished at: 2022-4-1 17:41:30:75:864 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:30:172:234 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:41:30:174:16 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:30:174:777 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/serializable/rat_sda_intermediate_read.txt b/index/result/mysql_8.0.20/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..43a392b9 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:31:127:608 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:31:129:511 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:31:227:583 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 17:41:31:328:824 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:31:533:92 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:41:31:533:351 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:31:535:252 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:41:31:537:322 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:31:538:328 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/serializable/rat_sda_intermediate_read_committed.txt b/index/result/mysql_8.0.20/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..27354e80 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:31:804:186 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:31:805:768 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:31:904:470 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 17:41:32:5:152 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:32:15:748 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:41:32:16:62 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:32:16:849 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:41:32:18:365 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:32:19:651 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/serializable/rat_sda_lost_self_update.txt b/index/result/mysql_8.0.20/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..6a33e43a --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:33:238:408 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:33:240:186 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:33:339:238 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:41:33:439:491 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:41:33:447:842 + Q4 finished at: 2022-4-1 17:41:33:447:907 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:33:544:384 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:33:546:261 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:33:547:127 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/serializable/rat_sda_non_repeatable_read.txt b/index/result/mysql_8.0.20/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..6aa8d05e --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:30:443:285 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:30:444:838 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:30:543:488 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:41:30:644:514 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:30:843:672 + Q4 finished at: 2022-4-1 17:41:30:843:866 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:30:850:540 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:30:852:243 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:30:853:40 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/index/result/mysql_8.0.20/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..9d0a6998 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:32:303:405 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:41:32:305:37 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:32:403:362 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:41:32:504:497 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:32:505:462 + Q4 finished at: 2022-4-1 17:41:32:505:653 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:32:511:208 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 17:41:32:512:761 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:32:513:906 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/index/result/mysql_8.0.20/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..957ed888 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:32:766:140 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:41:32:768:731 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:32:866:170 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:41:32:967:290 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:32:968:231 + Q4 finished at: 2022-4-1 17:41:32:968:372 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:32:974:70 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 17:41:32:975:700 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:32:976:469 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/serializable/wat_dda_double_write_skew2_committed.txt b/index/result/mysql_8.0.20/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..93e53b1e --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:53:396:109 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:53:397:807 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:53:496:223 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:53:498:268 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:53:597:375 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:53:603:154 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:41:54:300:308 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/wat_dda_full_write_skew_c1.txt b/index/result/mysql_8.0.20/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..bbe69855 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:54:600:944 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:54:602:630 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:54:700:902 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:54:702:621 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:54:802:193 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:54:907:609 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:55:405:992 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/wat_dda_full_write_skew_c2.txt b/index/result/mysql_8.0.20/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..ed0ac8a1 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:55:689:611 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:55:691:452 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:55:790:648 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:55:792:517 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:55:890:429 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:55:996:768 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:56:494:17 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/wat_dda_full_write_skew_committed.txt b/index/result/mysql_8.0.20/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..2a53175b --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:56:782:597 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:56:784:231 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:56:882:796 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:56:884:531 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:56:983:892 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:56:992:279 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:41:57:688:947 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/wat_dda_read_write_skew1_c1.txt b/index/result/mysql_8.0.20/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..bdf4f323 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:57:959:160 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:57:961:152 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:58:58:984 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:58:60:682 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:58:160:692 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:58:265:685 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:58:760:762 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/wat_dda_read_write_skew1_c2.txt b/index/result/mysql_8.0.20/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..53c58b8f --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:59:42:696 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:59:44:470 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:59:142:624 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:59:144:352 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:59:243:787 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:59:349:516 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:59:843:891 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/wat_dda_read_write_skew2_c1.txt b/index/result/mysql_8.0.20/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..3ed715ab --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:0:118:686 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:42:0:120:266 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:0:218:693 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:42:0:220:463 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:42:0:320:313 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:42:0:425:623 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:42:0:923:308 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/wat_dda_read_write_skew2_c2.txt b/index/result/mysql_8.0.20/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..b9c23446 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:1:227:79 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:42:1:228:691 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:1:327:69 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:42:1:329:0 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:42:1:428:354 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:42:1:535:671 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:42:2:31:629 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/wat_dda_read_write_skew2_committed.txt b/index/result/mysql_8.0.20/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..4e43d8bb --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:2:342:425 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:42:2:344:361 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:2:442:324 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:42:2:444:15 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:42:2:543:641 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:42:2:552:629 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:42:3:247:566 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/wat_mda_step_wat_c1.txt b/index/result/mysql_8.0.20/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..133e0382 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:3:522:950 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:42:3:524:706 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:3:623:3 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:42:3:624:826 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:42:3:722:887 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:42:3:724:756 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-1 17:42:3:824:193 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:42:3:929:742 + Q11 finished at: 2022-4-1 17:42:3:929:757 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:42:4:29:976 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:42:4:726:732 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/wat_mda_step_wat_c2.txt b/index/result/mysql_8.0.20/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..1ae36ebb --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:4:993:22 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:42:4:994:695 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:5:93:263 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:42:5:95:109 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:42:5:193:119 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:42:5:395:230 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-1 17:42:5:494:845 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:42:5:598:592 + Q8 finished at: 2022-4-1 17:42:5:598:739 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:42:5:798:557 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:42:6:398:341 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/wat_sda_dirty_write_1abort.txt b/index/result/mysql_8.0.20/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..341b81f9 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:48:926:496 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:48:928:336 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:49:26:363 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-1 17:41:49:127:102 +Q5 finished at: 2022-4-1 17:41:49:128:927 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:49:232:48 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:41:49:234:634 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:41:49:254:491 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:49:255:455 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/serializable/wat_sda_dirty_write_2commit.txt b/index/result/mysql_8.0.20/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..c5a0e332 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:49:497:454 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:49:499:150 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:49:597:360 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:41:49:705:710 + Q4 finished at: 2022-4-1 17:41:49:705:807 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:49:804:207 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:41:49:806:919 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:41:49:830:104 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:49:831:101 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/serializable/wat_sda_full_write.txt b/index/result/mysql_8.0.20/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..6e19dd28 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:50:80:303 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:50:81:937 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:50:183:592 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 17:41:50:281:182 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:41:50:288:20 + Q4 finished at: 2022-4-1 17:41:50:288:126 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:50:386:61 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:41:50:388:843 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:50:389:793 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/serializable/wat_sda_full_write_committed.txt b/index/result/mysql_8.0.20/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..f5160036 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:50:653:111 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:50:654:699 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:50:755:533 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 17:41:50:853:857 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:50:867:144 + Q4 finished at: 2022-4-1 17:41:50:867:233 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:50:873:679 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:41:50:875:483 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:50:876:362 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/serializable/wat_sda_lost_self_update_committed.txt b/index/result/mysql_8.0.20/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..cf6fbba5 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:52:901:776 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:52:903:375 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:53:1:693 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:41:53:102:801 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:53:110:237 + Q4 finished at: 2022-4-1 17:41:53:110:326 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:53:118:411 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:53:121:82 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:53:121:912 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/mysql_8.0.20/serializable/wat_sda_lost_update_c1.txt b/index/result/mysql_8.0.20/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..83d92063 --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:51:157:127 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:41:51:158:796 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:51:257:113 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-1 17:41:51:358:278 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:41:51:365:242 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q4 failed at: 2022-4-1 17:41:51:758:360 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/mysql_8.0.20/serializable/wat_sda_lost_update_c2.txt b/index/result/mysql_8.0.20/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..554cc05a --- /dev/null +++ b/index/result/mysql_8.0.20/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,39 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:52:28:69 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:41:52:29:698 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:52:128:280 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-1 17:41:52:232:792 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:52:434:555 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q4 failed at: 2022-4-1 17:41:52:632:899 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/ob_ce3.1_mysql/read-committed/iat_dda_read_skew_committed.txt b/index/result/ob_ce3.1_mysql/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..c6ae349b --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:12:866:846 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:24:12:907:843 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:13:360:492 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:24:13:397:739 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:24:13:433:728 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:24:13:471:558 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 16:24:13:865:48 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:24:13:904:241 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:24:13:944:13 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:24:13:981:735 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/read-committed/iat_dda_read_write_skew1_committed.txt b/index/result/ob_ce3.1_mysql/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..eddc2ab8 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:17:380:519 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:24:17:422:557 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:17:877:506 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 16:24:17:916:448 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:24:17:954:128 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:24:17:996:609 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 16:24:18:381:669 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:24:18:424:193 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:24:18:466:774 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:24:18:506:661 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/read-committed/iat_dda_write_skew.txt b/index/result/ob_ce3.1_mysql/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..017d1ef8 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:21:870:87 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:24:21:907:371 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:22:376:738 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:24:22:413:43 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:24:22:450:30 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 16:24:22:870:865 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:24:22:912:358 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:24:23:380:949 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:24:23:422:649 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:24:23:463:532 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/read-committed/iat_dda_write_skew_committed.txt b/index/result/ob_ce3.1_mysql/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..c284aa6b --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:26:787:276 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:24:26:824:296 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:27:291:821 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:24:27:332:165 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:24:27:373:429 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:24:27:420:930 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 16:24:27:788:675 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:24:27:825:967 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:24:27:867:326 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:24:27:906:774 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/read-committed/iat_dda_write_skew_pred_insert.txt b/index/result/ob_ce3.1_mysql/read-committed/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..f0aa8e1a --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:44:22:356 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:24:44:62:790 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:44:524:975 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-20 16:24:44:567:228 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-20 16:24:44:608:950 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-20 16:24:45:23:344 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:24:45:62:578 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:24:45:529:323 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-20 16:24:45:571:587 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:24:45:611:984 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/read-committed/iat_mda_step_iat.txt b/index/result/ob_ce3.1_mysql/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..fa4b8e4e --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:31:319:158 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-20 16:24:31:358:851 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:31:820:206 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 16:24:31:860:559 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-5-20 16:24:32:317:306 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-20 16:24:32:354:458 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-20 16:24:32:821:245 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-20 16:24:33:321:353 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-20 16:24:33:818:255 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-20 16:24:34:320:863 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-20 16:24:34:822:545 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-20 16:24:35:319:416 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 16:24:35:363:9 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-20 16:24:35:404:243 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/read-committed/iat_sda_lost_update_committed.txt b/index/result/ob_ce3.1_mysql/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..e55cc77e --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:8:390:515 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 16:24:8:429:802 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:8:893:417 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 16:24:8:935:342 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 16:24:8:977:271 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-5-20 16:24:9:391:592 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:24:9:431:50 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:24:9:471:913 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:24:9:511:17 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/read-committed/iat_sda_non_repeatable_read_committed.txt b/index/result/ob_ce3.1_mysql/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..4e5b9bfe --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,57 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:3:923:245 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:24:3:963:7 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:4:425:503 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 16:24:4:467:971 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 16:24:4:511:304 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 16:24:4:924:637 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:24:4:962:521 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:24:5:1:849 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:24:5:39:533 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/read-committed/rat_dda_double_write_skew1.txt b/index/result/ob_ce3.1_mysql/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..ff764c69 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:21:59:975:101 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:22:0:13:487 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:0:478:240 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:22:0:518:653 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:22:0:559:733 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 16:22:1:478:844 + Q7 finished at: 2022-5-20 16:22:1:481:628 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:22:1:978:201 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-20 16:22:2:18:103 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:22:2:53:807 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/read-committed/rat_dda_double_write_skew1_committed.txt b/index/result/ob_ce3.1_mysql/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..bd9e3922 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:5:371:101 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:22:5:410:415 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:5:869:202 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:22:5:905:907 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:22:5:943:351 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:22:5:980:480 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-5-20 16:22:6:371:759 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:22:6:411:484 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-20 16:22:6:452:288 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:22:6:491:314 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/read-committed/rat_dda_double_write_skew2.txt b/index/result/ob_ce3.1_mysql/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..d63dc464 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:9:772:731 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:22:9:810:526 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:10:275:237 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:22:10:314:237 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 16:22:10:774:815 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:22:10:811:759 + Q5 finished at: 2022-5-20 16:22:10:813:980 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:22:11:277:583 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:22:11:318:817 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:22:11:357:902 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/read-committed/rat_dda_read_skew.txt b/index/result/ob_ce3.1_mysql/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..d39375d5 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:14:806:306 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:22:14:848:664 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:15:306:112 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:22:15:348:293 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:22:15:389:251 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 16:22:15:807:81 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 16:22:16:310:793 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:22:16:806:900 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:22:16:855:861 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:22:16:895:777 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/read-committed/rat_dda_read_skew2.txt b/index/result/ob_ce3.1_mysql/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..75d6574d --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:20:231:179 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:22:20:270:718 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:20:728:891 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:22:20:769:144 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:22:20:807:898 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 16:22:21:229:342 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:22:21:268:518 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:22:21:729:160 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:22:21:770:229 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:22:21:809:368 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/read-committed/rat_dda_read_skew2_committed.txt b/index/result/ob_ce3.1_mysql/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..60d50001 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:25:171:99 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:22:25:211:12 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:25:672:470 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:22:25:713:949 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:22:25:754:19 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:22:25:793:258 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 16:22:26:171:885 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:22:26:211:855 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:22:26:251:561 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:22:26:289:319 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/read-committed/rat_dda_write_read_skew.txt b/index/result/ob_ce3.1_mysql/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..07814eee --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:21:50:31:473 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:21:50:71:235 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:21:50:528:903 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:21:50:565:265 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:21:50:602:307 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 16:21:51:32:148 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 16:21:51:530:511 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:21:52:39:815 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:21:52:84:6 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:21:52:126:192 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/read-committed/rat_dda_write_read_skew_committed.txt b/index/result/ob_ce3.1_mysql/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..d25e848a --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:21:55:522:940 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:21:55:565:535 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:21:56:19:635 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:21:56:57:649 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:21:56:96:649 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:21:56:135:497 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 16:21:56:524:438 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:21:56:569:257 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:21:56:609:293 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:21:56:647:473 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/read-committed/rat_mda_step_rat.txt b/index/result/ob_ce3.1_mysql/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..55aa7dcd --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:29:654:194 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:22:29:694:509 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:30:152:66 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:22:30:188:678 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:22:30:226:273 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-5-20 16:22:30:653:370 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-20 16:22:30:691:470 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-20 16:22:30:729:835 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-20 16:22:31:155:879 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-20 16:22:31:195:620 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-20 16:22:31:658:184 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-20 16:22:32:155:965 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 16:22:32:197:543 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-20 16:22:32:236:625 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/read-committed/rat_sda_dirty_read.txt b/index/result/ob_ce3.1_mysql/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..c5bf8917 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,46 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:21:24:969:907 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:21:25:7:391 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:21:25:472:335 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 16:21:25:512:91 +Q5-T1 execute opt: 'ROLLBACK;' +Q5 finished at: 2022-5-20 16:21:25:970:201 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:21:26:472:569 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-20 16:21:26:510:916 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:21:26:547:361 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/read-committed/rat_sda_intermediate_read.txt b/index/result/ob_ce3.1_mysql/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..fb188023 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:21:35:281:704 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:21:35:322:263 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:21:35:779:494 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 16:21:35:817:536 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-20 16:21:36:282:685 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:21:36:780:990 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:21:37:285:925 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 16:21:37:326:815 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:21:37:365:786 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/read-committed/rat_sda_intermediate_read_committed.txt b/index/result/ob_ce3.1_mysql/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..482ae046 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:21:40:638:20 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:21:40:678:90 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:21:41:135:557 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 16:21:41:173:238 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 16:21:41:208:987 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-20 16:21:41:639:227 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:21:41:679:8 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 16:21:41:720:478 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:21:41:760:114 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/read-committed/rat_sda_lost_self_update.txt b/index/result/ob_ce3.1_mysql/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..0120c33b --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:21:45:97:248 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:21:45:137:144 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:21:45:597:571 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 16:21:46:99:206 +Q6-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-20 16:21:46:137:27 +Q6 finished at: 2022-5-20 16:21:46:139:1 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 16:21:46:602:396 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:21:46:643:90 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:21:46:681:964 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/read-committed/rat_sda_non_repeatable_read.txt b/index/result/ob_ce3.1_mysql/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..010c678c --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:21:29:883:754 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:21:29:926:262 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:21:30:382:652 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 16:21:30:423:506 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 16:21:30:884:931 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:21:31:384:700 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:21:31:886:738 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:21:31:930:196 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:21:31:971:797 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/read-committed/rat_sda_non_repeatable_read_pred_insert.txt b/index/result/ob_ce3.1_mysql/read-committed/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..327a097b --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:38:630:375 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:24:38:671:100 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:39:130:615 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-20 16:24:39:170:562 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 16:24:39:631:292 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:24:40:134:788 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:24:40:632:906 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:24:40:672:418 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:24:40:710:293 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/read-committed/wat_dda_double_write_skew2_committed.txt b/index/result/ob_ce3.1_mysql/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..1c0dda55 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:59:433:273 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:22:59:474:451 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:59:930:260 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:22:59:967:775 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 16:23:0:435:332 +Q8-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 16:23:0:473:367 + Q6-T2 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:23:0:476:369 + Q6 finished at: 2022-5-20 16:23:0:511:780 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:23:0:549:357 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:23:0:584:659 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/read-committed/wat_dda_full_write_skew_c1.txt b/index/result/ob_ce3.1_mysql/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..db1160a8 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:23:3:840:591 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:23:3:877:892 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:23:4:340:913 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 16:23:4:377:531 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-5-20 16:23:14:830:428 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q6 failed at: 2022-5-20 16:23:15:342:491 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/index/result/ob_ce3.1_mysql/read-committed/wat_dda_full_write_skew_committed.txt b/index/result/ob_ce3.1_mysql/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..5e273066 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:23:18:683:394 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:23:18:722:77 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:23:19:183:902 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 16:23:19:222:15 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-5-20 16:23:29:668:455 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q7 failed at: 2022-5-20 16:23:30:286:497 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/index/result/ob_ce3.1_mysql/read-committed/wat_dda_read_write_skew1_c1.txt b/index/result/ob_ce3.1_mysql/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..77479d12 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:23:33:632:463 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:23:33:671:825 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:23:34:131:122 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 16:23:34:169:536 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:23:34:206:459 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:23:35:136:621 +Q6 finished at: 2022-5-20 16:23:35:138:835 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:23:35:177:957 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:23:35:215:303 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:23:35:250:630 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/read-committed/wat_dda_read_write_skew2_c1.txt b/index/result/ob_ce3.1_mysql/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..bc29305e --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:23:38:628:529 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:23:38:667:278 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:23:39:130:370 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:23:39:170:979 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 16:23:39:629:740 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:23:39:668:94 + Q5 finished at: 2022-5-20 16:23:39:669:744 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:23:40:133:832 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:23:40:176:165 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:23:40:216:569 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/read-committed/wat_dda_read_write_skew2_committed.txt b/index/result/ob_ce3.1_mysql/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..db7a7ce9 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:23:43:715:633 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:23:43:757:305 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:23:44:217:801 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:23:44:261:845 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 16:23:44:716:637 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:23:44:758:413 + Q5 finished at: 2022-5-20 16:23:44:760:932 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:23:44:804:822 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:23:44:848:86 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:23:44:889:473 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/read-committed/wat_mda_step_wat_c1.txt b/index/result/ob_ce3.1_mysql/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..8b01c328 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:23:48:287:711 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:23:48:328:681 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:23:48:785:118 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 16:23:48:822:697 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-5-20 16:23:49:284:5 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-20 16:23:49:320:925 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-5-20 16:23:59:266:325 + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q8 failed at: 2022-5-20 16:24:0:64:277 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q9 failed at: 2022-5-20 16:24:0:594:838 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/index/result/ob_ce3.1_mysql/read-committed/wat_sda_dirty_write_2commit.txt b/index/result/ob_ce3.1_mysql/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..69654a02 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:35:653:283 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:22:35:697:256 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:36:149:314 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-20 16:22:36:655:65 + Q4 finished at: 2022-5-20 16:22:36:655:323 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:22:37:151:290 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-5-20 16:22:37:194:151 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-5-20 16:22:37:259:826 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:22:37:308:737 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/read-committed/wat_sda_full_write.txt b/index/result/ob_ce3.1_mysql/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..37589412 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/wat_sda_full_write.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:40:578:414 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:22:40:618:181 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:41:80:235 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-20 16:22:41:580:604 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 16:22:41:620:499 + Q4 finished at: 2022-5-20 16:22:41:622:322 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 16:22:42:85:977 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-20 16:22:42:125:397 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:22:42:163:140 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/read-committed/wat_sda_full_write_committed.txt b/index/result/ob_ce3.1_mysql/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..04e90fdb --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:45:483:481 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:22:45:526:409 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:45:979:906 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-20 16:22:46:484:639 +Q7-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-20 16:22:46:526:997 + Q5-T2 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:22:46:528:258 + Q5 finished at: 2022-5-20 16:22:46:566:535 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-20 16:22:46:608:543 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:22:46:648:906 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/read-committed/wat_sda_lost_self_update_committed.txt b/index/result/ob_ce3.1_mysql/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..f46dda12 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:54:947:424 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:22:54:988:819 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:55:448:144 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 16:22:55:949:365 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:22:55:990:864 + Q4 finished at: 2022-5-20 16:22:55:991:590 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 16:22:56:38:389 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:22:56:75:268 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:22:56:110:434 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/read-committed/wat_sda_lost_update_c1.txt b/index/result/ob_ce3.1_mysql/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..1c3ceb91 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:49:998:94 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 16:22:50:38:223 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:50:494:472 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 16:22:50:535:197 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-20 16:22:51:493:537 +Q6-T1 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 16:22:51:496:143 +Q6 finished at: 2022-5-20 16:22:51:533:609 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:22:51:573:86 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:22:51:610:761 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/iat_dda_read_skew_committed.txt b/index/result/ob_ce3.1_mysql/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..1fa71c42 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:27:37:147:674 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:27:37:185:826 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:27:37:649:139 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:27:37:689:339 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:27:37:727:972 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:27:37:769:757 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 16:27:38:148:396 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:27:38:185:12 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:27:38:225:895 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:27:38:264:849 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/iat_dda_read_write_skew1_committed.txt b/index/result/ob_ce3.1_mysql/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..238270fb --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:27:41:647:212 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:27:41:686:773 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:27:42:150:435 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 16:27:42:193:936 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:27:42:236:126 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:27:42:278:836 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 16:27:42:647:964 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:27:42:687:388 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:27:42:725:71 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:27:42:760:769 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/iat_dda_write_skew.txt b/index/result/ob_ce3.1_mysql/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..fa2b9532 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:27:46:148:677 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:27:46:189:925 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:27:46:644:972 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:27:46:681:455 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:27:46:718:629 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 16:27:47:149:642 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:27:47:190:474 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:27:47:647:974 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:27:47:687:346 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:27:47:724:757 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/iat_dda_write_skew_committed.txt b/index/result/ob_ce3.1_mysql/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..58c4664c --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:27:51:26:768 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:27:51:64:174 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:27:51:530:523 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:27:51:570:866 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:27:51:612:422 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:27:51:653:782 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 16:27:52:27:733 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:27:52:65:823 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:27:52:107:616 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:27:52:147:623 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/iat_dda_write_skew_pred_insert.txt b/index/result/ob_ce3.1_mysql/repeatable-read/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..9363f1c0 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:28:8:218:821 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:28:8:257:117 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:28:8:723:320 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-20 16:28:8:764:899 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-20 16:28:8:806:223 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-20 16:28:9:219:615 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:28:9:257:199 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:28:9:725:136 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-20 16:28:9:764:144 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:28:9:800:946 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/iat_mda_step_iat.txt b/index/result/ob_ce3.1_mysql/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..e9c354ac --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:27:55:536:628 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-20 16:27:55:577:82 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:27:56:35:600 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 16:27:56:74:277 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-5-20 16:27:56:536:485 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-20 16:27:56:576:100 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-20 16:27:57:39:309 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-20 16:27:57:536:938 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-20 16:27:58:37:150 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-20 16:27:58:538:490 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-20 16:27:59:37:987 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-20 16:27:59:538:167 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 16:27:59:579:89 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-20 16:27:59:618:206 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/iat_sda_lost_update_committed.txt b/index/result/ob_ce3.1_mysql/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..2dadf93d --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:27:32:707:363 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 16:27:32:747:810 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:27:33:204:500 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 16:27:33:242:368 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 16:27:33:280:179 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-5-20 16:27:33:708:174 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:27:33:751:906 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:27:33:794:235 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:27:33:834:821 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/index/result/ob_ce3.1_mysql/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..ad4873a9 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,57 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:27:28:204:915 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:27:28:246:384 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:27:28:703:245 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 16:27:28:743:48 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 16:27:28:783:779 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 16:27:29:206:34 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:27:29:245:621 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:27:29:287:442 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:27:29:327:598 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_double_write_skew1.txt b/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..d55a32fb --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:23:996:998 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:25:24:36:718 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:25:24:496:580 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:25:24:534:933 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:25:24:574:60 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 16:25:25:502:864 +Q6 finished at: 2022-5-20 16:25:25:505:461 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:25:25:999:711 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-20 16:25:26:42:839 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:25:26:84:500 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_double_write_skew1_committed.txt b/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..43495f25 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:29:483:833 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:25:29:523:951 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:25:29:983:45 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:25:30:21:484 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:25:30:60:666 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:25:30:100:317 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-5-20 16:25:30:484:596 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:25:30:524:688 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-20 16:25:30:567:763 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:25:30:608:999 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_double_write_skew2.txt b/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..4578d834 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:33:973:963 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:25:34:14:976 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:25:34:474:67 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:25:34:514:14 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 16:25:34:976:120 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:25:35:16:601 + Q5 finished at: 2022-5-20 16:25:35:16:897 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:25:35:476:182 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:25:35:516:459 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:25:35:554:896 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_read_skew.txt b/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..b85e1fb2 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:38:981:855 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:25:39:24:46 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:25:39:480:647 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:25:39:521:855 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:25:39:561:941 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 16:25:39:983:291 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 16:25:40:483:470 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:25:40:983:309 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:25:41:23:894 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:25:41:62:325 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_read_skew2.txt b/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..0cee7acb --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:44:396:289 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:25:44:436:445 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:25:44:896:355 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:25:44:936:529 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:25:44:975:147 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 16:25:45:397:552 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:25:45:437:296 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:25:45:896:646 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:25:45:934:370 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:25:45:970:258 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_read_skew2_committed.txt b/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..16929f39 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:49:362:723 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:25:49:404:157 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:25:49:864:455 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:25:49:907:185 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:25:49:949:92 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:25:49:989:947 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 16:25:50:365:411 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:25:50:407:480 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:25:50:450:567 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:25:50:491:790 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_write_read_skew.txt b/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..1221ae42 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:14:93:731 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:25:14:135:72 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:25:14:592:904 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:25:14:632:505 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:25:14:672:697 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 16:25:15:94:868 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 16:25:15:599:680 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:25:16:94:780 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:25:16:137:131 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:25:16:177:635 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_write_read_skew_committed.txt b/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..66c4c883 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:19:509:640 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:25:19:552:18 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:25:20:4:991 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:25:20:41:588 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:25:20:78:800 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:25:20:116:226 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 16:25:20:511:29 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:25:20:553:238 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:25:20:594:238 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:25:20:633:356 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/rat_mda_step_rat.txt b/index/result/ob_ce3.1_mysql/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..51d216e6 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:53:881:407 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:25:53:925:966 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:25:54:379:203 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:25:54:416:466 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:25:54:454:394 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-5-20 16:25:54:880:718 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-20 16:25:54:919:735 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-20 16:25:54:959:101 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-20 16:25:55:383:38 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-20 16:25:55:424:51 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-20 16:25:55:883:613 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-20 16:25:56:396:269 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 16:25:56:436:328 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-20 16:25:56:474:71 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/rat_sda_dirty_read.txt b/index/result/ob_ce3.1_mysql/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..75ee5b4e --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,46 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:49:27:79 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:24:49:69:58 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:49:526:594 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 16:24:49:568:886 +Q5-T1 execute opt: 'ROLLBACK;' +Q5 finished at: 2022-5-20 16:24:50:27:333 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:24:50:526:863 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-20 16:24:50:570:337 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:24:50:612:205 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/rat_sda_intermediate_read.txt b/index/result/ob_ce3.1_mysql/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..9cfe3cc5 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:59:293:995 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:24:59:331:863 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:59:798:423 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 16:24:59:840:499 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-20 16:25:0:295:763 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:25:0:798:877 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:25:1:299:559 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 16:25:1:342:399 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:25:1:383:733 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/rat_sda_intermediate_read_committed.txt b/index/result/ob_ce3.1_mysql/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..bb5c2532 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:4:709:304 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:25:4:751:734 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:25:5:207:5 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 16:25:5:247:552 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 16:25:5:285:826 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-20 16:25:5:710:208 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:25:5:756:750 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 16:25:5:796:180 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:25:5:833:863 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/rat_sda_lost_self_update.txt b/index/result/ob_ce3.1_mysql/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..f572f0bd --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:9:173:813 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:25:9:214:742 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:25:9:677:857 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 16:25:10:179:524 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 16:25:10:220:744 + Q4 finished at: 2022-5-20 16:25:10:224:567 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 16:25:10:679:775 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:25:10:719:606 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:25:10:757:777 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/rat_sda_non_repeatable_read.txt b/index/result/ob_ce3.1_mysql/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..0a8cd8c3 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:53:881:684 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:24:53:919:214 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:54:384:996 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 16:24:54:425:769 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 16:24:54:882:710 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:24:55:387:953 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:24:55:881:889 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:24:55:921:895 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:24:55:960:259 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt b/index/result/ob_ce3.1_mysql/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..c505b429 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:28:2:871:262 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:28:2:910:96 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:28:3:370:535 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-20 16:28:3:407:593 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 16:28:3:872:197 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:28:4:371:512 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:28:4:874:919 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:28:4:914:177 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:28:4:951:755 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/wat_dda_double_write_skew2_committed.txt b/index/result/ob_ce3.1_mysql/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..7b33b04f --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:26:23:688:966 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:26:23:726:528 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:26:24:191:379 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:26:24:230:345 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 16:26:24:690:929 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:26:24:730:989 + Q5 finished at: 2022-5-20 16:26:24:733:598 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:26:24:775:70 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:26:24:812:919 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:26:24:848:530 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/wat_dda_full_write_skew_c1.txt b/index/result/ob_ce3.1_mysql/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..1c9a4b34 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:26:28:193:623 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:26:28:233:743 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:26:28:693:658 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 16:26:28:735:835 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-5-20 16:26:39:185:548 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q6 failed at: 2022-5-20 16:26:39:700:814 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/wat_dda_full_write_skew_committed.txt b/index/result/ob_ce3.1_mysql/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..bb879e93 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:26:43:56:432 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:26:43:97:228 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:26:43:554:735 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 16:26:43:592:571 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-5-20 16:26:54:34:960 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q7 failed at: 2022-5-20 16:26:54:664:41 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/wat_dda_read_write_skew1_c1.txt b/index/result/ob_ce3.1_mysql/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..06b93ee2 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:26:57:960:826 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:26:57:998:927 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:26:58:463:875 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 16:26:58:505:407 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:26:58:545:545 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 16:26:59:463:603 +Q7-T1 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:26:59:466:3 +Q7 finished at: 2022-5-20 16:26:59:503:546 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:26:59:544:558 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:26:59:583:658 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/wat_dda_read_write_skew2_c1.txt b/index/result/ob_ce3.1_mysql/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..2e34b49e --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:27:2:956:318 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:27:2:998:917 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:27:3:453:83 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:27:3:492:516 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 16:27:3:960:398 +Q7-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 16:27:4:5:224 +Q7 finished at: 2022-5-20 16:27:4:6:272 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:27:4:459:353 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:27:4:499:350 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:27:4:537:660 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/wat_dda_read_write_skew2_committed.txt b/index/result/ob_ce3.1_mysql/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..35fb264f --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:27:7:898:547 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:27:7:942:206 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:27:8:400:721 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:27:8:446:125 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 16:27:8:899:577 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:27:8:943:782 + Q5 finished at: 2022-5-20 16:27:8:944:49 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:27:8:984:868 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:27:9:22:970 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:27:9:59:505 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/wat_mda_step_wat_c1.txt b/index/result/ob_ce3.1_mysql/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..5afefe28 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:27:12:505:194 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:27:12:545:253 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:27:13:7:555 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 16:27:13:49:660 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-5-20 16:27:13:508:833 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-20 16:27:13:551:402 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-5-20 16:27:23:492:526 + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q8 failed at: 2022-5-20 16:27:24:302:498 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q9 failed at: 2022-5-20 16:27:24:808:61 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/wat_sda_dirty_write_2commit.txt b/index/result/ob_ce3.1_mysql/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..3bc41278 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:59:815:201 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:25:59:856:231 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:26:0:314:482 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-20 16:26:0:815:984 +Q5 finished at: 2022-5-20 16:26:0:817:96 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:26:1:315:980 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-5-20 16:26:1:358:19 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-5-20 16:26:1:419:809 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:26:1:460:303 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/wat_sda_full_write.txt b/index/result/ob_ce3.1_mysql/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..140b1548 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:26:4:787:702 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:26:4:828:511 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:26:5:287:826 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-20 16:26:5:788:833 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 16:26:5:829:564 + Q4 finished at: 2022-5-20 16:26:5:830:513 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 16:26:6:290:504 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-20 16:26:6:333:290 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:26:6:374:699 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/wat_sda_full_write_committed.txt b/index/result/ob_ce3.1_mysql/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..58dc69a1 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:26:9:760:524 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:26:9:802:11 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:26:10:261:948 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-20 16:26:10:761:789 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:26:10:803:183 + Q4 finished at: 2022-5-20 16:26:10:803:468 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 16:26:10:845:740 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-20 16:26:10:887:828 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:26:10:928:126 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/wat_sda_lost_self_update_committed.txt b/index/result/ob_ce3.1_mysql/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..89470476 --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:26:19:230:69 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:26:19:270:745 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:26:19:731:772 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 16:26:20:232:266 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:26:20:273:363 + Q4 finished at: 2022-5-20 16:26:20:273:746 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 16:26:20:315:877 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:26:20:357:193 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:26:20:396:950 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_ce3.1_mysql/repeatable-read/wat_sda_lost_update_c1.txt b/index/result/ob_ce3.1_mysql/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..7710f82b --- /dev/null +++ b/index/result/ob_ce3.1_mysql/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:26:14:277:935 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 16:26:14:317:965 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:26:14:778:637 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 16:26:14:819:453 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 16:26:15:780:541 +Q5 finished at: 2022-5-20 16:26:15:783:139 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 16:26:15:822:762 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:26:15:860:894 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:26:15:897:462 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_ce3.1_mysql/result_summary/read-committed_total-result.txt b/index/result/ob_ce3.1_mysql/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..a211bb8b --- /dev/null +++ b/index/result/ob_ce3.1_mysql/result_summary/read-committed_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Timeout + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/index/result/ob_ce3.1_mysql/result_summary/repeatable-read_total-result.txt b/index/result/ob_ce3.1_mysql/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..a211bb8b --- /dev/null +++ b/index/result/ob_ce3.1_mysql/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Timeout + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/index/result/ob_xe2.2_oracle/read-committed/iat_dda_read_skew_committed.txt b/index/result/ob_xe2.2_oracle/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..4b05ffa3 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:52:24:780 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:8:52:28:491 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:52:124:872 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:52:128:134 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:8:52:129:880 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:52:132:83 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:8:52:225:574 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:8:52:226:645 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:52:229:645 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:52:230:537 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/read-committed/iat_dda_read_write_skew1_committed.txt b/index/result/ob_xe2.2_oracle/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..8ea2343d --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:52:536:150 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:8:52:539:275 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:52:636:175 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:52:639:253 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:8:52:641:43 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:52:643:331 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:8:52:736:836 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:8:52:741:79 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:52:744:399 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:52:745:352 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/read-committed/iat_dda_write_skew.txt b/index/result/ob_xe2.2_oracle/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..a26cfff8 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:53:50:688 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:8:53:54:454 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:53:150:663 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:8:53:152:377 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:8:53:155:305 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:8:53:251:188 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:53:253:454 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:8:53:353:194 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:53:356:267 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:8:53:357:359 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/read-committed/iat_dda_write_skew_committed.txt b/index/result/ob_xe2.2_oracle/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..c70e9460 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:53:660:918 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:8:53:664:807 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:53:764:152 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:8:53:766:36 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:8:53:769:744 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:53:771:841 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:8:53:863:727 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:8:53:867:379 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:53:870:181 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:53:871:171 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/read-committed/iat_dda_write_skew_pred_insert.txt b/index/result/ob_xe2.2_oracle/read-committed/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..da6c30c4 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:56:137:236 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:8:56:141:346 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:56:237:195 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-20 15:8:56:240:148 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-20 15:8:56:242:875 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-20 15:8:56:337:531 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:56:339:775 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:8:56:441:251 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-20 15:8:56:450:276 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:56:451:524 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/read-committed/iat_mda_step_iat.txt b/index/result/ob_xe2.2_oracle/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..6d20e995 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:54:254:984 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-20 15:8:54:258:568 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:54:354:867 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:8:54:356:992 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-5-20 15:8:54:454:934 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-20 15:8:54:456:959 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-20 15:8:54:558:752 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-20 15:8:54:655:403 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-20 15:8:54:755:576 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-20 15:8:54:856:538 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-20 15:8:54:957:378 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-20 15:8:55:56:494 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 15:8:55:59:730 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-20 15:8:55:60:736 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/read-committed/iat_sda_lost_update_committed.txt b/index/result/ob_xe2.2_oracle/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..abfbfdb0 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:51:515:951 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 15:8:51:519:691 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:51:616:27 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 15:8:51:619:335 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:8:51:622:54 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-5-20 15:8:51:716:742 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:51:720:237 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:8:51:722:858 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:51:723:801 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/read-committed/iat_sda_non_repeatable_read_committed.txt b/index/result/ob_xe2.2_oracle/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..278df9cc --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,57 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:50:992:474 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:8:50:995:462 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:51:92:401 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 15:8:51:95:200 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:8:51:97:571 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 15:8:51:192:998 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:51:193:922 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:8:51:196:414 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:51:197:430 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/read-committed/rat_dda_double_write_skew1.txt b/index/result/ob_xe2.2_oracle/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..43f99185 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:20:319:938 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:20:323:433 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:20:420:106 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:20:421:736 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:8:20:424:280 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:8:20:625:339 +Q6 finished at: 2022-5-20 15:8:20:625:618 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:8:20:725:737 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-20 15:8:20:729:259 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:20:730:274 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/read-committed/rat_dda_double_write_skew1_committed.txt b/index/result/ob_xe2.2_oracle/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..29789608 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:21:90:389 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:21:94:75 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:21:190:654 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:21:192:486 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:8:21:195:204 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:21:201:135 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-5-20 15:8:21:291:114 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:8:21:293:641 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-20 15:8:21:301:830 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:21:302:914 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/read-committed/rat_dda_double_write_skew2.txt b/index/result/ob_xe2.2_oracle/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..edc808a5 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:21:654:600 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:21:658:173 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:21:754:616 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:21:756:303 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:8:21:856:202 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:21:858:227 + Q5 finished at: 2022-5-20 15:8:21:858:450 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:8:21:957:223 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:21:960:145 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:21:961:64 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/read-committed/rat_dda_read_skew.txt b/index/result/ob_xe2.2_oracle/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..3dce7d66 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:22:262:351 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:8:22:265:660 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:22:362:528 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:22:365:573 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:8:22:367:210 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:8:22:463:293 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:8:22:564:654 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:8:22:662:356 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:22:665:382 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:22:666:520 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/read-committed/rat_dda_read_skew2.txt b/index/result/ob_xe2.2_oracle/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..f80d69d0 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:23:31:360 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:23:36:546 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:23:131:73 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:8:23:137:296 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:8:23:139:672 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:8:23:232:194 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:23:234:730 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:8:23:331:874 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:23:335:68 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:23:336:290 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/read-committed/rat_dda_read_skew2_committed.txt b/index/result/ob_xe2.2_oracle/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..338f34dd --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:23:650:265 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:23:654:201 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:23:750:152 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:8:23:753:101 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:8:23:754:718 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:23:755:722 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:8:23:850:764 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:8:23:853:293 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:23:856:203 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:23:857:165 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/read-committed/rat_dda_write_read_skew.txt b/index/result/ob_xe2.2_oracle/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..ae196e0f --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:19:10:386 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:19:19:863 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:19:110:312 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:19:111:950 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:8:19:114:540 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:8:19:212:572 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:8:19:311:878 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:8:19:411:486 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:19:414:247 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:19:415:217 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/read-committed/rat_dda_write_read_skew_committed.txt b/index/result/ob_xe2.2_oracle/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..684620f8 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:19:766:51 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:19:773:932 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:19:866:88 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:19:867:601 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:8:19:870:162 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:19:872:455 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:8:19:966:725 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:8:19:969:27 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:19:972:174 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:19:973:211 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/read-committed/rat_mda_step_rat.txt b/index/result/ob_xe2.2_oracle/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..b3698a48 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:24:178:314 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:24:181:905 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:24:277:561 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:24:279:241 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:8:24:282:434 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-5-20 15:8:24:377:581 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-20 15:8:24:379:210 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-20 15:8:24:381:265 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-20 15:8:24:478:983 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-20 15:8:24:481:105 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-20 15:8:24:578:772 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-20 15:8:24:681:230 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 15:8:24:685:110 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-20 15:8:24:686:317 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/read-committed/rat_sda_dirty_read.txt b/index/result/ob_xe2.2_oracle/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..606c0d93 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,46 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:15:693:699 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:15:697:236 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:15:793:861 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:8:15:796:532 +Q5-T1 execute opt: 'ROLLBACK;' +Q5 finished at: 2022-5-20 15:8:15:896:342 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:15:995:899 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-20 15:8:15:998:402 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:8:15:999:399 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/read-committed/rat_sda_intermediate_read.txt b/index/result/ob_xe2.2_oracle/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..4a0ba909 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:17:107:809 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:17:111:843 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:17:207:795 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:8:17:210:834 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-20 15:8:17:308:218 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:17:407:786 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:17:509:141 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 15:8:17:511:755 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:17:512:756 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/read-committed/rat_sda_intermediate_read_committed.txt b/index/result/ob_xe2.2_oracle/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..9ae0a9fd --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:17:848:246 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:17:851:815 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:17:949:844 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:8:17:952:379 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:8:17:953:319 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-20 15:8:18:52:0 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:18:54:359 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 15:8:18:57:54 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:18:57:989 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/read-committed/rat_sda_lost_self_update.txt b/index/result/ob_xe2.2_oracle/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..b2045d65 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:18:357:59 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:18:361:65 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:18:456:794 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:8:18:558:738 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 15:8:18:581:754 + Q4 finished at: 2022-5-20 15:8:18:581:851 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:8:18:661:124 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:8:18:663:668 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:18:664:599 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/read-committed/rat_sda_non_repeatable_read.txt b/index/result/ob_xe2.2_oracle/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..88ac442d --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:16:343:510 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:8:16:347:103 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:16:443:523 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 15:8:16:446:488 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:8:16:544:27 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:16:644:840 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:16:743:968 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:8:16:751:406 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:16:752:385 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/read-committed/rat_sda_non_repeatable_read_pred_insert.txt b/index/result/ob_xe2.2_oracle/read-committed/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..dae958e2 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:55:400:603 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:8:55:404:483 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:55:500:744 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-20 15:8:55:503:450 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:8:55:604:561 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:55:701:616 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:55:804:21 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:8:55:812:368 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:55:813:467 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/read-committed/wat_dda_double_write_skew2_committed.txt b/index/result/ob_xe2.2_oracle/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..a8a0171b --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:27:921:596 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:27:925:430 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:28:25:324 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:28:27:63 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:8:28:126:61 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:8:28:128:485 + Q5 finished at: 2022-5-20 15:8:28:128:771 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:28:130:603 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:28:133:355 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:28:134:410 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/read-committed/wat_dda_full_write_skew_c1.txt b/index/result/ob_xe2.2_oracle/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..de5f7b3e --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:28:433:526 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:28:437:385 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:28:533:675 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:28:535:492 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-5-20 15:8:34:704:102 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-5-20 15:8:34:876:304 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/index/result/ob_xe2.2_oracle/read-committed/wat_dda_full_write_skew_committed.txt b/index/result/ob_xe2.2_oracle/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..cd3a07a5 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:35:180:315 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:35:189:615 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:35:280:201 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:35:281:755 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-5-20 15:8:40:982:290 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q7 failed at: 2022-5-20 15:8:41:562:188 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/index/result/ob_xe2.2_oracle/read-committed/wat_dda_read_write_skew1_c1.txt b/index/result/ob_xe2.2_oracle/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..64cf26dd --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:41:873:378 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:8:41:877:189 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:41:973:575 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:41:977:40 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:8:41:978:712 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:8:42:177:483 +Q6 finished at: 2022-5-20 15:8:42:177:524 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:42:179:840 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:42:182:516 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:42:183:378 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/read-committed/wat_dda_read_write_skew2_c1.txt b/index/result/ob_xe2.2_oracle/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..fc4737d0 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:42:509:571 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:42:513:477 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:42:609:321 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:8:42:611:957 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:8:42:710:453 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:42:712:813 + Q5 finished at: 2022-5-20 15:8:42:713:247 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:8:42:811:282 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:42:814:538 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:42:815:702 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/read-committed/wat_dda_read_write_skew2_committed.txt b/index/result/ob_xe2.2_oracle/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..5e355985 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:43:143:710 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:43:147:423 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:43:244:222 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:8:43:252:647 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:8:43:344:141 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:8:43:346:326 + Q5 finished at: 2022-5-20 15:8:43:346:543 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:43:348:528 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:43:351:345 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:43:352:401 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/read-committed/wat_mda_step_wat_c1.txt b/index/result/ob_xe2.2_oracle/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..422fef34 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:43:681:496 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:43:685:598 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:43:784:326 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:43:786:220 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-5-20 15:8:43:884:146 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-20 15:8:43:885:908 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-5-20 15:8:49:341:621 + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q8 failed at: 2022-5-20 15:8:49:702:655 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-5-20 15:8:50:687:903 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/index/result/ob_xe2.2_oracle/read-committed/wat_sda_dirty_write_2commit.txt b/index/result/ob_xe2.2_oracle/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..8c4bb977 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:24:997:287 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:25:0:807 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:25:97:555 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-20 15:8:25:200:75 + Q4 finished at: 2022-5-20 15:8:25:200:374 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:25:298:432 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-5-20 15:8:25:301:156 + Q8-T3 execute sql: 'DROP TABLE t1;' + Q8 finished at: 2022-5-20 15:8:25:315:282 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:25:316:303 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/read-committed/wat_sda_full_write.txt b/index/result/ob_xe2.2_oracle/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..0b394a83 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/wat_sda_full_write.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:25:627:654 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:25:632:318 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:25:728:30 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-20 15:8:25:836:750 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 15:8:25:847:292 + Q4 finished at: 2022-5-20 15:8:25:848:13 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:8:25:937:588 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-20 15:8:25:940:322 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:25:941:366 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/read-committed/wat_sda_full_write_committed.txt b/index/result/ob_xe2.2_oracle/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..de4394e0 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:26:243:430 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:26:247:393 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:26:343:448 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-20 15:8:26:443:899 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:26:447:417 + Q4 finished at: 2022-5-20 15:8:26:448:21 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:8:26:456:602 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-20 15:8:26:459:143 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:26:460:120 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/read-committed/wat_sda_lost_self_update_committed.txt b/index/result/ob_xe2.2_oracle/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..114edce3 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:27:393:439 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:27:397:201 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:27:493:518 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 15:8:27:595:322 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:27:609:186 + Q4 finished at: 2022-5-20 15:8:27:609:697 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:8:27:612:136 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:8:27:614:916 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:27:615:912 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/read-committed/wat_sda_lost_update_c1.txt b/index/result/ob_xe2.2_oracle/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..ccb14bdd --- /dev/null +++ b/index/result/ob_xe2.2_oracle/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:26:777:837 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 15:8:26:781:32 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:26:877:979 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 15:8:26:881:138 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:8:27:81:202 +Q5 finished at: 2022-5-20 15:8:27:81:512 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 15:8:27:83:584 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:8:27:86:373 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:27:87:518 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/iat_dda_read_skew_committed.txt b/index/result/ob_xe2.2_oracle/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..b8d30cee --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:38:858:77 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:9:38:861:724 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:38:957:965 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:38:960:817 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:9:38:962:403 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:38:964:435 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:9:39:58:696 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:39:60:52 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:39:62:814 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:39:63:814 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/iat_dda_read_write_skew1_committed.txt b/index/result/ob_xe2.2_oracle/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..8ee0b032 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:39:364:760 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:9:39:368:197 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:39:464:703 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:39:468:9 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:9:39:469:786 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:39:472:203 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-5-20 15:9:40:267:829 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/iat_dda_write_skew.txt b/index/result/ob_xe2.2_oracle/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..594287e7 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:40:574:989 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:9:40:578:156 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:40:676:105 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:9:40:678:28 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:9:40:681:1 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:9:40:775:499 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:40:777:738 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:9:40:876:374 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:40:884:304 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:9:40:885:243 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/iat_dda_write_skew_committed.txt b/index/result/ob_xe2.2_oracle/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..257a07e0 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:41:182:295 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:9:41:186:83 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:41:281:547 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:9:41:283:164 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:9:41:285:962 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:41:288:781 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:9:41:384:105 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:41:386:278 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:41:389:18 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:41:390:19 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/iat_dda_write_skew_pred_insert.txt b/index/result/ob_xe2.2_oracle/repeatable-read/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..3fd91360 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:43:488:129 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:9:43:492:44 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:43:588:194 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-20 15:9:43:591:217 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-20 15:9:43:593:965 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-20 15:9:43:692:496 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:43:694:783 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:9:43:789:245 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-20 15:9:43:792:298 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:43:793:323 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/iat_mda_step_iat.txt b/index/result/ob_xe2.2_oracle/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..2c7b977f --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:41:696:669 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-20 15:9:41:704:903 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:41:796:615 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:9:41:798:527 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-5-20 15:9:41:897:381 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-20 15:9:41:899:383 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-20 15:9:41:998:827 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-20 15:9:42:97:261 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-20 15:9:42:197:172 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-20 15:9:42:298:318 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-20 15:9:42:398:113 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-20 15:9:42:498:271 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 15:9:42:501:547 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-20 15:9:42:502:526 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/iat_sda_lost_update_committed.txt b/index/result/ob_xe2.2_oracle/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..49b784f3 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:37:756:247 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 15:9:37:759:448 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:37:856:284 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 15:9:37:859:343 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:9:37:861:766 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-20 15:9:38:557:489 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/index/result/ob_xe2.2_oracle/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..c051d938 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:37:242:504 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:9:37:245:748 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:37:344:188 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 15:9:37:347:173 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:9:37:349:73 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 15:9:37:442:393 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:37:443:526 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:9:37:446:187 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:9:37:447:216 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_double_write_skew1.txt b/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..6823aa72 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:1:768:739 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:1:772:162 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:1:868:655 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:1:870:260 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:1:872:947 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:9:2:70:918 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-20 15:9:2:671:710 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_double_write_skew1_committed.txt b/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..1d9116af --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:3:37:929 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:3:41:880 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:3:137:851 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:3:140:51 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:3:143:402 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:3:146:997 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-5-20 15:9:3:939:302 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_double_write_skew2.txt b/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..987fb46e --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:4:283:333 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:4:291:752 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:4:383:173 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:4:384:766 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:9:4:485:569 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:4:488:510 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:9:4:989:497 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_read_skew.txt b/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..cd953c87 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:5:337:731 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:9:5:341:325 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:5:440:306 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:5:444:61 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:9:5:446:109 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:9:5:538:628 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:9:5:641:824 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:5:737:542 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:5:740:574 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:5:741:800 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_read_skew2.txt b/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..e5af4387 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:6:57:368 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:6:61:472 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:6:160:295 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:9:6:163:239 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:6:164:892 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:9:6:260:766 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:6:263:145 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:9:6:357:182 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:6:360:230 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:6:361:292 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_read_skew2_committed.txt b/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..a9e96fb9 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:6:674:161 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:6:678:591 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:6:774:24 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:9:6:776:790 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:6:778:633 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:6:779:666 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:9:6:874:782 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:6:877:171 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:6:880:211 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:6:881:319 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_write_read_skew.txt b/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..02cb33ce --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:0:488:826 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:0:492:289 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:0:591:959 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:0:593:512 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:0:595:983 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:9:0:692:575 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:9:0:790:917 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:0:892:849 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:0:895:619 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:0:896:582 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_write_read_skew_committed.txt b/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..6cff641b --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:1:231:705 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:1:235:394 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:1:331:727 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:1:343:153 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:1:345:947 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:1:348:14 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:9:1:432:828 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:1:436:698 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:1:439:965 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:1:440:939 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/rat_mda_step_rat.txt b/index/result/ob_xe2.2_oracle/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..a8523e12 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:7:227:402 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:7:231:157 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:7:327:347 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:7:328:943 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:7:331:938 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-5-20 15:9:7:428:203 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-20 15:9:7:429:955 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-20 15:9:7:432:294 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-20 15:9:7:533:433 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-20 15:9:7:543:806 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-20 15:9:7:628:657 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-20 15:9:7:734:633 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 15:9:7:738:383 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-20 15:9:7:739:565 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/rat_sda_dirty_read.txt b/index/result/ob_xe2.2_oracle/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..4f462624 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,46 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:56:860:607 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:56:864:185 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:56:960:503 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:8:56:963:170 +Q5-T1 execute opt: 'ROLLBACK;' +Q5 finished at: 2022-5-20 15:8:57:60:567 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:57:160:510 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-20 15:8:57:163:163 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:8:57:164:121 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/rat_sda_intermediate_read.txt b/index/result/ob_xe2.2_oracle/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..a9b3d0d8 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:58:264:220 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:58:268:349 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:58:364:44 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:8:58:366:833 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-20 15:8:58:464:642 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:58:564:2 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:58:665:403 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 15:8:58:668:139 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:58:669:131 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/rat_sda_intermediate_read_committed.txt b/index/result/ob_xe2.2_oracle/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..c7fb040c --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:58:972:110 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:58:975:750 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:59:71:889 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:8:59:74:572 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:8:59:75:703 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-20 15:8:59:172:558 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:59:175:123 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 15:8:59:177:824 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:59:179:10 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/rat_sda_lost_self_update.txt b/index/result/ob_xe2.2_oracle/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..399574db --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:59:537:492 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:59:546:652 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:59:637:495 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:8:59:738:915 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 15:8:59:741:378 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:9:0:142:213 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/rat_sda_non_repeatable_read.txt b/index/result/ob_xe2.2_oracle/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..03148363 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:57:499:356 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:8:57:503:36 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:57:600:156 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 15:8:57:603:323 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:8:57:700:688 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:57:800:143 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:57:898:976 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:8:57:905:986 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:57:906:972 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt b/index/result/ob_xe2.2_oracle/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..e62eddf5 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:42:797:238 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:9:42:801:366 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:42:897:85 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-20 15:9:42:899:597 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:9:42:997:557 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:43:98:433 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:43:197:4 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:9:43:199:721 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:9:43:200:876 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/wat_dda_double_write_skew2_committed.txt b/index/result/ob_xe2.2_oracle/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..1d138de1 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:12:864:981 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:12:868:855 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:12:965:310 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:12:967:128 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:9:13:66:770 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:13:69:298 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:9:13:570:564 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/wat_dda_full_write_skew_c1.txt b/index/result/ob_xe2.2_oracle/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..85818a01 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:13:897:580 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:13:901:268 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:14:0:63 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:14:1:739 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-20 15:9:18:954:169 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:9:18:956:675 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-5-20 15:9:19:557:268 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/wat_dda_full_write_skew_committed.txt b/index/result/ob_xe2.2_oracle/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..b7ecf466 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:19:869:80 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:19:872:591 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:19:969:103 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:19:970:892 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-5-20 15:9:25:637:970 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q7 failed at: 2022-5-20 15:9:26:619:203 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/wat_dda_read_write_skew1_c1.txt b/index/result/ob_xe2.2_oracle/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..bbe6e7ac --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:26:940:219 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:9:26:944:323 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:27:38:251 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:27:41:674 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:9:27:43:539 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:9:27:241:703 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-20 15:9:27:842:444 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/wat_dda_read_write_skew2_c1.txt b/index/result/ob_xe2.2_oracle/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..3e5d63de --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:28:148:106 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:28:151:569 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:28:248:611 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:9:28:251:186 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:9:28:348:666 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:28:351:19 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:9:28:851:801 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/wat_dda_read_write_skew2_committed.txt b/index/result/ob_xe2.2_oracle/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..1d218bdd --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:29:190:269 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:29:194:353 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:29:289:963 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:9:29:292:874 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:9:29:390:360 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:29:393:352 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:9:29:893:563 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/wat_mda_step_wat_c1.txt b/index/result/ob_xe2.2_oracle/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..5e35e3a3 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:30:217:100 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:30:221:37 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:30:317:383 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:30:319:31 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-5-20 15:9:30:417:140 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-20 15:9:30:418:857 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q8 failed at: 2022-5-20 15:9:36:364:855 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-5-20 15:9:36:392:227 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-5-20 15:9:36:936:628 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/wat_sda_dirty_write_2commit.txt b/index/result/ob_xe2.2_oracle/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..a5871411 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,29 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:8:75:282 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:8:78:840 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:8:175:993 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-20 15:9:8:277:329 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:9:8:678:180 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/wat_sda_full_write.txt b/index/result/ob_xe2.2_oracle/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..fc966edb --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:8:981:415 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:8:985:976 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:9:81:340 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-20 15:9:9:182:99 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 15:9:9:188:440 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:9:9:591:939 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/wat_sda_full_write_committed.txt b/index/result/ob_xe2.2_oracle/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..9b460f54 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:9:906:429 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:9:910:123 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:10:6:910 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-20 15:9:10:107:309 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:10:109:974 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:9:10:510:907 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/wat_sda_lost_self_update_committed.txt b/index/result/ob_xe2.2_oracle/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..3bc9fa64 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:11:953:809 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:11:957:681 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:12:53:752 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 15:9:12:155:53 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:12:157:398 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:9:12:557:958 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/repeatable-read/wat_sda_lost_update_c1.txt b/index/result/ob_xe2.2_oracle/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..57a15c4b --- /dev/null +++ b/index/result/ob_xe2.2_oracle/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:10:840:823 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 15:9:10:844:123 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:10:940:911 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 15:9:10:944:697 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:9:11:141:625 +Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q5 failed at: 2022-5-20 15:9:11:642:620 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/result_summary/read-committed_total-result.txt b/index/result/ob_xe2.2_oracle/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..a211bb8b --- /dev/null +++ b/index/result/ob_xe2.2_oracle/result_summary/read-committed_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Timeout + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/index/result/ob_xe2.2_oracle/result_summary/repeatable-read_total-result.txt b/index/result/ob_xe2.2_oracle/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..784c71d8 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Timeout + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/index/result/ob_xe2.2_oracle/result_summary/serializable_total-result.txt b/index/result/ob_xe2.2_oracle/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..784c71d8 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/result_summary/serializable_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Timeout + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/index/result/ob_xe2.2_oracle/serializable/iat_dda_read_skew_committed.txt b/index/result/ob_xe2.2_oracle/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..a7c4ec37 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:25:50:469 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:10:25:54:536 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:25:150:749 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:10:25:154:194 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:10:25:156:13 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:10:25:158:284 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:10:25:258:859 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:10:25:260:36 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:10:25:264:765 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:10:25:265:645 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/serializable/iat_dda_read_write_skew1_committed.txt b/index/result/ob_xe2.2_oracle/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..da7d5627 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:25:589:981 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:10:25:597:658 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:25:689:994 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:10:25:693:114 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:10:25:694:873 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:10:25:697:230 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-5-20 15:10:26:491:736 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/serializable/iat_dda_write_skew.txt b/index/result/ob_xe2.2_oracle/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..b8c9fb32 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/iat_dda_write_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:26:804:466 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:10:26:808:468 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:26:908:593 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:10:26:910:653 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:10:26:913:569 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:10:27:5:585 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:10:27:7:952 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:10:27:111:928 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:10:27:115:172 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:10:27:116:201 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/serializable/iat_dda_write_skew_committed.txt b/index/result/ob_xe2.2_oracle/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..eaa637dc --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:27:424:225 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:10:27:427:919 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:27:527:347 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:10:27:529:338 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:10:27:532:424 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:10:27:534:632 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:10:27:624:606 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:10:27:626:792 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:10:27:629:560 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:10:27:630:507 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/serializable/iat_dda_write_skew_pred_insert.txt b/index/result/ob_xe2.2_oracle/serializable/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..b27bb466 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:29:743:588 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:10:29:748:122 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:29:843:725 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-20 15:10:29:846:987 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-20 15:10:29:849:839 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-20 15:10:29:944:553 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:10:29:948:443 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:10:30:44:481 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-20 15:10:30:47:398 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:10:30:48:334 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/serializable/iat_mda_step_iat.txt b/index/result/ob_xe2.2_oracle/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..425500b0 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/iat_mda_step_iat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:27:934:236 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-20 15:10:27:938:108 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:28:34:286 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:10:28:36:263 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-5-20 15:10:28:134:140 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-20 15:10:28:136:79 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-20 15:10:28:236:13 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-20 15:10:28:334:951 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-20 15:10:28:434:690 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-20 15:10:28:535:622 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-20 15:10:28:635:529 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-20 15:10:28:735:475 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 15:10:28:738:654 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-20 15:10:28:739:765 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/serializable/iat_sda_lost_update_committed.txt b/index/result/ob_xe2.2_oracle/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..8019ffd9 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:23:927:576 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 15:10:23:930:956 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:24:27:279 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 15:10:24:30:279 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:10:24:32:538 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-20 15:10:24:729:256 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/serializable/iat_sda_non_repeatable_read_committed.txt b/index/result/ob_xe2.2_oracle/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..560112ce --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:23:420:569 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:10:23:423:846 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:23:520:319 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 15:10:23:523:272 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:10:23:525:253 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 15:10:23:621:63 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:10:23:622:85 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:10:23:625:35 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:10:23:626:255 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/serializable/rat_dda_double_write_skew1.txt b/index/result/ob_xe2.2_oracle/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..7ed16095 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:48:959:683 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:48:964:15 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:49:59:752 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:49:61:537 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:49:64:465 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:9:49:261:251 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-20 15:9:49:862:21 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/serializable/rat_dda_double_write_skew1_committed.txt b/index/result/ob_xe2.2_oracle/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..05154185 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:50:168:963 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:50:172:595 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:50:269:370 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:50:271:119 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:50:274:30 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:50:278:525 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-5-20 15:9:51:70:64 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/serializable/rat_dda_double_write_skew2.txt b/index/result/ob_xe2.2_oracle/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..fd64a12e --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:51:366:473 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:51:369:927 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:51:466:355 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:51:468:57 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:9:51:568:43 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:51:570:435 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:9:52:71:241 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/serializable/rat_dda_read_skew.txt b/index/result/ob_xe2.2_oracle/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..6c0eb22f --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/rat_dda_read_skew.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:52:371:421 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:9:52:374:393 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:52:471:420 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:52:474:462 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:9:52:475:949 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:9:52:571:961 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:9:52:672:889 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:52:771:493 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:52:779:834 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:52:781:144 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/serializable/rat_dda_read_skew2.txt b/index/result/ob_xe2.2_oracle/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..7bd5eb12 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:53:80:128 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:53:83:905 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:53:180:251 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:9:53:183:182 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:53:185:403 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:9:53:280:569 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:53:282:882 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:9:53:380:154 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:53:388:382 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:53:389:682 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/serializable/rat_dda_read_skew2_committed.txt b/index/result/ob_xe2.2_oracle/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..99469df6 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:53:706:940 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:53:710:542 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:53:813:397 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:9:53:815:941 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:53:817:492 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:53:818:426 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:9:53:912:41 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:53:914:441 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:53:917:380 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:53:918:419 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/serializable/rat_dda_write_read_skew.txt b/index/result/ob_xe2.2_oracle/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..eee6cd6c --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:47:733:833 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:47:740:340 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:47:836:261 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:47:839:24 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:47:843:618 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:9:47:933:410 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:9:48:59:575 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:48:133:848 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:48:136:805 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:48:137:804 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/serializable/rat_dda_write_read_skew_committed.txt b/index/result/ob_xe2.2_oracle/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..58da3bb6 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:48:452:772 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:48:457:58 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:48:552:391 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:48:590:30 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:48:608:846 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:48:611:328 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:9:48:652:912 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:48:654:967 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:48:657:606 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:48:658:491 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/serializable/rat_mda_step_rat.txt b/index/result/ob_xe2.2_oracle/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..efa2a7d0 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:54:225:662 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:54:229:404 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:54:325:739 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:54:327:373 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:54:330:496 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-5-20 15:9:54:425:755 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-20 15:9:54:427:344 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-20 15:9:54:429:483 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-20 15:9:54:528:880 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-20 15:9:54:531:372 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-20 15:9:54:626:937 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-20 15:9:54:727:208 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 15:9:54:730:418 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-20 15:9:54:731:505 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/ob_xe2.2_oracle/serializable/rat_sda_dirty_read.txt b/index/result/ob_xe2.2_oracle/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..f5a04ee7 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,46 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:44:157:585 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:44:161:64 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:44:257:550 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:9:44:260:366 +Q5-T1 execute opt: 'ROLLBACK;' +Q5 finished at: 2022-5-20 15:9:44:360:254 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:44:457:674 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-20 15:9:44:460:535 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:9:44:461:555 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/serializable/rat_sda_intermediate_read.txt b/index/result/ob_xe2.2_oracle/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..b8b166b9 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:45:491:145 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:45:495:881 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:45:590:867 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:9:45:593:396 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-20 15:9:45:701:853 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:45:793:106 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:45:905:636 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 15:9:45:912:129 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:9:45:913:427 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/serializable/rat_sda_intermediate_read_committed.txt b/index/result/ob_xe2.2_oracle/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..64ca2ed3 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:46:241:623 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:46:245:571 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:46:342:83 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:9:46:345:20 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:9:46:345:962 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-20 15:9:46:442:845 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:46:445:253 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 15:9:46:448:153 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:9:46:449:250 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/serializable/rat_sda_lost_self_update.txt b/index/result/ob_xe2.2_oracle/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..95586fa3 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:46:766:9 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:46:769:686 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:46:866:172 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:9:46:968:16 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 15:9:46:970:370 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:9:47:371:264 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/serializable/rat_sda_non_repeatable_read.txt b/index/result/ob_xe2.2_oracle/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..49a69608 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:44:785:707 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:9:44:789:803 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:44:885:409 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 15:9:44:888:452 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:9:44:988:908 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:45:86:975 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:45:185:708 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:9:45:188:613 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:9:45:189:706 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/serializable/rat_sda_non_repeatable_read_pred_insert.txt b/index/result/ob_xe2.2_oracle/serializable/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..7cfbcdc1 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:29:41:876 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:10:29:46:322 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:29:141:907 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-20 15:10:29:145:142 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:10:29:243:269 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:10:29:343:65 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:10:29:443:604 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:10:29:446:101 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:10:29:446:968 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/ob_xe2.2_oracle/serializable/wat_dda_double_write_skew2_committed.txt b/index/result/ob_xe2.2_oracle/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..42e8a870 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:59:791:632 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:59:795:669 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:59:891:607 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:59:893:227 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:9:59:994:233 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:59:996:629 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:10:0:497:448 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/serializable/wat_dda_full_write_skew_c1.txt b/index/result/ob_xe2.2_oracle/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..7f09f0b8 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:0:819:783 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:10:0:823:339 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:0:919:810 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:10:0:921:560 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-20 15:10:5:905:452 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:10:5:908:375 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-5-20 15:10:6:508:579 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/index/result/ob_xe2.2_oracle/serializable/wat_dda_full_write_skew_committed.txt b/index/result/ob_xe2.2_oracle/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..38e22475 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:6:853:95 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:10:6:857:29 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:6:952:858 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:10:6:954:408 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-5-20 15:10:12:706:753 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q7 failed at: 2022-5-20 15:10:13:528:793 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/index/result/ob_xe2.2_oracle/serializable/wat_dda_read_write_skew1_c1.txt b/index/result/ob_xe2.2_oracle/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..b9252de4 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:13:843:159 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:10:13:846:934 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:13:942:946 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:10:13:945:776 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:10:13:947:373 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:10:14:144:180 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-20 15:10:14:744:932 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/serializable/wat_dda_read_write_skew2_c1.txt b/index/result/ob_xe2.2_oracle/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..bf3c562e --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:15:60:768 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:10:15:65:245 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:15:160:445 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:10:15:162:997 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:10:15:260:945 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:10:15:263:262 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:10:15:764:207 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/serializable/wat_dda_read_write_skew2_committed.txt b/index/result/ob_xe2.2_oracle/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..2bc0599c --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:16:68:868 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:10:16:72:364 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:16:168:984 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:10:16:171:402 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:10:16:269:730 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:10:16:271:877 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:10:16:772:650 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/serializable/wat_mda_step_wat_c1.txt b/index/result/ob_xe2.2_oracle/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..0c1d11ab --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:17:82:290 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:10:17:86:547 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:17:182:36 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:10:17:183:643 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-5-20 15:10:17:284:214 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-20 15:10:17:285:883 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 finished at: 2022-5-20 15:10:22:203:175 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-20 15:10:22:205:975 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-5-20 15:10:22:794:269 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-5-20 15:10:23:106:816 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/index/result/ob_xe2.2_oracle/serializable/wat_sda_dirty_write_2commit.txt b/index/result/ob_xe2.2_oracle/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..6ef43e65 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,29 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:55:31:378 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:55:34:957 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:55:131:471 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-20 15:9:55:233:299 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:9:55:634:140 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/serializable/wat_sda_full_write.txt b/index/result/ob_xe2.2_oracle/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..363b7309 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/wat_sda_full_write.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:55:940:501 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:55:943:966 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:56:40:460 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-20 15:9:56:140:951 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 15:9:56:143:98 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:9:56:544:126 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/serializable/wat_sda_full_write_committed.txt b/index/result/ob_xe2.2_oracle/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..0f8800ab --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:56:862:171 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:56:866:219 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:56:962:0 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-20 15:9:57:64:616 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:57:66:917 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:9:57:467:904 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/serializable/wat_sda_lost_self_update_committed.txt b/index/result/ob_xe2.2_oracle/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..db01cfd2 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:58:877:126 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:58:884:757 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:58:977:133 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 15:9:59:78:753 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:59:85:199 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:9:59:485:665 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/ob_xe2.2_oracle/serializable/wat_sda_lost_update_c1.txt b/index/result/ob_xe2.2_oracle/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..843683a3 --- /dev/null +++ b/index/result/ob_xe2.2_oracle/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:57:778:116 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 15:9:57:781:485 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:57:877:719 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 15:9:57:880:766 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:9:58:79:40 +Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q5 failed at: 2022-5-20 15:9:58:579:878 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/index/result/oracle_12c/read-committed/iat_dda_read_skew_committed.txt b/index/result/oracle_12c/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..9a785e47 --- /dev/null +++ b/index/result/oracle_12c/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:38:482:532 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:38:486:249 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:38:582:396 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:38:585:972 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:16:38:588:484 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:16:38:684:935 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:38:690:19 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_12c/read-committed/iat_dda_read_write_skew1_committed.txt b/index/result/oracle_12c/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..a68518d1 --- /dev/null +++ b/index/result/oracle_12c/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,50 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:38:935:93 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:38:938:490 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:39:35:466 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:39:40:944 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:16:39:43:779 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:16:39:137:950 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:39:144:849 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_12c/read-committed/iat_dda_write_skew.txt b/index/result/oracle_12c/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..7bc1c2d5 --- /dev/null +++ b/index/result/oracle_12c/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:39:389:831 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:39:393:695 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:39:490:682 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:16:39:494:189 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:16:39:497:148 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:16:39:593:13 +Q7-T1 execute opt: 'COMMIT;' + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:39:697:36 + Q8-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_12c/read-committed/iat_dda_write_skew_committed.txt b/index/result/oracle_12c/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..c08bb7f9 --- /dev/null +++ b/index/result/oracle_12c/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:39:943:573 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:39:947:11 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:40:43:695 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:16:40:46:936 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:16:40:49:504 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:16:40:150:159 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:40:157:262 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_12c/read-committed/iat_dda_write_skew_pred_insert.txt b/index/result/oracle_12c/read-committed/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..935f3a27 --- /dev/null +++ b/index/result/oracle_12c/read-committed/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,55 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:42:105:863 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:42:110:621 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:42:206:56 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-20 15:16:42:210:980 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-20 15:16:42:213:597 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-20 15:16:42:308:515 +Q7-T1 execute opt: 'COMMIT;' + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-20 15:16:42:422:849 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_12c/read-committed/iat_mda_step_iat.txt b/index/result/oracle_12c/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..a521517d --- /dev/null +++ b/index/result/oracle_12c/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,104 @@ +#### db_type: oracle #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:40:404:619 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-20 15:16:40:408:736 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:40:504:451 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:16:40:508:197 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-5-20 15:16:40:605:924 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-20 15:16:40:610:61 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-20 15:16:40:707:264 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-20 15:16:40:807:720 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-20 15:16:40:907:786 +Q10-T1 execute opt: 'COMMIT;' + Q11-T2 execute opt: 'COMMIT;' + Q12-T3 execute opt: 'COMMIT;' + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 15:16:41:216:66 + Q14-T4 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_12c/read-committed/iat_sda_lost_update_committed.txt b/index/result/oracle_12c/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..6c477a5c --- /dev/null +++ b/index/result/oracle_12c/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,47 @@ +#### db_type: oracle #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:38:19:528 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 15:16:38:22:786 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:38:123:438 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 15:16:38:126:919 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-5-20 15:16:38:222:366 +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:16:38:228:607 + Q9-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_12c/read-committed/iat_sda_non_repeatable_read_committed.txt b/index/result/oracle_12c/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..ab4997eb --- /dev/null +++ b/index/result/oracle_12c/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,54 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:37:569:750 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:37:573:186 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:37:669:721 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 15:16:37:673:25 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 15:16:37:771:445 +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:16:37:776:185 + Q9-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_12c/read-committed/rat_dda_double_write_skew1.txt b/index/result/oracle_12c/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..853ce3d8 --- /dev/null +++ b/index/result/oracle_12c/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,52 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:4:105:634 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:4:109:196 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:4:207:123 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:4:210:415 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:4:212:980 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 15:16:4:408:930 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-20 15:16:4:512:703 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/read-committed/rat_dda_double_write_skew1_committed.txt b/index/result/oracle_12c/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..0c9fe4bb --- /dev/null +++ b/index/result/oracle_12c/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,52 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:4:765:18 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:4:771:838 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:4:867:542 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:4:871:885 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:4:874:993 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-5-20 15:16:4:969:215 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-20 15:16:4:976:974 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/read-committed/rat_dda_double_write_skew2.txt b/index/result/oracle_12c/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..947d0583 --- /dev/null +++ b/index/result/oracle_12c/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,52 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:5:230:550 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:5:234:251 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:5:331:533 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:5:335:474 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:16:5:434:294 +Q7-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:16:5:435:706 + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:5:538:339 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/read-committed/rat_dda_read_skew.txt b/index/result/oracle_12c/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..5fe28d78 --- /dev/null +++ b/index/result/oracle_12c/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:5:790:497 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:5:794:203 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:5:890:476 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:5:893:881 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:16:5:896:405 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:16:5:994:823 + Q7-T2 execute opt: 'COMMIT;' +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:6:196:203 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/read-committed/rat_dda_read_skew2.txt b/index/result/oracle_12c/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..7b8bfa3a --- /dev/null +++ b/index/result/oracle_12c/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:6:450:980 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:6:454:602 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:6:551:613 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:16:6:555:279 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:6:557:903 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:16:6:654:56 +Q7-T1 execute opt: 'COMMIT;' + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:6:756:787 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/read-committed/rat_dda_read_skew2_committed.txt b/index/result/oracle_12c/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..3202f561 --- /dev/null +++ b/index/result/oracle_12c/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:7:8:617 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:7:12:24 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:7:108:426 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:16:7:111:676 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:7:114:115 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:16:7:211:639 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:7:218:880 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/read-committed/rat_dda_write_read_skew.txt b/index/result/oracle_12c/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..8a1b2189 --- /dev/null +++ b/index/result/oracle_12c/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:2:980:434 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:2:984:35 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:3:83:614 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:3:90:535 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:3:93:557 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:16:3:184:714 + Q7-T2 execute opt: 'COMMIT;' +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:3:391:21 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_12c/read-committed/rat_dda_write_read_skew_committed.txt b/index/result/oracle_12c/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..c47d736c --- /dev/null +++ b/index/result/oracle_12c/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:3:639:747 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:3:643:630 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:3:743:451 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:3:747:108 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:3:749:616 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:16:3:847:26 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:3:853:805 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/read-committed/rat_mda_step_rat.txt b/index/result/oracle_12c/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..f6fe38d8 --- /dev/null +++ b/index/result/oracle_12c/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,104 @@ +#### db_type: oracle #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:7:472:425 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:7:478:12 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:7:572:608 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:7:576:979 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:7:588:355 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-20 15:16:7:673:567 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-20 15:16:7:678:440 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-20 15:16:7:681:951 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-20 15:16:7:775:783 +Q10-T1 execute opt: 'COMMIT;' + Q11-T2 execute opt: 'COMMIT;' + Q12-T3 execute opt: 'COMMIT;' + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 15:16:7:984:42 + Q14-T4 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_12c/read-committed/rat_sda_dirty_read.txt b/index/result/oracle_12c/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..b7facd5c --- /dev/null +++ b/index/result/oracle_12c/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,43 @@ +#### db_type: oracle #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:0:91:497 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:0:96:40 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:0:191:492 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:16:0:196:886 +Q5-T1 execute opt: 'ROLLBACK;' + Q6-T2 execute opt: 'COMMIT;' + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-20 15:16:0:397:588 + Q8-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/read-committed/rat_sda_intermediate_read.txt b/index/result/oracle_12c/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..cee1fbba --- /dev/null +++ b/index/result/oracle_12c/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:1:295:607 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:1:303:1 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:1:397:156 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:16:1:401:59 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-20 15:16:1:502:603 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 15:16:1:702:773 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/read-committed/rat_sda_intermediate_read_committed.txt b/index/result/oracle_12c/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..732fbb4e --- /dev/null +++ b/index/result/oracle_12c/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:1:962:410 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:1:965:889 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:2:62:323 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:16:2:66:141 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-20 15:16:2:164:912 +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 15:16:2:171:522 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/read-committed/rat_sda_lost_self_update.txt b/index/result/oracle_12c/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..38dad30c --- /dev/null +++ b/index/result/oracle_12c/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:2:420:870 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:2:424:497 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:2:521:225 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:16:2:627:8 +Q6-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-20 15:16:2:628:427 + Q7-T2 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:16:2:728:161 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/read-committed/rat_sda_non_repeatable_read.txt b/index/result/oracle_12c/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..36917d05 --- /dev/null +++ b/index/result/oracle_12c/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,56 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:0:640:876 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:0:644:678 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:0:740:814 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 15:16:0:744:691 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:16:0:844:174 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:16:1:46:231 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/read-committed/rat_sda_non_repeatable_read_pred_insert.txt b/index/result/oracle_12c/read-committed/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..35f96fda --- /dev/null +++ b/index/result/oracle_12c/read-committed/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,55 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:41:458:575 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:41:464:227 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:41:557:601 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-20 15:16:41:561:734 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:16:41:659:564 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:16:41:862:878 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/read-committed/wat_dda_double_write_skew2_committed.txt b/index/result/oracle_12c/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..e40da8e2 --- /dev/null +++ b/index/result/oracle_12c/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,52 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:10:835:596 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:10:839:252 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:10:935:559 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:10:939:21 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:16:11:40:148 +Q8-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:16:11:41:510 + Q6-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:11:52:22 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/read-committed/wat_dda_full_write_skew_c1.txt b/index/result/oracle_12c/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..11d0ef73 --- /dev/null +++ b/index/result/oracle_12c/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,32 @@ +#### db_type: oracle #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:11:300:450 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:11:304:112 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:11:400:516 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:11:404:235 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 +Q6 failed at: 2022-5-20 15:16:15:362:705 + Q5 finished at: 2022-5-20 15:16:15:364:643 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/index/result/oracle_12c/read-committed/wat_dda_full_write_skew_committed.txt b/index/result/oracle_12c/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..2932bd86 --- /dev/null +++ b/index/result/oracle_12c/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: oracle #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:15:618:533 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:15:622:503 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:15:718:456 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:15:721:839 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-5-20 15:16:19:530:552 +Q7 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q7 failed at: 2022-5-20 15:16:28:948:801 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/index/result/oracle_12c/read-committed/wat_dda_read_write_skew1_c1.txt b/index/result/oracle_12c/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..9c990238 --- /dev/null +++ b/index/result/oracle_12c/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,50 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:29:219:510 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:29:223:431 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:29:319:606 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:29:323:296 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:16:29:326:77 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 15:16:29:520:863 +Q7-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:29:527:171 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_12c/read-committed/wat_dda_read_write_skew2_c1.txt b/index/result/oracle_12c/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..50b63a16 --- /dev/null +++ b/index/result/oracle_12c/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,50 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:29:771:239 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:29:774:799 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:29:871:488 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:16:29:875:54 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:16:29:974:206 +Q7-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:16:29:975:792 + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:30:77:499 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_12c/read-committed/wat_dda_read_write_skew2_committed.txt b/index/result/oracle_12c/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..edf1b838 --- /dev/null +++ b/index/result/oracle_12c/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,50 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:30:322:224 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:30:326:36 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:30:422:867 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:16:30:426:451 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:16:30:525:177 +Q8-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:16:30:526:495 + Q6-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:30:532:704 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_12c/read-committed/wat_mda_step_wat_c1.txt b/index/result/oracle_12c/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..9534b1b4 --- /dev/null +++ b/index/result/oracle_12c/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: oracle #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:30:783:670 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:30:787:105 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:30:883:764 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:30:887:305 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-20 15:16:30:983:718 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-20 15:16:30:987:580 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-5-20 15:16:34:624:822 + Q8 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 + Q8 failed at: 2022-5-20 15:16:37:225:997 +Q9 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q9 failed at: 2022-5-20 15:16:37:326:17 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/index/result/oracle_12c/read-committed/wat_sda_dirty_write_2commit.txt b/index/result/oracle_12c/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..91292447 --- /dev/null +++ b/index/result/oracle_12c/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,42 @@ +#### db_type: oracle #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:8:236:536 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:8:240:371 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:8:337:532 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-20 15:16:8:440:878 + Q6-T2 execute opt: 'COMMIT;' + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-5-20 15:16:8:543:332 + Q8-T3 execute sql: 'DROP TABLE t1;' + Q8 finished at: 2022-5-20 15:16:8:586:549 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/read-committed/wat_sda_full_write.txt b/index/result/oracle_12c/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..e0466092 --- /dev/null +++ b/index/result/oracle_12c/read-committed/wat_sda_full_write.txt @@ -0,0 +1,42 @@ +#### db_type: oracle #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:8:810:570 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:8:814:878 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:8:911:437 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-20 15:16:9:15:132 +Q6-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-20 15:16:9:16:537 + Q7-T2 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-20 15:16:9:117:49 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/read-committed/wat_sda_full_write_committed.txt b/index/result/oracle_12c/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..452ca277 --- /dev/null +++ b/index/result/oracle_12c/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,42 @@ +#### db_type: oracle #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:9:360:97 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:9:363:697 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:9:460:280 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-20 15:16:9:563:10 +Q7-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-20 15:16:9:564:625 + Q5-T2 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-20 15:16:9:573:2 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/read-committed/wat_sda_lost_self_update_committed.txt b/index/result/oracle_12c/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..5b3351b8 --- /dev/null +++ b/index/result/oracle_12c/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:10:374:986 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:10:378:726 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:10:474:457 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 15:16:10:578:461 +Q7-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-20 15:16:10:579:999 + Q5-T2 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:16:10:586:598 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/read-committed/wat_sda_lost_update_c1.txt b/index/result/oracle_12c/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..13c8187d --- /dev/null +++ b/index/result/oracle_12c/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,47 @@ +#### db_type: oracle #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:9:817:90 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 15:16:9:820:655 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:9:917:67 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 15:16:9:921:96 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-20 15:16:10:120:956 +Q6-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:16:10:128:30 + Q9-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_12c/result_summary/read-committed_total-result.txt b/index/result/oracle_12c/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..74353e44 --- /dev/null +++ b/index/result/oracle_12c/result_summary/read-committed_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/index/result/oracle_12c/result_summary/serializable_total-result.txt b/index/result/oracle_12c/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..04925ba0 --- /dev/null +++ b/index/result/oracle_12c/result_summary/serializable_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/index/result/oracle_12c/serializable/iat_dda_read_skew_committed.txt b/index/result/oracle_12c/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..00ad08e2 --- /dev/null +++ b/index/result/oracle_12c/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:29:140:552 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:17:29:144:565 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:29:240:731 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:17:29:244:623 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:17:29:247:239 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:17:29:343:332 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:17:29:348:300 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/serializable/iat_dda_read_write_skew1_committed.txt b/index/result/oracle_12c/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..07095056 --- /dev/null +++ b/index/result/oracle_12c/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:29:597:379 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:17:29:601:183 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:29:699:19 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:17:29:702:761 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:17:29:705:652 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-5-20 15:17:30:502:757 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_12c/serializable/iat_dda_write_skew.txt b/index/result/oracle_12c/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..1b1afcdd --- /dev/null +++ b/index/result/oracle_12c/serializable/iat_dda_write_skew.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:30:755:351 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:17:30:758:998 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:30:856:861 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:17:30:860:673 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:17:30:863:551 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:17:30:958:276 +Q7-T1 execute opt: 'COMMIT;' + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:17:31:67:640 + Q8-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_12c/serializable/iat_dda_write_skew_committed.txt b/index/result/oracle_12c/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..3d9b9906 --- /dev/null +++ b/index/result/oracle_12c/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,47 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:31:316:337 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:17:31:320:306 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:31:416:642 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:17:31:420:12 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:17:31:422:646 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-5-20 15:17:32:219:277 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_12c/serializable/iat_dda_write_skew_pred_insert.txt b/index/result/oracle_12c/serializable/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..c2a3ef2a --- /dev/null +++ b/index/result/oracle_12c/serializable/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,55 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:34:777:298 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:17:34:782:307 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:34:879:663 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-20 15:17:34:885:99 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-20 15:17:34:887:897 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-20 15:17:34:982:129 +Q7-T1 execute opt: 'COMMIT;' + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-20 15:17:35:94:261 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_12c/serializable/iat_mda_step_iat.txt b/index/result/oracle_12c/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..65b0f7e7 --- /dev/null +++ b/index/result/oracle_12c/serializable/iat_mda_step_iat.txt @@ -0,0 +1,86 @@ +#### db_type: oracle #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:32:469:345 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-20 15:17:32:473:217 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:32:571:509 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:17:32:575:171 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-5-20 15:17:32:669:674 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-20 15:17:32:673:672 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-20 15:17:32:774:528 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-20 15:17:32:872:925 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q10-T1 execute opt: 'COMMIT;' + Q11-T2 execute opt: 'COMMIT;' + Q9 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q9 failed at: 2022-5-20 15:17:33:875:296 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_12c/serializable/iat_sda_lost_update_committed.txt b/index/result/oracle_12c/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..85acbdcb --- /dev/null +++ b/index/result/oracle_12c/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,37 @@ +#### db_type: oracle #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:28:83:323 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 15:17:28:86:525 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:28:183:689 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 15:17:28:187:773 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-20 15:17:28:886:867 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_12c/serializable/iat_sda_non_repeatable_read_committed.txt b/index/result/oracle_12c/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..1a28a643 --- /dev/null +++ b/index/result/oracle_12c/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,56 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:27:616:593 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:17:27:622:7 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:27:716:431 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 15:17:27:719:656 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 15:17:27:821:275 +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:17:27:836:248 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/serializable/rat_dda_double_write_skew1.txt b/index/result/oracle_12c/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..c080b119 --- /dev/null +++ b/index/result/oracle_12c/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:47:655:785 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:47:672:981 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:47:753:696 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:47:758:559 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:47:763:740 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' +Q6 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-20 15:16:48:555:733 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_12c/serializable/rat_dda_double_write_skew1_committed.txt b/index/result/oracle_12c/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..2bc74c6b --- /dev/null +++ b/index/result/oracle_12c/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:48:811:449 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:48:815:45 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:48:911:308 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:48:914:657 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:48:917:128 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-5-20 15:16:49:714:397 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_12c/serializable/rat_dda_double_write_skew2.txt b/index/result/oracle_12c/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..136f8b4c --- /dev/null +++ b/index/result/oracle_12c/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:49:968:330 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:49:971:727 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:50:68:278 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:50:71:775 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:16:50:170:923 +Q7-T1 execute opt: 'COMMIT;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:16:50:672:567 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_12c/serializable/rat_dda_read_skew.txt b/index/result/oracle_12c/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..0ba2234f --- /dev/null +++ b/index/result/oracle_12c/serializable/rat_dda_read_skew.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:50:926:9 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:50:929:576 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:51:27:475 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:51:31:299 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:16:51:34:151 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:16:51:132:867 + Q7-T2 execute opt: 'COMMIT;' +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:51:332:936 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/serializable/rat_dda_read_skew2.txt b/index/result/oracle_12c/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..513d8ec3 --- /dev/null +++ b/index/result/oracle_12c/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:51:590:631 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:51:594:373 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:51:691:436 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:16:51:695:20 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:51:697:692 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:16:51:794:735 +Q7-T1 execute opt: 'COMMIT;' + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:51:897:277 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/serializable/rat_dda_read_skew2_committed.txt b/index/result/oracle_12c/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..0ed830d7 --- /dev/null +++ b/index/result/oracle_12c/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:52:143:779 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:52:147:289 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:52:243:781 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:16:52:247:336 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:52:249:959 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:16:52:349:369 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:52:355:691 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/serializable/rat_dda_write_read_skew.txt b/index/result/oracle_12c/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..e0ec5bf9 --- /dev/null +++ b/index/result/oracle_12c/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:46:510:665 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:46:514:324 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:46:612:971 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:46:616:637 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:46:619:290 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:16:46:715:492 + Q7-T2 execute opt: 'COMMIT;' +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:46:923:892 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_12c/serializable/rat_dda_write_read_skew_committed.txt b/index/result/oracle_12c/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..37330e0b --- /dev/null +++ b/index/result/oracle_12c/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:47:192:300 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:47:195:793 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:47:292:313 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:47:296:188 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:47:304:226 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:16:47:395:411 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:47:402:468 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_12c/serializable/rat_mda_step_rat.txt b/index/result/oracle_12c/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..c0aca434 --- /dev/null +++ b/index/result/oracle_12c/serializable/rat_mda_step_rat.txt @@ -0,0 +1,104 @@ +#### db_type: oracle #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:52:613:15 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:52:616:612 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:52:712:990 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:52:716:466 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:52:719:497 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-20 15:16:52:813:157 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-20 15:16:52:816:995 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-20 15:16:52:820:221 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-20 15:16:52:916:463 +Q10-T1 execute opt: 'COMMIT;' + Q11-T2 execute opt: 'COMMIT;' + Q12-T3 execute opt: 'COMMIT;' + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 15:16:53:122:176 + Q14-T4 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_12c/serializable/rat_sda_dirty_read.txt b/index/result/oracle_12c/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..307dcec7 --- /dev/null +++ b/index/result/oracle_12c/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,43 @@ +#### db_type: oracle #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:43:308:673 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:43:312:570 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:43:408:812 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:16:43:413:736 +Q5-T1 execute opt: 'ROLLBACK;' + Q6-T2 execute opt: 'COMMIT;' + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-20 15:16:43:618:840 + Q8-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/serializable/rat_sda_intermediate_read.txt b/index/result/oracle_12c/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..a4388a2f --- /dev/null +++ b/index/result/oracle_12c/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:44:528:819 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:44:532:144 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:44:628:892 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:16:44:632:527 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-20 15:16:44:732:91 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 15:16:44:936:558 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/serializable/rat_sda_intermediate_read_committed.txt b/index/result/oracle_12c/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..fa949de8 --- /dev/null +++ b/index/result/oracle_12c/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:45:185:202 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:45:189:162 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:45:285:754 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:16:45:289:106 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-20 15:16:45:390:286 +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 15:16:45:396:727 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/serializable/rat_sda_lost_self_update.txt b/index/result/oracle_12c/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..5b244dc9 --- /dev/null +++ b/index/result/oracle_12c/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,37 @@ +#### db_type: oracle #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:45:641:59 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:45:644:451 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:45:743:8 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:16:45:843:737 +Q6-T1 execute opt: 'COMMIT;' + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:16:46:250:16 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_12c/serializable/rat_sda_non_repeatable_read.txt b/index/result/oracle_12c/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..1dcda4ba --- /dev/null +++ b/index/result/oracle_12c/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,56 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:43:866:492 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:43:870:540 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:43:967:475 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 15:16:43:971:600 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:16:44:69:945 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:16:44:275:663 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/serializable/rat_sda_non_repeatable_read_pred_insert.txt b/index/result/oracle_12c/serializable/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..8ddee448 --- /dev/null +++ b/index/result/oracle_12c/serializable/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,55 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:34:125:533 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:17:34:130:375 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:34:227:476 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-20 15:17:34:231:365 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:17:34:328:596 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:17:34:531:501 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_12c/serializable/wat_dda_double_write_skew2_committed.txt b/index/result/oracle_12c/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..c2cd19e2 --- /dev/null +++ b/index/result/oracle_12c/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:57:840:73 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:57:843:560 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:57:940:179 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:57:943:711 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:16:58:46:324 +Q8-T1 execute opt: 'COMMIT;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:16:58:548:394 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_12c/serializable/wat_dda_full_write_skew_c1.txt b/index/result/oracle_12c/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..221fceb5 --- /dev/null +++ b/index/result/oracle_12c/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: oracle #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:58:800:131 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:58:803:738 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:58:900:127 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:58:904:202 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-5-20 15:17:2:545:934 +Q6 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q6 failed at: 2022-5-20 15:17:4:954:686 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/index/result/oracle_12c/serializable/wat_dda_full_write_skew_committed.txt b/index/result/oracle_12c/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..e59eead4 --- /dev/null +++ b/index/result/oracle_12c/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: oracle #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:5:201:371 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:17:5:204:795 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:5:303:498 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:17:5:307:51 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-5-20 15:17:8:922:305 +Q7 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q7 failed at: 2022-5-20 15:17:17:4:505 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/index/result/oracle_12c/serializable/wat_dda_read_write_skew1_c1.txt b/index/result/oracle_12c/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..0fad619b --- /dev/null +++ b/index/result/oracle_12c/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:17:254:147 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:17:17:257:554 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:17:354:319 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:17:17:357:680 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:17:17:360:247 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' +Q6 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-20 15:17:18:157:89 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_12c/serializable/wat_dda_read_write_skew2_c1.txt b/index/result/oracle_12c/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..4c1347f4 --- /dev/null +++ b/index/result/oracle_12c/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:18:406:447 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:17:18:410:45 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:18:506:371 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:17:18:509:882 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:17:18:610:518 +Q7-T1 execute opt: 'COMMIT;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:17:19:112:264 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_12c/serializable/wat_dda_read_write_skew2_committed.txt b/index/result/oracle_12c/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..10a40aec --- /dev/null +++ b/index/result/oracle_12c/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:19:360:706 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:17:19:364:612 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:19:463:450 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:17:19:466:850 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:17:19:563:459 +Q8-T1 execute opt: 'COMMIT;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:17:20:65:362 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_12c/serializable/wat_mda_step_wat_c1.txt b/index/result/oracle_12c/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..af74ad9d --- /dev/null +++ b/index/result/oracle_12c/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: oracle #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:20:316:127 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:17:20:319:588 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:20:416:157 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:17:20:419:653 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-20 15:17:20:516:192 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-20 15:17:20:519:930 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-5-20 15:17:24:38:28 + Q8 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 + Q8 failed at: 2022-5-20 15:17:27:248:322 +Q9 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q9 failed at: 2022-5-20 15:17:27:348:418 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/index/result/oracle_12c/serializable/wat_sda_dirty_write_2commit.txt b/index/result/oracle_12c/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..81523cb2 --- /dev/null +++ b/index/result/oracle_12c/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,28 @@ +#### db_type: oracle #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:53:379:136 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:53:382:714 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:53:479:264 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:16:53:988:744 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_12c/serializable/wat_sda_full_write.txt b/index/result/oracle_12c/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..a2c26b86 --- /dev/null +++ b/index/result/oracle_12c/serializable/wat_sda_full_write.txt @@ -0,0 +1,30 @@ +#### db_type: oracle #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:54:239:696 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:54:243:518 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:54:339:671 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-20 15:16:54:443:870 +Q6-T1 execute opt: 'COMMIT;' + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:16:54:845:848 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_12c/serializable/wat_sda_full_write_committed.txt b/index/result/oracle_12c/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..2cb00ee8 --- /dev/null +++ b/index/result/oracle_12c/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,30 @@ +#### db_type: oracle #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:55:89:152 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:55:92:775 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:55:189:84 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-20 15:16:55:291:990 +Q7-T1 execute opt: 'COMMIT;' + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:16:55:693:829 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_12c/serializable/wat_sda_lost_self_update_committed.txt b/index/result/oracle_12c/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..33f50bd6 --- /dev/null +++ b/index/result/oracle_12c/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,37 @@ +#### db_type: oracle #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:56:987:886 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:56:991:522 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:57:87:708 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 15:16:57:190:427 +Q7-T1 execute opt: 'COMMIT;' + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:16:57:592:89 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_12c/serializable/wat_sda_lost_update_c1.txt b/index/result/oracle_12c/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..6b614f8e --- /dev/null +++ b/index/result/oracle_12c/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,37 @@ +#### db_type: oracle #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:55:938:275 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 15:16:55:941:683 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:56:38:386 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 15:16:56:41:717 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' +Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q5 failed at: 2022-5-20 15:16:56:740:0 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_21c/read-committed/iat_dda_read_skew_committed.txt b/index/result/oracle_21c/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..57ae8a16 --- /dev/null +++ b/index/result/oracle_21c/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:28:371:464 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:40:28:417:100 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:28:871:497 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:40:28:913:520 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:40:28:955:145 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-26 0:40:29:413:388 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:40:29:542:911 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_21c/read-committed/iat_dda_read_write_skew1_committed.txt b/index/result/oracle_21c/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..b3a06d7b --- /dev/null +++ b/index/result/oracle_21c/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,50 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:30:885:648 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:40:30:929:941 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:31:385:731 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-26 0:40:31:427:931 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:40:31:469:395 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-26 0:40:31:926:806 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:40:32:57:692 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_21c/read-committed/iat_dda_write_skew.txt b/index/result/oracle_21c/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..a8ca8490 --- /dev/null +++ b/index/result/oracle_21c/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:33:405:101 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:40:33:449:832 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:33:905:114 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:40:33:947:353 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:40:33:988:803 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-26 0:40:34:446:524 +Q7-T1 execute opt: 'COMMIT;' + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:40:35:37:130 + Q8-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_21c/read-committed/iat_dda_write_skew_committed.txt b/index/result/oracle_21c/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..1f677af5 --- /dev/null +++ b/index/result/oracle_21c/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:36:393:782 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:40:36:438:309 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:36:893:675 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:40:36:935:823 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:40:36:977:724 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-26 0:40:37:436:355 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:40:37:567:52 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_21c/read-committed/iat_dda_write_skew_pred_insert.txt b/index/result/oracle_21c/read-committed/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..dc609713 --- /dev/null +++ b/index/result/oracle_21c/read-committed/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,55 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:47:664:468 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:40:47:710:635 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:48:164:564 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-26 0:40:48:210:944 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-26 0:40:48:290:811 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-26 0:40:48:705:495 +Q7-T1 execute opt: 'COMMIT;' + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-26 0:40:49:295:251 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_21c/read-committed/iat_mda_step_iat.txt b/index/result/oracle_21c/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..e7bb4368 --- /dev/null +++ b/index/result/oracle_21c/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,104 @@ +#### db_type: oracle #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:38:967:196 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-26 0:40:39:11:978 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:39:467:86 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-26 0:40:39:509:533 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-5-26 0:40:39:967:55 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-26 0:40:40:13:581 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-26 0:40:40:508:83 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-26 0:40:41:8:650 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-26 0:40:41:512:634 +Q10-T1 execute opt: 'COMMIT;' + Q11-T2 execute opt: 'COMMIT;' + Q12-T3 execute opt: 'COMMIT;' + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-26 0:40:43:85:867 + Q14-T4 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_21c/read-committed/iat_sda_lost_update_committed.txt b/index/result/oracle_21c/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..5c5f91c0 --- /dev/null +++ b/index/result/oracle_21c/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,47 @@ +#### db_type: oracle #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:25:852:916 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-26 0:40:25:899:45 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:26:352:801 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-26 0:40:26:394:774 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-5-26 0:40:26:893:638 +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-26 0:40:27:24:969 + Q9-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_21c/read-committed/iat_sda_non_repeatable_read_committed.txt b/index/result/oracle_21c/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..9a6c1c11 --- /dev/null +++ b/index/result/oracle_21c/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,54 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:23:356:104 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:40:23:400:324 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:23:856:37 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-26 0:40:23:898:295 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-26 0:40:24:399:712 +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-26 0:40:24:529:398 + Q9-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_21c/read-committed/rat_dda_double_write_skew1.txt b/index/result/oracle_21c/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..784e5fa8 --- /dev/null +++ b/index/result/oracle_21c/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,52 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:10:844:477 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:10:888:858 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:11:344:800 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:39:11:387:307 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:39:11:429:178 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-26 0:39:12:384:653 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-26 0:39:12:975:849 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/read-committed/rat_dda_double_write_skew1_committed.txt b/index/result/oracle_21c/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..14003511 --- /dev/null +++ b/index/result/oracle_21c/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,52 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:14:329:338 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:14:375:320 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:14:829:383 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:39:14:871:462 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:39:14:913:537 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-5-26 0:39:15:370:612 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-26 0:39:15:501:255 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/read-committed/rat_dda_double_write_skew2.txt b/index/result/oracle_21c/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..e0ea0e29 --- /dev/null +++ b/index/result/oracle_21c/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,52 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:16:850:760 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:16:894:969 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:17:350:783 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:39:17:393:149 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-26 0:39:17:892:300 +Q7-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-26 0:39:17:931:804 + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:39:18:482:103 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/read-committed/rat_dda_read_skew.txt b/index/result/oracle_21c/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..2e27bfb9 --- /dev/null +++ b/index/result/oracle_21c/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:19:838:442 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:39:19:882:904 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:20:338:646 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:39:20:381:174 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:39:20:422:564 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-26 0:39:20:880:48 + Q7-T2 execute opt: 'COMMIT;' +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:39:21:968:160 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/read-committed/rat_dda_read_skew2.txt b/index/result/oracle_21c/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..41b307c3 --- /dev/null +++ b/index/result/oracle_21c/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:23:328:311 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:23:372:422 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:23:828:368 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:39:23:870:871 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:39:23:913:49 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-26 0:39:24:369:750 +Q7-T1 execute opt: 'COMMIT;' + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:39:24:958:558 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/read-committed/rat_dda_read_skew2_committed.txt b/index/result/oracle_21c/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..702613dc --- /dev/null +++ b/index/result/oracle_21c/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:26:312:995 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:26:356:579 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:26:812:887 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:39:26:855:325 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:39:26:897:321 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-26 0:39:27:354:529 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:39:27:485:792 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/read-committed/rat_dda_write_read_skew.txt b/index/result/oracle_21c/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..5cfb0ec8 --- /dev/null +++ b/index/result/oracle_21c/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:4:846:314 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:4:890:124 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:5:345:519 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:39:5:387:822 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:39:5:429:891 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-26 0:39:5:887:667 + Q7-T2 execute opt: 'COMMIT;' +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:39:6:978:295 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_21c/read-committed/rat_dda_write_read_skew_committed.txt b/index/result/oracle_21c/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..43683159 --- /dev/null +++ b/index/result/oracle_21c/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:8:324:642 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:8:369:163 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:8:824:758 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:39:8:866:905 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:39:8:908:553 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-26 0:39:9:366:5 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:39:9:496:820 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/read-committed/rat_mda_step_rat.txt b/index/result/oracle_21c/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..ccce38fa --- /dev/null +++ b/index/result/oracle_21c/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,104 @@ +#### db_type: oracle #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:28:874:405 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:28:918:813 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:29:374:297 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:39:29:416:59 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:39:29:457:930 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-26 0:39:29:874:519 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-26 0:39:29:920:596 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-26 0:39:29:966:727 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-26 0:39:30:418:599 +Q10-T1 execute opt: 'COMMIT;' + Q11-T2 execute opt: 'COMMIT;' + Q12-T3 execute opt: 'COMMIT;' + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-26 0:39:31:498:927 + Q14-T4 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_21c/read-committed/rat_sda_dirty_read.txt b/index/result/oracle_21c/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..e6ef0d1b --- /dev/null +++ b/index/result/oracle_21c/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,43 @@ +#### db_type: oracle #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:38:49:554:1 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:38:49:601:915 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:38:50:54:194 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-26 0:38:50:98:6 +Q5-T1 execute opt: 'ROLLBACK;' + Q6-T2 execute opt: 'COMMIT;' + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-26 0:38:51:186:542 + Q8-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/read-committed/rat_sda_intermediate_read.txt b/index/result/oracle_21c/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..0fce9a77 --- /dev/null +++ b/index/result/oracle_21c/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:38:55:933:840 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:38:55:978:428 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:38:56:433:899 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-26 0:38:56:476:228 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-26 0:38:56:975:230 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-26 0:38:58:64:558 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/read-committed/rat_sda_intermediate_read_committed.txt b/index/result/oracle_21c/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..3517cebf --- /dev/null +++ b/index/result/oracle_21c/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:38:59:380:37 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:38:59:428:525 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:38:59:880:5 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-26 0:38:59:922:394 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-26 0:39:0:421:24 +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-26 0:39:0:551:620 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/read-committed/rat_sda_lost_self_update.txt b/index/result/oracle_21c/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..81716162 --- /dev/null +++ b/index/result/oracle_21c/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:1:863:165 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:1:911:201 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:2:363:112 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-26 0:39:2:904:275 +Q6-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-26 0:39:2:943:965 + Q7-T2 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-26 0:39:3:494:950 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/read-committed/rat_sda_non_repeatable_read.txt b/index/result/oracle_21c/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..f20c5e65 --- /dev/null +++ b/index/result/oracle_21c/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,56 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:38:52:484:794 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:38:52:528:467 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:38:52:984:903 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-26 0:38:53:27:324 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-26 0:38:53:527:859 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-26 0:38:54:616:848 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/read-committed/rat_sda_non_repeatable_read_pred_insert.txt b/index/result/oracle_21c/read-committed/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..52a3b77a --- /dev/null +++ b/index/result/oracle_21c/read-committed/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,55 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:44:306:974 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:40:44:353:532 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:44:806:826 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-26 0:40:44:891:118 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-26 0:40:45:350:258 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-26 0:40:46:437:321 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/read-committed/wat_dda_double_write_skew2_committed.txt b/index/result/oracle_21c/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..9f54d0cb --- /dev/null +++ b/index/result/oracle_21c/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,52 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:46:898:376 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:46:942:510 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:47:398:225 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:39:47:440:448 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-26 0:39:47:939:489 +Q8-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-26 0:39:47:979:4 + Q6-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:39:48:111:375 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/read-committed/wat_dda_full_write_skew_c1.txt b/index/result/oracle_21c/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..f070e54d --- /dev/null +++ b/index/result/oracle_21c/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: oracle #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:49:465:806 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:49:509:740 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:49:965:694 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-26 0:39:50:7:636 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-5-26 0:39:53:718:822 +Q6 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q6 failed at: 2022-5-26 0:39:56:755:796 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/index/result/oracle_21c/read-committed/wat_dda_full_write_skew_committed.txt b/index/result/oracle_21c/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..f1f5e4a8 --- /dev/null +++ b/index/result/oracle_21c/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: oracle #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:58:336:706 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:58:387:246 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:58:836:635 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-26 0:39:58:878:703 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-5-26 0:40:2:582:539 +Q7 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q7 failed at: 2022-5-26 0:40:4:830:361 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/index/result/oracle_21c/read-committed/wat_dda_read_write_skew1_c1.txt b/index/result/oracle_21c/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..495756f4 --- /dev/null +++ b/index/result/oracle_21c/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,50 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:6:361:726 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:40:6:405:773 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:6:861:763 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-26 0:40:6:903:849 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:40:6:945:175 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-26 0:40:7:903:409 +Q7-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:40:8:34:7 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_21c/read-committed/wat_dda_read_write_skew2_c1.txt b/index/result/oracle_21c/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..7ff551e6 --- /dev/null +++ b/index/result/oracle_21c/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,50 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:9:382:776 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:40:9:428:678 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:9:886:631 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:40:9:928:715 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-26 0:40:10:423:873 +Q7-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-26 0:40:10:463:594 + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:40:11:18:752 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_21c/read-committed/wat_dda_read_write_skew2_committed.txt b/index/result/oracle_21c/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..c6bc063e --- /dev/null +++ b/index/result/oracle_21c/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,50 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:12:365:450 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:40:12:410:102 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:12:865:492 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:40:12:907:710 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-26 0:40:13:406:890 +Q8-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-26 0:40:13:446:750 + Q6-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:40:13:578:326 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_21c/read-committed/wat_mda_step_wat_c1.txt b/index/result/oracle_21c/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..4dbedbc0 --- /dev/null +++ b/index/result/oracle_21c/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: oracle #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:14:969:295 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:40:15:14:191 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:15:469:228 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-26 0:40:15:511:427 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-26 0:40:15:969:333 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-26 0:40:16:15:725 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-5-26 0:40:19:213:697 + Q8 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 + Q8 failed at: 2022-5-26 0:40:21:758:572 +Q9 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q9 failed at: 2022-5-26 0:40:21:850:363 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/index/result/oracle_21c/read-committed/wat_sda_dirty_write_2commit.txt b/index/result/oracle_21c/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..881436d9 --- /dev/null +++ b/index/result/oracle_21c/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,42 @@ +#### db_type: oracle #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:32:799:974 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:32:843:384 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:33:300:40 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-26 0:39:33:839:350 + Q6-T2 execute opt: 'COMMIT;' + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-5-26 0:39:34:430:341 + Q8-T3 execute sql: 'DROP TABLE t1;' + Q8 finished at: 2022-5-26 0:39:34:539:750 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/read-committed/wat_sda_full_write.txt b/index/result/oracle_21c/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..7bac43c8 --- /dev/null +++ b/index/result/oracle_21c/read-committed/wat_sda_full_write.txt @@ -0,0 +1,42 @@ +#### db_type: oracle #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:35:870:21 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:35:914:175 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:36:370:193 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-26 0:39:36:912:585 +Q6-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-26 0:39:36:952:284 + Q7-T2 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-26 0:39:37:500:768 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/read-committed/wat_sda_full_write_committed.txt b/index/result/oracle_21c/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..6042823c --- /dev/null +++ b/index/result/oracle_21c/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,42 @@ +#### db_type: oracle #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:38:808:306 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:38:852:91 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:39:308:102 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-26 0:39:39:849:221 +Q7-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-26 0:39:39:888:916 + Q5-T2 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-26 0:39:40:19:956 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/read-committed/wat_sda_lost_self_update_committed.txt b/index/result/oracle_21c/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..d3f57686 --- /dev/null +++ b/index/result/oracle_21c/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:44:334:281 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:44:378:635 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:44:834:145 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-26 0:39:45:375:580 +Q7-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-26 0:39:45:415:133 + Q5-T2 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-26 0:39:45:546:635 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/read-committed/wat_sda_lost_update_c1.txt b/index/result/oracle_21c/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..79a626fc --- /dev/null +++ b/index/result/oracle_21c/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,47 @@ +#### db_type: oracle #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:41:344:869 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-26 0:39:41:395:109 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:41:844:539 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-26 0:39:41:886:377 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-26 0:39:42:884:787 +Q6-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-26 0:39:43:15:261 + Q9-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_21c/result_summary/read-committed_total-result.txt b/index/result/oracle_21c/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..74353e44 --- /dev/null +++ b/index/result/oracle_21c/result_summary/read-committed_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/index/result/oracle_21c/result_summary/serializable_total-result.txt b/index/result/oracle_21c/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..32dc3554 --- /dev/null +++ b/index/result/oracle_21c/result_summary/serializable_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Rollback + diff --git a/index/result/oracle_21c/serializable/iat_dda_read_skew_committed.txt b/index/result/oracle_21c/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..c5a076af --- /dev/null +++ b/index/result/oracle_21c/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:41:548:711 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:42:41:589:724 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:42:48:634 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:42:42:90:280 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:42:42:131:666 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-26 0:42:42:588:161 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:42:42:700:192 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/serializable/iat_dda_read_write_skew1_committed.txt b/index/result/oracle_21c/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..bc240831 --- /dev/null +++ b/index/result/oracle_21c/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:44:23:415 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:42:44:66:89 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:44:523:354 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-26 0:42:44:565:118 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:42:44:606:889 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-5-26 0:42:45:798:192 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_21c/serializable/iat_dda_write_skew.txt b/index/result/oracle_21c/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..06e8a6f3 --- /dev/null +++ b/index/result/oracle_21c/serializable/iat_dda_write_skew.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:47:324:384 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:42:47:366:198 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:47:824:617 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:42:47:866:663 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:42:47:908:210 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-26 0:42:48:364:604 +Q7-T1 execute opt: 'COMMIT;' + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:42:48:940:202 + Q8-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_21c/serializable/iat_dda_write_skew_committed.txt b/index/result/oracle_21c/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..da4a2183 --- /dev/null +++ b/index/result/oracle_21c/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,47 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:50:264:697 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:42:50:305:682 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:50:764:615 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:42:50:806:734 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:42:50:847:890 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-5-26 0:42:52:39:123 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_21c/serializable/iat_dda_write_skew_pred_insert.txt b/index/result/oracle_21c/serializable/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..9e790d76 --- /dev/null +++ b/index/result/oracle_21c/serializable/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,45 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:43:2:319:330 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:43:2:362:885 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:43:2:819:317 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-26 0:43:2:862:616 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-26 0:43:3:475:121 +Q6 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-26 0:43:3:993:445 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_21c/serializable/iat_mda_step_iat.txt b/index/result/oracle_21c/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..ba365254 --- /dev/null +++ b/index/result/oracle_21c/serializable/iat_mda_step_iat.txt @@ -0,0 +1,85 @@ +#### db_type: oracle #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:53:590:76 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-26 0:42:53:632:18 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:54:89:822 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-26 0:42:54:132:40 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-5-26 0:42:54:591:617 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-26 0:42:54:631:417 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-26 0:42:55:130:628 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-26 0:42:55:631:295 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q10-T1 execute opt: 'COMMIT;' + Q9 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q9 failed at: 2022-5-26 0:42:57:63:768 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_21c/serializable/iat_sda_lost_update_committed.txt b/index/result/oracle_21c/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..c63ca036 --- /dev/null +++ b/index/result/oracle_21c/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,37 @@ +#### db_type: oracle #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:38:365:573 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-26 0:42:38:406:482 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:38:865:584 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-26 0:42:38:907:226 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-26 0:42:40:40:289 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_21c/serializable/iat_sda_non_repeatable_read_committed.txt b/index/result/oracle_21c/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..99b8960c --- /dev/null +++ b/index/result/oracle_21c/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,56 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:35:925:896 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:42:35:968:422 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:36:425:961 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-26 0:42:36:468:228 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-5-26 0:42:36:963:442 +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-26 0:42:37:75:664 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/serializable/rat_dda_double_write_skew1.txt b/index/result/oracle_21c/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..9d7a184f --- /dev/null +++ b/index/result/oracle_21c/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:15:667:713 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:15:708:543 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:16:176:40 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:41:16:218:299 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:41:16:260:51 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' +Q6 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-26 0:41:17:846:949 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_21c/serializable/rat_dda_double_write_skew1_committed.txt b/index/result/oracle_21c/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..2a8c8cd8 --- /dev/null +++ b/index/result/oracle_21c/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:19:356:425 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:19:397:510 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:19:856:392 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:41:19:898:292 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:41:19:939:940 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-5-26 0:41:21:130:920 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_21c/serializable/rat_dda_double_write_skew2.txt b/index/result/oracle_21c/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..2c97f798 --- /dev/null +++ b/index/result/oracle_21c/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:22:650:197 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:22:691:39 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:23:150:189 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:41:23:191:997 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-26 0:41:23:688:894 +Q7-T1 execute opt: 'COMMIT;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-26 0:41:24:265:99 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_21c/serializable/rat_dda_read_skew.txt b/index/result/oracle_21c/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..182fb4df --- /dev/null +++ b/index/result/oracle_21c/serializable/rat_dda_read_skew.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:25:780:430 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:41:25:821:263 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:26:280:381 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:41:26:321:996 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:41:26:363:161 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-26 0:41:26:819:544 + Q7-T2 execute opt: 'COMMIT;' +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:41:27:893:231 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/serializable/rat_dda_read_skew2.txt b/index/result/oracle_21c/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..cf3ddfc4 --- /dev/null +++ b/index/result/oracle_21c/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:29:230:153 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:29:271:332 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:29:729:941 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:41:29:772:146 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:41:29:813:588 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-26 0:41:30:268:777 +Q7-T1 execute opt: 'COMMIT;' + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:41:30:846:845 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/serializable/rat_dda_read_skew2_committed.txt b/index/result/oracle_21c/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..6d94af66 --- /dev/null +++ b/index/result/oracle_21c/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:32:177:611 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:32:219:571 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:32:677:619 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:41:32:719:740 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:41:32:761:238 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-26 0:41:33:215:982 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:41:33:330:611 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/serializable/rat_dda_write_read_skew.txt b/index/result/oracle_21c/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..257f60ab --- /dev/null +++ b/index/result/oracle_21c/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:9:745:5 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:9:787:29 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:10:244:822 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:41:10:286:880 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:41:10:328:479 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-26 0:41:10:786:328 + Q7-T2 execute opt: 'COMMIT;' +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:41:11:858:259 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_21c/serializable/rat_dda_write_read_skew_committed.txt b/index/result/oracle_21c/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..ba8be152 --- /dev/null +++ b/index/result/oracle_21c/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:13:184:6 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:13:226:733 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:13:683:911 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:41:13:725:765 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:41:13:767:343 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-26 0:41:14:226:83 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:41:14:339:192 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_21c/serializable/rat_mda_step_rat.txt b/index/result/oracle_21c/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..e8b4a792 --- /dev/null +++ b/index/result/oracle_21c/serializable/rat_mda_step_rat.txt @@ -0,0 +1,104 @@ +#### db_type: oracle #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:34:707:51 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:34:748:16 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:35:207:68 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:41:35:248:734 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:41:35:291:273 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-26 0:41:35:707:319 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-26 0:41:35:746:514 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-26 0:41:35:785:960 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-26 0:41:36:246:354 +Q10-T1 execute opt: 'COMMIT;' + Q11-T2 execute opt: 'COMMIT;' + Q12-T3 execute opt: 'COMMIT;' + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-26 0:41:37:321:776 + Q14-T4 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/oracle_21c/serializable/rat_sda_dirty_read.txt b/index/result/oracle_21c/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..d546e843 --- /dev/null +++ b/index/result/oracle_21c/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,43 @@ +#### db_type: oracle #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:54:580:367 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:40:54:622:329 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:55:79:272 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-26 0:40:55:123:121 +Q5-T1 execute opt: 'ROLLBACK;' + Q6-T2 execute opt: 'COMMIT;' + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-26 0:40:56:193:503 + Q8-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/serializable/rat_sda_intermediate_read.txt b/index/result/oracle_21c/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..d0648ec3 --- /dev/null +++ b/index/result/oracle_21c/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:0:871:696 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:0:913:908 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:1:371:640 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-26 0:41:1:414:940 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-26 0:41:1:910:125 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-26 0:41:2:985:257 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/serializable/rat_sda_intermediate_read_committed.txt b/index/result/oracle_21c/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..6fea1632 --- /dev/null +++ b/index/result/oracle_21c/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:4:268:964 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:4:309:746 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:4:769:103 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-26 0:41:4:811:577 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-26 0:41:5:307:368 +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-26 0:41:5:420:794 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/serializable/rat_sda_lost_self_update.txt b/index/result/oracle_21c/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..46a3f976 --- /dev/null +++ b/index/result/oracle_21c/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,37 @@ +#### db_type: oracle #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:6:710:136 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:6:751:147 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:7:210:367 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-26 0:41:7:750:462 +Q6-T1 execute opt: 'COMMIT;' + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-26 0:41:8:226:813 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_21c/serializable/rat_sda_non_repeatable_read.txt b/index/result/oracle_21c/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..7726b286 --- /dev/null +++ b/index/result/oracle_21c/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,56 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:57:481:394 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:40:57:522:958 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:57:981:162 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-26 0:40:58:23:405 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-26 0:40:58:521:177 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-26 0:40:59:595:569 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/serializable/rat_sda_non_repeatable_read_pred_insert.txt b/index/result/oracle_21c/serializable/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..5b1a34e3 --- /dev/null +++ b/index/result/oracle_21c/serializable/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,55 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:58:987:627 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:42:59:31:133 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:59:487:522 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-26 0:42:59:565:403 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-26 0:43:0:27:614 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-26 0:43:1:103:998 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/oracle_21c/serializable/wat_dda_double_write_skew2_committed.txt b/index/result/oracle_21c/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..7ae7995a --- /dev/null +++ b/index/result/oracle_21c/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:54:143:59 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:54:185:176 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:54:642:917 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:41:54:684:646 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-26 0:41:55:182:414 +Q8-T1 execute opt: 'COMMIT;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-26 0:41:55:758:596 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_21c/serializable/wat_dda_full_write_skew_c1.txt b/index/result/oracle_21c/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..464910e9 --- /dev/null +++ b/index/result/oracle_21c/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: oracle #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:57:270:743 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:57:312:612 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:57:770:593 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-26 0:41:57:812:256 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-5-26 0:42:1:521:288 +Q6 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q6 failed at: 2022-5-26 0:42:5:165:277 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/index/result/oracle_21c/serializable/wat_dda_full_write_skew_committed.txt b/index/result/oracle_21c/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..4ffa1577 --- /dev/null +++ b/index/result/oracle_21c/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: oracle #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:6:685:129 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:42:6:734:426 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:7:185:271 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-26 0:42:7:227:515 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-5-26 0:42:10:933:631 +Q7 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q7 failed at: 2022-5-26 0:42:15:181:738 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/index/result/oracle_21c/serializable/wat_dda_read_write_skew1_c1.txt b/index/result/oracle_21c/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..76268f8e --- /dev/null +++ b/index/result/oracle_21c/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:16:695:719 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:42:16:737:242 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:17:199:662 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-26 0:42:17:241:509 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:42:17:282:709 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' +Q6 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-26 0:42:18:874:458 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_21c/serializable/wat_dda_read_write_skew2_c1.txt b/index/result/oracle_21c/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..ebd2a2d1 --- /dev/null +++ b/index/result/oracle_21c/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:20:381:551 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:42:20:423:42 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:20:881:631 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:42:20:923:633 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-26 0:42:21:420:207 +Q7-T1 execute opt: 'COMMIT;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-26 0:42:21:996:175 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_21c/serializable/wat_dda_read_write_skew2_committed.txt b/index/result/oracle_21c/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..dc6454e9 --- /dev/null +++ b/index/result/oracle_21c/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:23:518:170 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:42:23:559:509 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:24:18:152 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:42:24:60:64 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-26 0:42:24:556:795 +Q8-T1 execute opt: 'COMMIT;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-26 0:42:25:132:987 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_21c/serializable/wat_mda_step_wat_c1.txt b/index/result/oracle_21c/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..6458d2c1 --- /dev/null +++ b/index/result/oracle_21c/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: oracle #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:26:686:495 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:42:26:727:505 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:27:186:701 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-26 0:42:27:228:858 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-26 0:42:27:686:712 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-26 0:42:27:725:905 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-5-26 0:42:30:948:613 + Q8 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 + Q8 failed at: 2022-5-26 0:42:34:344:638 +Q9 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q9 failed at: 2022-5-26 0:42:34:445:305 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/index/result/oracle_21c/serializable/wat_sda_dirty_write_2commit.txt b/index/result/oracle_21c/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..b0951ed2 --- /dev/null +++ b/index/result/oracle_21c/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,28 @@ +#### db_type: oracle #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:38:607:646 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:38:648:815 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:39:107:833 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-26 0:41:40:83:698 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_21c/serializable/wat_sda_full_write.txt b/index/result/oracle_21c/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..59b8ed51 --- /dev/null +++ b/index/result/oracle_21c/serializable/wat_sda_full_write.txt @@ -0,0 +1,30 @@ +#### db_type: oracle #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:41:591:936 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:41:636:96 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:42:91:859 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-26 0:41:42:630:468 +Q6-T1 execute opt: 'COMMIT;' + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-26 0:41:43:106:726 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_21c/serializable/wat_sda_full_write_committed.txt b/index/result/oracle_21c/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..298175bc --- /dev/null +++ b/index/result/oracle_21c/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,30 @@ +#### db_type: oracle #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:44:583:739 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:44:624:548 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:45:83:624 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-26 0:41:45:623:995 +Q7-T1 execute opt: 'COMMIT;' + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-26 0:41:46:100:383 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_21c/serializable/wat_sda_lost_self_update_committed.txt b/index/result/oracle_21c/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..efdf0d01 --- /dev/null +++ b/index/result/oracle_21c/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,37 @@ +#### db_type: oracle #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:51:121:630 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:51:162:963 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:51:621:409 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-26 0:41:52:160:883 +Q7-T1 execute opt: 'COMMIT;' + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-26 0:41:52:637:241 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/oracle_21c/serializable/wat_sda_lost_update_c1.txt b/index/result/oracle_21c/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..5a5cf7af --- /dev/null +++ b/index/result/oracle_21c/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,37 @@ +#### db_type: oracle #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:47:574:565 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-26 0:41:47:615:341 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:48:74:636 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-26 0:41:48:116:282 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' +Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q5 failed at: 2022-5-26 0:41:49:650:28 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/index/result/pg_12.4/read-committed/iat_dda_read_skew_committed.txt b/index/result/pg_12.4/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..ac6b736d --- /dev/null +++ b/index/result/pg_12.4/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:3:59:571:139 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:3:59:573:39 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:0:71:181 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:4:0:73:454 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:4:0:75:195 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:4:0:77:566 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 11:4:0:572:464 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:4:0:573:585 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:4:0:575:285 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:4:0:576:63 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/pg_12.4/read-committed/iat_dda_read_write_skew1_committed.txt b/index/result/pg_12.4/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..3271edd1 --- /dev/null +++ b/index/result/pg_12.4/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:1:591:443 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:4:1:593:333 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:2:91:534 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:4:2:93:464 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:4:2:94:856 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:4:2:97:85 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 11:4:2:592:578 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:4:2:594:764 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:4:2:596:726 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:4:2:597:626 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/pg_12.4/read-committed/iat_dda_write_skew.txt b/index/result/pg_12.4/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..faee0ecb --- /dev/null +++ b/index/result/pg_12.4/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:3:613:298 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:4:3:615:613 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:4:113:329 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:4:4:115:348 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:4:4:116:757 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 11:4:4:614:193 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:4:4:616:116 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:4:5:117:183 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:4:5:119:28 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:4:5:119:843 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/pg_12.4/read-committed/iat_dda_write_skew_committed.txt b/index/result/pg_12.4/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..24a30674 --- /dev/null +++ b/index/result/pg_12.4/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:6:134:695 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:4:6:136:486 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:6:634:957 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:4:6:637:159 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:4:6:638:783 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:4:6:641:28 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 11:4:7:136:566 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:4:7:138:497 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:4:7:140:220 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:4:7:140:969 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/pg_12.4/read-committed/iat_dda_write_skew_pred_insert.txt b/index/result/pg_12.4/read-committed/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..e9d96eb3 --- /dev/null +++ b/index/result/pg_12.4/read-committed/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,59 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:16:187:946 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:4:16:189:993 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:16:687:808 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-23 11:4:16:689:733 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-23 11:4:16:691:143 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-23 11:4:17:188:754 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:4:17:190:727 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:4:17:689:290 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-23 11:4:17:691:206 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:4:17:692:133 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/pg_12.4/read-committed/iat_mda_step_iat.txt b/index/result/pg_12.4/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..a4a459a3 --- /dev/null +++ b/index/result/pg_12.4/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: pg #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:8:156:180 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-23 11:4:8:158:952 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:8:656:147 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:4:8:658:521 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-5-23 11:4:9:156:37 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-23 11:4:9:158:322 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-23 11:4:9:656:981 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-23 11:4:10:157:236 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-23 11:4:10:657:15 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-23 11:4:11:157:585 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-23 11:4:11:657:821 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-23 11:4:12:157:882 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-23 11:4:12:160:723 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-23 11:4:12:161:660 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/pg_12.4/read-committed/iat_sda_lost_update_committed.txt b/index/result/pg_12.4/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..e46b19b2 --- /dev/null +++ b/index/result/pg_12.4/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:3:57:547:900 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 11:3:57:549:672 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:3:58:47:967 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-23 11:3:58:49:872 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:3:58:51:820 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-5-23 11:3:58:552:607 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:3:58:554:594 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:3:58:556:407 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:3:58:557:237 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/pg_12.4/read-committed/iat_sda_non_repeatable_read_committed.txt b/index/result/pg_12.4/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..e122b356 --- /dev/null +++ b/index/result/pg_12.4/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,58 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:3:55:531:410 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:3:55:533:413 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:3:56:31:447 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-23 11:3:56:33:319 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:3:56:35:209 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 11:3:56:532:251 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:3:56:533:107 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:3:56:534:776 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:3:56:535:590 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/pg_12.4/read-committed/rat_dda_double_write_skew1.txt b/index/result/pg_12.4/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..89584862 --- /dev/null +++ b/index/result/pg_12.4/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:7:440:353 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:7:442:124 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:7:943:642 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:1:7:945:549 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:1:7:947:213 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 11:1:8:941:991 + Q7 finished at: 2022-5-23 11:1:8:942:356 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:1:9:441:882 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-23 11:1:9:443:950 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:1:9:444:605 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/read-committed/rat_dda_double_write_skew1_committed.txt b/index/result/pg_12.4/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..b6a8a2ee --- /dev/null +++ b/index/result/pg_12.4/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:10:462:313 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:10:464:163 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:10:962:152 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:1:10:964:70 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:1:10:965:543 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:1:10:967:528 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-5-23 11:1:11:463:354 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:1:11:465:291 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-23 11:1:11:467:362 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:1:11:468:113 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/read-committed/rat_dda_double_write_skew2.txt b/index/result/pg_12.4/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..a1518096 --- /dev/null +++ b/index/result/pg_12.4/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:12:482:871 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:12:484:893 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:12:982:839 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:1:12:984:723 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 11:1:13:483:810 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:1:13:485:742 + Q5 finished at: 2022-5-23 11:1:13:485:877 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:1:13:984:84 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:1:13:985:932 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:1:13:986:537 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/read-committed/rat_dda_read_skew.txt b/index/result/pg_12.4/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..80af8b62 --- /dev/null +++ b/index/result/pg_12.4/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:14:999:964 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:1:15:1:922 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:15:499:976 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:1:15:501:798 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:1:15:503:222 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 11:1:16:0:972 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:1:16:501:453 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:1:17:3:787 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:1:17:5:806 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:1:17:6:512 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/read-committed/rat_dda_read_skew2.txt b/index/result/pg_12.4/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..11994733 --- /dev/null +++ b/index/result/pg_12.4/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:18:21:157 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:18:23:0 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:18:521:217 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:1:18:523:238 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:1:18:524:785 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 11:1:19:22:300 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:1:19:24:361 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:1:19:521:509 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:1:19:523:561 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:1:19:524:341 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/read-committed/rat_dda_read_skew2_committed.txt b/index/result/pg_12.4/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..92f20c0f --- /dev/null +++ b/index/result/pg_12.4/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:20:538:233 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:20:540:219 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:21:38:46 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:1:21:40:191 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:1:21:41:690 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:1:21:42:578 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 11:1:21:539:20 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:1:21:541:62 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:1:21:543:40 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:1:21:543:701 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/read-committed/rat_dda_write_read_skew.txt b/index/result/pg_12.4/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..09a3c4ad --- /dev/null +++ b/index/result/pg_12.4/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:2:397:108 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:2:399:228 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:2:897:308 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:1:2:899:446 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:1:2:901:651 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 11:1:3:398:246 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:1:3:898:733 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:1:4:400:867 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:1:4:402:989 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:1:4:403:739 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/pg_12.4/read-committed/rat_dda_write_read_skew_committed.txt b/index/result/pg_12.4/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..235847bd --- /dev/null +++ b/index/result/pg_12.4/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:5:420:487 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:5:422:235 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:5:920:392 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:1:5:922:107 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:1:5:923:589 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:1:5:925:462 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 11:1:6:421:351 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:1:6:423:246 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:1:6:425:109 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:1:6:425:846 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/read-committed/rat_mda_step_rat.txt b/index/result/pg_12.4/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..a86d035f --- /dev/null +++ b/index/result/pg_12.4/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: pg #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:22:558:900 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:22:560:739 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:23:59:567 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:1:23:61:617 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:1:23:63:529 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 11:1:23:558:873 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-23 11:1:23:560:770 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-23 11:1:23:562:595 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-23 11:1:24:60:179 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-23 11:1:24:62:168 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-23 11:1:24:560:394 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-23 11:1:25:60:385 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-23 11:1:25:63:198 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-23 11:1:25:63:874 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/pg_12.4/read-committed/rat_sda_dirty_read.txt b/index/result/pg_12.4/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..a10416d8 --- /dev/null +++ b/index/result/pg_12.4/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: pg #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:0:49:305:153 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:0:49:306:939 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:0:49:811:474 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:0:49:813:604 +Q5-T1 execute opt: 'ROLLBACK;' +Q5 finished at: 2022-5-23 11:0:50:305:397 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:0:50:805:401 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-23 11:0:50:807:224 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:0:50:807:962 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/read-committed/rat_sda_intermediate_read.txt b/index/result/pg_12.4/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..5f4666a9 --- /dev/null +++ b/index/result/pg_12.4/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:0:54:836:878 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:0:54:839:86 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:0:55:337:154 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:0:55:339:275 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-23 11:0:55:837:820 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:0:56:339:734 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:0:56:841:137 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 11:0:56:843:94 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:0:56:843:896 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/read-committed/rat_sda_intermediate_read_committed.txt b/index/result/pg_12.4/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..8e7dc58b --- /dev/null +++ b/index/result/pg_12.4/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:0:57:858:777 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:0:57:860:851 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:0:58:358:774 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:0:58:360:854 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:0:58:361:783 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-23 11:0:58:860:528 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:0:58:862:492 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 11:0:58:864:554 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:0:58:865:388 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/read-committed/rat_sda_lost_self_update.txt b/index/result/pg_12.4/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..22a4005f --- /dev/null +++ b/index/result/pg_12.4/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:0:59:878:690 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:0:59:880:884 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:0:378:450 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 11:1:0:880:427 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 11:1:0:882:269 + Q4 finished at: 2022-5-23 11:1:0:882:366 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:1:1:379:921 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:1:1:381:607 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:1:1:382:310 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/read-committed/rat_sda_non_repeatable_read.txt b/index/result/pg_12.4/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..73599571 --- /dev/null +++ b/index/result/pg_12.4/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:0:51:820:784 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:0:51:822:767 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:0:52:320:735 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-23 11:0:52:322:791 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 11:0:52:821:847 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:0:53:332:77 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:0:53:821:122 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:0:53:822:776 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:0:53:823:459 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/read-committed/rat_sda_non_repeatable_read_pred_insert.txt b/index/result/pg_12.4/read-committed/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..2f240100 --- /dev/null +++ b/index/result/pg_12.4/read-committed/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,59 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:13:173:415 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:4:13:175:363 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:13:673:505 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-23 11:4:13:675:476 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 11:4:14:174:260 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:4:14:674:902 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:4:15:173:773 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:4:15:175:426 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:4:15:176:227 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/read-committed/wat_dda_double_write_skew2_committed.txt b/index/result/pg_12.4/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..a9403560 --- /dev/null +++ b/index/result/pg_12.4/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:37:692:658 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:37:694:606 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:38:192:381 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:1:38:194:307 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 11:1:38:693:256 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:1:38:695:200 + Q5 finished at: 2022-5-23 11:1:38:695:267 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:1:38:697:113 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:1:38:698:879 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:1:38:699:681 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/read-committed/wat_dda_full_write_skew_c1.txt b/index/result/pg_12.4/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..ae6553ff --- /dev/null +++ b/index/result/pg_12.4/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:39:713:429 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:39:715:246 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:40:213:414 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:1:40:215:399 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q5 failed at: 2022-5-23 11:1:42:214:705 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-5-23 11:2:21:314:654 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/index/result/pg_12.4/read-committed/wat_dda_full_write_skew_committed.txt b/index/result/pg_12.4/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..d14a976e --- /dev/null +++ b/index/result/pg_12.4/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,34 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:2:22:329:585 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:2:22:331:561 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:2:22:831:608 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:2:22:833:720 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q5 failed at: 2022-5-23 11:2:24:830:965 +Q7 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q7 failed at: 2022-5-23 11:3:4:31:19 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/index/result/pg_12.4/read-committed/wat_dda_read_write_skew1_c1.txt b/index/result/pg_12.4/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..4b855426 --- /dev/null +++ b/index/result/pg_12.4/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:3:5:45:789 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:3:5:47:864 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:3:5:545:592 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:3:5:547:706 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:3:5:549:191 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:3:6:547:324 +Q6 finished at: 2022-5-23 11:3:6:547:386 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:3:6:549:37 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:3:6:550:837 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:3:6:551:654 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/pg_12.4/read-committed/wat_dda_read_write_skew2_c1.txt b/index/result/pg_12.4/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..2aa25560 --- /dev/null +++ b/index/result/pg_12.4/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:3:7:566:432 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:3:7:568:354 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:3:8:66:440 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:3:8:68:992 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 11:3:8:567:338 +Q7-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:3:8:569:421 +Q7 finished at: 2022-5-23 11:3:8:569:457 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:3:9:67:986 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:3:9:70:115 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:3:9:71:20 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/pg_12.4/read-committed/wat_dda_read_write_skew2_committed.txt b/index/result/pg_12.4/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..5649ab1d --- /dev/null +++ b/index/result/pg_12.4/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:3:10:86:145 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:3:10:88:38 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:3:10:586:255 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:3:10:588:437 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 11:3:11:88:545 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:3:11:90:482 + Q5 finished at: 2022-5-23 11:3:11:90:592 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:3:11:92:796 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:3:11:95:225 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:3:11:96:286 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/pg_12.4/read-committed/wat_mda_step_wat_c1.txt b/index/result/pg_12.4/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..6ff4ca71 --- /dev/null +++ b/index/result/pg_12.4/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:3:12:134:840 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:3:12:136:496 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:3:12:612:983 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:3:12:614:863 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 11:3:13:113:202 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-23 11:3:13:115:109 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q8 failed at: 2022-5-23 11:3:14:917:69 + Q5 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q5 failed at: 2022-5-23 11:3:54:115:961 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-5-23 11:3:54:516:69 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/index/result/pg_12.4/read-committed/wat_sda_dirty_write_2commit.txt b/index/result/pg_12.4/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..f3ac5c1c --- /dev/null +++ b/index/result/pg_12.4/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: pg #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:26:78:279 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:26:80:524 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:26:578:269 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-23 11:1:27:79:609 + Q4 finished at: 2022-5-23 11:1:27:79:669 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:1:27:585:994 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-5-23 11:1:27:588:52 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-5-23 11:1:27:590:348 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:1:27:592:892 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/read-committed/wat_sda_full_write.txt b/index/result/pg_12.4/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..767e5f72 --- /dev/null +++ b/index/result/pg_12.4/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: pg #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:28:607:710 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:28:609:644 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:29:115:256 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-23 11:1:29:609:588 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 11:1:29:611:516 + Q4 finished at: 2022-5-23 11:1:29:611:584 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:1:30:109:929 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-23 11:1:30:111:770 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:1:30:112:681 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/read-committed/wat_sda_full_write_committed.txt b/index/result/pg_12.4/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..87f0bcca --- /dev/null +++ b/index/result/pg_12.4/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: pg #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:31:125:189 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:31:126:907 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:31:625:131 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-23 11:1:32:126:93 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:1:32:129:566 + Q4 finished at: 2022-5-23 11:1:32:129:638 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:1:32:131:289 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-23 11:1:32:132:872 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:1:32:133:677 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/read-committed/wat_sda_lost_self_update_committed.txt b/index/result/pg_12.4/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..f4fb5c92 --- /dev/null +++ b/index/result/pg_12.4/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:35:667:647 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:35:670:182 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:36:167:447 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 11:1:36:668:280 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:1:36:670:368 + Q4 finished at: 2022-5-23 11:1:36:670:415 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:1:36:672:501 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:1:36:674:127 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:1:36:674:939 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/read-committed/wat_sda_lost_update_c1.txt b/index/result/pg_12.4/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..b8dc4210 --- /dev/null +++ b/index/result/pg_12.4/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:33:147:106 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 11:1:33:148:949 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:33:647:80 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-23 11:1:33:649:89 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:1:34:648:544 +Q5 finished at: 2022-5-23 11:1:34:648:603 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 11:1:34:650:277 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:1:34:652:147 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:1:34:652:966 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/pg_12.4/repeatable-read/iat_dda_read_skew_committed.txt b/index/result/pg_12.4/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..3a6c1218 --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:6:54:363:889 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:6:54:365:725 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:6:54:863:824 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:6:54:865:719 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:6:54:867:110 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:6:54:869:99 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 11:6:55:365:220 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:6:55:366:181 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:6:55:368:57 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:6:55:369:136 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/repeatable-read/iat_dda_read_write_skew1_committed.txt b/index/result/pg_12.4/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..c32ebe40 --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:6:56:384:63 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:6:56:386:161 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:6:56:884:186 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:6:56:886:302 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:6:56:888:54 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:6:56:889:956 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q7 failed at: 2022-5-23 11:6:58:85:533 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/repeatable-read/iat_dda_write_skew.txt b/index/result/pg_12.4/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..b4298081 --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:6:59:101:966 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:6:59:103:936 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:6:59:603:562 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:6:59:605:647 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:6:59:607:61 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 11:7:0:102:858 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:7:0:105:175 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:7:0:603:178 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:7:0:605:559 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:7:0:606:637 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/pg_12.4/repeatable-read/iat_dda_write_skew_committed.txt b/index/result/pg_12.4/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..a027c838 --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:1:620:726 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:7:1:622:501 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:2:120:683 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:7:2:122:870 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:7:2:124:293 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:7:2:126:108 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 11:7:2:621:662 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:7:2:623:889 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:7:2:625:661 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:7:2:626:535 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/pg_12.4/repeatable-read/iat_dda_write_skew_pred_insert.txt b/index/result/pg_12.4/repeatable-read/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..531ac01e --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,59 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:11:702:558 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:7:11:704:557 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:12:203:450 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-23 11:7:12:205:244 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-23 11:7:12:206:609 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-23 11:7:12:707:900 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:7:12:710:255 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:7:13:204:972 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-23 11:7:13:206:881 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:7:13:207:735 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/pg_12.4/repeatable-read/iat_mda_step_iat.txt b/index/result/pg_12.4/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..fe004d08 --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: pg #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:3:645:322 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-23 11:7:3:647:534 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:4:145:359 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:7:4:147:539 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-5-23 11:7:4:648:200 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-23 11:7:4:650:741 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-23 11:7:5:148:704 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-23 11:7:5:648:653 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-23 11:7:6:146:368 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-23 11:7:6:646:765 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-23 11:7:7:147:141 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-23 11:7:7:646:864 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-23 11:7:7:649:193 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-23 11:7:7:650:129 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/pg_12.4/repeatable-read/iat_sda_lost_update_committed.txt b/index/result/pg_12.4/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..3ab777a2 --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:6:51:746:620 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 11:6:51:748:419 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:6:52:246:631 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-23 11:6:52:248:458 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:6:52:250:415 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q6 failed at: 2022-5-23 11:6:53:347:735 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/index/result/pg_12.4/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..c6504eb9 --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:6:49:728:406 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:6:49:730:419 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:6:50:228:559 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-23 11:6:50:230:765 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:6:50:232:528 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 11:6:50:729:308 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:6:50:730:104 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:6:50:732:70 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:6:50:733:86 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/repeatable-read/rat_dda_double_write_skew1.txt b/index/result/pg_12.4/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..bea323a6 --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:36:938:298 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:36:940:107 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:37:438:335 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:4:37:440:208 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:4:37:441:679 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:4:38:440:128 +Q6 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q6 failed at: 2022-5-23 11:4:39:40:388 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/repeatable-read/rat_dda_double_write_skew1_committed.txt b/index/result/pg_12.4/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..f98e94ce --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:40:56:894 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:40:58:697 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:40:556:981 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:4:40:558:887 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:4:40:560:439 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:4:40:562:481 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q7 failed at: 2022-5-23 11:4:41:760:772 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/repeatable-read/rat_dda_double_write_skew2.txt b/index/result/pg_12.4/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..3e8e44a6 --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:42:777:823 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:42:779:625 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:43:277:824 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:4:43:279:636 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 11:4:43:778:791 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:4:43:781:98 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-5-23 11:4:44:281:720 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/repeatable-read/rat_dda_read_skew.txt b/index/result/pg_12.4/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..14e56f50 --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:45:297:402 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:4:45:299:607 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:45:797:162 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:4:45:799:59 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:4:45:800:421 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 11:4:46:298:221 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:4:46:801:255 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:4:47:300:234 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:4:47:302:425 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:4:47:303:190 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/repeatable-read/rat_dda_read_skew2.txt b/index/result/pg_12.4/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..8be9d566 --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:48:320:728 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:48:322:757 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:48:820:501 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:4:48:822:535 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:4:48:824:35 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 11:4:49:321:646 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:4:49:323:742 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:4:49:823:246 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:4:49:825:425 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:4:49:826:234 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/repeatable-read/rat_dda_read_skew2_committed.txt b/index/result/pg_12.4/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..71bad17c --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:50:841:491 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:50:843:501 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:51:341:316 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:4:51:343:409 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:4:51:344:902 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:4:51:345:770 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 11:4:51:842:148 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:4:51:844:300 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:4:51:846:195 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:4:51:846:896 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/repeatable-read/rat_dda_write_read_skew.txt b/index/result/pg_12.4/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..c7a2a826 --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:31:891:128 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:31:892:929 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:32:391:142 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:4:32:393:116 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:4:32:394:564 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 11:4:32:892:113 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:4:33:392:758 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:4:33:893:76 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:4:33:895:162 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:4:33:895:799 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/pg_12.4/repeatable-read/rat_dda_write_read_skew_committed.txt b/index/result/pg_12.4/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..d58eb5fd --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:34:912:994 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:34:915:99 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:35:412:865 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:4:35:415:35 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:4:35:416:715 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:4:35:418:852 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 11:4:35:915:369 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:4:35:917:438 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:4:35:919:510 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:4:35:920:274 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/pg_12.4/repeatable-read/rat_mda_step_rat.txt b/index/result/pg_12.4/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..1509b79e --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: pg #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:52:862:222 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:52:863:938 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:53:362:255 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:4:53:364:279 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:4:53:366:153 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 11:4:53:862:399 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-23 11:4:53:864:602 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-23 11:4:53:866:486 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-23 11:4:54:365:232 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-23 11:4:54:368:50 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-23 11:4:54:865:301 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-23 11:4:55:365:39 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-23 11:4:55:367:868 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-23 11:4:55:368:872 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/pg_12.4/repeatable-read/rat_sda_dirty_read.txt b/index/result/pg_12.4/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..8bcd2469 --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: pg #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:18:798:701 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:18:800:488 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:19:298:560 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:4:19:300:644 +Q5-T1 execute opt: 'ROLLBACK;' +Q5 finished at: 2022-5-23 11:4:19:799:951 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:4:20:299:118 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-23 11:4:20:301:80 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:4:20:301:770 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/repeatable-read/rat_sda_intermediate_read.txt b/index/result/pg_12.4/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..082924d2 --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:24:337:167 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:24:339:252 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:24:839:787 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:4:24:842:430 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-23 11:4:25:340:397 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:4:25:843:772 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:4:26:338:618 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 11:4:26:340:501 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:4:26:341:260 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/repeatable-read/rat_sda_intermediate_read_committed.txt b/index/result/pg_12.4/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..aace45dc --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:27:355:398 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:27:357:356 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:27:855:368 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:4:27:857:357 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:4:27:858:306 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-23 11:4:28:356:247 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:4:28:358:271 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 11:4:28:359:997 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:4:28:360:712 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/repeatable-read/rat_sda_lost_self_update.txt b/index/result/pg_12.4/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..bc8f09b8 --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:29:377:520 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:29:379:539 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:29:877:454 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 11:4:30:379:86 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 11:4:30:381:3 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-5-23 11:4:30:781:702 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/repeatable-read/rat_sda_non_repeatable_read.txt b/index/result/pg_12.4/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..d1d7f5ad --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:21:318:586 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:4:21:320:973 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:21:819:627 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-23 11:4:21:821:710 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 11:4:22:320:836 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:4:22:820:204 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:4:23:319:109 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:4:23:320:942 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:4:23:321:653 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt b/index/result/pg_12.4/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..6fdb0f55 --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,59 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:8:662:862 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:7:8:664:871 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:9:163:97 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-23 11:7:9:165:75 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 11:7:9:663:438 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:7:10:164:418 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:7:10:675:175 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:7:10:676:827 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:7:10:677:932 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/repeatable-read/wat_dda_double_write_skew2_committed.txt b/index/result/pg_12.4/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..48368943 --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:5:9:270:434 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:5:9:272:305 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:5:9:770:482 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:5:9:772:674 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 11:5:10:271:658 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:5:10:274:193 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-5-23 11:5:10:774:545 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/repeatable-read/wat_dda_full_write_skew_c1.txt b/index/result/pg_12.4/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..fbcb5d05 --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:5:11:791:706 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:5:11:793:427 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:5:12:291:864 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:5:12:293:963 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q5 failed at: 2022-5-23 11:5:14:293:212 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-5-23 11:5:53:392:997 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/index/result/pg_12.4/repeatable-read/wat_dda_full_write_skew_committed.txt b/index/result/pg_12.4/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..db75d38c --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:5:54:414:453 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:5:54:416:396 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:5:54:914:904 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:5:54:917:302 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: ERROR: deadlock detected; errcode: 40P01 +Q7 failed at: 2022-5-23 11:5:57:116:127 + Q5 finished at: 2022-5-23 11:5:57:117:288 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/index/result/pg_12.4/repeatable-read/wat_dda_read_write_skew1_c1.txt b/index/result/pg_12.4/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..c3b70b06 --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:5:58:134:265 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:5:58:136:91 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:5:58:634:195 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:5:58:635:985 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:5:58:637:285 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:5:59:636:714 +Q6 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q6 failed at: 2022-5-23 11:6:0:237:22 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/repeatable-read/wat_dda_read_write_skew2_c1.txt b/index/result/pg_12.4/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..6cbd18bb --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:6:1:256:136 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:6:1:258:153 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:6:1:756:106 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:6:1:758:222 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 11:6:2:260:442 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:6:2:262:346 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-5-23 11:6:2:762:645 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/repeatable-read/wat_dda_read_write_skew2_committed.txt b/index/result/pg_12.4/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..10fd7b8c --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:6:3:783:606 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:6:3:785:323 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:6:4:283:447 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:6:4:285:468 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 11:6:4:784:326 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:6:4:790:900 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-5-23 11:6:5:291:666 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/repeatable-read/wat_mda_step_wat_c1.txt b/index/result/pg_12.4/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..74a63e3c --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:6:6:310:731 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:6:6:312:502 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:6:6:810:562 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:6:6:812:442 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 11:6:7:314:658 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-23 11:6:7:316:801 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q8 failed at: 2022-5-23 11:6:9:118:913 + Q5 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q5 failed at: 2022-5-23 11:6:48:312:429 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-5-23 11:6:48:712:215 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/index/result/pg_12.4/repeatable-read/wat_sda_dirty_write_2commit.txt b/index/result/pg_12.4/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..4f64667d --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,30 @@ +#### db_type: pg #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:56:382:417 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:56:384:529 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:56:882:628 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-23 11:4:57:384:783 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-5-23 11:4:57:785:187 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/repeatable-read/wat_sda_full_write.txt b/index/result/pg_12.4/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..339428ac --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,32 @@ +#### db_type: pg #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:58:897:590 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:58:899:432 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:59:397:618 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-23 11:4:59:898:334 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 11:4:59:900:170 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-5-23 11:5:0:300:559 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/repeatable-read/wat_sda_full_write_committed.txt b/index/result/pg_12.4/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..58dd750c --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,32 @@ +#### db_type: pg #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:5:1:412:828 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:5:1:414:562 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:5:1:912:801 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-23 11:5:2:416:459 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:5:2:418:497 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-5-23 11:5:2:818:772 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/repeatable-read/wat_sda_lost_self_update_committed.txt b/index/result/pg_12.4/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..8c865d6f --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:5:6:850:439 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:5:6:852:467 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:5:7:350:416 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 11:5:7:851:858 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:5:7:854:355 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-5-23 11:5:8:254:608 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/repeatable-read/wat_sda_lost_update_c1.txt b/index/result/pg_12.4/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..bc311aba --- /dev/null +++ b/index/result/pg_12.4/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:5:3:833:972 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 11:5:3:835:875 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:5:4:334:2 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-23 11:5:4:335:727 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:5:5:335:291 +Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q5 failed at: 2022-5-23 11:5:5:835:586 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/result_summary/read-committed_total-result.txt b/index/result/pg_12.4/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..74353e44 --- /dev/null +++ b/index/result/pg_12.4/result_summary/read-committed_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/index/result/pg_12.4/result_summary/repeatable-read_total-result.txt b/index/result/pg_12.4/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..5b0cabbd --- /dev/null +++ b/index/result/pg_12.4/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/index/result/pg_12.4/result_summary/serializable_total-result.txt b/index/result/pg_12.4/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..c82f8ecd --- /dev/null +++ b/index/result/pg_12.4/result_summary/serializable_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Rollback + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Rollback + diff --git a/index/result/pg_12.4/serializable/iat_dda_read_skew_committed.txt b/index/result/pg_12.4/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..e368f3eb --- /dev/null +++ b/index/result/pg_12.4/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:10:30:957:700 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:10:30:959:700 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:10:31:459:549 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:10:31:461:535 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:10:31:463:85 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:10:31:464:939 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 11:10:31:960:439 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:10:31:961:320 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:10:31:963:221 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:10:31:963:979 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/serializable/iat_dda_read_write_skew1_committed.txt b/index/result/pg_12.4/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..2a6e60d1 --- /dev/null +++ b/index/result/pg_12.4/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:10:32:977:452 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:10:32:979:358 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:10:33:478:408 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:10:33:480:469 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:10:33:482:16 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:10:33:484:866 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q7 failed at: 2022-5-23 11:10:34:678:494 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/serializable/iat_dda_write_skew.txt b/index/result/pg_12.4/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..40abe06e --- /dev/null +++ b/index/result/pg_12.4/serializable/iat_dda_write_skew.txt @@ -0,0 +1,51 @@ +#### db_type: pg #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:10:35:695:34 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:10:35:696:960 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:10:36:195:16 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:10:36:196:874 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:10:36:198:165 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 11:10:36:696:581 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:10:36:698:418 + Q8-T2 execute opt: 'COMMIT;' + Q8 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions errcode: 40001 + Q8 failed at: 2022-5-23 11:10:37:996:12 + +Test Result: Rollback +ERROR: could not serialize access due to read/write dependencies among transactions + diff --git a/index/result/pg_12.4/serializable/iat_dda_write_skew_committed.txt b/index/result/pg_12.4/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..91d663c6 --- /dev/null +++ b/index/result/pg_12.4/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,49 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:10:39:15:492 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:10:39:17:348 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:10:39:515:620 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:10:39:517:672 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:10:39:519:110 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:10:39:521:40 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions; errcode: 40001 +Q7 failed at: 2022-5-23 11:10:40:717:161 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to read/write dependencies among transactions; + diff --git a/index/result/pg_12.4/serializable/iat_dda_write_skew_pred_insert.txt b/index/result/pg_12.4/serializable/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..90beebbf --- /dev/null +++ b/index/result/pg_12.4/serializable/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,49 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:10:50:363:553 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:10:50:365:902 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:10:50:863:423 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-23 11:10:50:865:400 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-23 11:10:50:867:15 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-23 11:10:51:363:940 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:10:51:366:138 + Q8-T2 execute opt: 'COMMIT;' + Q8 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions errcode: 40001 + Q8 failed at: 2022-5-23 11:10:52:664:118 + +Test Result: Rollback +ERROR: could not serialize access due to read/write dependencies among transactions + diff --git a/index/result/pg_12.4/serializable/iat_mda_step_iat.txt b/index/result/pg_12.4/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..659ebe26 --- /dev/null +++ b/index/result/pg_12.4/serializable/iat_mda_step_iat.txt @@ -0,0 +1,91 @@ +#### db_type: pg #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:10:41:733:447 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-23 11:10:41:735:576 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:10:42:233:470 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:10:42:235:875 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-5-23 11:10:42:735:516 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-23 11:10:42:737:842 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-23 11:10:43:234:625 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-23 11:10:43:736:395 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-23 11:10:44:235:527 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-23 11:10:44:735:409 + Q11-T2 execute opt: 'COMMIT;' + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-23 11:10:45:735:101 + Q11 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions errcode: 40001 + Q11 failed at: 2022-5-23 11:10:46:334:164 + +Test Result: Rollback +ERROR: could not serialize access due to read/write dependencies among transactions + diff --git a/index/result/pg_12.4/serializable/iat_sda_lost_update_committed.txt b/index/result/pg_12.4/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..f9553156 --- /dev/null +++ b/index/result/pg_12.4/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:10:28:330:933 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 11:10:28:332:921 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:10:28:830:810 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-23 11:10:28:832:735 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:10:28:834:798 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q6 failed at: 2022-5-23 11:10:29:932:238 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/serializable/iat_sda_non_repeatable_read_committed.txt b/index/result/pg_12.4/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..fcd69e33 --- /dev/null +++ b/index/result/pg_12.4/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:10:26:310:413 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:10:26:312:367 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:10:26:810:382 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-23 11:10:26:812:289 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:10:26:814:38 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 11:10:27:311:542 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:10:27:312:554 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:10:27:314:367 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:10:27:315:273 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/serializable/rat_dda_double_write_skew1.txt b/index/result/pg_12.4/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..58072fe8 --- /dev/null +++ b/index/result/pg_12.4/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:33:925:959 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:33:927:983 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:34:425:691 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:7:34:427:654 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:7:34:429:189 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:7:35:429:35 +Q6 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q6 failed at: 2022-5-23 11:7:36:29:346 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/serializable/rat_dda_double_write_skew1_committed.txt b/index/result/pg_12.4/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..db335d75 --- /dev/null +++ b/index/result/pg_12.4/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:37:56:704 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:37:58:798 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:37:556:608 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:7:37:558:362 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:7:37:559:836 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:7:37:561:601 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions; errcode: 40001 +Q7 failed at: 2022-5-23 11:7:38:760:802 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to read/write dependencies among transactions; + diff --git a/index/result/pg_12.4/serializable/rat_dda_double_write_skew2.txt b/index/result/pg_12.4/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..52cf7f9f --- /dev/null +++ b/index/result/pg_12.4/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:39:777:184 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:39:779:271 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:40:277:181 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:7:40:279:261 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 11:7:40:780:702 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:7:40:783:663 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-5-23 11:7:41:284:386 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/serializable/rat_dda_read_skew.txt b/index/result/pg_12.4/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..30837ada --- /dev/null +++ b/index/result/pg_12.4/serializable/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:42:307:414 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:7:42:309:539 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:42:807:510 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:7:42:809:738 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:7:42:811:260 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 11:7:43:308:616 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:7:43:813:235 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:7:44:309:552 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:7:44:312:78 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:7:44:312:777 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/serializable/rat_dda_read_skew2.txt b/index/result/pg_12.4/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..37cdecd3 --- /dev/null +++ b/index/result/pg_12.4/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:45:329:33 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:45:330:904 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:45:829:847 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:7:45:831:987 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:7:45:833:534 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 11:7:46:330:574 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:7:46:332:607 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:7:46:829:859 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:7:46:831:908 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:7:46:832:666 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/serializable/rat_dda_read_skew2_committed.txt b/index/result/pg_12.4/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..729d7cfe --- /dev/null +++ b/index/result/pg_12.4/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:47:847:464 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:47:849:530 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:48:347:501 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:7:48:350:393 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:7:48:353:192 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:7:48:354:959 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 11:7:48:848:172 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:7:48:850:117 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:7:48:852:13 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:7:48:852:665 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/serializable/rat_dda_write_read_skew.txt b/index/result/pg_12.4/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..ebacd794 --- /dev/null +++ b/index/result/pg_12.4/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,51 @@ +#### db_type: pg #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:27:394:515 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:27:396:474 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:27:894:303 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:7:27:896:160 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:7:27:897:662 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 11:7:28:395:640 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:7:28:896:888 +Q8-T1 execute opt: 'COMMIT;' +Q8 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions errcode: 40001 +Q8 failed at: 2022-5-23 11:7:30:195:7 + +Test Result: Rollback +ERROR: could not serialize access due to read/write dependencies among transactions + diff --git a/index/result/pg_12.4/serializable/rat_dda_write_read_skew_committed.txt b/index/result/pg_12.4/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..9e5823ee --- /dev/null +++ b/index/result/pg_12.4/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:31:210:114 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:31:211:955 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:31:710:0 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:7:31:711:806 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:7:31:713:307 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:7:31:715:239 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions; errcode: 40001 +Q7 failed at: 2022-5-23 11:7:32:911:105 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to read/write dependencies among transactions; + diff --git a/index/result/pg_12.4/serializable/rat_mda_step_rat.txt b/index/result/pg_12.4/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..7ddfc2f4 --- /dev/null +++ b/index/result/pg_12.4/serializable/rat_mda_step_rat.txt @@ -0,0 +1,91 @@ +#### db_type: pg #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:49:869:203 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:49:871:210 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:50:370:605 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:7:50:372:814 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:7:50:375:286 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 11:7:50:869:189 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-23 11:7:50:871:68 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-23 11:7:50:872:847 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-23 11:7:51:370:903 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-23 11:7:51:373:141 + Q11-T2 execute opt: 'COMMIT;' + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-23 11:7:52:370:872 + Q11 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions errcode: 40001 + Q11 failed at: 2022-5-23 11:7:52:969:714 + +Test Result: Rollback +ERROR: could not serialize access due to read/write dependencies among transactions + diff --git a/index/result/pg_12.4/serializable/rat_sda_dirty_read.txt b/index/result/pg_12.4/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..4a56a6a8 --- /dev/null +++ b/index/result/pg_12.4/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: pg #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:14:307:440 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:14:309:691 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:14:807:53 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:7:14:808:987 +Q5-T1 execute opt: 'ROLLBACK;' +Q5 finished at: 2022-5-23 11:7:15:307:386 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:7:15:807:537 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-23 11:7:15:809:484 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:7:15:810:220 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/serializable/rat_sda_intermediate_read.txt b/index/result/pg_12.4/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..d6b41a05 --- /dev/null +++ b/index/result/pg_12.4/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:19:838:154 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:19:840:220 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:20:338:188 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:7:20:340:226 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-23 11:7:20:839:189 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:7:21:338:619 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:7:21:841:100 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 11:7:21:843:261 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:7:21:844:63 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/serializable/rat_sda_intermediate_read_committed.txt b/index/result/pg_12.4/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..b21bbf60 --- /dev/null +++ b/index/result/pg_12.4/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:22:859:714 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:22:862:185 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:23:359:612 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:7:23:361:880 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:7:23:362:800 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-23 11:7:23:860:610 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:7:23:862:785 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 11:7:23:864:532 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:7:23:865:304 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/serializable/rat_sda_lost_self_update.txt b/index/result/pg_12.4/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..70e3a1bd --- /dev/null +++ b/index/result/pg_12.4/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:24:878:92 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:24:880:27 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:25:378:236 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 11:7:25:879:223 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 11:7:25:881:74 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-5-23 11:7:26:281:506 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/serializable/rat_sda_non_repeatable_read.txt b/index/result/pg_12.4/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..fa258441 --- /dev/null +++ b/index/result/pg_12.4/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:16:822:547 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:7:16:824:674 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:17:322:440 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-23 11:7:17:324:594 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 11:7:17:823:384 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:7:18:324:133 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:7:18:822:843 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:7:18:824:605 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:7:18:825:302 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/serializable/rat_sda_non_repeatable_read_pred_insert.txt b/index/result/pg_12.4/serializable/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..4644d4fc --- /dev/null +++ b/index/result/pg_12.4/serializable/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,59 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:10:47:348:418 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:10:47:350:313 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:10:47:848:511 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-23 11:10:47:850:626 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 11:10:48:349:688 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:10:48:849:834 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:10:49:349:50 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:10:49:350:815 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:10:49:351:656 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/pg_12.4/serializable/wat_dda_double_write_skew2_committed.txt b/index/result/pg_12.4/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..46a3d137 --- /dev/null +++ b/index/result/pg_12.4/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:8:6:878:851 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:8:6:880:502 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:8:7:378:967 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:8:7:380:856 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 11:8:7:883:455 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:8:7:885:537 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-5-23 11:8:8:385:833 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/serializable/wat_dda_full_write_skew_c1.txt b/index/result/pg_12.4/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..6e9444dd --- /dev/null +++ b/index/result/pg_12.4/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:8:9:402:914 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:8:9:404:740 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:8:9:902:839 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:8:9:904:859 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q5 failed at: 2022-5-23 11:8:11:904:94 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-5-23 11:8:51:4:320 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/index/result/pg_12.4/serializable/wat_dda_full_write_skew_committed.txt b/index/result/pg_12.4/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..52b183b9 --- /dev/null +++ b/index/result/pg_12.4/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,34 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:8:52:20:288 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:8:52:22:414 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:8:52:520:296 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:8:52:522:281 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q5 failed at: 2022-5-23 11:8:54:521:592 +Q7 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q7 failed at: 2022-5-23 11:9:33:721:777 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/index/result/pg_12.4/serializable/wat_dda_read_write_skew1_c1.txt b/index/result/pg_12.4/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..269c2fbf --- /dev/null +++ b/index/result/pg_12.4/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:9:34:737:979 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:9:34:739:918 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:9:35:237:944 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:9:35:239:650 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:9:35:240:942 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:9:36:239:330 +Q6 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q6 failed at: 2022-5-23 11:9:36:839:584 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/serializable/wat_dda_read_write_skew2_c1.txt b/index/result/pg_12.4/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..740dcea6 --- /dev/null +++ b/index/result/pg_12.4/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:9:37:856:583 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:9:37:858:533 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:9:38:359:478 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:9:38:361:400 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 11:9:38:857:159 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:9:38:859:208 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-5-23 11:9:39:359:539 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/serializable/wat_dda_read_write_skew2_committed.txt b/index/result/pg_12.4/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..ca0f9856 --- /dev/null +++ b/index/result/pg_12.4/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:9:40:374:534 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:9:40:376:613 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:9:40:874:491 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:9:40:876:293 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 11:9:41:375:381 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:9:41:377:480 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-5-23 11:9:41:877:873 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/serializable/wat_mda_step_wat_c1.txt b/index/result/pg_12.4/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..0362ee90 --- /dev/null +++ b/index/result/pg_12.4/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:9:42:895:313 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:9:42:897:151 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:9:43:395:429 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:9:43:397:471 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 11:9:43:895:449 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-23 11:9:43:897:257 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q8 failed at: 2022-5-23 11:9:45:699:195 + Q5 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q5 failed at: 2022-5-23 11:10:24:896:720 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-5-23 11:10:25:296:802 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/index/result/pg_12.4/serializable/wat_sda_dirty_write_2commit.txt b/index/result/pg_12.4/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..91824fc3 --- /dev/null +++ b/index/result/pg_12.4/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,30 @@ +#### db_type: pg #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:53:984:506 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:53:986:432 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:54:484:36 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-23 11:7:54:985:907 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-5-23 11:7:55:386:312 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/serializable/wat_sda_full_write.txt b/index/result/pg_12.4/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..f61a1aa6 --- /dev/null +++ b/index/result/pg_12.4/serializable/wat_sda_full_write.txt @@ -0,0 +1,32 @@ +#### db_type: pg #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:56:500:355 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:56:502:77 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:57:0:393 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-23 11:7:57:501:551 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 11:7:57:503:666 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-5-23 11:7:57:904:93 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/serializable/wat_sda_full_write_committed.txt b/index/result/pg_12.4/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..524ac48e --- /dev/null +++ b/index/result/pg_12.4/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,32 @@ +#### db_type: pg #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:59:19:635 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:59:21:344 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:59:519:493 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-23 11:8:0:20:678 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:8:0:23:51 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-5-23 11:8:0:423:770 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/serializable/wat_sda_lost_self_update_committed.txt b/index/result/pg_12.4/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..fcaa986a --- /dev/null +++ b/index/result/pg_12.4/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:8:4:459:314 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:8:4:461:486 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:8:4:959:351 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 11:8:5:460:328 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:8:5:463:432 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-5-23 11:8:5:863:738 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/pg_12.4/serializable/wat_sda_lost_update_c1.txt b/index/result/pg_12.4/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..ff47adc9 --- /dev/null +++ b/index/result/pg_12.4/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:8:1:438:800 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 11:8:1:440:945 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:8:1:938:868 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-23 11:8:1:941:35 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:8:2:941:957 +Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q5 failed at: 2022-5-23 11:8:3:442:258 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/index/result/sqlserver_15.0/rcsnapshot/iat_dda_read_skew_committed.txt b/index/result/sqlserver_15.0/rcsnapshot/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..dcd30011 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:20:676:897 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:20:719:478 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:20:776:931 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:14:20:816:700 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:14:20:855:348 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:14:20:900:937 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 15:14:20:918:15 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:14:20:959:369 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:20:997:712 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:21:34:624 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/iat_dda_read_write_skew1_committed.txt b/index/result/sqlserver_15.0/rcsnapshot/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..acae42c8 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:21:463:643 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:21:506:299 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:21:563:401 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:14:21:603:475 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:14:21:642:115 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:14:21:688:259 +Q7 finished at: 2022-4-2 15:14:21:704:283 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:14:21:753:956 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:21:792:212 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:21:829:19 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew.txt b/index/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew.txt new file mode 100644 index 00000000..0265ff07 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:22:247:950 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:22:290:656 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:22:348:4 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:14:22:386:854 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:14:22:426:529 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:14:22:489:141 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:14:22:539:412 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:14:22:596:573 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:22:635:32 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:14:22:671:794 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew_committed.txt b/index/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..bbff1fa4 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:24:835:511 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:24:878:231 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:24:935:614 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:14:24:974:522 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:14:25:14:645 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:14:25:62:465 +Q7 finished at: 2022-4-2 15:14:25:76:630 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:14:25:128:28 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:25:166:392 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:25:203:309 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew_predicate_based-intersecting_data.txt b/index/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..1d14cba4 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:23:179:382 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 15:14:23:232:180 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 15:14:23:273:860 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 15:14:23:279:117 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute opt: 'COMMIT'; + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 15:14:23:425:396 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' +Q8 finished at: 2022-4-2 15:14:23:427:903 + Q6 finished at: 2022-4-2 15:14:23:464:109 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:14:23:510:227 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 15:14:23:548:318 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 15:14:23:585:877 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:14:23:622:816 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/index/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..d6bc77f6 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:24:46:73 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 15:14:24:102:464 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:24:146:26 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 15:14:24:185:143 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 15:14:24:225:721 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q6 finished at: 2022-4-2 15:14:24:271:758 +Q7 finished at: 2022-4-2 15:14:24:287:880 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:14:24:340:621 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 15:14:24:378:867 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:24:415:671 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat.txt b/index/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat.txt new file mode 100644 index 00000000..779ada60 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:25:665:548 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 15:14:25:708:431 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:25:765:824 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:14:25:805:451 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:14:25:865:579 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 15:14:25:903:475 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 15:14:26:7:711 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 15:14:26:105:636 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 15:14:26:202:261 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:14:26:323:465 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:14:26:411:980 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:14:26:507:832 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 15:14:26:552:766 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:14:26:595:775 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_causality_violation_anomaly.txt b/index/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..c86062f1 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:31:741:622 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:31:784:598 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:31:841:606 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:14:31:881:296 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:14:31:934:613 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:14:31:941:875 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 15:14:31:980:2 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 15:14:32:17:351 + Q9-T3 execute opt: 'COMMIT'; +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9 finished at: 2022-4-2 15:14:32:62:607 + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 15:14:32:83:61 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 15:14:32:124:572 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 15:14:32:169:570 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 15:14:32:212:970 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_cross_phenomenon.txt b/index/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..bab073cd --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:30:692:265 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:30:736:238 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:30:794:947 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:14:30:835:8 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:14:30:892:278 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 15:14:30:930:849 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:14:30:978:894 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 15:14:30:994:708 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 15:14:31:38:519 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:31:92:122 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 15:14:31:134:810 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:14:31:173:97 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 15:14:31:234:264 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 15:14:31:275:817 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 15:14:31:315:561 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 15:14:31:316:482 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_predicate_based_delete.txt b/index/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..0fc1b1df --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:27:62:270 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 15:14:27:106:355 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:27:162:132 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:14:27:201:35 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:14:27:262:241 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 15:14:27:299:900 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 15:14:27:403:909 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 15:14:27:500:306 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 15:14:27:600:223 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:14:27:708:813 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:14:27:814:468 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:14:27:903:556 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 15:14:27:948:259 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:14:27:991:300 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_predicate_based_insert.txt b/index/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..d3ab8570 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:28:330:5 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 15:14:28:373:188 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:28:430:112 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 15:14:28:469:566 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:14:28:529:763 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 15:14:28:567:667 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 15:14:28:671:471 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 15:14:28:767:860 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 15:14:28:868:673 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:14:28:978:959 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:14:29:77:949 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:14:29:183:83 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 15:14:29:228:36 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:14:29:271:114 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt b/index/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..9bbb5f83 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:32:636:132 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 15:14:32:679:196 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 15:14:32:721:395 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 15:14:32:735:702 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 15:14:32:774:817 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 15:14:32:814:561 + Q7-T2 execute opt: 'COMMIT'; + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 15:14:32:838:262 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q7 finished at: 2022-4-2 15:14:32:868:59 + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 15:14:32:875:879 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 15:14:32:913:629 + Q11-T3 execute opt: 'COMMIT'; +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q11 finished at: 2022-4-2 15:14:32:950:595 +Q12 finished at: 2022-4-2 15:14:32:977:405 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 15:14:33:33:254 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 15:14:33:71:964 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 15:14:33:108:941 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_uname_anomaly.txt b/index/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..fb853aa3 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:29:736:404 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 15:14:29:779:714 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:29:836:302 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 15:14:29:875:813 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:14:29:915:950 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 15:14:29:936:184 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 15:14:29:955:118 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 15:14:29:974:7 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 15:14:29:993:824 + Q8-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:14:30:11:407 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + Q8 finished at: 2022-4-2 15:14:30:50:278 + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 15:14:30:52:411 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 15:14:30:89:696 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:14:30:136:621 + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 15:14:30:138:414 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 15:14:30:179:865 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 15:14:30:225:61 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-2 15:14:30:268:285 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/iat_sda_lost_update_committed.txt b/index/result/sqlserver_15.0/rcsnapshot/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..c378cb0f --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:19:887:367 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 15:14:19:929:929 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:19:987:714 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 15:14:20:27:630 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:14:20:74:554 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 15:14:20:128:455 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:14:20:183:85 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:14:20:221:24 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:14:20:257:786 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/iat_sda_non_repeatable_read_committed.txt b/index/result/sqlserver_15.0/rcsnapshot/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..48764b43 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:19:144:782 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:19:187:589 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:19:244:762 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:14:19:284:606 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:14:19:332:225 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 15:14:19:388:484 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:14:19:429:755 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:14:19:467:933 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:14:19:504:823 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:19:505:875 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/rat_dda_double_write_skew1.txt b/index/result/sqlserver_15.0/rcsnapshot/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..e09e1e11 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:23:972:968 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:24:15:900 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:24:72:426 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:24:111:107 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:13:25:310:48 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:13:25:358:783 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 15:13:25:912:665 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/rcsnapshot/rat_dda_double_write_skew1_committed.txt b/index/result/sqlserver_15.0/rcsnapshot/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..196289b5 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:26:375:904 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:26:419:339 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:26:475:294 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:26:514:209 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:13:27:185:826 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:27:232:178 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 15:13:27:888:55 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/rcsnapshot/rat_dda_double_write_skew2.txt b/index/result/sqlserver_15.0/rcsnapshot/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..2558f82d --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/rat_dda_double_write_skew2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:28:349:944 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:28:392:660 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:28:449:908 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:28:488:672 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:13:29:60:835 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:13:29:107:566 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 15:13:29:663:695 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew.txt b/index/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew.txt new file mode 100644 index 00000000..d17d7188 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:30:142:773 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:13:30:185:447 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:30:242:715 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:30:282:215 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:13:30:320:986 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:13:30:489:84 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 15:13:30:492:0 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:13:30:583:286 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:13:30:621:874 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:13:30:622:638 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew2.txt b/index/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew2.txt new file mode 100644 index 00000000..7daa8f83 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew2.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:32:452:459 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:32:495:148 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:32:552:225 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:13:32:591:753 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:13:32:693:357 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:13:32:740:69 +Q7 finished at: 2022-4-2 15:13:32:742:429 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:13:32:792:582 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:13:32:830:915 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:13:32:831:708 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew2_committed.txt b/index/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..af92d858 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew2_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:33:251:362 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:33:293:987 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:33:351:369 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:13:33:390:913 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 15:13:33:492:599 +Q8-T1 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:13:33:539:5 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:13:33:541:364 + Q6 finished at: 2022-4-2 15:13:33:577:49 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:13:33:615:486 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:13:33:616:267 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew_predicate_based_delete.txt b/index/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..39865a16 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:31:42:844 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 15:13:31:94:532 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:31:142:890 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:31:182:323 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:13:31:221:75 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 15:13:31:272:127 + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 15:13:31:283:809 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:13:31:324:881 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 15:13:31:363:253 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:13:31:363:957 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew_predicate_based_insert.txt b/index/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..62521231 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:31:699:608 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 15:13:31:742:391 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:31:799:754 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 15:13:31:839:379 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 15:13:31:878:29 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 15:13:31:946:795 + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 15:13:31:949:918 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:13:31:990:987 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 15:13:32:29:264 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:13:32:30:116 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/rat_dda_write_read_skew.txt b/index/result/sqlserver_15.0/rcsnapshot/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..282bb578 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/rat_dda_write_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:16:897:504 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:16:940:127 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:16:997:550 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:17:36:221 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:13:17:808:886 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:13:17:853:67 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 15:13:18:411:567 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/rcsnapshot/rat_dda_write_read_skew_committed.txt b/index/result/sqlserver_15.0/rcsnapshot/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..be8b756a --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:18:874:68 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:18:916:898 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:18:974:62 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:19:12:771 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:13:22:809:517 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:22:854:725 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 15:13:23:512:82 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat.txt b/index/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat.txt new file mode 100644 index 00000000..b89edd83 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:34:78:497 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:34:121:293 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:34:178:580 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:34:217:295 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:13:34:314:630 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 15:13:34:352:209 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:13:34:688:97 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:13:34:737:127 + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 15:13:34:739:386 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:13:34:785:674 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 15:13:35:590:46 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat_long_fork.txt b/index/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..41521eab --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,207 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 15:13:36:98:382 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 15:13:36:143:783 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 15:13:36:156:290 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 15:13:36:199:134 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:13:36:256:240 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 15:13:36:294:893 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 15:13:36:356:369 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 15:13:36:395:153 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q11-T1 execute opt: 'COMMIT'; + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + *(7) expected_result: + (0,1) + *(8) expected_result: + (0,1) + *(9) expected_result: + (0,1) + (10) expected_result: + (0,0) + (11) expected_result: + (0,0) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + (14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 15:13:36:603:962 +Q11 finished at: 2022-4-2 15:13:36:604:219 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:13:36:701:467 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 15:13:36:706:136 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 15:13:36:792:409 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:13:36:835:619 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 15:13:36:880:796 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 15:13:36:923:820 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat_predicate_based_delete.txt b/index/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..699dcf39 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:37:393:43 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:37:435:812 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:37:492:857 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:37:531:559 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:13:37:592:996 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 15:13:37:630:751 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 15:13:39:688:311 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:13:39:750:832 + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 15:13:39:752:970 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:13:39:800:856 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 15:13:40:590:607 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat_predicate_based_insert.txt b/index/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..9cf20e1b --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,71 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:40:972:289 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 15:13:41:14:882 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:41:71:904 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 15:13:41:111:6 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:13:41:172:488 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 15:13:41:210:44 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 15:13:42:191:603 +Q10-T1 execute opt: 'COMMIT'; + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 15:13:42:236:518 + Q11-T2 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:13:42:238:606 + Q11 finished at: 2022-4-2 15:13:42:287:52 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 15:13:42:990:170 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/rcsnapshot/rat_sda_dirty_read.txt b/index/result/sqlserver_15.0/rcsnapshot/rat_sda_dirty_read.txt new file mode 100644 index 00000000..56945a45 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_read #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:11:493:346 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:11:536:92 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:11:592:313 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:13:11:693:564 +Q5 finished at: 2022-4-2 15:13:11:695:997 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:11:790:42 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 15:13:11:827:959 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:13:11:828:703 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/rcsnapshot/rat_sda_intermediate_read.txt b/index/result/sqlserver_15.0/rcsnapshot/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..0301308e --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:13:63:718 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:13:106:478 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:13:166:234 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 15:13:13:304:926 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:13:13:518:719 + Q6-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:13:521:114 + Q6 finished at: 2022-4-2 15:13:13:556:672 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 15:13:13:594:961 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:13:595:683 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/rcsnapshot/rat_sda_intermediate_read_committed.txt b/index/result/sqlserver_15.0/rcsnapshot/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..86424d49 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:13:979:112 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:14:21:894 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:14:79:151 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 15:13:14:223:141 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:13:14:275:723 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:14:277:983 + Q5 finished at: 2022-4-2 15:13:14:313:730 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 15:13:14:352:187 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:14:352:883 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/rcsnapshot/rat_sda_lost_self_update.txt b/index/result/sqlserver_15.0/rcsnapshot/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..d637c167 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:16:95:93 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:16:137:677 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:16:195:95 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 15:13:16:337:280 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 15:13:16:387:550 +Q6 finished at: 2022-4-2 15:13:16:390:58 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:13:16:440:785 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:13:16:478:979 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:16:479:748 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/rcsnapshot/rat_sda_non_repeatable_read.txt b/index/result/sqlserver_15.0/rcsnapshot/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..b99277b4 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/rat_sda_non_repeatable_read.txt @@ -0,0 +1,58 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:12:204:230 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:13:12:247:146 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:12:304:103 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:13:12:343:897 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:12:550:72 + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 15:13:12:553:285 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:12:644:590 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:13:12:682:662 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:12:683:456 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/index/result/sqlserver_15.0/rcsnapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..fe013b6b --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:14:737:544 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 15:13:14:786:168 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:14:837:541 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:13:14:877:119 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:13:14:922:163 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 15:13:14:978:414 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:15:19:675 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 15:13:15:57:681 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:15:58:526 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/index/result/sqlserver_15.0/rcsnapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..e5785a5a --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:15:398:551 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 15:13:15:441:382 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:15:498:631 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 15:13:15:538:247 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:13:15:582:32 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 15:13:15:639:513 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:15:680:573 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 15:13:15:718:689 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:15:719:553 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/wat_dda_double_write_skew2_committed.txt b/index/result/sqlserver_15.0/rcsnapshot/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..675fa8ed --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:49:331:645 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:49:374:618 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:49:431:532 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:49:470:303 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:13:52:814:764 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:52:866:751 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 15:13:53:517:623 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/rcsnapshot/wat_dda_full_write_skew_c1.txt b/index/result/sqlserver_15.0/rcsnapshot/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..5155481d --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:53:980:983 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:54:23:613 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:54:81:404 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:54:120:192 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:13:57:815:361 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:13:57:862:821 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 15:13:58:418:287 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/rcsnapshot/wat_dda_full_write_skew_c2.txt b/index/result/sqlserver_15.0/rcsnapshot/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..231dbef2 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:58:881:120 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:58:923:857 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:58:981:366 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:59:22:711 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:14:0:315:862 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:14:0:363:356 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 15:14:0:918:769 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/rcsnapshot/wat_dda_full_write_skew_committed.txt b/index/result/sqlserver_15.0/rcsnapshot/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..3347e15f --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:1:386:62 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:14:1:429:278 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:1:486:275 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:14:1:525:403 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:14:2:191:581 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:14:2:241:707 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 15:14:2:894:460 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew1_c1.txt b/index/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..c148e191 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:3:364:701 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:3:407:397 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:3:464:714 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:14:3:504:649 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:14:3:543:486 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:14:3:711:10 +Q6 finished at: 2022-4-2 15:14:3:713:731 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:14:3:809:696 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:3:847:988 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:3:885:321 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew1_c2.txt b/index/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..07fd49a9 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:4:304:695 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:4:347:564 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:4:404:791 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:14:4:444:498 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:14:4:483:223 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:14:4:657:374 +Q6 finished at: 2022-4-2 15:14:4:660:86 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:14:4:761:678 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:4:799:909 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:4:836:663 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew2_c1.txt b/index/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..96078af6 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:5:257:27 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:14:5:299:779 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:5:356:717 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:14:5:396:441 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:14:5:497:994 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:14:5:551:434 +Q7 finished at: 2022-4-2 15:14:5:554:253 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:14:5:605:40 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:5:643:292 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:5:680:41 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew2_c2.txt b/index/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..dbcd7f40 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:6:107:650 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:14:6:150:415 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:6:207:639 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:14:6:247:165 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:14:6:348:922 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:14:6:551:698 + Q7-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:14:6:554:357 + Q7 finished at: 2022-4-2 15:14:6:601:465 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:6:639:726 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:6:676:719 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew2_committed.txt b/index/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..bcefd9d3 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:7:98:307 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:14:7:141:97 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:7:197:983 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:14:7:237:443 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 15:14:7:339:2 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:14:7:382:447 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:14:7:385:230 + Q6 finished at: 2022-4-2 15:14:7:430:866 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:7:469:279 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:7:505:995 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/wat_mda_step_wat_c1.txt b/index/result/sqlserver_15.0/rcsnapshot/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..ac89e359 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c1 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:7:971:615 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:14:8:14:607 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:8:71:448 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:14:8:110:219 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:14:8:171:515 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 15:14:8:208:834 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 15:14:12:818:110 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:14:12:866:813 + Q8 finished at: 2022-4-2 15:14:12:868:470 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:14:12:913:959 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 15:14:13:720:903 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/rcsnapshot/wat_mda_step_wat_c2.txt b/index/result/sqlserver_15.0/rcsnapshot/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..805f6ebb --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c2 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:14:232:513 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:14:14:275:565 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:14:334:250 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:14:14:373:179 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:14:14:435:569 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 15:14:14:672:650 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 15:14:17:818:755 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:17:869:186 + Q8 finished at: 2022-4-2 15:14:17:871:50 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:14:17:919:858 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 15:14:18:721:655 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/rcsnapshot/wat_sda_dirty_write_1abort.txt b/index/result/sqlserver_15.0/rcsnapshot/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..c8d62f2d --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:43:379:403 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:43:422:449 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:43:479:688 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 15:13:43:619:369 +Q5 finished at: 2022-4-2 15:13:43:620:150 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:43:742:579 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 15:13:43:816:298 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 15:13:43:854:314 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:43:911:522 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/rcsnapshot/wat_sda_dirty_write_2commit.txt b/index/result/sqlserver_15.0/rcsnapshot/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..d117f5eb --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:44:297:315 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:44:340:132 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:44:399:597 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 15:13:44:545:808 +Q5 finished at: 2022-4-2 15:13:44:548:574 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:44:645:664 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 15:13:44:684:146 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 15:13:44:722:158 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:44:763:816 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/rcsnapshot/wat_sda_full_write.txt b/index/result/sqlserver_15.0/rcsnapshot/wat_sda_full_write.txt new file mode 100644 index 00000000..23a6a398 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:45:146:139 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:45:188:812 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:45:246:252 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 15:13:45:387:454 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 15:13:45:433:780 +Q6 finished at: 2022-4-2 15:13:45:436:396 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:13:45:491:445 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 15:13:45:529:571 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:45:566:273 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/rcsnapshot/wat_sda_full_write_committed.txt b/index/result/sqlserver_15.0/rcsnapshot/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..d1125e4b --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:45:945:270 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:45:987:976 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:46:45:317 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 15:13:46:186:184 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 15:13:46:230:353 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:46:232:997 + Q5 finished at: 2022-4-2 15:13:46:280:188 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 15:13:46:318:198 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:46:355:125 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/rcsnapshot/wat_sda_lost_self_update_committed.txt b/index/result/sqlserver_15.0/rcsnapshot/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..9df55a0d --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:48:500:143 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:48:542:947 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:48:600:74 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 15:13:48:741:963 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 15:13:48:787:193 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:48:789:900 + Q5 finished at: 2022-4-2 15:13:48:834:823 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:13:48:872:943 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:48:909:720 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/rcsnapshot/wat_sda_lost_update_c1.txt b/index/result/sqlserver_15.0/rcsnapshot/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..b4ea4ba8 --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c1 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:46:741:164 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 15:13:46:783:564 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:46:841:243 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 15:13:46:880:899 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:13:47:86:576 +Q5 finished at: 2022-4-2 15:13:47:89:318 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 15:13:47:146:262 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:13:47:184:149 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:47:220:896 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/rcsnapshot/wat_sda_lost_update_c2.txt b/index/result/sqlserver_15.0/rcsnapshot/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..a7e6f24a --- /dev/null +++ b/index/result/sqlserver_15.0/rcsnapshot/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c2 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:47:596:894 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 15:13:47:639:386 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:47:696:886 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 15:13:47:736:593 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:47:944:838 +Q5 finished at: 2022-4-2 15:13:47:947:520 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:48:48:763 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:13:48:86:855 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:48:123:562 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/iat_dda_read_skew_committed.txt b/index/result/sqlserver_15.0/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..60186395 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:5:819:404 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:5:867:700 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:5:919:91 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:5:961:316 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:53:6:2:465 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:53:6:56:562 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 14:53:6:66:87 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:53:6:112:848 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:53:6:153:293 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:6:191:978 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/iat_dda_read_write_skew1_committed.txt b/index/result/sqlserver_15.0/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..f2872527 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:6:648:835 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:6:699:222 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:6:748:879 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:6:791:298 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:53:6:832:584 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:53:6:887:348 +Q7 finished at: 2022-4-2 14:53:6:895:334 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:53:6:951:699 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:53:6:991:852 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:7:30:641 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/iat_dda_write_skew.txt b/index/result/sqlserver_15.0/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..244c97c7 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:7:477:596 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:7:525:715 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:7:577:601 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:53:7:619:325 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:53:7:661:497 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:53:7:726:12 +Q7-T1 execute opt: 'COMMIT'; + Q8-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:7:780:827 + Q8 finished at: 2022-4-2 14:53:7:824:857 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:53:7:864:957 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:53:7:903:512 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/iat_dda_write_skew_committed.txt b/index/result/sqlserver_15.0/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..ddab9728 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:10:191:405 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:10:239:573 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:10:291:530 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:53:10:333:72 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:53:10:375:205 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:53:10:429:117 +Q7 finished at: 2022-4-2 14:53:10:441:902 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:53:10:496:865 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:53:10:536:990 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:10:575:667 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/index/result/sqlserver_15.0/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..a2c8838f --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:8:450:537 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 14:53:8:509:882 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 14:53:8:550:477 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q3 finished at: 2022-4-2 14:53:8:557:86 +Q8-T1 execute opt: 'COMMIT'; + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 14:53:8:701:414 +Q8 finished at: 2022-4-2 14:53:8:702:564 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 14:53:8:742:854 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:53:8:792:712 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 14:53:8:832:591 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 14:53:8:871:904 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:53:8:910:564 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/index/result/sqlserver_15.0/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..cc40176f --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:9:363:887 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 14:53:9:421:519 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:9:463:857 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 14:53:9:505:517 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 14:53:9:548:563 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q6 finished at: 2022-4-2 14:53:9:597:567 +Q7 finished at: 2022-4-2 14:53:9:611:58 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:53:9:666:738 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 14:53:9:706:791 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:9:745:466 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/iat_mda_step_iat.txt b/index/result/sqlserver_15.0/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..c4019c16 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:11:69:238 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:53:11:118:255 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:11:169:150 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:53:11:210:919 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:53:11:269:147 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:53:11:308:833 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 14:53:11:416:614 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:53:11:509:969 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 14:53:11:608:515 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:53:11:728:435 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:53:11:822:513 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:53:11:913:906 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:53:11:958:380 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:53:12:0:902 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/index/result/sqlserver_15.0/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..1a676b67 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:17:333:489 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:17:381:929 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:17:433:494 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:53:17:475:777 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:53:17:528:248 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:53:17:533:419 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:53:17:572:983 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:53:17:612:134 + Q9-T3 execute opt: 'COMMIT'; +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:53:17:656:519 + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 14:53:17:680:557 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 14:53:17:727:296 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 14:53:17:771:729 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:53:17:814:391 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/index/result/sqlserver_15.0/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..20607600 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:16:245:240 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:16:294:30 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:16:345:202 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:53:16:387:507 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:53:16:445:258 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 14:53:16:485:495 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:53:16:536:667 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:53:16:545:291 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:53:16:588:332 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:16:636:292 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 14:53:16:686:983 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:53:16:727:894 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 14:53:16:792:856 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 14:53:16:839:733 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 14:53:16:880:995 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 14:53:16:881:997 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/index/result/sqlserver_15.0/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..b90a7749 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:12:502:371 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 14:53:12:550:914 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:12:602:515 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:53:12:644:298 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:53:12:702:433 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:53:12:742:177 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 14:53:12:849:937 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:53:12:942:849 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 14:53:13:41:189 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:53:13:159:68 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:53:13:254:711 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:53:13:346:664 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 14:53:13:390:765 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:53:13:433:535 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/index/result/sqlserver_15.0/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..2fce071c --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:13:790:344 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:53:13:838:685 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:13:890:314 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 14:53:13:932:156 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:53:13:990:353 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 14:53:14:30:37 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 14:53:14:137:832 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 14:53:14:231:11 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 14:53:14:329:187 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:53:14:448:232 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:53:14:538:689 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:53:14:634:296 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:53:14:679:189 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:53:14:721:709 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/index/result/sqlserver_15.0/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..101cccc1 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:18:268:608 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:53:18:317:269 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + Q4-T2 execute opt: 'BEGIN;' + *(1) expected_result: + (1,0) + *(2) expected_result: + Q4 finished at: 2022-4-2 14:53:18:368:814 + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 14:53:18:369:191 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 14:53:18:410:731 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 14:53:18:453:541 + Q7-T2 execute opt: 'COMMIT'; + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:53:18:468:821 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q7 finished at: 2022-4-2 14:53:18:505:955 + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 14:53:18:508:477 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:53:18:548:231 + Q11-T3 execute opt: 'COMMIT'; +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q11 finished at: 2022-4-2 14:53:18:586:959 +Q12 finished at: 2022-4-2 14:53:18:617:399 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 14:53:18:674:353 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 14:53:18:715:148 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 14:53:18:754:125 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/iat_mda_step_iat_uname_anomaly.txt b/index/result/sqlserver_15.0/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..3928f330 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:15:224:363 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 14:53:15:272:711 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:15:324:375 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 14:53:15:366:273 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:53:15:408:547 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 14:53:15:424:446 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:53:15:450:235 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 14:53:15:464:255 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:53:15:491:445 + Q8-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:53:15:503:712 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 14:53:15:546:455 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q8 finished at: 2022-4-2 14:53:15:548:145 + Q13 finished at: 2022-4-2 14:53:15:585:911 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:53:15:640:399 + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 14:53:15:644:14 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 14:53:15:690:839 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 14:53:15:735:472 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-2 14:53:15:778:85 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/iat_sda_lost_update_committed.txt b/index/result/sqlserver_15.0/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..aa447eb5 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:4:981:929 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:53:5:30:163 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:5:82:15 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:53:5:124:682 + Q5-T2 execute opt: 'COMMIT'; +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:53:5:182:657 +Q6 finished at: 2022-4-2 14:53:5:228:441 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:5:294:262 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:53:5:334:453 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:5:373:230 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/iat_sda_non_repeatable_read_committed.txt b/index/result/sqlserver_15.0/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..1cd8c29f --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:4:207:148 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:4:255:372 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:4:307:75 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:53:4:349:311 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:53:4:399:362 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:53:4:453:866 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:4:500:738 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:53:4:540:516 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:4:579:146 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:4:580:104 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/rat_dda_double_write_skew1.txt b/index/result/sqlserver_15.0/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..ee8bd493 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:9:41:682 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:9:89:855 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:9:141:747 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:9:182:997 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:52:10:348:958 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:52:10:401:502 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:52:10:950:200 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/read-committed/rat_dda_double_write_skew1_committed.txt b/index/result/sqlserver_15.0/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..57b4d99d --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:11:441:676 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:11:489:877 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:11:541:728 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:11:583:54 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:52:12:224:613 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:52:12:275:261 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:52:12:925:806 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/read-committed/rat_dda_double_write_skew2.txt b/index/result/sqlserver_15.0/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..ee946e14 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:13:428:573 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:13:476:750 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:13:531:19 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:13:572:513 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:52:14:100:12 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:52:14:153:32 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:52:14:701:597 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/read-committed/rat_dda_read_skew.txt b/index/result/sqlserver_15.0/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..17239fda --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:15:197:902 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:52:15:245:946 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:15:297:961 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:15:340:276 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:52:15:381:861 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:52:15:549:656 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 14:52:15:551:403 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:52:15:644:31 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:15:684:534 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:15:685:386 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/rat_dda_read_skew2.txt b/index/result/sqlserver_15.0/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..2eb52222 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:17:613:123 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:17:661:751 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:17:712:710 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:52:17:754:798 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:52:17:859:290 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:52:17:913:307 + Q8-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:52:17:914:357 + Q8 finished at: 2022-4-2 14:52:17:953:889 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:17:994:123 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:17:994:856 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/rat_dda_read_skew2_committed.txt b/index/result/sqlserver_15.0/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..3dcf78cb --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:18:444:480 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:18:492:584 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:18:544:410 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:52:18:586:458 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:52:18:691:38 +Q8-T1 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:52:18:745:670 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:52:18:746:689 + Q6 finished at: 2022-4-2 14:52:18:786:688 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:18:826:768 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:18:827:608 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/index/result/sqlserver_15.0/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..51234636 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:16:136:752 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:52:16:192:414 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:16:236:717 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:16:279:134 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:52:16:320:442 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 14:52:16:367:369 + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:52:16:384:904 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:52:16:431:479 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 14:52:16:472:61 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:16:472:888 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/index/result/sqlserver_15.0/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..02396295 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:16:822:748 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:52:16:870:975 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:16:922:658 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 14:52:16:964:781 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 14:52:17:6:70 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 14:52:17:53:936 + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:52:17:69:185 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:52:17:115:707 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 14:52:17:155:804 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:17:156:645 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/rat_dda_write_read_skew.txt b/index/result/sqlserver_15.0/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..46d61d77 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:59:535:437 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:59:583:772 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:59:635:293 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:59:676:411 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:52:2:847:829 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:52:2:905:806 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:52:3:449:147 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/read-committed/rat_dda_write_read_skew_committed.txt b/index/result/sqlserver_15.0/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..213a05f0 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:3:942:578 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:3:990:737 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:4:42:758 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:4:84:131 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:52:7:848:382 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:52:7:901:220 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:52:8:549:701 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/read-committed/rat_mda_step_rat.txt b/index/result/sqlserver_15.0/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..e17cbf5c --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:19:325:461 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:19:373:728 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:19:425:403 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:19:466:743 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:52:19:563:422 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:52:19:602:772 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:52:19:726:763 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 14:52:19:773:375 + Q11 finished at: 2022-4-2 14:52:19:774:308 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:52:19:884:59 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:52:20:627:788 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/read-committed/rat_mda_step_rat_long_fork.txt b/index/result/sqlserver_15.0/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..3fdc6d15 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,207 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 14:52:21:182:316 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 14:52:21:227:508 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 14:52:21:240:328 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 14:52:21:288:845 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:52:21:340:661 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 14:52:21:381:109 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:52:21:440:559 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:52:21:481:842 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q11-T1 execute opt: 'COMMIT'; + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + *(7) expected_result: + (0,1) + *(8) expected_result: + (0,1) + *(9) expected_result: + (0,1) + (10) expected_result: + (0,0) + (11) expected_result: + (0,0) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + (14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:52:21:691:197 +Q11 finished at: 2022-4-2 14:52:21:692:927 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:52:21:793:587 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:52:21:795:805 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:52:21:878:529 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:52:21:921:209 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 14:52:21:966:227 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 14:52:22:8:690 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/index/result/sqlserver_15.0/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..51b5f574 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:22:512:317 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:22:560:332 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:22:612:258 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:22:653:535 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:52:22:712:464 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:52:22:751:647 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:52:24:727:428 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 14:52:24:783:445 + Q12-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:52:24:784:340 + Q12 finished at: 2022-4-2 14:52:24:837:127 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:52:25:628:363 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/index/result/sqlserver_15.0/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..0311c220 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,71 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:26:30:58 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 14:52:26:78:401 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:26:129:930 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 14:52:26:171:137 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:52:26:229:878 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 14:52:26:269:117 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 14:52:27:229:429 +Q10-T1 execute opt: 'COMMIT'; + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:52:27:284:195 + Q11-T2 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:52:27:285:45 + Q11 finished at: 2022-4-2 14:52:27:333:579 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 14:52:28:25:926 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/read-committed/rat_sda_dirty_read.txt b/index/result/sqlserver_15.0/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..d71052c1 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:53:868:853 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:53:917:411 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:53:962:881 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:51:54:67:973 +Q5 finished at: 2022-4-2 14:51:54:69:122 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:51:54:163:639 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:51:54:203:444 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:51:54:204:121 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/read-committed/rat_sda_intermediate_read.txt b/index/result/sqlserver_15.0/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..0c0df1ce --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:55:513:692 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:55:561:723 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:55:613:707 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 14:51:55:760:464 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:51:55:972:7 + Q6-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:55:973:65 + Q6 finished at: 2022-4-2 14:51:56:12:725 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:51:56:52:777 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:56:53:479 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/read-committed/rat_sda_intermediate_read_committed.txt b/index/result/sqlserver_15.0/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..bf8be142 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:56:458:11 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:56:506:230 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:56:557:977 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 14:51:56:704:632 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:51:56:761:498 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:56:762:499 + Q5 finished at: 2022-4-2 14:51:56:802:95 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:51:56:841:864 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:56:842:574 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/read-committed/rat_sda_lost_self_update.txt b/index/result/sqlserver_15.0/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..206f680e --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:58:691:302 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:58:739:542 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:58:791:324 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:51:58:938:818 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:51:58:997:6 + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:51:58:998:362 + Q7 finished at: 2022-4-2 14:51:59:45:912 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:51:59:85:815 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:59:86:549 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/read-committed/rat_sda_non_repeatable_read.txt b/index/result/sqlserver_15.0/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..cac68cf9 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,58 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:54:622:767 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:54:671:46 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:54:722:860 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:51:54:765:126 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:51:54:978:922 + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:51:54:980:727 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:55:69:304 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:51:55:109:394 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:55:110:63 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/index/result/sqlserver_15.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..328aa815 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:57:255:218 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:51:57:309:738 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:57:355:97 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:51:57:397:220 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:57:443:454 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:51:57:501:602 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:57:548:159 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 14:51:57:588:98 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:57:588:892 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/index/result/sqlserver_15.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..84c04273 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:57:945:257 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:51:57:993:408 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:58:45:259 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 14:51:58:87:464 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:58:135:149 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:51:58:191:842 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:58:238:380 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 14:51:58:279:492 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:58:280:309 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/wat_dda_double_write_skew2_committed.txt b/index/result/sqlserver_15.0/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..66086f21 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:34:597:707 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:34:645:857 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:34:697:787 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:34:738:990 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:52:37:853:798 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:52:37:902:721 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:52:38:555:355 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/read-committed/wat_dda_full_write_skew_c1.txt b/index/result/sqlserver_15.0/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..24650656 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:39:51:265 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:39:99:243 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:39:151:347 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:39:192:655 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:52:42:855:251 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:52:42:913:954 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:52:43:455:877 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/read-committed/wat_dda_full_write_skew_c2.txt b/index/result/sqlserver_15.0/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..4b0c00fe --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:43:959:964 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:44:8:144 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:44:60:91 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:44:101:206 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:52:45:354:919 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:52:45:416:204 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:52:45:956:492 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/read-committed/wat_dda_full_write_skew_committed.txt b/index/result/sqlserver_15.0/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..304dacac --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:46:456:443 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:46:504:847 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:46:558:993 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:46:600:912 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:52:47:230:538 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:52:47:285:247 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:52:47:932:98 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew1_c1.txt b/index/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..fc5585c4 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:48:435:875 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:52:48:484:96 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:48:535:901 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:48:578:259 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:52:48:619:529 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:52:48:789:852 +Q6 finished at: 2022-4-2 14:52:48:791:303 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:52:48:849:654 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:48:890:88 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:48:928:840 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew1_c2.txt b/index/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..7aff5b5c --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:49:387:969 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:52:49:436:48 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:49:487:935 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:49:530:327 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:52:49:571:707 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:52:49:739:870 +Q6 finished at: 2022-4-2 14:52:49:741:257 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:52:49:848:156 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:49:888:428 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:49:926:995 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew2_c1.txt b/index/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..d69818c9 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:50:384:896 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:50:432:981 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:50:484:966 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:52:50:527:84 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:52:50:631:761 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:52:50:682:458 +Q7 finished at: 2022-4-2 14:52:50:683:889 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:52:50:737:487 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:50:777:637 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:50:816:290 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew2_c2.txt b/index/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..cfb18a3f --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:51:267:421 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:51:315:560 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:51:367:372 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:52:51:409:552 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:52:51:514:185 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:52:51:718:724 + Q7-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:52:51:720:78 + Q7 finished at: 2022-4-2 14:52:51:771:539 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:51:811:711 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:51:850:241 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew2_committed.txt b/index/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..938c8c0a --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:52:304:20 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:52:352:307 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:52:404:19 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:52:52:446:45 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:52:52:550:637 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:52:52:606:6 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:52:52:607:328 + Q6 finished at: 2022-4-2 14:52:52:654:851 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:52:695:91 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:52:733:720 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/wat_mda_step_wat_c1.txt b/index/result/sqlserver_15.0/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..36976f0c --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:53:232:433 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:53:280:617 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:53:332:446 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:53:373:648 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:52:53:432:516 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:52:53:471:909 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 14:52:57:857:158 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:52:57:908:60 + Q12-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:52:57:909:576 + Q12 finished at: 2022-4-2 14:52:57:955:988 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:52:58:758:742 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/read-committed/wat_mda_step_wat_c2.txt b/index/result/sqlserver_15.0/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..1e8f72f8 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:59:300:735 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:59:348:936 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:59:400:908 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:59:442:160 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:52:59:500:713 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:52:59:739:547 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 14:53:2:857:880 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:53:2:908:371 + Q12-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:2:909:772 + Q12 finished at: 2022-4-2 14:53:2:956:464 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:53:3:759:415 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/read-committed/wat_sda_dirty_write_1abort.txt b/index/result/sqlserver_15.0/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..88d476fd --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:28:428:140 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:28:476:350 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:28:530:421 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 14:52:28:672:690 +Q5 finished at: 2022-4-2 14:52:28:674:58 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:52:28:779:109 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:52:28:856:702 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:52:28:896:883 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:52:28:940:734 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/read-committed/wat_sda_dirty_write_2commit.txt b/index/result/sqlserver_15.0/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..14227b70 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:29:343:68 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:29:391:305 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:29:443:275 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:52:29:594:372 +Q5 finished at: 2022-4-2 14:52:29:595:774 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:52:29:693:399 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:52:29:733:637 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:52:29:773:538 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:52:29:817:125 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/read-committed/wat_sda_full_write.txt b/index/result/sqlserver_15.0/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..979f421f --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:30:216:552 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:30:264:891 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:30:316:623 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 14:52:30:466:334 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:52:30:516:891 + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:52:30:518:313 + Q7 finished at: 2022-4-2 14:52:30:564:617 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:52:30:604:816 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:52:30:643:389 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/read-committed/wat_sda_full_write_committed.txt b/index/result/sqlserver_15.0/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..9651d365 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:31:51:517 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:31:100:48 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:31:151:410 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 14:52:31:297:943 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:52:31:353:545 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:52:31:354:893 + Q5 finished at: 2022-4-2 14:52:31:407:53 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:52:31:447:100 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:52:31:485:790 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/read-committed/wat_sda_lost_self_update_committed.txt b/index/result/sqlserver_15.0/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..1d4fc8e1 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:33:720:423 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:33:768:554 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:33:820:614 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:52:33:967:879 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:52:34:20:585 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:52:34:21:896 + Q5 finished at: 2022-4-2 14:52:34:71:259 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:52:34:111:131 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:52:34:149:758 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/read-committed/wat_sda_lost_update_c1.txt b/index/result/sqlserver_15.0/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..52840ddd --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:31:890:599 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:52:31:942:697 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:31:997:764 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:52:32:40:293 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:52:32:243:70 +Q5 finished at: 2022-4-2 14:52:32:244:448 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:52:32:304:729 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:52:32:344:974 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:52:32:383:641 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-committed/wat_sda_lost_update_c2.txt b/index/result/sqlserver_15.0/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..9e3e5bb5 --- /dev/null +++ b/index/result/sqlserver_15.0/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:32:783:120 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:52:32:831:7 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:32:883:211 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:52:32:925:447 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:52:33:137:0 +Q5 finished at: 2022-4-2 14:52:33:140:443 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:52:33:243:609 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:52:33:283:829 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:52:33:322:449 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/iat_dda_read_skew_committed.txt b/index/result/sqlserver_15.0/read-uncommitted/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..db4e409d --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:39:337:142 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:39:377:994 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:39:439:625 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:39:477:187 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:51:39:513:501 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:51:39:560:405 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 14:51:39:576:365 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:51:39:616:37 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:39:660:647 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:39:703:602 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/iat_dda_read_write_skew1_committed.txt b/index/result/sqlserver_15.0/read-uncommitted/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..805399f9 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:40:116:792 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:40:157:773 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:40:216:725 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:40:254:362 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:51:40:290:627 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:51:40:334:560 +Q7 finished at: 2022-4-2 14:51:40:357:680 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:51:40:407:528 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:40:452:120 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:40:495:282 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew.txt b/index/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew.txt new file mode 100644 index 00000000..e4f11e86 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:40:908:589 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:40:949:725 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:41:11:564 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:51:41:48:24 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:51:41:85:718 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:51:41:147:577 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:41:193:150 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:51:41:251:468 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:41:296:193 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:51:41:339:640 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew_committed.txt b/index/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..04545ec3 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:43:406:162 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:43:447:87 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:43:507:144 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:51:43:543:785 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:51:43:581:0 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:51:43:623:998 +Q7 finished at: 2022-4-2 14:51:43:645:324 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:51:43:694:621 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:43:738:841 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:43:781:889 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt b/index/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..3d4c68d7 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:41:831:266 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 14:51:41:880:963 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 14:51:41:920:909 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 14:51:41:931:208 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 14:51:41:967:997 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 14:51:42:4:369 + Q7-T2 execute opt: 'COMMIT'; +Q8-T1 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:51:42:48:706 +Q8 finished at: 2022-4-2 14:51:42:76:537 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 14:51:42:120:493 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 14:51:42:164:307 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:51:42:207:458 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/index/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..80292264 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:42:617:970 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 14:51:42:665:614 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:42:718:134 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 14:51:42:754:848 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 14:51:42:792:769 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q6 finished at: 2022-4-2 14:51:42:836:675 +Q7 finished at: 2022-4-2 14:51:42:858:102 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:51:42:903:864 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 14:51:42:948:232 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:42:991:190 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat.txt b/index/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat.txt new file mode 100644 index 00000000..00bc936b --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:44:231:571 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:51:44:272:807 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:44:331:885 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:51:44:368:670 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:51:44:431:862 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:51:44:475:713 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 14:51:44:571:909 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:51:44:667:248 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 14:51:44:774:403 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:51:44:877:560 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:51:44:976:2 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:51:45:79:209 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:51:45:121:297 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:51:45:161:513 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt b/index/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..e2d18b41 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:50:227:985 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:50:269:7 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:50:328:40 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:51:50:365:293 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:50:409:543 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:51:50:427:946 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:51:50:471:693 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:51:50:515:55 + Q9-T3 execute opt: 'COMMIT'; +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:51:50:563:853 + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 14:51:50:567:666 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 14:51:50:607:205 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 14:51:50:649:436 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:51:50:689:761 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt b/index/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..c7def312 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:49:182:85 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:49:223:683 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:49:282:478 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:51:49:319:982 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:51:49:382:283 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 14:51:49:426:876 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:51:49:481:692 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:51:49:482:247 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:51:49:523:30 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:49:568:761 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 14:51:49:618:846 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:51:49:654:666 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 14:51:49:722:415 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 14:51:49:762:30 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 14:51:49:804:198 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 14:51:49:805:138 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt b/index/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..ff7d9f92 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:45:615:411 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 14:51:45:656:453 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:45:714:338 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:51:45:750:903 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:51:45:815:154 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:51:45:859:115 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 14:51:45:955:200 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:51:46:50:562 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 14:51:46:162:108 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:51:46:272:768 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:51:46:358:650 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:51:46:463:960 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 14:51:46:505:819 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:51:46:546:140 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt b/index/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..48e5037e --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:46:876:128 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:51:46:917:222 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:46:976:83 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 14:51:47:12:859 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:51:47:76:48 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 14:51:47:119:995 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 14:51:47:216:279 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 14:51:47:311:571 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 14:51:47:418:928 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:51:47:520:257 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:51:47:617:818 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:51:47:724:365 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:51:47:766:558 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:51:47:806:919 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt b/index/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..eabbf415 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:51:101:565 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:51:51:142:637 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 14:51:51:182:902 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 14:51:51:201:514 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 14:51:51:237:976 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 14:51:51:275:326 + Q7-T2 execute opt: 'COMMIT'; + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:51:51:301:584 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q7 finished at: 2022-4-2 14:51:51:322:536 + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 14:51:51:345:484 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:51:51:389:419 + Q11-T3 execute opt: 'COMMIT'; +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q11 finished at: 2022-4-2 14:51:51:432:355 +Q12 finished at: 2022-4-2 14:51:51:440:720 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 14:51:51:488:123 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 14:51:51:533:919 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 14:51:51:577:165 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt b/index/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..f2f70675 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:48:259:990 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 14:51:48:301:437 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:48:359:995 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 14:51:48:396:902 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:51:48:434:349 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 14:51:48:460:2 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:51:48:471:227 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 14:51:48:504:61 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:51:48:507:610 + Q8-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:51:48:547:445 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8 finished at: 2022-4-2 14:51:48:550:410 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 14:51:48:591:417 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 14:51:48:599:490 +Q16-T1 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:51:48:635:33 + Q14-T3 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 14:51:48:638:935 + Q14 finished at: 2022-4-2 14:51:48:684:960 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 14:51:48:727:372 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-2 14:51:48:767:755 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/iat_sda_lost_update_committed.txt b/index/result/sqlserver_15.0/read-uncommitted/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..875d393b --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:38:553:529 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:51:38:594:352 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:38:653:479 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:51:38:690:795 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:38:737:402 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 14:51:38:792:546 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:38:839:780 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:51:38:884:244 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:38:927:217 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/iat_sda_non_repeatable_read_committed.txt b/index/result/sqlserver_15.0/read-uncommitted/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..492334e3 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:37:772:635 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:37:813:575 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:37:872:919 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:51:37:910:162 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:37:953:138 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:51:38:12:77 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:38:51:492 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:51:38:137:417 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:38:180:468 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:38:181:543 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/rat_dda_double_write_skew1.txt b/index/result/sqlserver_15.0/read-uncommitted/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..f6b2e831 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/rat_dda_double_write_skew1.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:51:6:438 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:51:47:519 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:51:106:405 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:51:142:750 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:50:51:179:962 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:50:51:350:351 + Q7 finished at: 2022-4-2 14:50:51:350:379 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:51:454:124 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 14:50:51:498:665 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:51:499:495 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/rat_dda_double_write_skew1_committed.txt b/index/result/sqlserver_15.0/read-uncommitted/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..ad7ad9fd --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:51:910:434 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:51:951:436 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:52:10:368 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:52:46:730 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:50:52:83:834 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q6 finished at: 2022-4-2 14:50:52:125:34 +Q7 finished at: 2022-4-2 14:50:52:149:722 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:52:195:827 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 14:50:52:240:265 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:52:241:10 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/rat_dda_double_write_skew2.txt b/index/result/sqlserver_15.0/read-uncommitted/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..e352d511 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/rat_dda_double_write_skew2.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:52:652:26 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:52:692:927 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:52:752:34 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:52:788:228 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 14:50:52:893:819 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:50:52:940:442 + Q5 finished at: 2022-4-2 14:50:52:940:759 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:50:52:995:35 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:50:53:39:456 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:53:40:254 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew.txt b/index/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew.txt new file mode 100644 index 00000000..931f9f50 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:53:453:149 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:50:53:494:194 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:53:552:890 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:53:589:989 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:50:53:626:166 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 14:50:53:692:474 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:50:53:795:543 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:53:891:491 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:50:53:935:856 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:53:936:608 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew2.txt b/index/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew2.txt new file mode 100644 index 00000000..ed560591 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew2.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:55:743:216 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:55:784:213 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:55:843:76 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:50:55:880:352 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:50:55:916:622 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:50:55:982:506 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:50:56:35:620 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:50:56:78:98 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:50:56:122:358 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:56:123:133 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew2_committed.txt b/index/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..bd59a4dc --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew2_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:56:534:917 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:56:575:758 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:56:634:799 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:50:56:671:771 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:50:56:708:261 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:50:56:743:864 +Q7 finished at: 2022-4-2 14:50:56:774:354 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:56:820:594 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:50:56:864:914 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:56:865:686 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt b/index/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..ba47085e --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:54:355:656 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:50:54:403:371 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:54:455:702 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:54:492:953 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:50:54:529:235 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 14:50:54:570:390 + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:50:54:594:999 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:54:634:284 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 14:50:54:678:610 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:54:679:392 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt b/index/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..b06e68ac --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:55:10:10 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:50:55:51:55 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:55:109:888 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 14:50:55:146:965 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 14:50:55:183:308 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 14:50:55:227:873 + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:50:55:249:236 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:55:288:737 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 14:50:55:333:344 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:55:334:83 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/rat_dda_write_read_skew.txt b/index/result/sqlserver_15.0/read-uncommitted/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..ff8ceabf --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:49:364:157 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:49:405:317 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:49:464:354 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:49:500:693 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:50:49:537:977 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 14:50:49:606:792 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:50:49:705:24 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:49:807:896 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:50:49:852:215 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:49:852:976 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/rat_dda_write_read_skew_committed.txt b/index/result/sqlserver_15.0/read-uncommitted/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..cb0a1fb1 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:50:265:286 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:50:306:404 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:50:365:265 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:50:401:734 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:50:50:438:871 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:50:50:480:645 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 14:50:50:504:703 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:50:549:198 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:50:50:593:715 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:50:594:513 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat.txt b/index/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat.txt new file mode 100644 index 00000000..5d0eddef --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:57:316:429 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:57:357:304 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:57:416:429 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:57:452:782 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + (3) expected_result: + (0,0) + (4) expected_result: + (0,0) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:50:57:490:261 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:50:57:558:400 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:50:57:601:919 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 14:50:57:645:780 + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + *(4) expected_result: + (2,1) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q9 finished at: 2022-4-2 14:50:57:655:902 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:50:57:705:693 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:50:57:755:660 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:50:57:863:989 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:50:57:905:942 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:50:57:906:711 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat_long_fork.txt b/index/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..8a35dd9c --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,207 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 14:50:58:359:599 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 14:50:58:402:464 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 14:50:58:420:98 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 14:50:58:461:247 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:50:58:520:432 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 14:50:58:565:385 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + *(7) expected_result: + (0,1) + *(8) expected_result: + (0,1) + *(9) expected_result: + (0,1) + (10) expected_result: + (0,0) + (11) expected_result: + (0,0) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + (14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:50:58:610:428 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:50:58:620:245 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:50:58:656:672 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:50:58:761:283 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 14:50:58:871:971 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:50:58:961:238 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:50:59:62:548 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:50:59:103:23 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 14:50:59:145:956 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 14:50:59:186:132 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt b/index/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..b94da1b4 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:59:638:199 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:59:678:948 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:59:738:157 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:59:774:309 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:50:59:812:106 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:50:59:838:449 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:50:59:882:189 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 14:50:59:926:70 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + (3) expected_result: + (1,) + *(4) expected_result: + (,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 14:50:59:978:275 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:51:0:27:89 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:51:0:89:50 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:51:0:185:841 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 14:51:0:227:715 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:51:0:267:860 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt b/index/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..31ef7810 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:0:596:348 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 14:51:0:637:381 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:0:696:415 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 14:51:0:732:752 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:51:0:770:276 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:51:0:796:421 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 14:51:0:839:795 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + (4) expected_result: + (,) + *(5) expected_result: + (1,) + (6) expected_result: + (,) + + Q8 finished at: 2022-4-2 14:51:0:883:866 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-2 14:51:0:936:859 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:51:0:985:50 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:51:1:43:805 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:51:1:144:159 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:51:1:186:596 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:51:1:226:946 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/rat_sda_dirty_read.txt b/index/result/sqlserver_15.0/read-uncommitted/rat_sda_dirty_read.txt new file mode 100644 index 00000000..e2453a32 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/rat_sda_dirty_read.txt @@ -0,0 +1,45 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:44:82:385 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:44:123:438 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:44:179:2 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:50:44:216:468 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 14:50:44:282:499 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:50:44:379:105 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:50:44:423:206 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:50:44:423:823 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/rat_sda_intermediate_read.txt b/index/result/sqlserver_15.0/read-uncommitted/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..aecb5f08 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/rat_sda_intermediate_read.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:45:653:620 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:45:694:907 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:45:755:186 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:50:45:792:642 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 14:50:45:892:893 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:50:45:988:452 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:50:46:99:562 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:50:46:143:654 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:50:46:144:469 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/rat_sda_intermediate_read_committed.txt b/index/result/sqlserver_15.0/read-uncommitted/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..52dfd314 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:46:514:973 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:46:555:890 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:46:614:963 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:50:46:651:980 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:50:46:687:496 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 14:50:46:754:194 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:50:46:798:855 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:50:46:843:34 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:50:46:843:897 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/rat_sda_lost_self_update.txt b/index/result/sqlserver_15.0/read-uncommitted/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..05b110f7 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:48:559:840 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:48:600:770 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:48:659:785 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:50:48:800:14 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:50:48:847:412 + Q4 finished at: 2022-4-2 14:50:48:847:703 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:50:48:903:400 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:50:48:947:740 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:50:48:948:462 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/read-uncommitted/rat_sda_non_repeatable_read.txt b/index/result/sqlserver_15.0/read-uncommitted/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..8df41be5 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/rat_sda_non_repeatable_read.txt @@ -0,0 +1,58 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:44:794:956 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:50:44:835:789 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:44:894:932 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:50:44:931:973 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:50:45:34:433 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:50:45:142:648 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:50:45:233:626 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:50:45:277:932 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:50:45:278:604 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/index/result/sqlserver_15.0/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..20533f31 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:47:214:972 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:50:47:262:328 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:47:314:908 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:50:47:352:6 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:50:47:392:78 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:50:47:454:155 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:50:47:493:434 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 14:50:47:537:754 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:50:47:538:664 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/index/result/sqlserver_15.0/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..19cdff1e --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:47:866:791 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:50:47:909:232 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:47:966:946 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 14:50:48:4:470 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:50:48:45:959 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:50:48:106:395 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:50:48:145:649 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 14:50:48:189:967 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:50:48:190:840 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/wat_dda_double_write_skew2_committed.txt b/index/result/sqlserver_15.0/read-uncommitted/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..aadbbdbf --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:7:579:68 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:7:619:951 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:7:679:159 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:7:715:662 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 14:51:7:819:116 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:51:7:866:477 + Q5 finished at: 2022-4-2 14:51:7:866:733 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:51:7:910:957 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:7:955:553 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:7:998:415 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/wat_dda_full_write_skew_c1.txt b/index/result/sqlserver_15.0/read-uncommitted/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..73b0bda8 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:8:407:714 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:8:448:560 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:8:507:801 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:8:544:266 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:51:13:473:62 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:51:13:522:527 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:51:14:75:383 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/read-uncommitted/wat_dda_full_write_skew_c2.txt b/index/result/sqlserver_15.0/read-uncommitted/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..c07cea01 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:14:528:446 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:14:569:357 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:14:628:338 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:14:664:506 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:51:18:466:338 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:51:18:509:762 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:51:19:66:415 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/read-uncommitted/wat_dda_full_write_skew_committed.txt b/index/result/sqlserver_15.0/read-uncommitted/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..f8d147d8 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:19:517:988 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:19:558:855 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:19:618:27 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:19:654:567 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:51:20:966:951 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:51:21:9:911 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:51:21:667:43 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew1_c1.txt b/index/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..5af3b00c --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:22:115:34 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:22:156:44 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:22:215:100 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:22:252:538 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:51:22:289:236 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:51:22:461:250 + Q8 finished at: 2022-4-2 14:51:22:461:319 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:22:511:19 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:22:555:461 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:22:598:408 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew1_c2.txt b/index/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..7083ee46 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:23:8:12 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:23:48:842 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:23:108:42 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:23:145:599 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:51:23:181:939 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:51:23:356:365 + Q7 finished at: 2022-4-2 14:51:23:356:407 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:51:23:464:727 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:23:509:249 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:23:552:575 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew2_c1.txt b/index/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..7b79479d --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:23:964:628 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:24:5:772 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:24:64:641 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:51:24:101:976 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:51:24:204:10 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:24:257:141 + Q5 finished at: 2022-4-2 14:51:24:257:345 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:51:24:324:535 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:24:368:918 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:24:411:875 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew2_c2.txt b/index/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..90cf32e8 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:24:824:605 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:24:865:604 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:24:924:627 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:51:24:961:924 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:51:25:64:118 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:25:275:230 +Q8 finished at: 2022-4-2 14:51:25:275:96 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:51:25:320:578 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:25:365:85 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:25:408:36 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew2_committed.txt b/index/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..444030fa --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:25:816:892 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:25:857:756 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:25:916:949 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:51:25:954:363 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:51:26:56:383 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:51:26:106:641 + Q5 finished at: 2022-4-2 14:51:26:106:851 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:51:26:150:244 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:26:194:779 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:26:237:618 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/wat_mda_step_wat_c1.txt b/index/result/sqlserver_15.0/read-uncommitted/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..819f062d --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:26:687:291 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:26:728:300 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:26:787:244 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:26:823:465 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:51:26:887:477 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:51:26:930:954 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-2 14:51:31:593:312 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:51:31:659:907 + Q5 finished at: 2022-4-2 14:51:31:660:130 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:51:31:711:380 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 14:51:32:397:272 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/read-uncommitted/wat_mda_step_wat_c2.txt b/index/result/sqlserver_15.0/read-uncommitted/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..628a1220 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:32:857:329 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:32:898:657 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:32:957:269 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:32:993:661 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:51:33:57:306 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:51:33:342:202 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-2 14:51:36:594:149 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 14:51:36:642:813 + Q6 finished at: 2022-4-2 14:51:36:643:260 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:36:690:861 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 14:51:37:398:143 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/read-uncommitted/wat_sda_dirty_write_1abort.txt b/index/result/sqlserver_15.0/read-uncommitted/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..4be606f4 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:1:633:531 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:1:674:427 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:1:733:432 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 14:51:1:872:115 + Q4 finished at: 2022-4-2 14:51:1:872:351 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:51:1:973:540 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:51:2:18:6 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:51:2:62:447 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:2:115:994 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/read-uncommitted/wat_sda_dirty_write_2commit.txt b/index/result/sqlserver_15.0/read-uncommitted/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..c3120f69 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:2:491:904 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:2:532:848 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:2:591:853 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 14:51:2:747:467 + Q4 finished at: 2022-4-2 14:51:2:747:711 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:51:2:842:923 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:51:2:886:980 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:51:2:931:130 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:2:979:280 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/read-uncommitted/wat_sda_full_write.txt b/index/result/sqlserver_15.0/read-uncommitted/wat_sda_full_write.txt new file mode 100644 index 00000000..d4aa7806 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:3:352:394 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:3:393:201 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:3:452:387 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 14:51:3:591:924 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:51:3:640:683 + Q4 finished at: 2022-4-2 14:51:3:641:8 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:51:3:706:428 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:51:3:750:867 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:3:793:716 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/read-uncommitted/wat_sda_full_write_committed.txt b/index/result/sqlserver_15.0/read-uncommitted/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..b82f6621 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:4:166:527 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:4:207:418 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:4:266:611 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 14:51:4:405:801 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:4:458:762 + Q4 finished at: 2022-4-2 14:51:4:458:993 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:4:502:815 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:51:4:546:961 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:4:589:804 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/read-uncommitted/wat_sda_lost_self_update_committed.txt b/index/result/sqlserver_15.0/read-uncommitted/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..e1840fde --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:6:736:774 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:6:777:846 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:6:836:646 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:51:6:976:901 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:7:26:13 + Q4 finished at: 2022-4-2 14:51:7:26:233 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:7:70:972 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:51:7:115:189 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:7:158:251 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/read-uncommitted/wat_sda_lost_update_c1.txt b/index/result/sqlserver_15.0/read-uncommitted/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..d15a8b6e --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:4:959:35 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:51:4:999:808 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:5:59:228 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:51:5:96:348 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 14:51:5:312:257 + Q7 finished at: 2022-4-2 14:51:5:312:316 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:51:5:362:416 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:51:5:406:631 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:5:449:714 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/read-uncommitted/wat_sda_lost_update_c2.txt b/index/result/sqlserver_15.0/read-uncommitted/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..dd5f34d4 --- /dev/null +++ b/index/result/sqlserver_15.0/read-uncommitted/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:5:829:643 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:51:5:870:541 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:5:929:481 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:51:5:966:799 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 14:51:6:178:124 + Q6 finished at: 2022-4-2 14:51:6:178:184 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:6:279:37 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:51:6:323:372 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:6:366:254 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/repeatable-read/iat_dda_read_skew_committed.txt b/index/result/sqlserver_15.0/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..23ed881b --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:31:735:594 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:31:776:670 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:31:835:676 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:31:878:518 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:32:550:233 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:54:32:621:194 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:54:33:248:25 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/iat_dda_read_write_skew1_committed.txt b/index/result/sqlserver_15.0/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..2eca52f1 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:33:705:805 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:33:746:682 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:33:805:818 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:33:848:248 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:35:47:21 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:54:35:103:354 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:54:35:744:697 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew.txt b/index/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..70eb1d93 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,49 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:36:200:445 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:36:241:445 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:36:300:537 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:54:36:342:319 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:36:919:355 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:54:36:975:48 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:54:37:517:210 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew_committed.txt b/index/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..51474bc2 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,49 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:41:199:77 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:41:240:38 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:41:299:1 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:54:41:340:626 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:42:537:76 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:54:42:596:836 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:54:43:234:962 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/index/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..8516e6c6 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:38:50:977 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 14:54:38:102:936 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 14:54:38:143:8 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 14:54:38:150:873 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:54:38:295:886 + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 14:54:38:298:455 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 14:54:38:339:873 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:54:38:389:467 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 14:54:38:426:108 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 14:54:38:462:382 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:54:38:497:913 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/index/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..535b0bb9 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,49 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:38:914:613 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 14:54:38:965:226 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:39:14:557 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 14:54:39:56:453 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q5 finished at: 2022-4-2 14:54:40:40:467 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:54:40:91:653 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:54:40:738:281 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat.txt b/index/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..89058e45 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,89 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:43:728:45 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:54:43:769:366 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:43:828:441 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:54:43:870:502 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:54:43:928:64 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:54:43:964:725 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 finished at: 2022-4-2 14:54:44:409:787 + Q11-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:54:44:476:63 +Q10-T1 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:54:44:478:366 +Q10 finished at: 2022-4-2 14:54:44:524:785 + Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q9 failed at: 2022-4-2 14:54:45:307:676 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/index/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..079301e1 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:56:772:878 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:56:814:152 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:56:872:673 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:54:56:972:907 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 14:54:57:112:802 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 14:54:57:152:512 + Q4 finished at: 2022-4-2 14:54:57:154:850 + Q5-T2 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:54:57:210:852 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:57:212:438 + Q8 finished at: 2022-4-2 14:54:57:246:955 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:54:57:292:350 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 14:54:57:334:213 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:54:57:374:104 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/index/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..38082465 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,140 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:53:231:55 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:53:272:885 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:53:330:713 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:54:53:373:445 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:54:53:430:707 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:54:53:530:937 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:54:55:18:718 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:54:55:67:295 + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 14:54:55:70:706 + Q12-T2 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:54:55:110:936 + Q12 finished at: 2022-4-2 14:54:55:111:600 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:54:55:160:473 +Q13 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q13 failed at: 2022-4-2 14:54:56:318:815 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/index/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..262142d7 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,89 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:45:761:120 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 14:54:45:802:541 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:45:861:312 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:54:45:903:414 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:54:45:961:378 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:54:46:32:248 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q8 finished at: 2022-4-2 14:54:47:530:853 + Q11-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:54:47:581:477 +Q10-T1 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:54:47:583:888 +Q10 finished at: 2022-4-2 14:54:47:629:629 + Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q9 failed at: 2022-4-2 14:54:48:428:795 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/index/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..1ee15601 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:48:761:386 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:54:48:802:624 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:48:861:366 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 14:54:48:903:660 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:54:48:961:777 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 14:54:49:32:631 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 14:54:49:101:489 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 14:54:49:202:250 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 14:54:49:296:949 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:54:49:415:243 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:54:49:513:628 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:54:49:607:440 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:54:49:649:427 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:54:49:689:436 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/index/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..909d0019 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,120 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:57:789:622 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:54:57:830:946 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 14:54:57:871:542 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 14:54:57:889:615 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 14:54:57:931:503 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:54:57:989:693 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 14:54:58:26:295 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q6 finished at: 2022-4-2 14:54:58:761:494 + Q7-T2 execute opt: 'COMMIT'; + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:54:58:809:957 + Q11-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:54:58:811:427 + Q11 finished at: 2022-4-2 14:54:58:845:653 +Q12 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q12 failed at: 2022-4-2 14:54:59:959:303 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/index/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..386186b8 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,127 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:50:140:861 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 14:54:50:182:215 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:50:240:788 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 14:54:50:282:738 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:54:50:325:14 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 14:54:50:340:929 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:54:50:366:990 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 14:54:50:377:361 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-2 14:54:50:413:312 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:54:51:275:733 + Q8-T2 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 14:54:51:327:762 + Q8 finished at: 2022-4-2 14:54:51:328:932 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 14:54:51:364:93 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:54:51:409:376 +Q15 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q15 failed at: 2022-4-2 14:54:52:773:569 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/iat_sda_lost_update_committed.txt b/index/result/sqlserver_15.0/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..ea7d0326 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:30:897:423 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:54:30:938:379 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:30:997:399 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 14:54:31:136:825 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:54:31:191:335 + Q4 finished at: 2022-4-2 14:54:31:193:633 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:54:31:246:591 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:54:31:283:364 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:54:31:318:801 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/index/result/sqlserver_15.0/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..73008b53 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:30:119:421 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:30:160:479 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:30:219:441 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:54:30:358:649 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:54:30:398:158 + Q4 finished at: 2022-4-2 14:54:30:400:451 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:54:30:451:22 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:54:30:488:39 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:54:30:523:541 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:54:30:524:330 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/repeatable-read/rat_dda_double_write_skew1.txt b/index/result/sqlserver_15.0/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..207959a0 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:35:263:907 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:35:305:43 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:35:363:872 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:35:405:366 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:53:36:611:508 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:53:36:658:47 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:53:37:209:128 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/rat_dda_double_write_skew1_committed.txt b/index/result/sqlserver_15.0/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..d1cba120 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:37:663:703 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:37:704:782 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:37:763:668 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:37:805:161 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:53:38:488:797 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:38:537:558 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:53:39:186:382 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/rat_dda_double_write_skew2.txt b/index/result/sqlserver_15.0/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..f1409b52 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:39:643:330 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:39:684:418 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:39:743:379 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:39:784:800 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:53:40:364:94 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:53:40:419:491 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:53:40:961:983 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew.txt b/index/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..4f32c719 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:41:427:458 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:41:468:386 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:41:527:615 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:41:570:22 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:53:42:239:666 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:53:42:289:259 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:53:42:837:591 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew2.txt b/index/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..c7dd489d --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:44:767:546 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:44:808:689 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:44:867:469 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:53:44:909:972 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:53:45:363:340 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:45:411:390 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:53:45:865:766 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew2_committed.txt b/index/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..1e259a12 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:46:279:20 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:46:319:869 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:46:379:22 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:53:46:461:97 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:53:47:864:2 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:53:47:911:514 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:53:48:366:432 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/index/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..2d709e2d --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:43:302:124 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:53:43:351:97 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:43:392:630 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:53:43:532:207 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:53:43:571:707 + Q4 finished at: 2022-4-2 14:53:43:574:179 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:53:43:615:555 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:43:665:800 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 14:53:43:702:813 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:43:703:628 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/index/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..2367d6fb --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:44:34:931 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:53:44:75:956 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:44:134:708 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 14:53:44:179:406 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 14:53:44:220:963 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 14:53:44:272:549 + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:53:44:273:885 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:53:44:313:243 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 14:53:44:350:161 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:44:350:959 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/repeatable-read/rat_dda_write_read_skew.txt b/index/result/sqlserver_15.0/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..5a425957 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:26:348:594 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:26:389:466 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:26:448:458 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:26:490:13 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:53:29:110:446 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:53:29:164:378 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:53:29:708:37 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/rat_dda_write_read_skew_committed.txt b/index/result/sqlserver_15.0/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..07d75a35 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:30:160:727 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:30:202:31 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:30:260:622 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:30:301:931 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:53:34:110:916 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:34:167:303 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:53:34:808:494 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat.txt b/index/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..2ba49290 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:48:816:911 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:48:857:910 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:48:916:919 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:48:998:119 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:53:49:51:650 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:53:49:88:27 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:53:49:742:396 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 14:53:49:791:263 + Q12-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:53:49:792:629 + Q12 finished at: 2022-4-2 14:53:49:835:854 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:53:50:639:789 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat_long_fork.txt b/index/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..07f12f92 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,169 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 14:53:51:131:598 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 14:53:51:174:108 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 14:53:51:192:476 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:53:51:292:486 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 14:53:51:329:753 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:53:51:392:643 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:53:51:616:380 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:53:51:827:532 + Q9 finished at: 2022-4-2 14:53:51:829:866 + Q12-T2 execute opt: 'COMMIT'; + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + Q12 finished at: 2022-4-2 14:53:51:892:633 + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:53:51:893:304 +Q4 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q4 failed at: 2022-4-2 14:53:52:15:421 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/index/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..0912df3e --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:52:570:623 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:52:611:546 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:52:666:811 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:52:708:507 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:53:52:766:571 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:53:52:802:740 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:53:53:494:463 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 14:53:53:545:773 + Q12-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:53:53:547:211 + Q12 finished at: 2022-4-2 14:53:53:589:159 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:53:54:391:284 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/index/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..46e5e086 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,71 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:54:767:186 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 14:53:54:808:550 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:54:863:677 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 14:53:54:905:392 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:53:54:965:297 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 14:53:55:1:489 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 14:53:55:367:495 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:53:55:412:220 + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:53:55:415:53 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:53:55:469:587 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 14:53:56:167:193 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/rat_sda_dirty_read.txt b/index/result/sqlserver_15.0/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..2451c9d2 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:20:855:564 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:20:896:622 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:20:957:107 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 14:53:21:55:788 + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:53:21:58:413 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:21:156:965 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:53:21:193:856 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:53:21:194:834 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/repeatable-read/rat_sda_intermediate_read.txt b/index/result/sqlserver_15.0/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..557d70fe --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:22:466:39 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:22:507:190 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:22:566:41 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 14:53:22:705:701 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:22:921:165 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:53:22:923:802 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:22:964:666 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:53:23:4:372 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:23:5:48 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/repeatable-read/rat_sda_intermediate_read_committed.txt b/index/result/sqlserver_15.0/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..6f162d01 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:23:395:31 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:23:436:40 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:23:494:967 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 14:53:23:634:530 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:23:688:800 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:53:23:691:505 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:53:23:732:255 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:53:23:768:857 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:23:769:613 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/repeatable-read/rat_sda_lost_self_update.txt b/index/result/sqlserver_15.0/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..da59c8a8 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:25:546:639 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:25:587:709 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:25:646:711 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:53:25:786:975 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:53:25:844:858 + Q4 finished at: 2022-4-2 14:53:25:847:329 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:53:25:900:472 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:53:25:937:133 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:25:937:789 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/repeatable-read/rat_sda_non_repeatable_read.txt b/index/result/sqlserver_15.0/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..3e366d08 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:21:565:363 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:21:606:571 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:21:665:525 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:53:21:806:918 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:22:4:244 + Q4 finished at: 2022-4-2 14:53:22:6:696 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:22:54:46 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:53:22:92:261 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:22:92:984 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/index/result/sqlserver_15.0/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..f4c96ce6 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:24:143:974 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:53:24:202:565 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:24:243:904 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:53:24:383:393 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:24:422:747 + Q4 finished at: 2022-4-2 14:53:24:425:120 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:53:24:477:636 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 14:53:24:514:370 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:24:515:69 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/index/result/sqlserver_15.0/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..cb75541c --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:24:852:163 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:53:24:893:210 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:24:952:132 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 14:53:24:994:512 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:53:25:45:673 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:53:25:91:433 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:25:130:854 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 14:53:25:167:578 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:25:168:283 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/repeatable-read/wat_dda_double_write_skew2_committed.txt b/index/result/sqlserver_15.0/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..0cf25576 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:2:484:879 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:2:525:938 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:2:584:871 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:2:626:297 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:5:995:684 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:54:6:53:593 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:54:6:693:631 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/wat_dda_full_write_skew_c1.txt b/index/result/sqlserver_15.0/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..2aa5deab --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:7:169:727 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:7:210:886 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:7:269:920 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:7:311:515 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:10:996:240 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:54:11:47:452 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:54:11:594:57 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/wat_dda_full_write_skew_c2.txt b/index/result/sqlserver_15.0/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..2b6233ba --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:12:51:164 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:12:92:704 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:12:151:57 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:12:192:569 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:13:496:808 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:54:13:558:537 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:54:14:94:636 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/wat_dda_full_write_skew_committed.txt b/index/result/sqlserver_15.0/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..b12a3009 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:14:554:370 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:14:595:565 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:14:654:309 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:14:695:945 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:15:372:324 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:54:15:426:128 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:54:16:70:133 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew1_c1.txt b/index/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..ec5308e5 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:16:523:501 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:16:564:653 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:16:623:645 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:16:666:342 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:17:247:871 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:54:17:296:261 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:54:17:845:781 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew1_c2.txt b/index/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..1756b4c0 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:18:310:965 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:18:351:897 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:18:410:948 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:18:453:377 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:19:123:467 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:54:19:180:966 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:54:19:721:316 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew2_c1.txt b/index/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..b6b4d81a --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:20:172:365 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:20:213:302 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:20:272:331 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:54:20:314:876 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:54:20:997:239 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:54:21:42:820 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:54:21:499:678 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew2_c2.txt b/index/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..213cc50b --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:21:912:376 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:21:953:443 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:22:12:276 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:54:22:94:565 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:54:22:247:402 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:54:22:358:760 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:54:22:749:882 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew2_committed.txt b/index/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..2b344c39 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:23:162:737 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:23:203:596 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:23:262:769 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:54:23:344:899 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:54:23:809:306 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:54:23:856:404 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:54:24:311:673 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/wat_mda_step_wat_c1.txt b/index/result/sqlserver_15.0/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..7020c418 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:24:767:142 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:24:808:228 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:24:866:997 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:24:948:363 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:54:24:967:60 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:54:25:3:177 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 14:54:25:684:474 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:54:25:731:895 + Q12-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:54:25:733:972 + Q12 finished at: 2022-4-2 14:54:25:782:514 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:54:26:582:317 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/wat_mda_step_wat_c2.txt b/index/result/sqlserver_15.0/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..6bc0f237 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:27:78:919 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:27:120:70 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:27:178:872 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:27:220:456 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:54:27:279:253 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:54:27:514:517 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 14:54:28:805:564 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:54:28:859:419 + Q12-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:54:28:861:425 + Q12 finished at: 2022-4-2 14:54:28:908:412 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:54:29:703:423 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/repeatable-read/wat_sda_dirty_write_1abort.txt b/index/result/sqlserver_15.0/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..d095fc9b --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:56:546:795 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:56:587:928 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:56:646:802 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 14:53:56:785:676 + Q4 finished at: 2022-4-2 14:53:56:788:1 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:56:895:376 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:53:56:966:602 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:53:57:3:488 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:57:50:883 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/repeatable-read/wat_sda_dirty_write_2commit.txt b/index/result/sqlserver_15.0/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..1a74e848 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:57:428:78 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:57:469:59 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:57:528:307 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 14:53:57:675:374 + Q4 finished at: 2022-4-2 14:53:57:677:732 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:57:777:776 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:53:57:814:696 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:53:57:851:616 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:57:896:73 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/repeatable-read/wat_sda_full_write.txt b/index/result/sqlserver_15.0/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..df6841fb --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:58:283:807 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:58:324:822 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:58:383:389 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 14:53:58:523:178 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:53:58:568:622 + Q4 finished at: 2022-4-2 14:53:58:570:958 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:53:58:637:468 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:53:58:674:296 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:58:709:812 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/repeatable-read/wat_sda_full_write_committed.txt b/index/result/sqlserver_15.0/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..c8f2f8b2 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:59:88:843 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:59:130:93 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:59:189:62 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 14:53:59:328:193 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:59:376:181 + Q4 finished at: 2022-4-2 14:53:59:378:477 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:53:59:435:508 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:53:59:472:462 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:59:507:800 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/repeatable-read/wat_sda_lost_self_update_committed.txt b/index/result/sqlserver_15.0/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..1de6b24f --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:1:638:442 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:1:679:569 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:1:738:405 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:54:1:878:632 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:54:1:925:865 + Q4 finished at: 2022-4-2 14:54:1:928:180 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:54:1:977:681 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:54:2:21:926 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:54:2:57:427 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/repeatable-read/wat_sda_lost_update_c1.txt b/index/result/sqlserver_15.0/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..c1c1ba4f --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:59:888:641 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:53:59:929:491 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:59:988:666 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-2 14:54:0:128:97 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:54:0:178:114 + Q4 finished at: 2022-4-2 14:54:0:180:430 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:54:0:242:472 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:54:0:279:445 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:54:0:314:960 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/repeatable-read/wat_sda_lost_update_c2.txt b/index/result/sqlserver_15.0/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..64fe5e49 --- /dev/null +++ b/index/result/sqlserver_15.0/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:0:687:337 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:54:0:728:368 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:0:787:351 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-2 14:54:0:926:825 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:54:1:136:344 + Q4 finished at: 2022-4-2 14:54:1:138:526 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:54:1:191:309 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:54:1:228:149 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:54:1:263:574 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/result_summary/rcsnapshot_total-result.txt b/index/result/sqlserver_15.0/result_summary/rcsnapshot_total-result.txt new file mode 100644 index 00000000..45f42a10 --- /dev/null +++ b/index/result/sqlserver_15.0/result_summary/rcsnapshot_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Anomaly + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Anomaly + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Anomaly + +rat_dda_read_skew2_committed: Anomaly + +rat_mda_step_rat: Rollback + +rat_mda_step_rat_long_fork: Anomaly + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Rollback + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/index/result/sqlserver_15.0/result_summary/read-committed_total-result.txt b/index/result/sqlserver_15.0/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..45f42a10 --- /dev/null +++ b/index/result/sqlserver_15.0/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Anomaly + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Anomaly + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Anomaly + +rat_dda_read_skew2_committed: Anomaly + +rat_mda_step_rat: Rollback + +rat_mda_step_rat_long_fork: Anomaly + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Rollback + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/index/result/sqlserver_15.0/result_summary/read-uncommitted_total-result.txt b/index/result/sqlserver_15.0/result_summary/read-uncommitted_total-result.txt new file mode 100644 index 00000000..f709ccda --- /dev/null +++ b/index/result/sqlserver_15.0/result_summary/read-uncommitted_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Anomaly + +rat_sda_non_repeatable_read: Anomaly + +rat_sda_intermediate_read: Anomaly + +rat_sda_intermediate_read_committed: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Anomaly + +rat_dda_double_write_skew1_committed: Anomaly + +rat_dda_double_write_skew2: Anomaly + +rat_dda_read_skew: Anomaly + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Anomaly + +rat_dda_read_skew2_committed: Anomaly + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Anomaly + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Anomaly + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/index/result/sqlserver_15.0/result_summary/repeatable-read_total-result.txt b/index/result/sqlserver_15.0/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..f872970f --- /dev/null +++ b/index/result/sqlserver_15.0/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Rollback + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Rollback + +rat_dda_read_skew2_committed: Rollback + +rat_mda_step_rat: Rollback + +rat_mda_step_rat_long_fork: Rollback + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Rollback + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Avoid + +wat_sda_lost_update_c2: Avoid + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Avoid + +iat_dda_read_skew_committed: Rollback + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +iat_mda_step_iat_predicate_based_delete: Rollback + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Rollback + +iat_mda_step_iat_cross_phenomenon: Rollback + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Rollback + diff --git a/index/result/sqlserver_15.0/result_summary/serializable_total-result.txt b/index/result/sqlserver_15.0/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..db50cb37 --- /dev/null +++ b/index/result/sqlserver_15.0/result_summary/serializable_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Rollback + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Rollback + +rat_dda_read_skew2_committed: Rollback + +rat_mda_step_rat: Rollback + +rat_mda_step_rat_long_fork: Rollback + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Rollback + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Avoid + +wat_sda_lost_update_c2: Avoid + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Avoid + +iat_dda_read_skew_committed: Rollback + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +iat_mda_step_iat_predicate_based_delete: Rollback + +iat_mda_step_iat_predicate_based_insert: Rollback + +iat_mda_step_iat_uname_anomaly: Rollback + +iat_mda_step_iat_cross_phenomenon: Rollback + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Rollback + diff --git a/index/result/sqlserver_15.0/result_summary/snapshot_total-result.txt b/index/result/sqlserver_15.0/result_summary/snapshot_total-result.txt new file mode 100644 index 00000000..554aa7a2 --- /dev/null +++ b/index/result/sqlserver_15.0/result_summary/snapshot_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Rollback + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/index/result/sqlserver_15.0/serializable/iat_dda_read_skew_committed.txt b/index/result/sqlserver_15.0/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..0cb31fa1 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:40:131:36 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:56:40:173:852 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:40:231:576 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:40:273:658 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:40:935:311 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:40:984:412 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:56:41:633:924 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/iat_dda_read_write_skew1_committed.txt b/index/result/sqlserver_15.0/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..0386255a --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:42:84:828 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:56:42:125:654 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:42:184:846 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:42:227:12 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:43:431:648 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:43:488:967 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:56:44:130:286 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/iat_dda_write_skew.txt b/index/result/sqlserver_15.0/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..9d78878b --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/iat_dda_write_skew.txt @@ -0,0 +1,49 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:44:582:841 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:56:44:623:584 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:44:682:792 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:56:44:723:724 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:45:304:370 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:56:45:355:608 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:56:45:903:16 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/iat_dda_write_skew_committed.txt b/index/result/sqlserver_15.0/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..0eeb6543 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,49 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:49:576:5 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:56:49:616:630 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:49:675:967 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:56:49:716:941 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:50:921:931 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:50:970:603 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:56:51:620:589 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/index/result/sqlserver_15.0/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..5f840c80 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:46:439:311 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 14:56:46:487:540 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 14:56:46:527:558 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 14:56:46:539:276 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:56:46:689:917 + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 14:56:46:691:759 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 14:56:46:732:745 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:56:46:780:457 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 14:56:46:821:656 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 14:56:46:862:428 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:56:46:902:447 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/index/result/sqlserver_15.0/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..4ec3332e --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,49 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:47:316:574 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 14:56:47:364:670 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:47:416:587 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 14:56:47:457:969 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q5 finished at: 2022-4-2 14:56:48:425:246 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:48:473:721 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:56:49:123:832 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/iat_mda_step_iat.txt b/index/result/sqlserver_15.0/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..e1117103 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/iat_mda_step_iat.txt @@ -0,0 +1,89 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:52:117:921 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:56:52:159:238 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:52:219:581 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:56:52:260:953 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:56:52:317:917 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:56:52:358:866 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 finished at: 2022-4-2 14:56:52:794:456 + Q11-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:52:868:759 +Q10-T1 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:56:52:870:393 +Q10 finished at: 2022-4-2 14:56:52:918:863 + Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q9 failed at: 2022-4-2 14:56:53:693:578 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/index/result/sqlserver_15.0/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..e9dead33 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:57:4:924:323 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:57:4:965:334 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:57:5:24:163 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:57:5:124:102 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 14:57:5:264:21 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 14:57:5:303:600 + Q4 finished at: 2022-4-2 14:57:5:305:178 + Q5-T2 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:57:5:359:310 + Q5 finished at: 2022-4-2 14:57:5:359:794 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:57:5:399:936 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:57:5:452:562 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 14:57:5:494:517 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:57:5:534:725 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/serializable/iat_mda_step_iat_cross_phenomenon.txt b/index/result/sqlserver_15.0/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..e9f1e37e --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,140 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:57:2:244:246 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:57:2:285:853 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:57:2:344:338 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:57:2:386:741 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:57:2:444:285 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:57:2:544:287 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:57:3:407:245 + Q10-T4 execute opt: 'COMMIT'; + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 14:57:3:456:576 +Q14-T1 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:57:3:458:157 +Q14 finished at: 2022-4-2 14:57:3:496:179 + Q6 finished at: 2022-4-2 14:57:3:496:789 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:57:3:552:802 + Q11 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q11 failed at: 2022-4-2 14:57:4:506:301 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/iat_mda_step_iat_predicate_based_delete.txt b/index/result/sqlserver_15.0/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..196fae42 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,89 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:54:145:100 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 14:56:54:186:234 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:54:245:105 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:56:54:286:945 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:56:54:345:129 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:56:54:425:174 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q8 finished at: 2022-4-2 14:56:55:915:701 + Q11-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:55:967:356 +Q10-T1 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:56:55:968:856 +Q10 finished at: 2022-4-2 14:56:56:19:45 + Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q9 failed at: 2022-4-2 14:56:56:814:938 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/iat_mda_step_iat_predicate_based_insert.txt b/index/result/sqlserver_15.0/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..f58982da --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,85 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:57:144:514 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:56:57:185:664 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:57:244:779 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 14:56:57:286:403 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:56:57:344:669 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 14:56:57:424:796 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q7 finished at: 2022-4-2 14:56:58:411:111 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:56:58:457:611 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 14:56:59:212:576 + Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q9 failed at: 2022-4-2 14:56:59:311:750 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/index/result/sqlserver_15.0/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..55c27f8a --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,120 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:57:5:952:208 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:57:5:993:588 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 14:57:6:34:310 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 14:57:6:51:688 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 14:57:6:93:15 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:57:6:151:857 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 14:57:6:193:65 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q6 finished at: 2022-4-2 14:57:7:150:832 + Q7-T2 execute opt: 'COMMIT'; + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:57:7:201:693 + Q7 finished at: 2022-4-2 14:57:7:201:876 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:57:7:241:736 +Q12 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q12 failed at: 2022-4-2 14:57:8:349:417 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/iat_mda_step_iat_uname_anomaly.txt b/index/result/sqlserver_15.0/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..c74c21e5 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,127 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:59:763:702 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 14:56:59:804:802 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:59:863:651 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 14:56:59:944:380 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 14:56:59:963:643 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + Q5 finished at: 2022-4-2 14:56:59:986:257 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:57:0:27:774 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 14:57:0:43:957 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + Q11 finished at: 2022-4-2 14:57:0:84:629 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q7 finished at: 2022-4-2 14:57:0:284:940 + Q8-T2 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 14:57:0:334:263 + Q8 finished at: 2022-4-2 14:57:0:334:505 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 14:57:0:374:763 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:57:0:422:769 +Q15 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q15 failed at: 2022-4-2 14:57:1:783:575 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/iat_sda_lost_update_committed.txt b/index/result/sqlserver_15.0/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..f892f940 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:39:289:234 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:56:39:330:347 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:39:391:466 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 14:56:39:528:308 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:39:578:941 + Q4 finished at: 2022-4-2 14:56:39:580:528 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:56:39:628:369 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:56:39:670:874 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:39:710:917 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/serializable/iat_sda_non_repeatable_read_committed.txt b/index/result/sqlserver_15.0/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..d4049826 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:38:501:533 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:56:38:542:568 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:38:603:568 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:56:38:743:57 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:38:782:557 + Q4 finished at: 2022-4-2 14:56:38:784:53 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:56:38:832:956 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:56:38:874:534 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:38:914:774 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:56:38:915:624 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/serializable/rat_dda_double_write_skew1.txt b/index/result/sqlserver_15.0/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..6dbf6abf --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:16:146:787 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:16:187:755 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:16:251:509 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:16:292:495 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:55:17:495:457 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:55:17:542:201 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:55:18:93:795 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/rat_dda_double_write_skew1_committed.txt b/index/result/sqlserver_15.0/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..d931383c --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:18:546:585 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:18:587:443 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:18:646:476 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:18:687:190 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:55:19:371:3 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:55:19:422:717 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:55:20:69:322 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/rat_dda_double_write_skew2.txt b/index/result/sqlserver_15.0/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..5c938e61 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:20:519:455 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:20:560:249 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:20:619:684 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:20:660:549 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:55:21:246:445 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:55:21:300:358 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:55:21:844:943 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/rat_dda_read_skew.txt b/index/result/sqlserver_15.0/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..09268b81 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/rat_dda_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:22:308:385 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:55:22:349:263 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:22:408:513 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:22:450:519 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:55:23:121:991 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:55:23:175:658 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:55:23:720:561 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/rat_dda_read_skew2.txt b/index/result/sqlserver_15.0/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..7cb14060 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:25:745:536 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:25:786:258 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:25:845:539 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:55:25:887:128 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:55:26:246:390 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:55:26:297:191 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:55:26:748:71 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/rat_dda_read_skew2_committed.txt b/index/result/sqlserver_15.0/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..2b9cfee0 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:27:158:358 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:27:199:336 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:27:258:421 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:55:27:339:398 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:55:28:747:82 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:55:28:797:826 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:55:29:248:753 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/rat_dda_read_skew_predicate_based_delete.txt b/index/result/sqlserver_15.0/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..b3f3a52f --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:24:180:375 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:55:24:234:680 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:24:280:418 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:55:24:419:689 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:55:24:458:967 + Q4 finished at: 2022-4-2 14:55:24:460:641 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:55:24:501:337 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:55:24:550:468 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 14:55:24:592:55 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:55:24:592:804 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/serializable/rat_dda_read_skew_predicate_based_insert.txt b/index/result/sqlserver_15.0/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..41e5e3a4 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:24:920:997 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:55:24:961:725 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:25:21:11 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:55:25:160:272 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:55:25:199:549 + Q4 finished at: 2022-4-2 14:55:25:201:264 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 14:55:25:242:20 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:55:25:290:785 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 14:55:25:332:281 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:55:25:333:11 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/serializable/rat_dda_write_read_skew.txt b/index/result/sqlserver_15.0/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..3872e2e9 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:7:689:45 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:7:729:958 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:7:789:262 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:7:830:126 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:55:9:994:505 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:55:10:54:121 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:55:10:592:770 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/rat_dda_write_read_skew_committed.txt b/index/result/sqlserver_15.0/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..ef3f3a87 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:11:46:653 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:11:87:599 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:11:146:599 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:11:187:466 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:55:14:994:795 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:55:15:47:414 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:55:15:693:137 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/rat_mda_step_rat.txt b/index/result/sqlserver_15.0/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..fe41b529 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/rat_mda_step_rat.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:29:698:124 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:29:738:934 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:29:798:75 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:29:877:996 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:55:29:937:451 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:55:29:977:880 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:55:30:625:59 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 14:55:30:673:709 + Q11 finished at: 2022-4-2 14:55:30:674:196 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:55:30:728:861 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:55:31:523:31 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/rat_mda_step_rat_long_fork.txt b/index/result/sqlserver_15.0/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..9b9e85da --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,167 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 14:55:32:21:740 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 14:55:32:65:182 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 14:55:32:80:374 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:55:32:183:726 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 14:55:32:225:679 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:55:32:283:664 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:55:32:502:723 + Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q9 failed at: 2022-4-2 14:55:33:400:286 + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:55:52:124:43 +Q4 failed reason: errcode: 00000 +Q4 failed at: 2022-4-2 14:55:52:522:583 +Q4 finished at: 2022-4-2 14:55:52:522:710 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/rat_mda_step_rat_predicate_based_delete.txt b/index/result/sqlserver_15.0/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..94f070b1 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:52:978:520 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:53:19:288 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:53:78:719 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:53:158:643 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:55:53:178:526 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:55:53:219:1 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:55:58:128:626 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 14:55:58:184:832 + Q11 finished at: 2022-4-2 14:55:58:185:7 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:55:58:233:993 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:55:59:26:748 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/rat_mda_step_rat_predicate_based_insert.txt b/index/result/sqlserver_15.0/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..01d1ba51 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,71 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:59:401:906 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 14:55:59:442:605 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:59:501:871 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 14:55:59:542:658 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:55:59:602:196 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 14:55:59:642:877 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 14:56:3:127:797 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:56:3:188:635 + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:56:3:190:922 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:56:3:242:704 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 14:56:3:928:32 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/rat_sda_dirty_read.txt b/index/result/sqlserver_15.0/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..5deae19b --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:2:149:777 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:2:190:654 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:2:250:383 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 14:55:2:349:603 + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:55:2:351:501 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:55:2:450:458 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:55:2:491:785 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:55:2:492:635 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/serializable/rat_sda_intermediate_read.txt b/index/result/sqlserver_15.0/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..1039b521 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:3:770:404 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:3:811:469 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:3:870:382 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 14:55:4:9:834 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:55:4:237:790 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:55:4:239:710 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:55:4:279:885 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:55:4:321:219 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:55:4:321:943 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/serializable/rat_sda_intermediate_read_committed.txt b/index/result/sqlserver_15.0/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..f1961064 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:4:698:934 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:4:739:610 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:4:798:870 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 14:55:4:938:219 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:55:4:989:678 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:55:4:991:486 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:55:5:31:505 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:55:5:72:660 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:55:5:73:370 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/serializable/rat_sda_lost_self_update.txt b/index/result/sqlserver_15.0/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..ebfa11d2 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:6:888:685 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:6:929:817 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:6:988:758 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:55:7:128:901 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:55:7:185:662 + Q4 finished at: 2022-4-2 14:55:7:187:423 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:55:7:238:252 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:55:7:279:610 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:55:7:280:383 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/serializable/rat_sda_non_repeatable_read.txt b/index/result/sqlserver_15.0/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..9baa5bb1 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:2:863:946 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:55:2:904:848 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:2:964:315 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:55:3:103:339 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:55:3:302:708 + Q4 finished at: 2022-4-2 14:55:3:304:351 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:55:3:349:947 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:55:3:391:158 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:55:3:391:841 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/index/result/sqlserver_15.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..4c7d1a44 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:5:450:143 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:55:5:501:166 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:5:549:984 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:55:5:689:246 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:55:5:728:356 + Q4 finished at: 2022-4-2 14:55:5:730:138 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:55:5:775:379 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 14:55:5:816:666 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:55:5:817:386 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/index/result/sqlserver_15.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..03c81edb --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:6:148:128 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:55:6:189:124 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:6:248:31 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:55:6:387:336 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:55:6:426:465 + Q4 finished at: 2022-4-2 14:55:6:428:199 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:55:6:477:909 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 14:55:6:519:498 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:55:6:520:240 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/serializable/wat_dda_double_write_skew2_committed.txt b/index/result/sqlserver_15.0/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..c35d88f3 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:10:284:850 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:10:325:905 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:10:384:693 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:10:425:547 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:14:380:102 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:14:434:590 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:56:15:78:699 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/wat_dda_full_write_skew_c1.txt b/index/result/sqlserver_15.0/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..350e1769 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:15:530:588 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:15:571:533 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:15:630:286 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:15:671:175 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:19:380:753 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:56:19:431:844 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:56:19:979:396 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/wat_dda_full_write_skew_c2.txt b/index/result/sqlserver_15.0/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..718506ea --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:20:441:132 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:20:482:149 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:20:540:926 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:20:581:786 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:21:881:419 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:56:21:932:989 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:56:22:480:346 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/wat_dda_full_write_skew_committed.txt b/index/result/sqlserver_15.0/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..70bc6fc2 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:22:937:643 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:22:978:634 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:23:37:710 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:23:78:914 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:23:757:59 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:23:818:488 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:56:24:455:624 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/wat_dda_read_write_skew1_c1.txt b/index/result/sqlserver_15.0/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..82fe2386 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:24:910:887 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:56:24:951:545 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:25:10:944 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:25:52:836 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:25:632:512 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:56:25:684:516 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:56:26:231:87 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/wat_dda_read_write_skew1_c2.txt b/index/result/sqlserver_15.0/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..11d7eedc --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:26:685:785 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:56:26:726:782 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:26:785:667 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:26:827:484 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:27:508:676 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:56:27:560:145 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:56:28:107:303 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/wat_dda_read_write_skew2_c1.txt b/index/result/sqlserver_15.0/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..54924ddf --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:28:558:760 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:28:599:596 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:28:658:778 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:56:28:700:602 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:56:29:382:632 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:29:431:236 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:56:29:884:391 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/wat_dda_read_write_skew2_c2.txt b/index/result/sqlserver_15.0/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..f65bb713 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:30:296:181 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:30:337:291 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:30:396:97 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:56:30:476:968 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:56:30:633:105 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:56:30:745:255 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:56:31:134:782 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/wat_dda_read_write_skew2_committed.txt b/index/result/sqlserver_15.0/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..91365b1c --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:31:548:494 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:31:589:298 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:31:648:356 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:56:31:729:531 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:56:32:195:65 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:56:32:243:391 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:56:32:696:788 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/wat_mda_step_wat_c1.txt b/index/result/sqlserver_15.0/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..47b77edf --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:33:150:271 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:33:191:405 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:33:250:266 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:33:330:468 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:56:33:350:205 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:56:33:390:986 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 14:56:34:69:635 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:56:34:123:912 + Q12-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:56:34:124:741 + Q12 finished at: 2022-4-2 14:56:34:183:684 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:56:34:968:227 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/wat_mda_step_wat_c2.txt b/index/result/sqlserver_15.0/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..f834d0f1 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:35:461:402 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:35:502:227 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:35:561:377 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:35:602:191 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:56:35:661:371 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:56:35:901:771 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 14:56:37:191:359 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:56:37:239:593 + Q12-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:56:37:240:409 + Q12 finished at: 2022-4-2 14:56:37:287:850 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:56:38:89:124 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/serializable/wat_sda_dirty_write_1abort.txt b/index/result/sqlserver_15.0/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..79ad9662 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:4:308:566 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:4:349:496 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:4:408:530 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 14:56:4:547:58 + Q4 finished at: 2022-4-2 14:56:4:548:664 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:4:661:970 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:56:4:742:428 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:56:4:783:778 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:4:828:598 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/serializable/wat_sda_dirty_write_2commit.txt b/index/result/sqlserver_15.0/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..3788f9d8 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:5:204:284 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:5:245:397 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:5:304:161 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 14:56:5:450:722 + Q4 finished at: 2022-4-2 14:56:5:452:287 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:5:552:118 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:56:5:593:469 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:56:5:634:664 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:5:679:927 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/serializable/wat_sda_full_write.txt b/index/result/sqlserver_15.0/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..4ebc03fa --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:6:49:671 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:6:90:783 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:6:149:649 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 14:56:6:289:389 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:56:6:337:583 + Q4 finished at: 2022-4-2 14:56:6:339:204 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:56:6:399:318 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:56:6:441:623 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:6:481:779 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/serializable/wat_sda_full_write_committed.txt b/index/result/sqlserver_15.0/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..170e1dd9 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:6:858:894 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:6:899:806 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:6:959:553 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 14:56:7:99:913 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:7:144:223 + Q4 finished at: 2022-4-2 14:56:7:145:794 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:56:7:194:787 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:56:7:239:649 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:7:279:717 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/serializable/wat_sda_lost_self_update_committed.txt b/index/result/sqlserver_15.0/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..14c91b40 --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:9:444:200 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:9:485:228 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:9:543:298 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:56:9:683:324 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:9:729:636 + Q4 finished at: 2022-4-2 14:56:9:731:219 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:56:9:780:476 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:56:9:821:695 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:9:861:794 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/serializable/wat_sda_lost_update_c1.txt b/index/result/sqlserver_15.0/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..a2792eed --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:7:671:11 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:56:7:711:825 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:7:771:29 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-2 14:56:7:911:68 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:56:7:955:68 + Q4 finished at: 2022-4-2 14:56:7:956:644 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:56:8:23:227 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:56:8:71:515 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:8:111:631 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/serializable/wat_sda_lost_update_c2.txt b/index/result/sqlserver_15.0/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..acb7837e --- /dev/null +++ b/index/result/sqlserver_15.0/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:8:482:849 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:56:8:523:430 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:8:582:842 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-2 14:56:8:721:951 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:8:927:47 + Q4 finished at: 2022-4-2 14:56:8:928:571 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:8:978:900 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:56:9:23:677 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:9:63:651 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/snapshot/iat_dda_read_skew_committed.txt b/index/result/sqlserver_15.0/snapshot/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..a8edadcf --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:54:844:373 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:54:888:288 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:54:944:267 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:54:983:504 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:55:21:789 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:10:55:76:701 + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 15:10:55:86:561 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:55:129:55 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:55:169:164 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:55:207:585 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/snapshot/iat_dda_read_write_skew1_committed.txt b/index/result/sqlserver_15.0/snapshot/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..97e1e93b --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:55:639:345 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:55:683:138 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:55:739:310 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:55:778:723 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:55:817:59 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:10:55:870:479 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q7 failed at: 2022-4-2 15:10:56:582:607 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/index/result/sqlserver_15.0/snapshot/iat_dda_write_skew.txt b/index/result/sqlserver_15.0/snapshot/iat_dda_write_skew.txt new file mode 100644 index 00000000..254129a7 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:57:63:989 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:57:108:135 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:57:164:595 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:10:57:203:276 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:57:242:630 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:10:57:306:266 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:57:358:260 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:10:57:411:834 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:57:451:666 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:10:57:490:241 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/snapshot/iat_dda_write_skew_committed.txt b/index/result/sqlserver_15.0/snapshot/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..3db68a8b --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:59:626:332 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:59:670:478 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:59:726:260 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:10:59:764:750 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:59:803:961 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:10:59:849:969 +Q7 finished at: 2022-4-2 15:10:59:868:428 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:59:922:273 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:59:961:999 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:11:0:0:546 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/snapshot/iat_dda_write_skew_predicate_based-intersecting_data.txt b/index/result/sqlserver_15.0/snapshot/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..cbf23179 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:58:7:793 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 15:10:58:58:880 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 15:10:58:102:420 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 15:10:58:107:998 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 15:10:58:152:398 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 15:10:58:191:80 + Q7-T2 execute opt: 'COMMIT'; +Q8-T1 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:10:58:239:286 +Q8 finished at: 2022-4-2 15:10:58:263:169 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 15:10:58:302:619 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 15:10:58:341:917 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:10:58:380:477 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/snapshot/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/index/result/sqlserver_15.0/snapshot/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..efccc514 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:58:825:37 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 15:10:58:876:789 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:58:924:945 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 15:10:58:963:706 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 15:10:59:3:931 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q6 finished at: 2022-4-2 15:10:59:58:351 +Q7 finished at: 2022-4-2 15:10:59:68:128 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:59:120:945 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 15:10:59:160:542 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:59:199:22 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/snapshot/iat_mda_step_iat.txt b/index/result/sqlserver_15.0/snapshot/iat_mda_step_iat.txt new file mode 100644 index 00000000..1d72a779 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:11:0:475:210 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 15:11:0:519:543 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:11:0:575:685 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:11:0:614:468 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:11:0:675:158 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 15:11:0:714:590 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 15:11:0:818:415 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 15:11:0:912:626 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 15:11:1:13:469 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:11:1:139:663 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:11:1:222:484 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:11:1:319:496 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 15:11:1:359:999 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:11:1:398:739 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/snapshot/iat_mda_step_iat_causality_violation_anomaly.txt b/index/result/sqlserver_15.0/snapshot/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..f45c6b9a --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:11:7:671:948 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:11:7:715:880 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:11:7:772:70 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:11:7:811:217 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:11:7:861:272 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:11:7:871:961 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 15:11:7:911:173 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 15:11:7:950:132 + Q9-T3 execute opt: 'COMMIT'; +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9 finished at: 2022-4-2 15:11:7:998:922 + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 15:11:8:14:588 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 15:11:8:57:177 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 15:11:8:97:740 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 15:11:8:136:462 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/snapshot/iat_mda_step_iat_cross_phenomenon.txt b/index/result/sqlserver_15.0/snapshot/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..f640590c --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:11:6:618:347 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:11:6:663:659 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:11:6:718:277 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:11:6:757:616 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:11:6:818:462 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 15:11:6:895:795 + Q7-T3 execute opt: 'COMMIT'; + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 15:11:6:918:291 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-2 15:11:6:948:728 + Q9 finished at: 2022-4-2 15:11:6:957:528 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:11:7:2:562 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 15:11:7:56:692 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:11:7:94:387 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 15:11:7:161:339 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 15:11:7:203:949 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 15:11:7:242:202 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 15:11:7:243:91 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/snapshot/iat_mda_step_iat_predicate_based_delete.txt b/index/result/sqlserver_15.0/snapshot/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..bf846cb9 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:11:1:872:964 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 15:11:1:916:808 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:11:1:972:947 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:11:2:11:612 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:11:2:73:95 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 15:11:2:112:397 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 15:11:2:216:335 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 15:11:2:310:543 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 15:11:2:411:563 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:11:2:522:452 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:11:2:626:19 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:11:2:716:115 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 15:11:2:756:437 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:11:2:795:237 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/snapshot/iat_mda_step_iat_predicate_based_insert.txt b/index/result/sqlserver_15.0/snapshot/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..824b2ced --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:11:3:135:439 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 15:11:3:179:736 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:11:3:235:332 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 15:11:3:273:945 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:11:3:335:349 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 15:11:3:374:702 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 15:11:3:478:357 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 15:11:3:572:787 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 15:11:3:673:634 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:11:3:785:187 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:11:3:885:944 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:11:3:978:231 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 15:11:4:18:986 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:11:4:57:700 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/snapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt b/index/result/sqlserver_15.0/snapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..7989fb25 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:11:8:566:962 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 15:11:8:611:93 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 15:11:8:654:736 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 15:11:8:666:985 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 15:11:8:705:599 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 15:11:8:744:844 + Q7-T2 execute opt: 'COMMIT'; + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 15:11:8:766:963 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q7 finished at: 2022-4-2 15:11:8:793:768 + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 15:11:8:806:410 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 15:11:8:845:728 + Q11-T3 execute opt: 'COMMIT'; +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q11 finished at: 2022-4-2 15:11:8:884:288 +Q12 finished at: 2022-4-2 15:11:8:909:346 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 15:11:8:962:494 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 15:11:9:2:724 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 15:11:9:41:168 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/snapshot/iat_mda_step_iat_uname_anomaly.txt b/index/result/sqlserver_15.0/snapshot/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..653afee1 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,142 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:11:4:532:278 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 15:11:4:576:738 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:11:4:632:232 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 15:11:4:670:950 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:11:4:710:142 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 15:11:4:732:383 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 15:11:4:748:576 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 15:11:4:771:712 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 15:11:4:786:568 + Q8-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:11:4:810:637 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8 finished at: 2022-4-2 15:11:4:834:374 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 15:11:4:849:970 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 15:11:4:878:258 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 15:11:4:920:993 + Q13 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q13 failed at: 2022-4-2 15:11:6:189:277 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/index/result/sqlserver_15.0/snapshot/iat_sda_lost_update_committed.txt b/index/result/sqlserver_15.0/snapshot/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..3a1a6167 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:53:523:638 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 15:10:53:567:808 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:53:623:647 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 15:10:53:662:888 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:10:53:710:816 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q6 failed at: 2022-4-2 15:10:54:366:205 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/index/result/sqlserver_15.0/snapshot/iat_sda_non_repeatable_read_committed.txt b/index/result/sqlserver_15.0/snapshot/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..5160c7af --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:52:740:575 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:52:784:751 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:52:836:952 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:10:52:912:690 + Q5-T2 execute opt: 'COMMIT'; +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:52:958:147 + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 15:10:52:979:104 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:53:21:675 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:10:53:98:573 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:10:53:136:988 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:53:137:707 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/snapshot/rat_dda_double_write_skew1.txt b/index/result/sqlserver_15.0/snapshot/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..0c6d0ef8 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:4:459:73 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:4:502:849 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:4:559:68 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:4:597:298 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:10:4:636:322 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:10:4:804:683 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q6 failed at: 2022-4-2 15:10:5:408:848 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/index/result/sqlserver_15.0/snapshot/rat_dda_double_write_skew1_committed.txt b/index/result/sqlserver_15.0/snapshot/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..4be1bfa1 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:5:878:767 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:5:923:206 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:5:978:668 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:6:17:150 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:10:6:56:452 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q6 finished at: 2022-4-2 15:10:6:101:746 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q7 failed at: 2022-4-2 15:10:6:821:697 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/index/result/sqlserver_15.0/snapshot/rat_dda_double_write_skew2.txt b/index/result/sqlserver_15.0/snapshot/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..8e7ff5b4 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/rat_dda_double_write_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:7:293:294 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:7:337:279 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:7:393:199 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:7:431:321 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 15:10:7:536:610 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:7:586:894 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q5 failed at: 2022-4-2 15:10:8:83:849 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/index/result/sqlserver_15.0/snapshot/rat_dda_read_skew.txt b/index/result/sqlserver_15.0/snapshot/rat_dda_read_skew.txt new file mode 100644 index 00000000..e3c70822 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:8:511:426 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:8:555:173 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:8:611:431 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:8:687:386 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:10:8:725:714 + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 15:10:8:753:772 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:10:8:855:206 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:8:953:116 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:8:993:279 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:8:994:35 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/snapshot/rat_dda_read_skew2.txt b/index/result/sqlserver_15.0/snapshot/rat_dda_read_skew2.txt new file mode 100644 index 00000000..980640f3 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:10:840:563 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:10:884:525 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:10:940:474 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:10:10:979:579 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:10:11:18:297 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:10:11:82:840 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:11:132:948 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:10:11:178:628 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:11:218:605 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:11:219:569 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/snapshot/rat_dda_read_skew2_committed.txt b/index/result/sqlserver_15.0/snapshot/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..23024a81 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:11:645:912 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:11:689:827 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:11:745:875 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:10:11:784:993 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:10:11:823:187 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:10:11:860:667 +Q7 finished at: 2022-4-2 15:10:11:888:451 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:11:936:525 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:11:976:427 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:11:977:240 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/snapshot/rat_dda_read_skew_predicate_based_delete.txt b/index/result/sqlserver_15.0/snapshot/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..7d338fd6 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:9:425:495 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 15:10:9:481:999 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:9:526:15 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:9:564:969 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:9:603:17 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 15:10:9:646:33 + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 15:10:9:668:511 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:9:710:872 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 15:10:9:750:637 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:9:751:402 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/snapshot/rat_dda_read_skew_predicate_based_insert.txt b/index/result/sqlserver_15.0/snapshot/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..e3d29eb7 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:10:89:109 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 15:10:10:132:947 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:10:189:148 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 15:10:10:228:317 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 15:10:10:266:411 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 15:10:10:311:724 + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 15:10:10:331:665 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:10:374:245 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 15:10:10:414:101 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:10:414:873 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/snapshot/rat_dda_write_read_skew.txt b/index/result/sqlserver_15.0/snapshot/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..847c7999 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:2:780:2 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:2:823:926 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:2:879:935 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:2:954:608 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:10:2:993:572 + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 15:10:3:22:705 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:10:3:122:354 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:3:227:555 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:3:267:276 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:3:268:25 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/snapshot/rat_dda_write_read_skew_committed.txt b/index/result/sqlserver_15.0/snapshot/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..b1884297 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:3:691:857 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:3:735:869 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:3:791:731 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:3:829:812 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:10:3:868:834 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:10:3:918:783 + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 15:10:3:933:993 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:3:987:56 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:4:26:760 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:4:27:450 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/snapshot/rat_mda_step_rat.txt b/index/result/sqlserver_15.0/snapshot/rat_mda_step_rat.txt new file mode 100644 index 00000000..58be1c74 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:12:445:15 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:12:489:40 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:12:544:994 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:12:583:27 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:10:12:622:516 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:10:12:682:683 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 15:10:12:725:246 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 15:10:12:764:724 + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-2 15:10:12:789:927 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:10:12:846:887 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:10:12:891:531 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:10:12:988:91 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 15:10:13:29:35 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:10:13:29:839 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/snapshot/rat_mda_step_rat_long_fork.txt b/index/result/sqlserver_15.0/snapshot/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..1f3924b2 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 15:10:13:493:886 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 15:10:13:535:120 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 15:10:13:556:325 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 15:10:13:600:170 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:10:13:655:995 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 15:10:13:696:182 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 15:10:13:736:254 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 15:10:13:756:66 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 15:10:13:794:371 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 15:10:13:895:628 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 15:10:14:9:897 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:10:14:107:356 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 15:10:14:193:923 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:10:14:232:811 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 15:10:14:274:99 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 15:10:14:312:719 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/snapshot/rat_mda_step_rat_predicate_based_delete.txt b/index/result/sqlserver_15.0/snapshot/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..e9f7f591 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:14:783:490 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:14:827:101 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:14:883:153 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:14:921:341 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 15:10:14:960:825 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:10:14:983:301 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 15:10:15:22:136 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 15:10:15:61:884 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-2 15:10:15:126:183 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:10:15:180:433 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:10:15:235:2 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:10:15:332:518 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 15:10:15:372:939 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:10:15:411:665 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/snapshot/rat_mda_step_rat_predicate_based_insert.txt b/index/result/sqlserver_15.0/snapshot/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..1e4ce153 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:15:752:584 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 15:10:15:796:343 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:15:852:336 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 15:10:15:890:370 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 15:10:15:930:42 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:10:15:952:448 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 15:10:15:991:259 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-2 15:10:16:30:759 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 15:10:16:95:91 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:10:16:147:162 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:10:16:198:518 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:10:16:311:211 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 15:10:16:352:558 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:10:16:391:129 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/sqlserver_15.0/snapshot/rat_sda_dirty_read.txt b/index/result/sqlserver_15.0/snapshot/rat_sda_dirty_read.txt new file mode 100644 index 00000000..417b28c4 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_read #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:9:57:71:725 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:9:57:115:528 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:9:57:167:35 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:9:57:206:126 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 15:9:57:271:960 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:9:57:367:64 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 15:9:57:406:564 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:9:57:407:272 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/snapshot/rat_sda_intermediate_read.txt b/index/result/sqlserver_15.0/snapshot/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..2f580eab --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:9:58:665:47 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:9:58:709:7 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:9:58:765:27 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:9:58:803:941 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 15:9:58:907:331 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:9:59:1:957 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:9:59:130:303 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 15:9:59:169:919 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:9:59:170:685 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/snapshot/rat_sda_intermediate_read_committed.txt b/index/result/sqlserver_15.0/snapshot/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..040b732d --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:9:59:555:526 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:9:59:599:883 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:9:59:655:323 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:9:59:694:519 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:9:59:731:904 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 15:9:59:801:749 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:9:59:849:671 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 15:9:59:889:374 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:9:59:890:73 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/snapshot/rat_sda_lost_self_update.txt b/index/result/sqlserver_15.0/snapshot/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..dc7f81bb --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/rat_sda_lost_self_update.txt @@ -0,0 +1,39 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:1:647:425 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:1:691:648 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:1:745:924 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 15:10:1:888:910 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 15:10:1:953:238 + Q4 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q4 failed at: 2022-4-2 15:10:2:350:232 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/index/result/sqlserver_15.0/snapshot/rat_sda_non_repeatable_read.txt b/index/result/sqlserver_15.0/snapshot/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..e881ba50 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:9:57:788:580 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:9:57:832:445 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:9:57:888:655 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:9:57:927:669 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 15:9:58:31:209 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:9:58:141:320 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:9:58:236:409 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:9:58:275:889 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:9:58:276:702 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/index/result/sqlserver_15.0/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..56b252e4 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:0:275:757 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 15:10:0:327:647 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:0:375:639 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:10:0:414:551 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:10:0:457:730 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 15:10:0:517:960 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:0:560:338 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 15:10:0:599:977 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:10:0:600:707 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/index/result/sqlserver_15.0/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..21c291c2 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:0:937:523 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 15:10:0:981:240 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:1:37:550 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 15:10:1:76:277 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:10:1:127:189 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 15:10:1:179:728 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:1:222:71 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 15:10:1:261:954 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:10:1:262:956 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/snapshot/wat_dda_double_write_skew2_committed.txt b/index/result/sqlserver_15.0/snapshot/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..3b7adebe --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:24:551:59 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:24:595:361 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:24:651:54 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:24:725:934 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 15:10:24:794:895 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:24:844:809 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q5 failed at: 2022-4-2 15:10:25:341:902 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/index/result/sqlserver_15.0/snapshot/wat_dda_full_write_skew_c1.txt b/index/result/sqlserver_15.0/snapshot/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..7c2bbffe --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:25:772:221 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:25:817:158 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:25:872:364 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:25:947:10 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:10:28:422:459 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:10:28:469:100 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 15:10:29:26:165 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/snapshot/wat_dda_full_write_skew_c2.txt b/index/result/sqlserver_15.0/snapshot/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..d7724aa3 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:29:495:570 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:29:539:346 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:29:595:718 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:29:634:175 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:10:33:423:35 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:10:33:485:796 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 15:10:34:26:694 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/snapshot/wat_dda_full_write_skew_committed.txt b/index/result/sqlserver_15.0/snapshot/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..f2940d12 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:34:503:411 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:34:547:349 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:34:603:462 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:34:641:702 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:10:35:923:502 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:10:35:969:285 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 15:10:36:627:217 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/index/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew1_c1.txt b/index/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..23651f4e --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:37:93:838 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:37:137:714 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:37:193:811 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:37:233:129 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:37:271:564 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:10:37:442:940 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q6 failed at: 2022-4-2 15:10:38:47:27 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/index/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew1_c2.txt b/index/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..4e8e23a3 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:38:523:388 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:38:567:456 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:38:623:570 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:38:662:836 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:38:701:67 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:10:38:876:469 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q6 failed at: 2022-4-2 15:10:39:480:599 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/index/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew2_c1.txt b/index/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..cba25d2d --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:39:952:183 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:39:996:301 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:40:52:109 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:10:40:91:445 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:10:40:201:234 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:40:255:55 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q5 failed at: 2022-4-2 15:10:40:751:942 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/index/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew2_c2.txt b/index/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..5c10895c --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:41:182:841 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:41:226:971 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:41:282:637 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:10:41:358:467 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:10:41:425:594 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:41:633:197 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q5 failed at: 2022-4-2 15:10:42:130:75 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/index/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew2_committed.txt b/index/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..681c81b6 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:42:558:652 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:42:602:549 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:42:658:664 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:10:42:734:488 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 15:10:42:800:880 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:42:858:240 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q5 failed at: 2022-4-2 15:10:43:358:405 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/index/result/sqlserver_15.0/snapshot/wat_mda_step_wat_c1.txt b/index/result/sqlserver_15.0/snapshot/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..b4263d86 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/wat_mda_step_wat_c1.txt @@ -0,0 +1,43 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:43:832:781 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:43:876:996 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:43:932:948 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:44:7:694 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:10:44:32:869 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 15:10:44:72:329 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-2 15:10:46:553:844 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:10:46:607:907 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q5 failed at: 2022-4-2 15:10:47:104:887 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 15:10:47:350:363 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/index/result/sqlserver_15.0/snapshot/wat_mda_step_wat_c2.txt b/index/result/sqlserver_15.0/snapshot/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..bb1062a3 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/wat_mda_step_wat_c2.txt @@ -0,0 +1,43 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:47:819:404 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:47:863:228 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:47:919:426 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:47:994:22 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:10:48:19:491 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 15:10:48:295:239 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-2 15:10:51:554:132 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 15:10:51:610:89 + Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q6 failed at: 2022-4-2 15:10:52:207:90 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 15:10:52:350:757 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/index/result/sqlserver_15.0/snapshot/wat_sda_dirty_write_1abort.txt b/index/result/sqlserver_15.0/snapshot/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..80c59d67 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:16:775:581 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:16:819:504 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:16:875:500 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 15:10:17:17:5 +Q5 finished at: 2022-4-2 15:10:17:17:409 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:10:17:127:707 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 15:10:17:167:283 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 15:10:17:206:932 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:10:17:251:280 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/sqlserver_15.0/snapshot/wat_sda_dirty_write_2commit.txt b/index/result/sqlserver_15.0/snapshot/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..fa49b5aa --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,30 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:17:632:221 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:17:676:406 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:17:732:399 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 15:10:17:882:260 + Q4 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q4 failed at: 2022-4-2 15:10:18:279:187 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/index/result/sqlserver_15.0/snapshot/wat_sda_full_write.txt b/index/result/sqlserver_15.0/snapshot/wat_sda_full_write.txt new file mode 100644 index 00000000..1ae0a561 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/wat_sda_full_write.txt @@ -0,0 +1,32 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:18:666:204 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:18:710:218 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:18:766:310 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 15:10:18:908:618 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 15:10:18:958:521 + Q4 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q4 failed at: 2022-4-2 15:10:19:355:510 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/index/result/sqlserver_15.0/snapshot/wat_sda_full_write_committed.txt b/index/result/sqlserver_15.0/snapshot/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..d82e312a --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/wat_sda_full_write_committed.txt @@ -0,0 +1,32 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:19:753:984 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:19:798:250 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:19:853:845 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 15:10:19:997:516 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:20:53:361 + Q4 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q4 failed at: 2022-4-2 15:10:20:450:355 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/index/result/sqlserver_15.0/snapshot/wat_sda_lost_self_update_committed.txt b/index/result/sqlserver_15.0/snapshot/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..63b87de3 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:23:425:74 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:23:469:126 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:23:526:379 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 15:10:23:670:640 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:23:726:104 + Q4 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q4 failed at: 2022-4-2 15:10:24:123:79 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/index/result/sqlserver_15.0/snapshot/wat_sda_lost_update_c1.txt b/index/result/sqlserver_15.0/snapshot/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..2b7fbe4b --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:20:855:508 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 15:10:20:899:548 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:20:955:445 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 15:10:21:31:202 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:10:21:206:775 +Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q5 failed at: 2022-4-2 15:10:21:710:728 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/index/result/sqlserver_15.0/snapshot/wat_sda_lost_update_c2.txt b/index/result/sqlserver_15.0/snapshot/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..2b2cc732 --- /dev/null +++ b/index/result/sqlserver_15.0/snapshot/wat_sda_lost_update_c2.txt @@ -0,0 +1,39 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:22:142:650 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 15:10:22:186:656 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:22:242:621 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 15:10:22:281:747 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:10:22:490:902 +Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q5 failed at: 2022-4-2 15:10:22:994:953 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/index/result/tdsql_2.0.1/read-committed/iat_dda_read_skew_committed.txt b/index/result/tdsql_2.0.1/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..a6dae861 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:41:152:179 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:53:41:232:579 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:41:656:401 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:53:41:734:365 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:53:41:812:339 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:53:41:889:807 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 10:53:42:156:447 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:53:42:237:361 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:53:42:317:916 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:53:42:399:700 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/read-committed/iat_dda_read_write_skew1_committed.txt b/index/result/tdsql_2.0.1/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..3a9e175c --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:43:902:125 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:53:43:980:529 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:44:398:972 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:53:44:477:656 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:53:44:579:205 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:53:44:656:717 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 10:53:44:899:795 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:53:44:977:207 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:53:45:57:870 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:53:45:137:333 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/read-committed/iat_dda_write_skew.txt b/index/result/tdsql_2.0.1/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..eee9dfc2 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:46:684:513 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:53:46:762:288 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:47:189:214 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:53:47:267:978 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:53:47:345:749 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 10:53:47:685:434 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:53:47:762:832 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:53:48:185:364 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:53:48:265:806 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:53:48:348:844 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/read-committed/iat_dda_write_skew_committed.txt b/index/result/tdsql_2.0.1/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..485ed0ca --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:49:867:203 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:53:49:945:565 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:50:367:36 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:53:50:445:627 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:53:50:532:102 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:53:50:609:549 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 10:53:50:867:541 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:53:50:945:361 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:53:51:26:61 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:53:51:106:782 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/read-committed/iat_dda_write_skew_pred_insert.txt b/index/result/tdsql_2.0.1/read-committed/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..524e1ec6 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:1:692:127 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:54:1:770:701 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:2:268:408 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-23 10:54:2:346:423 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-23 10:54:2:424:327 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-23 10:54:2:769:276 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:54:2:846:409 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:54:3:268:860 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-23 10:54:3:349:415 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:54:3:428:668 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/read-committed/iat_mda_step_iat.txt b/index/result/tdsql_2.0.1/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..8dbee85d --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:52:740:84 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-23 10:53:52:818:473 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:53:239:4 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 10:53:53:317:872 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-5-23 10:53:53:745:784 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-23 10:53:53:827:501 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-23 10:53:54:245:26 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-23 10:53:54:740:724 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-23 10:53:55:241:977 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-23 10:53:55:740:347 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-23 10:53:56:239:532 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-23 10:53:56:747:389 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-23 10:53:56:826:151 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-23 10:53:56:902:855 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/read-committed/iat_sda_lost_update_committed.txt b/index/result/tdsql_2.0.1/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..75482b25 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:38:375:296 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 10:53:38:504:822 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:38:856:520 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-23 10:53:38:934:370 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:53:39:38:593 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-5-23 10:53:39:360:492 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:53:39:491:337 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:53:39:572:78 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:53:39:651:431 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/read-committed/iat_sda_non_repeatable_read_committed.txt b/index/result/tdsql_2.0.1/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..93b9a1ee --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,58 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:35:696:144 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:53:35:774:352 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:36:119:934 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-23 10:53:36:198:952 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:53:36:276:347 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 10:53:36:700:715 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:53:36:777:549 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:53:36:858:204 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:53:36:937:708 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/read-committed/rat_dda_double_write_skew1.txt b/index/result/tdsql_2.0.1/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..eed2272c --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:33:11:395 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:33:89:488 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:33:511:280 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:52:33:589:235 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:52:33:667:234 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 10:52:34:515:864 + Q7 finished at: 2022-5-23 10:52:34:516:686 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:52:35:12:149 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-23 10:52:35:96:13 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:52:35:177:991 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/read-committed/rat_dda_double_write_skew1_committed.txt b/index/result/tdsql_2.0.1/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..db328ff9 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:36:729:103 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:36:806:967 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:37:232:967 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:52:37:311:18 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:52:37:388:901 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:52:37:466:880 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-5-23 10:52:37:730:296 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:52:37:809:251 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-23 10:52:37:889:620 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:52:37:968:472 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/read-committed/rat_dda_double_write_skew2.txt b/index/result/tdsql_2.0.1/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..a006c414 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:39:530:357 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:39:608:220 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:40:29:541 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:52:40:111:486 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 10:52:40:530:364 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:52:40:611:768 + Q5 finished at: 2022-5-23 10:52:40:612:949 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:52:41:30:83 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:52:41:110:831 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:52:41:189:674 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/read-committed/rat_dda_read_skew.txt b/index/result/tdsql_2.0.1/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..23424713 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:42:727:242 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:52:42:804:981 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:43:227:17 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:52:43:304:859 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:52:43:382:655 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 10:52:43:728:42 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:52:44:237:623 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:52:44:731:831 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:52:44:812:77 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:52:44:890:919 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/read-committed/rat_dda_read_skew2.txt b/index/result/tdsql_2.0.1/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..305ff0ff --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:46:458:119 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:46:536:359 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:46:883:807 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:52:46:963:944 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:52:47:41:927 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 10:52:47:446:449 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:52:47:523:958 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:52:47:883:773 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:52:47:964:393 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:52:48:43:604 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/read-committed/rat_dda_read_skew2_committed.txt b/index/result/tdsql_2.0.1/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..d08d1147 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:49:600:104 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:49:683:178 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:50:100:584 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:52:50:178:477 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:52:50:256:300 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:52:50:333:592 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 10:52:50:609:750 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:52:50:687:250 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:52:50:767:672 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:52:50:846:514 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/read-committed/rat_dda_write_read_skew.txt b/index/result/tdsql_2.0.1/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..d5313973 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:26:616:988 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:26:695:185 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:27:117:56 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:52:27:195:179 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:52:27:275:296 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 10:52:27:628:156 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:52:28:117:588 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:52:28:617:778 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:52:28:700:142 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:52:28:779:79 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/read-committed/rat_dda_write_read_skew_committed.txt b/index/result/tdsql_2.0.1/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..3bccbfe5 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:30:271:420 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:30:349:36 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:30:771:322 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:52:30:849:376 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:52:30:927:513 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:52:31:5:267 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 10:52:31:272:318 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:52:31:349:460 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:52:31:429:885 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:52:31:516:90 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/read-committed/rat_mda_step_rat.txt b/index/result/tdsql_2.0.1/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..51390655 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:52:488:778 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:52:569:346 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:52:919:73 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:52:52:997:171 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:52:53:75:602 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 10:52:53:421:133 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-23 10:52:53:504:337 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-23 10:52:53:584:996 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-23 10:52:53:921:55 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-23 10:52:53:998:380 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-23 10:52:54:420:339 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-23 10:52:54:926:388 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-23 10:52:55:87:587 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-23 10:52:55:164:129 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/read-committed/rat_sda_dirty_read.txt b/index/result/tdsql_2.0.1/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..c4113bce --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:10:319:939 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:10:439:69 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:10:819:725 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 10:52:10:979:70 +Q5-T1 execute opt: 'ROLLBACK;' +Q5 finished at: 2022-5-23 10:52:11:320:100 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:52:11:820:124 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-23 10:52:11:986:985 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:52:12:66:96 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/read-committed/rat_sda_intermediate_read.txt b/index/result/tdsql_2.0.1/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..055dd270 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:17:115:593 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:17:193:359 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:17:617:54 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 10:52:17:698:680 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-23 10:52:18:116:708 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:52:18:620:661 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:52:19:117:417 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 10:52:19:197:719 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:52:19:276:564 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/read-committed/rat_sda_intermediate_read_committed.txt b/index/result/tdsql_2.0.1/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..b633e570 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:20:745:853 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:20:823:678 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:21:244:985 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 10:52:21:323:475 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:52:21:400:613 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-23 10:52:21:745:431 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:52:21:822:746 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 10:52:21:903:95 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:52:21:984:384 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/read-committed/rat_sda_lost_self_update.txt b/index/result/tdsql_2.0.1/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..0ea438a8 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:23:455:965 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:23:533:896 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:23:899:377 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 10:52:24:459:271 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 10:52:24:536:520 + Q4 finished at: 2022-5-23 10:52:24:537:699 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:52:24:900:502 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:52:24:982:281 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:52:25:61:244 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/read-committed/rat_sda_non_repeatable_read.txt b/index/result/tdsql_2.0.1/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..5968e9f1 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:13:520:629 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:52:13:602:249 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:14:17:84 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-23 10:52:14:96:7 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 10:52:14:517:542 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:52:15:17:839 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:52:15:517:48 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:52:15:597:152 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:52:15:676:323 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/read-committed/rat_sda_non_repeatable_read_pred_insert.txt b/index/result/tdsql_2.0.1/read-committed/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..dea924e5 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:58:164:450 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:53:58:244:366 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:58:744:11 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-23 10:53:58:822:22 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 10:53:59:244:861 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:53:59:741:337 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:54:0:240:726 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:54:0:321:121 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:54:0:401:983 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/read-committed/wat_dda_double_write_skew2_committed.txt b/index/result/tdsql_2.0.1/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..291c1678 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:11:724:395 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:53:11:805:753 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:12:224:865 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:53:12:304:411 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 10:53:12:725:643 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:53:12:803:278 + Q5 finished at: 2022-5-23 10:53:12:804:595 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:53:12:881:961 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:53:12:962:985 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:53:13:43:785 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/read-committed/wat_dda_full_write_skew_c1.txt b/index/result/tdsql_2.0.1/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..361f68ed --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:14:574:154 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:53:14:653:886 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:15:75:795 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:53:15:153:728 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:53:15:577:80 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:53:16:82:81 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-2a-628af71a-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-5-23 10:53:16:176:845 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-2a-628af71a-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/read-committed/wat_dda_full_write_skew_committed.txt b/index/result/tdsql_2.0.1/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..a58ae7c0 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:18:143:938 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:53:18:221:924 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:18:566:912 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:53:18:644:983 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:53:19:145:402 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:53:19:222:860 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-2d-628af71e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-5-23 10:53:19:844:845 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-2d-628af71e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/read-committed/wat_dda_read_write_skew1_c1.txt b/index/result/tdsql_2.0.1/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..8a8491db --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:21:869:977 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:53:21:948:113 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:22:293:888 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:53:22:372:118 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:53:22:449:974 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 10:53:23:369:983 +Q7-T1 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:53:23:370:889 +Q7 finished at: 2022-5-23 10:53:23:503:573 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:53:23:584:52 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:53:23:663:245 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/read-committed/wat_dda_read_write_skew2_c1.txt b/index/result/tdsql_2.0.1/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..44905049 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:25:175:426 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:53:25:258:315 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:25:675:923 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:53:25:753:869 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 10:53:26:176:440 +Q7-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:53:26:255:177 +Q7 finished at: 2022-5-23 10:53:26:256:733 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:53:26:676:327 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:53:26:757:17 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:53:26:837:113 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/read-committed/wat_dda_read_write_skew2_committed.txt b/index/result/tdsql_2.0.1/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..f916a61e --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:28:331:348 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:53:28:448:595 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:28:831:657 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:53:28:910:557 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 10:53:29:335:232 +Q8-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:53:29:430:917 + Q6-T2 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:53:29:465:680 + Q6 finished at: 2022-5-23 10:53:29:508:626 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:53:29:589:208 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:53:29:668:577 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/read-committed/wat_mda_step_wat_c1.txt b/index/result/tdsql_2.0.1/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..4311bb10 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:31:246:907 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:53:31:324:757 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:31:743:780 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:53:31:822:11 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 10:53:32:244:314 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-23 10:53:32:325:122 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-5-23 10:53:32:745:163 + Q11-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:53:33:248:9 + Q11 finished at: 2022-5-23 10:53:33:248:135 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-36-628af72b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-5-23 10:53:33:644:20 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-36-628af72b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/read-committed/wat_sda_dirty_write_2commit.txt b/index/result/tdsql_2.0.1/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..5a48d44d --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:56:633:312 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:56:711:173 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:57:133:751 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-23 10:52:57:631:43 + Q4 finished at: 2022-5-23 10:52:57:633:767 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:52:58:134:300 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-5-23 10:52:58:214:410 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-5-23 10:52:58:315:674 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:52:58:397:299 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/read-committed/wat_sda_full_write.txt b/index/result/tdsql_2.0.1/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..07ef1c47 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:59:825:873 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:59:904:11 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:0:327:349 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-23 10:53:0:826:226 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 10:53:0:903:583 + Q4 finished at: 2022-5-23 10:53:0:904:714 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:53:1:326:298 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-23 10:53:1:406:492 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:53:1:485:647 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/read-committed/wat_sda_full_write_committed.txt b/index/result/tdsql_2.0.1/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..181f0009 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:2:902:332 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:53:2:980:108 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:3:402:435 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-23 10:53:3:903:866 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:53:3:981:199 + Q4 finished at: 2022-5-23 10:53:3:982:246 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:53:4:59:513 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-23 10:53:4:140:259 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:53:4:219:565 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/read-committed/wat_sda_lost_self_update_committed.txt b/index/result/tdsql_2.0.1/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..83551c09 --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:8:862:36 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:53:8:939:803 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:9:364:992 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 10:53:9:865:29 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:53:9:942:315 + Q4 finished at: 2022-5-23 10:53:9:943:463 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:53:10:21:5 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:53:10:111:884 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:53:10:191:867 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/read-committed/wat_sda_lost_update_c1.txt b/index/result/tdsql_2.0.1/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..853c4c5e --- /dev/null +++ b/index/result/tdsql_2.0.1/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:5:693:513 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 10:53:5:771:651 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:6:193:572 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-23 10:53:6:271:819 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-23 10:53:7:195:647 +Q6-T1 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:53:7:196:525 +Q6 finished at: 2022-5-23 10:53:7:273:230 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:53:7:360:254 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:53:7:444:806 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/repeatable-read/iat_dda_read_skew_committed.txt b/index/result/tdsql_2.0.1/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..d5b7c617 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:39:991:445 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:55:40:68:660 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:40:497:955 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:55:40:580:871 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:55:40:662:333 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:55:40:742:536 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 10:55:40:996:987 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:55:41:73:138 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:55:41:154:925 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:55:41:236:39 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/repeatable-read/iat_dda_read_write_skew1_committed.txt b/index/result/tdsql_2.0.1/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..328669c8 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:42:761:39 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:55:42:838:240 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:43:231:518 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:55:43:312:364 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:55:43:392:855 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:55:43:472:902 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 10:55:43:772:359 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:55:43:850:519 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:55:43:935:761 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:55:44:20:63 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/repeatable-read/iat_dda_write_skew.txt b/index/result/tdsql_2.0.1/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..d999de29 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:45:521:897 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:55:45:598:627 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:46:26:703 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:55:46:107:495 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:55:46:188:455 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 10:55:46:522:389 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:55:46:599:9 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:55:47:25:497 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:55:47:107:221 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:55:47:187:693 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/repeatable-read/iat_dda_write_skew_committed.txt b/index/result/tdsql_2.0.1/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..7738e2ed --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:48:722:143 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:55:48:799:141 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:49:179:981 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:55:49:269:398 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:55:49:349:823 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:55:49:431:367 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 10:55:49:728:947 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:55:49:805:762 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:55:49:887:688 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:55:49:967:875 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/repeatable-read/iat_dda_write_skew_pred_insert.txt b/index/result/tdsql_2.0.1/repeatable-read/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..83623b7f --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:0:480:505 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:56:0:558:860 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:1:59:361 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-23 10:56:1:140:277 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-23 10:56:1:220:817 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-23 10:56:1:556:566 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:56:1:633:86 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:56:2:60:632 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-23 10:56:2:142:332 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:56:2:223:811 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/repeatable-read/iat_mda_step_iat.txt b/index/result/tdsql_2.0.1/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..053edad3 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:51:540:727 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-23 10:55:51:617:955 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:52:46:483 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 10:55:52:127:958 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-5-23 10:55:52:544:939 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-23 10:55:52:627:556 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-23 10:55:53:44:754 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-23 10:55:53:547:14 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-23 10:55:54:47:702 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-23 10:55:54:543:476 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-23 10:55:55:45:445 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-23 10:55:55:545:749 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-23 10:55:55:634:918 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-23 10:55:55:712:805 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/repeatable-read/iat_sda_lost_update_committed.txt b/index/result/tdsql_2.0.1/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..cf671e62 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:37:220:241 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 10:55:37:297:419 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:37:720:257 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-23 10:55:37:801:343 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:55:37:881:522 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-5-23 10:55:38:218:776 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:55:38:295:153 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:55:38:376:922 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:55:38:457:237 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/index/result/tdsql_2.0.1/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..e509a3bc --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:34:530:617 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:55:34:607:700 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:34:955:330 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-23 10:55:35:36:561 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:55:35:116:822 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 10:55:35:536:385 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:55:35:612:407 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:55:35:723:609 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:55:35:804:309 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/repeatable-read/rat_dda_double_write_skew1.txt b/index/result/tdsql_2.0.1/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..e6efeb30 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:31:909:819 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:31:986:581 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:32:413:807 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:54:32:494:703 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:54:32:575:547 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 10:54:33:414:872 + Q7 finished at: 2022-5-23 10:54:33:414:972 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:54:33:919:728 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-23 10:54:34:1:305 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:54:34:81:412 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/repeatable-read/rat_dda_double_write_skew1_committed.txt b/index/result/tdsql_2.0.1/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..b93e4462 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:35:593:354 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:35:720:581 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:36:98:759 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:54:36:179:897 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:54:36:265:429 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:54:36:345:811 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-5-23 10:54:36:593:581 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:54:36:716:399 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-23 10:54:36:799:741 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:54:36:880:109 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/repeatable-read/rat_dda_double_write_skew2.txt b/index/result/tdsql_2.0.1/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..e2c3d24f --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:38:376:892 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:38:453:853 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:38:882:933 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:54:38:964:490 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 10:54:39:377:799 +Q7-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:54:39:454:268 +Q7 finished at: 2022-5-23 10:54:39:454:466 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:54:39:907:321 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:54:39:989:187 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:54:40:69:550 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/repeatable-read/rat_dda_read_skew.txt b/index/result/tdsql_2.0.1/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..cfbf65f5 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:41:569:150 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:54:41:647:200 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:42:85:371 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:54:42:166:346 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:54:42:246:941 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 10:54:42:569:894 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:54:43:72:843 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:54:43:569:165 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:54:43:655:626 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:54:43:758:345 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/repeatable-read/rat_dda_read_skew2.txt b/index/result/tdsql_2.0.1/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..b0b363fe --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:45:252:942 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:45:330:140 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:45:756:383 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:54:45:837:699 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:54:45:918:451 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 10:54:46:253:701 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:54:46:330:707 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:54:46:756:735 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:54:46:841:126 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:54:46:921:202 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/repeatable-read/rat_dda_read_skew2_committed.txt b/index/result/tdsql_2.0.1/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..618b9a53 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:48:421:12 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:48:497:761 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:48:913:359 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:54:48:994:552 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:54:49:75:145 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:54:49:155:225 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 10:54:49:409:843 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:54:49:486:543 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:54:49:568:122 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:54:49:650:272 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/repeatable-read/rat_dda_write_read_skew.txt b/index/result/tdsql_2.0.1/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..498ecaa2 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:25:431:56 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:25:510:96 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:25:935:203 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:54:26:16:619 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:54:26:97:273 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 10:54:26:435:501 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:54:26:948:552 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:54:27:431:829 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:54:27:514:196 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:54:27:595:777 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/repeatable-read/rat_dda_write_read_skew_committed.txt b/index/result/tdsql_2.0.1/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..c1df7959 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:29:108:967 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:29:185:788 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:29:610:971 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:54:29:696:317 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:54:29:777:753 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:54:29:861:530 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 10:54:30:124:742 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:54:30:201:469 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:54:30:283:357 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:54:30:363:542 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/repeatable-read/rat_mda_step_rat.txt b/index/result/tdsql_2.0.1/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..d8038e18 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:51:264:432 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:51:341:966 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:51:768:258 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:54:51:849:415 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:54:51:950:100 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 10:54:52:267:929 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-23 10:54:52:349:596 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-23 10:54:52:431:397 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-23 10:54:52:767:947 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-23 10:54:52:844:601 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-23 10:54:53:267:722 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-23 10:54:53:768:498 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-23 10:54:53:926:744 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-23 10:54:54:5:705 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/repeatable-read/rat_sda_dirty_read.txt b/index/result/tdsql_2.0.1/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..9f67bc77 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:9:166:943 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:9:244:162 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:9:670:602 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 10:54:9:833:648 +Q5-T1 execute opt: 'ROLLBACK;' +Q5 finished at: 2022-5-23 10:54:10:167:216 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:54:10:671:508 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-23 10:54:10:838:615 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:54:10:919:266 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/repeatable-read/rat_sda_intermediate_read.txt b/index/result/tdsql_2.0.1/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..34d77a59 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:15:948:716 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:16:26:271 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:16:456:549 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 10:54:16:537:762 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-23 10:54:16:949:800 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:54:17:454:895 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:54:17:949:587 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 10:54:18:31:205 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:54:18:113:760 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/repeatable-read/rat_sda_intermediate_read_committed.txt b/index/result/tdsql_2.0.1/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..21ffbf48 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:19:549:134 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:19:626:350 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:20:42:798 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 10:54:20:127:604 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:54:20:207:580 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-23 10:54:20:542:321 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:54:20:623:80 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 10:54:20:757:727 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:54:20:838:75 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/repeatable-read/rat_sda_lost_self_update.txt b/index/result/tdsql_2.0.1/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..cc59b1c0 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:22:259:493 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:22:344:621 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:22:762:709 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 10:54:23:260:381 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 10:54:23:338:751 + Q4 finished at: 2022-5-23 10:54:23:338:861 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:54:23:763:738 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:54:23:845:321 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:54:23:925:543 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/repeatable-read/rat_sda_non_repeatable_read.txt b/index/result/tdsql_2.0.1/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..f7f70989 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:12:343:31 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:54:12:425:259 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:12:846:783 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-23 10:54:12:929:896 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 10:54:13:344:894 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:54:13:852:291 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:54:14:343:374 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:54:14:424:988 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:54:14:505:182 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt b/index/result/tdsql_2.0.1/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..6c144989 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:56:974:333 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:55:57:64:280 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:57:553:716 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-23 10:55:57:634:428 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 10:55:58:51:959 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:55:58:554:288 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:55:59:55:740 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:55:59:137:368 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:55:59:218:251 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/repeatable-read/wat_dda_double_write_skew2_committed.txt b/index/result/tdsql_2.0.1/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..847e1d8c --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:10:535:752 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:55:10:612:542 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:11:34:982 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:55:11:116:417 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 10:55:11:532:493 +Q8-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:55:11:608:542 +Q8 finished at: 2022-5-23 10:55:11:608:872 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:55:11:688:803 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:55:11:780:5 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:55:11:861:11 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/repeatable-read/wat_dda_full_write_skew_c1.txt b/index/result/tdsql_2.0.1/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..661f6bd9 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:13:356:5 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:55:13:432:805 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:13:858:915 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:55:13:940:79 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:55:14:356:0 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:55:14:863:795 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-34-43-628af791-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-5-23 10:55:14:956:850 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-34-43-628af791-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/repeatable-read/wat_dda_full_write_skew_committed.txt b/index/result/tdsql_2.0.1/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..47e7cd51 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:16:993:117 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:55:17:71:556 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:17:431:879 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:55:17:512:854 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:55:17:994:423 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:55:18:76:447 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-34-46-628af795-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-5-23 10:55:18:695:524 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-34-46-628af795-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/repeatable-read/wat_dda_read_write_skew1_c1.txt b/index/result/tdsql_2.0.1/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..7ae22dab --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:20:734:558 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:55:20:811:881 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:21:103:714 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:55:21:184:686 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:55:21:265:325 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 10:55:22:183:904 + Q8 finished at: 2022-5-23 10:55:22:184:244 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:55:22:260:755 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:55:22:342:750 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:55:22:423:474 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/repeatable-read/wat_dda_read_write_skew2_c1.txt b/index/result/tdsql_2.0.1/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..3da013c1 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:23:973:288 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:55:24:54:340 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:24:476:691 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:55:24:560:294 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 10:55:24:973:460 +Q7-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:55:25:49:897 +Q7 finished at: 2022-5-23 10:55:25:50:163 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:55:25:480:252 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:55:25:561:905 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:55:25:642:188 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/repeatable-read/wat_dda_read_write_skew2_committed.txt b/index/result/tdsql_2.0.1/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..027e95db --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:27:182:535 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:55:27:259:588 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:27:685:832 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:55:27:766:644 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 10:55:28:185:173 +Q8-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:55:28:262:343 +Q8 finished at: 2022-5-23 10:55:28:262:830 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:55:28:343:29 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:55:28:437:282 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:55:28:517:814 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/repeatable-read/wat_mda_step_wat_c1.txt b/index/result/tdsql_2.0.1/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..6daaf051 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:30:102:867 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:55:30:193:350 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:30:606:48 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:55:30:687:96 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 10:55:31:106:639 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-23 10:55:31:188:509 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-5-23 10:55:31:603:727 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-23 10:55:32:106:599 + Q8 finished at: 2022-5-23 10:55:32:108:370 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-34-4f-628af7a2-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-5-23 10:55:32:504:531 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-34-4f-628af7a2-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/repeatable-read/wat_sda_dirty_write_2commit.txt b/index/result/tdsql_2.0.1/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..be27aa38 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:55:420:957 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:55:497:988 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:55:928:860 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-23 10:54:56:420:996 +Q5 finished at: 2022-5-23 10:54:56:421:135 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:54:56:925:85 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-5-23 10:54:57:13:79 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-5-23 10:54:57:115:952 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:54:57:196:424 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/repeatable-read/wat_sda_full_write.txt b/index/result/tdsql_2.0.1/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..c31b1538 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:58:636:710 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:58:768:899 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:59:121:555 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-23 10:54:59:617:897 +Q6-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-23 10:54:59:771:35 +Q6 finished at: 2022-5-23 10:54:59:771:998 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:55:0:120:881 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-23 10:55:0:203:405 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:55:0:283:835 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/repeatable-read/wat_sda_full_write_committed.txt b/index/result/tdsql_2.0.1/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..0eae7713 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:1:758:610 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:55:1:836:27 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:2:208:313 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-23 10:55:2:729:435 +Q7-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-23 10:55:2:805:420 +Q7 finished at: 2022-5-23 10:55:2:805:677 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:55:2:886:80 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-23 10:55:2:968:932 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:55:3:62:10 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/repeatable-read/wat_sda_lost_self_update_committed.txt b/index/result/tdsql_2.0.1/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..5f1b08d8 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:7:650:188 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:55:7:770:138 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:8:156:62 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 10:55:8:721:441 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:55:8:798:84 + Q4 finished at: 2022-5-23 10:55:8:798:255 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:55:8:878:805 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:55:8:960:338 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:55:9:40:806 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/repeatable-read/wat_sda_lost_update_c1.txt b/index/result/tdsql_2.0.1/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..a90d3408 --- /dev/null +++ b/index/result/tdsql_2.0.1/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:4:496:699 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 10:55:4:573:862 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:4:996:622 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-23 10:55:5:80:458 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:55:5:997:440 +Q5 finished at: 2022-5-23 10:55:5:997:997 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 10:55:6:75:37 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:55:6:156:840 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:55:6:237:454 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tdsql_2.0.1/result_summary/read-committed_total-result.txt b/index/result/tdsql_2.0.1/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..74353e44 --- /dev/null +++ b/index/result/tdsql_2.0.1/result_summary/read-committed_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/index/result/tdsql_2.0.1/result_summary/repeatable-read_total-result.txt b/index/result/tdsql_2.0.1/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..23612b46 --- /dev/null +++ b/index/result/tdsql_2.0.1/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/index/result/tdsql_2.0.1/result_summary/serializable_total-result.txt b/index/result/tdsql_2.0.1/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..7b3773f2 --- /dev/null +++ b/index/result/tdsql_2.0.1/result_summary/serializable_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Rollback + +rat_dda_read_skew2: Rollback + +rat_dda_read_skew2_committed: Rollback + +rat_mda_step_rat: Rollback + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Rollback + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Rollback + diff --git a/index/result/tdsql_2.0.1/serializable/iat_dda_read_skew_committed.txt b/index/result/tdsql_2.0.1/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..5bbdb8e4 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:47:518:93 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:57:47:599:43 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:47:938:594 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:57:48:21:949 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:57:48:521:847 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:57:48:603:341 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-4e-628af82b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-5-23 10:57:49:219:422 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-4e-628af82b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/iat_dda_read_write_skew1_committed.txt b/index/result/tdsql_2.0.1/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..3236d5af --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:51:249:10 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:57:51:330:172 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:51:671:570 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:57:51:753:982 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:57:52:256:297 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:57:52:340:311 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-51-628af82f-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-5-23 10:57:52:950:255 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-51-628af82f-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/iat_dda_write_skew.txt b/index/result/tdsql_2.0.1/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..aa57d81a --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/iat_dda_write_skew.txt @@ -0,0 +1,49 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:55:24:555 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:57:55:106:128 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:55:445:311 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:57:55:532:814 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:57:56:27:965 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:57:56:530:482 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-54-628af833-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-5-23 10:57:56:626:163 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-54-628af833-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/iat_dda_write_skew_committed.txt b/index/result/tdsql_2.0.1/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..7f8ffb47 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,49 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:58:633:253 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:57:58:781:611 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:59:54:50 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:57:59:143:920 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:57:59:637:58 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:57:59:718:590 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-57-628af836-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-5-23 10:58:0:335:197 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-57-628af836-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/iat_dda_write_skew_pred_insert.txt b/index/result/tdsql_2.0.1/serializable/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..b644cf8d --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,47 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:58:31:89:504 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:58:31:171:302 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:58:31:670:233 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-23 10:58:31:752:350 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + Q5 finished at: 2022-5-23 10:58:32:173:553 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:58:32:671:197 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-60-628af857-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-5-23 10:58:32:786:427 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-60-628af857-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/iat_mda_step_iat.txt b/index/result/tdsql_2.0.1/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..e3a55422 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/iat_mda_step_iat.txt @@ -0,0 +1,86 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:58:2:437:465 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-23 10:58:2:519:903 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:58:2:858:8 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 10:58:2:940:234 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-5-23 10:58:3:364:579 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-23 10:58:3:441:580 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 finished at: 2022-5-23 10:58:4:939:557 + Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-c3-628af83b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q9 failed at: 2022-5-23 10:58:5:836:489 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]set_1653273267_1:Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q7 failed at: 2022-5-23 10:58:25:639:966 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-c3-628af83b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/iat_sda_lost_update_committed.txt b/index/result/tdsql_2.0.1/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..ea18cdd5 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:44:122:826 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 10:57:44:204:138 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:44:623:564 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-5-23 10:57:45:126:182 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:57:45:211:211 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-b3-628af828-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q4 failed at: 2022-5-23 10:57:45:528:506 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-b3-628af828-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/iat_sda_non_repeatable_read_committed.txt b/index/result/tdsql_2.0.1/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..c5458c93 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:41:256:614 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:57:41:338:993 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:41:677:221 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 10:57:42:270:660 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:57:42:351:75 + Q4 finished at: 2022-5-23 10:57:42:353:212 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:57:42:492:35 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:57:42:568:881 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:57:42:644:475 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/serializable/rat_dda_double_write_skew1.txt b/index/result/tdsql_2.0.1/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..029234e0 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:32:527:138 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:32:608:246 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:32:946:718 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:56:33:29:972 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:56:33:541:294 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:56:34:27:759 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-12-628af7e0-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-5-23 10:56:34:139:331 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-12-628af7e0-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/rat_dda_double_write_skew1_committed.txt b/index/result/tdsql_2.0.1/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..b17962fa --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:36:474:482 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:36:555:481 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:36:895:185 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:56:36:977:396 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:56:37:483:262 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:56:37:564:861 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-15-628af7e4-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-5-23 10:56:38:176:299 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-15-628af7e4-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/rat_dda_double_write_skew2.txt b/index/result/tdsql_2.0.1/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..18ef247c --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:40:213:331 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:40:299:108 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:40:633:712 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:56:40:715:929 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:56:41:216:502 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:56:41:716:85 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-18-628af7e8-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-5-23 10:56:41:814:875 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-18-628af7e8-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/rat_dda_read_skew.txt b/index/result/tdsql_2.0.1/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..fa68e179 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/rat_dda_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:43:865:698 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:56:43:947:307 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:44:286:543 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:56:44:368:633 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:56:44:867:36 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:56:45:365:71 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-1b-628af7eb-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-5-23 10:56:45:465:222 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-1b-628af7eb-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/rat_dda_read_skew2.txt b/index/result/tdsql_2.0.1/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..ad24bdba --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:47:825:200 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:47:906:157 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:48:245:789 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:56:48:329:623 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 10:56:48:826:604 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:56:48:907:204 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-85-628af7f0-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-5-23 10:56:49:328:940 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-85-628af7f0-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/rat_dda_read_skew2_committed.txt b/index/result/tdsql_2.0.1/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..08b1bf27 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:51:354:523 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:51:436:174 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:51:774:929 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:56:51:858:389 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 10:56:52:355:602 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:56:52:437:619 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-87-628af7f3-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-5-23 10:56:52:858:139 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-87-628af7f3-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/rat_dda_write_read_skew.txt b/index/result/tdsql_2.0.1/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..39c73e4d --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:24:811:829 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:24:893:204 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:25:311:772 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:56:25:394:41 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:56:25:814:835 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:56:26:314:634 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-c-628af7d8-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-5-23 10:56:26:413:171 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-c-628af7d8-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/rat_dda_write_read_skew_committed.txt b/index/result/tdsql_2.0.1/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..6f22eb36 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:28:769:261 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:28:851:979 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:29:142:394 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:56:29:224:775 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:56:29:782:136 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:56:29:863:558 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-f-628af7dc-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-5-23 10:56:30:480:166 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-f-628af7dc-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/rat_mda_step_rat.txt b/index/result/tdsql_2.0.1/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..baa7ae5e --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/rat_mda_step_rat.txt @@ -0,0 +1,72 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:54:971:910 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:55:52:871 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:55:392:766 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:56:55:520:404 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 10:56:55:971:371 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-23 10:56:56:49:53 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:56:56:492:388 + Q11-T2 execute opt: 'COMMIT;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-5-23 10:56:56:973:177 + Q11 finished at: 2022-5-23 10:56:56:975:492 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-24-628af7f7-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-5-23 10:56:57:379:473 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-24-628af7f7-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/rat_sda_dirty_read.txt b/index/result/tdsql_2.0.1/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..722a45ad --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:8:130:174 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:8:220:399 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:8:631:32 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK;' +Q5 finished at: 2022-5-23 10:56:9:130:743 + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 10:56:9:132:979 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:56:9:631:873 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-23 10:56:9:815:832 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:56:9:891:730 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/serializable/rat_sda_intermediate_read.txt b/index/result/tdsql_2.0.1/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..182f4558 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:15:121:900 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:15:202:801 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:15:622:224 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-23 10:56:16:147:358 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:56:17:138:173 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 10:56:17:140:697 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:56:17:222:95 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 10:56:17:299:556 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:56:17:375:482 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/serializable/rat_sda_intermediate_read_committed.txt b/index/result/tdsql_2.0.1/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..8c97bf79 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:18:848:216 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:18:931:966 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:19:348:943 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-23 10:56:19:848:561 +Q7-T1 execute opt: 'COMMIT;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + +Q7 finished at: 2022-5-23 10:56:19:931:708 + Q4 finished at: 2022-5-23 10:56:19:931:814 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:56:20:12:824 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 10:56:20:89:411 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:56:20:166:386 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/serializable/rat_sda_lost_self_update.txt b/index/result/tdsql_2.0.1/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..bb4f4cf9 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:21:611:38 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:21:741:69 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:22:107:710 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 10:56:22:605:489 +Q6-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-23 10:56:22:688:272 +Q6 finished at: 2022-5-23 10:56:22:729:289 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:56:23:107:450 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:56:23:183:968 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:56:23:260:959 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/serializable/rat_sda_non_repeatable_read.txt b/index/result/tdsql_2.0.1/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..bbaad2e5 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:11:340:336 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:56:11:422:896 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:11:837:239 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 10:56:12:338:861 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:56:13:336:641 + Q4 finished at: 2022-5-23 10:56:13:338:884 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:56:13:488:810 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:56:13:565:438 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:56:13:641:40 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/serializable/rat_sda_non_repeatable_read_pred_insert.txt b/index/result/tdsql_2.0.1/serializable/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..23fb9a4c --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:58:27:435:455 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:58:27:519:126 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:58:27:935:599 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 10:58:28:526:447 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:58:29:517:852 + Q4 finished at: 2022-5-23 10:58:29:519:957 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:58:29:601:496 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:58:29:731:930 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:58:29:807:730 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/serializable/wat_dda_double_write_skew2_committed.txt b/index/result/tdsql_2.0.1/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..71abec16 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:14:733:97 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:57:14:819:384 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:15:202:565 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:57:15:284:835 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:57:15:705:820 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:57:15:787:169 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-33-628af80a-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-5-23 10:57:16:431:743 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-33-628af80a-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/wat_dda_full_write_skew_c1.txt b/index/result/tdsql_2.0.1/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..872f6a28 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:18:484:210 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:57:18:565:230 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:18:904:770 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:57:18:986:731 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:57:19:490:604 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:57:19:985:519 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-36-628af80e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-5-23 10:57:20:86:762 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-36-628af80e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/wat_dda_full_write_skew_committed.txt b/index/result/tdsql_2.0.1/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..c2c624f7 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:22:163:837 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:57:22:244:800 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:22:584:300 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:57:22:666:884 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:57:23:178:100 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:57:23:259:739 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-39-628af812-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-5-23 10:57:23:876:687 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-39-628af812-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/wat_dda_read_write_skew1_c1.txt b/index/result/tdsql_2.0.1/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..ce54f716 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:25:951:925 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:57:26:33:926 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:26:369:716 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:57:26:526:191 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:57:26:952:572 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:57:27:529:135 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-3c-628af815-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-5-23 10:57:27:550:848 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-3c-628af815-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/wat_dda_read_write_skew2_c1.txt b/index/result/tdsql_2.0.1/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..9b1b2816 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:29:552:919 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:57:29:634:12 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:29:973:764 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:57:30:56:305 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 10:57:30:554:801 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:57:30:635:133 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-a6-628af81a-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-5-23 10:57:31:57:249 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-a6-628af81a-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/wat_dda_read_write_skew2_committed.txt b/index/result/tdsql_2.0.1/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..3350d2e8 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:33:156:414 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:57:33:237:365 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:33:576:969 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:57:33:659:916 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 10:57:34:158:613 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:57:34:239:158 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-a9-628af81d-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-5-23 10:57:34:660:771 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-a9-628af81d-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/wat_mda_step_wat_c1.txt b/index/result/tdsql_2.0.1/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..1165c510 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:36:816:752 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:57:36:897:774 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:37:237:516 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:57:37:320:571 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 10:57:37:737:666 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-23 10:57:37:814:281 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-5-23 10:57:38:321:573 + Q11-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:57:38:816:459 + Q11 finished at: 2022-5-23 10:57:38:819:901 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-45-628af820-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-5-23 10:57:39:219:953 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-45-628af820-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tdsql_2.0.1/serializable/wat_sda_dirty_write_2commit.txt b/index/result/tdsql_2.0.1/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..f4c79c3e --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:59:395:62 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:59:476:150 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:59:814:643 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-23 10:57:0:394:739 + Q4 finished at: 2022-5-23 10:57:0:398:233 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:57:0:896:392 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-5-23 10:57:0:973:180 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-5-23 10:57:1:70:44 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:57:1:145:425 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/serializable/wat_sda_full_write.txt b/index/result/tdsql_2.0.1/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..80ffed24 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:2:581:820 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:57:2:664:768 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:3:82:802 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-23 10:57:3:582:649 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 10:57:3:663:254 + Q4 finished at: 2022-5-23 10:57:3:665:335 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:57:4:83:175 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-23 10:57:4:159:771 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:57:4:235:443 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/serializable/wat_sda_full_write_committed.txt b/index/result/tdsql_2.0.1/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..3d6d7e18 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:5:727:458 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:57:5:816:158 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:6:174:38 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-23 10:57:6:733:265 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:57:6:815:226 + Q4 finished at: 2022-5-23 10:57:6:816:200 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:57:6:897:633 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-23 10:57:6:978:932 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:57:7:54:873 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/serializable/wat_sda_lost_self_update_committed.txt b/index/result/tdsql_2.0.1/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..411e33f4 --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:11:857:6 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:57:11:941:968 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:12:277:95 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 10:57:12:857:275 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:57:12:937:891 + Q4 finished at: 2022-5-23 10:57:12:940:65 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:57:13:21:603 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:57:13:109:34 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:57:13:185:472 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tdsql_2.0.1/serializable/wat_sda_lost_update_c1.txt b/index/result/tdsql_2.0.1/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..d7a2fb1a --- /dev/null +++ b/index/result/tdsql_2.0.1/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:8:490:801 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 10:57:8:571:706 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:8:991:541 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-5-23 10:57:9:492:259 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 10:57:9:572:927 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-95-628af805-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q4 failed at: 2022-5-23 10:57:9:894:568 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-95-628af805-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/index/result/tidb_opt_4.0.5/read-committed/iat_dda_read_skew_committed.txt b/index/result/tidb_opt_4.0.5/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..03d8ec55 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:14:599:440 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:14:601:339 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:14:700:260 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:26:14:702:231 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:14:703:981 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:26:14:705:754 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:26:14:811:770 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:26:14:813:11 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:26:14:815:631 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:26:14:816:746 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_opt_4.0.5/read-committed/iat_dda_read_write_skew1_committed.txt b/index/result/tidb_opt_4.0.5/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..f91a52bb --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:15:60:303 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:15:64:659 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:15:160:235 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:26:15:162:165 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:15:164:119 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:26:15:165:615 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:26:15:264:519 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224383810928640, conflictStartTS=432224383837143040, conflictCommitTS=432224383838453760, key={tableID=2670, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:26:16:66:803 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224383810928640, conflictStartTS=432224383837143040, conflictCommitTS=432224383838453760, key={tableID=2670, handle=1} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew.txt b/index/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..c6a07684 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:16:313:314 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:16:315:258 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:16:415:564 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:26:16:417:679 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:16:419:640 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:26:16:514:462 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:26:16:516:136 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:26:16:613:796 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:26:16:616:585 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:26:16:617:699 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew_committed.txt b/index/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..76b2127c --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:17:788:658 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:17:790:394 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:17:888:615 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:26:17:890:280 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:17:891:932 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:26:17:893:404 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:26:17:989:123 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:26:17:990:488 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:26:17:992:670 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:26:17:993:667 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/index/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..ce0b370b --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:16:868:522 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 17:26:16:871:730 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 17:26:16:873:604 + Q4-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q4 finished at: 2022-4-1 17:26:16:968:300 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 17:26:16:971:212 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 17:26:16:972:886 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:26:16:974:159 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:26:17:68:856 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 17:26:17:72:28 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 17:26:17:75:236 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:26:17:76:541 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/index/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..1d8a71a9 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:17:325:246 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 17:26:17:328:237 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:17:425:871 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + (2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 17:26:17:428:939 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 17:26:17:431:407 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:26:17:432:676 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 17:26:17:529:625 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:26:17:531:50 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 17:26:17:533:695 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:26:17:534:852 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat.txt b/index/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..d18b1444 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:18:237:943 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:26:18:240:267 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:18:337:883 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:26:18:340:5 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-1 17:26:18:437:919 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:26:18:440:104 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:26:18:538:589 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:26:18:638:731 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:26:18:738:547 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:26:18:838:278 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:26:18:938:588 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:26:19:38:462 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:26:19:41:276 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:26:19:42:234 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/index/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..bca19063 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:22:686:57 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:22:688:176 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:22:786:71 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:26:22:787:846 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:26:22:789:429 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-1 17:26:22:886:192 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:26:22:888:295 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:26:22:889:872 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:26:22:891:146 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 17:26:22:986:934 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:26:22:988:107 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 17:26:22:990:728 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:26:22:991:759 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/index/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..a1d91353 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:21:930:6 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:21:932:675 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:22:29:898 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:26:22:32:726 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-1 17:26:22:129:918 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 17:26:22:131:599 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:26:22:132:855 + Q8-T4 execute sql: 'BEGIN OPTIMISTIC;' + Q8 finished at: 2022-4-1 17:26:22:231:964 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:26:22:233:839 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:26:22:235:241 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 17:26:22:333:828 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:26:22:335:249 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 17:26:22:431:523 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 17:26:22:432:784 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:26:22:436:630 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:26:22:437:592 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/index/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..3fc812ef --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:19:285:322 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 17:26:19:287:226 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:19:384:851 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:26:19:386:829 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-1 17:26:19:488:5 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:26:19:490:114 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:26:19:585:354 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:26:19:685:530 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:26:19:785:536 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:26:19:885:449 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:26:19:985:415 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:26:20:85:532 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:26:20:88:77 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:26:20:89:166 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/index/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..7cc7df23 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:20:326:913 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:26:20:331:344 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:20:428:67 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 17:26:20:430:230 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-1 17:26:20:529:331 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 17:26:20:531:444 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 17:26:20:627:662 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 17:26:20:732:840 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 17:26:20:827:512 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:26:20:927:474 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:26:21:27:561 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:26:21:127:667 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:26:21:130:322 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:26:21:131:269 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/index/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..c02257e6 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:23:235:893 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:26:23:237:812 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 17:26:23:239:841 + Q4-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q4 finished at: 2022-4-1 17:26:23:335:613 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 17:26:23:337:644 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 17:26:23:339:244 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:26:23:340:475 + Q8-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q8 finished at: 2022-4-1 17:26:23:435:572 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 17:26:23:437:555 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:26:23:439:468 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:26:23:440:602 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 17:26:23:536:165 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 17:26:23:537:589 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 17:26:23:540:389 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 17:26:23:541:729 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_uname_anomaly.txt b/index/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..cc600077 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:21:377:352 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 17:26:21:379:602 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:21:477:300 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 17:26:21:479:444 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:21:481:124 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:26:21:483:31 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 17:26:21:484:537 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:26:21:485:870 + Q9-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q9 finished at: 2022-4-1 17:26:21:577:382 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 17:26:21:579:682 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 17:26:21:581:246 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 17:26:21:583:156 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 17:26:21:584:764 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:26:21:586:126 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 17:26:21:680:985 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 17:26:21:682:129 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 17:26:21:684:965 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 17:26:21:686:74 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_opt_4.0.5/read-committed/iat_sda_lost_update_committed.txt b/index/result/tidb_opt_4.0.5/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..7f60c5bd --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:13:442:818 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:26:13:447:179 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:13:544:92 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:26:13:545:840 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:26:13:547:183 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 17:26:13:644:109 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224383386779648, conflictStartTS=432224383413256192, conflictCommitTS=432224383414042624, key={tableID=2664, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-1 17:26:14:345:998 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224383386779648, conflictStartTS=432224383413256192, conflictCommitTS=432224383414042624, key={tableID=2664, handle=0} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/read-committed/iat_sda_non_repeatable_read_committed.txt b/index/result/tidb_opt_4.0.5/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..5bc8b91a --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:12:960:836 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:12:962:564 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:13:75:102 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:26:13:76:772 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:26:13:77:974 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:26:13:176:601 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:26:13:177:751 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:26:13:180:29 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:26:13:181:63 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:26:13:182:89 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_opt_4.0.5/read-committed/rat_dda_double_write_skew1.txt b/index/result/tidb_opt_4.0.5/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..61704a56 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:39:234:302 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:39:236:269 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:39:334:847 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:39:336:734 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:25:39:338:504 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q6 finished at: 2022-4-1 17:25:39:441:520 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:25:39:536:409 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224374419357696, conflictStartTS=432224374445572096, conflictCommitTS=432224374498525184, key={tableID=2571, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:25:40:440:915 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224374419357696, conflictStartTS=432224374445572096, conflictCommitTS=432224374498525184, key={tableID=2571, handle=1} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/read-committed/rat_dda_double_write_skew1_committed.txt b/index/result/tidb_opt_4.0.5/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..18156228 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:40:678:74 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:40:680:90 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:40:778:258 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:40:780:381 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:25:40:782:204 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:40:783:572 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 17:25:40:880:749 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224374797631488, conflictStartTS=432224374824108032, conflictCommitTS=432224374825418752, key={tableID=2574, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:25:41:682:584 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224374797631488, conflictStartTS=432224374824108032, conflictCommitTS=432224374825418752, key={tableID=2574, handle=1} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/read-committed/rat_dda_double_write_skew2.txt b/index/result/tidb_opt_4.0.5/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..9debebeb --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:41:917:791 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:41:919:761 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:42:18:48 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:42:20:193 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:25:42:22:16 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:25:42:120:829 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:42:122:262 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224375148904448, conflictStartTS=432224375122690048, conflictCommitTS=432224375176429568, key={tableID=2577, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-1 17:25:43:19:587 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224375148904448, conflictStartTS=432224375122690048, conflictCommitTS=432224375176429568, key={tableID=2577, handle=0} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew.txt b/index/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..793fdddd --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:43:250:886 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:25:43:252:739 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:43:350:735 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:43:352:461 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:25:43:354:27 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:25:43:451:884 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:25:43:551:162 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:25:43:651:16 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:25:43:654:948 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:25:43:656:18 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew2.txt b/index/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..6ecd261a --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:44:792:829 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:44:794:615 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:44:892:770 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:25:44:894:411 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:25:44:895:952 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:25:44:993:465 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:44:994:781 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:25:45:92:693 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:25:45:95:208 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:25:45:96:271 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew2_committed.txt b/index/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..cf8736f8 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:45:327:837 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:45:329:586 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:45:427:915 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:25:45:430:70 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:25:45:432:141 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:45:433:101 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:25:45:528:732 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:25:45:529:975 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:25:45:532:179 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:25:45:533:100 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/index/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..b933b0a8 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:43:919:793 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:25:43:922:894 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:44:20:100 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:44:21:788 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:25:44:31:550 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:44:33:426 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:25:44:121:358 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:25:44:122:543 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 17:25:44:124:786 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:25:44:125:721 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/index/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..89133cb7 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:44:353:712 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:25:44:358:408 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:44:455:540 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 17:25:44:457:121 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 17:25:44:458:601 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:44:459:794 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:25:44:557:111 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:25:44:558:29 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 17:25:44:560:186 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:25:44:561:21 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_opt_4.0.5/read-committed/rat_dda_write_read_skew.txt b/index/result/tidb_opt_4.0.5/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..aca2e633 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:38:139:615 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:38:141:251 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:38:239:656 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:38:241:323 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:25:38:243:27 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:25:38:344:667 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:25:38:439:673 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:25:38:544:135 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:25:38:546:446 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:25:38:547:386 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_opt_4.0.5/read-committed/rat_dda_write_read_skew_committed.txt b/index/result/tidb_opt_4.0.5/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..76aee8ac --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:38:795:853 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:38:797:789 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:38:895:783 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:38:897:446 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:25:38:899:201 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:38:900:577 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:25:38:996:353 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:25:38:997:514 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:25:39:0:103 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:25:39:1:92 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat.txt b/index/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..98b3ae84 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:45:766:975 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:45:768:700 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:45:866:951 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:45:868:660 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:25:45:870:565 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-1 17:25:45:967:81 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:25:45:968:763 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 17:25:45:970:741 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 17:25:46:68:76 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:25:46:69:299 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:25:46:167:187 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:25:46:267:262 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:25:46:271:22 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:25:46:271:920 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat_long_fork.txt b/index/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..23b8a8ec --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN OPTIMISTIC;' + Q1 finished at: 2022-4-1 17:25:46:505:882 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 17:25:46:508:568 +Q3-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q3 finished at: 2022-4-1 17:25:46:605:917 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 17:25:46:607:667 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-1 17:25:46:705:832 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 17:25:46:708:508 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:25:46:710:981 + Q8-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q8 finished at: 2022-4-1 17:25:46:808:176 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:25:46:809:895 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:25:46:908:40 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:25:47:6:153 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:25:47:106:241 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:25:47:206:4 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:25:47:207:192 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:25:47:210:218 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:25:47:211:104 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/index/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..368b43cf --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:47:446:623 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:47:448:497 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:47:546:935 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:47:548:620 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:25:47:551:187 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-1 17:25:47:646:648 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:25:47:648:237 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 17:25:47:650:545 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:25:47:750:571 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:25:47:752:4 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:25:47:847:114 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:25:47:947:25 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:25:47:949:365 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:25:47:950:315 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/index/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..9b20828e --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:48:180:63 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 17:25:48:182:102 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:48:279:745 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 17:25:48:281:413 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:25:48:286:405 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-1 17:25:48:380:89 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 17:25:48:382:104 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 17:25:48:384:945 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:25:48:481:444 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:25:48:482:830 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:25:48:580:202 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:25:48:680:213 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:25:48:682:920 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:25:48:683:832 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_opt_4.0.5/read-committed/rat_sda_dirty_read.txt b/index/result/tidb_opt_4.0.5/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..2e1b32d0 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:33:630:992 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:33:632:746 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:33:731:962 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:25:33:733:707 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:25:33:831:974 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:33:931:834 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:25:33:934:466 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:25:33:935:332 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_opt_4.0.5/read-committed/rat_sda_intermediate_read.txt b/index/result/tidb_opt_4.0.5/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..bc851245 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:34:848:123 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:34:849:876 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:34:948:133 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:25:34:949:950 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 17:25:35:52:562 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:35:148:201 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:35:248:426 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:25:35:250:644 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:25:35:251:768 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_opt_4.0.5/read-committed/rat_sda_intermediate_read_committed.txt b/index/result/tidb_opt_4.0.5/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..0ffda640 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:35:511:840 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:35:513:438 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:35:611:885 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:25:35:613:654 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:25:35:614:569 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 17:25:35:712:348 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:35:713:507 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:25:35:715:461 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:25:35:716:324 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_opt_4.0.5/read-committed/rat_sda_lost_self_update.txt b/index/result/tidb_opt_4.0.5/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..6ee6cbb3 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:36:907:809 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:36:909:457 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:37:7:937 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:37:9:828 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:25:37:108:337 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:25:37:109:812 + Q7-T2 execute opt: 'COMMIT'; + Q7 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224373835563008, conflictStartTS=432224373809348608, conflictCommitTS=432224373862301696, key={tableID=2562, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q7 failed at: 2022-4-1 17:25:37:908:601 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224373835563008, conflictStartTS=432224373809348608, conflictCommitTS=432224373862301696, key={tableID=2562, handle=0} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/read-committed/rat_sda_non_repeatable_read.txt b/index/result/tidb_opt_4.0.5/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..679a6997 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:34:190:649 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:25:34:192:594 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:34:290:610 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:34:292:321 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:25:34:391:560 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:34:490:921 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:34:590:592 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:25:34:592:751 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:25:34:593:663 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_opt_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/index/result/tidb_opt_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..76214967 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:35:984:170 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:25:35:986:792 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:36:71:464 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:36:73:245 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:25:36:74:437 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:25:36:172:571 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:36:173:586 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 17:25:36:175:570 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:25:36:176:504 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_opt_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/index/result/tidb_opt_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..05e53a0a --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:36:429:867 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:25:36:434:637 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:36:529:865 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 17:25:36:531:496 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:25:36:532:618 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:25:36:631:88 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:36:632:155 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 17:25:36:634:492 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:25:36:637:814 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_opt_4.0.5/read-committed/wat_dda_double_write_skew2_committed.txt b/index/result/tidb_opt_4.0.5/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..a598a18e --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:56:689:319 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:56:691:50 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:56:789:891 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:56:791:677 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:25:56:793:288 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:56:794:495 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:25:56:892:683 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378995081216, conflictStartTS=432224379021295616, conflictCommitTS=432224379022606336, key={tableID=2628, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:25:57:694:255 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378995081216, conflictStartTS=432224379021295616, conflictCommitTS=432224379022606336, key={tableID=2628, handle=0} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/read-committed/wat_dda_full_write_skew_c1.txt b/index/result/tidb_opt_4.0.5/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..439ee212 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,37 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:57:932:315 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:57:934:46 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:58:33:404 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:58:35:58 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:25:58:36:662 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:25:58:132:767 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:58:134:20 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224379347402752, conflictStartTS=432224379320926208, conflictCommitTS=432224379373617152, key={tableID=2631, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-1 17:25:59:35:979 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224379347402752, conflictStartTS=432224379320926208, conflictCommitTS=432224379373617152, key={tableID=2631, handle=0} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/read-committed/wat_dda_full_write_skew_c2.txt b/index/result/tidb_opt_4.0.5/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..a5446bcf --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,37 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:59:276:488 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:59:278:138 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:59:376:492 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:59:378:83 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:25:59:379:785 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:25:59:477:587 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:25:59:576:900 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224379673247744, conflictStartTS=432224379699462144, conflictCommitTS=432224379751890944, key={tableID=2634, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:26:0:477:327 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224379673247744, conflictStartTS=432224379699462144, conflictCommitTS=432224379751890944, key={tableID=2634, handle=0} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/read-committed/wat_dda_full_write_skew_committed.txt b/index/result/tidb_opt_4.0.5/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..6bd3d3d4 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,37 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:0:717:160 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:26:0:719:164 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:0:817:209 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:26:0:819:102 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:0:820:650 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:26:0:821:880 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:26:0:917:598 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224380050735104, conflictStartTS=432224380076949504, conflictCommitTS=432224380078260224, key={tableID=2637, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:26:1:719:437 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224380050735104, conflictStartTS=432224380076949504, conflictCommitTS=432224380078260224, key={tableID=2637, handle=0} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew1_c1.txt b/index/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..b5e4aabc --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:1:958:635 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:1:960:429 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:2:59:440 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:26:2:61:951 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:2:63:695 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:26:2:161:99 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:26:2:162:630 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224380402794496, conflictStartTS=432224380376317952, conflictCommitTS=432224380429795328, key={tableID=2640, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-1 17:26:3:59:510 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224380402794496, conflictStartTS=432224380376317952, conflictCommitTS=432224380429795328, key={tableID=2640, handle=1} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew1_c2.txt b/index/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..e1ac6532 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:3:299:448 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:3:301:212 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:3:399:491 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:26:3:401:59 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:3:402:511 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:26:3:500:141 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:26:3:599:677 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224380727853056, conflictStartTS=432224380754067456, conflictCommitTS=432224380806496256, key={tableID=2643, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:26:4:500:121 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224380727853056, conflictStartTS=432224380754067456, conflictCommitTS=432224380806496256, key={tableID=2643, handle=1} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew2_c1.txt b/index/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..b800534c --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:4:739:809 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:26:4:741:470 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:4:839:795 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:26:4:841:453 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:4:842:953 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:26:4:940:402 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:26:4:941:752 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224381131554816, conflictStartTS=432224381105340416, conflictCommitTS=432224381158293504, key={tableID=2646, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-1 17:26:5:840:390 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224381131554816, conflictStartTS=432224381105340416, conflictCommitTS=432224381158293504, key={tableID=2646, handle=0} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew2_c2.txt b/index/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..9f8074b2 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:6:79:629 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:26:6:81:307 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:6:179:517 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:26:6:181:178 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:6:182:728 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:26:6:280:72 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:26:6:379:899 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224381456613376, conflictStartTS=432224381482827776, conflictCommitTS=432224381535256576, key={tableID=2649, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:26:7:280:225 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224381456613376, conflictStartTS=432224381482827776, conflictCommitTS=432224381535256576, key={tableID=2649, handle=0} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew2_committed.txt b/index/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..f949704b --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:7:522:136 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:26:7:524:95 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:7:622:82 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:26:7:623:804 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:7:625:569 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:26:7:627:44 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:26:7:722:575 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224381834625024, conflictStartTS=432224381860839424, conflictCommitTS=432224381862150144, key={tableID=2652, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:26:8:524:319 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224381834625024, conflictStartTS=432224381860839424, conflictCommitTS=432224381862150144, key={tableID=2652, handle=0} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/read-committed/wat_mda_step_wat_c1.txt b/index/result/tidb_opt_4.0.5/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..8225bb49 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:8:766:639 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:26:8:768:770 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:8:866:356 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:26:8:868:96 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:8:871:606 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-1 17:26:8:966:494 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:26:8:968:202 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' + Q8 finished at: 2022-4-1 17:26:8:969:719 +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-1 17:26:9:68:781 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:26:9:70:425 + Q11-T2 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; + Q11 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224382187208704, conflictStartTS=432224382160994304, conflictCommitTS=432224382240686080, key={tableID=2655, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q11 failed at: 2022-4-1 17:26:10:268:732 + Q12 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224382213423104, conflictStartTS=432224382160994304, conflictCommitTS=432224382240686080, key={tableID=2655, handle=2} primary=[]byte(nil) [try again later] errcode: HY000 + Q12 failed at: 2022-4-1 17:26:10:467:631 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224382187208704, conflictStartTS=432224382160994304, conflictCommitTS=432224382240686080, key={tableID=2655, handle=0} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/read-committed/wat_mda_step_wat_c2.txt b/index/result/tidb_opt_4.0.5/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..47b785fb --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:10:712:173 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:26:10:714:284 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:10:811:918 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:26:10:813:584 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-1 17:26:10:911:931 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6 finished at: 2022-4-1 17:26:11:12:973 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:26:11:112:836 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' + Q8 finished at: 2022-4-1 17:26:11:114:429 +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-1 17:26:11:212:758 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:26:11:312:586 +Q11-T1 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; +Q11 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224382670864384, conflictStartTS=432224382697078784, conflictCommitTS=432224382828412928, key={tableID=2658, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q11 failed at: 2022-4-1 17:26:12:517:725 + Q12 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224382723293184, conflictStartTS=432224382697078784, conflictCommitTS=432224382828412928, key={tableID=2658, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q12 failed at: 2022-4-1 17:26:12:712:980 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224382670864384, conflictStartTS=432224382697078784, conflictCommitTS=432224382828412928, key={tableID=2658, handle=0} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/read-committed/wat_sda_dirty_write_1abort.txt b/index/result/tidb_opt_4.0.5/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..6e6db82a --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:48:917:62 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:48:918:649 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:49:17:81 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:49:18:779 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:25:49:116:969 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:49:220:436 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:25:49:222:788 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:25:49:238:123 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:25:49:239:295 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_opt_4.0.5/read-committed/wat_sda_dirty_write_2commit.txt b/index/result/tidb_opt_4.0.5/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..93929313 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,32 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:49:456:757 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:49:458:596 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:49:556:694 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:49:558:374 +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:25:49:656:932 + Q6-T2 execute opt: 'COMMIT'; + Q6 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224377125208064, conflictStartTS=432224377098993664, conflictCommitTS=432224377151422464, key={tableID=2610, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q6 failed at: 2022-4-1 17:25:50:357:539 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224377125208064, conflictStartTS=432224377098993664, conflictCommitTS=432224377151422464, key={tableID=2610, handle=0} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/read-committed/wat_sda_full_write.txt b/index/result/tidb_opt_4.0.5/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..56aa410e --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/wat_sda_full_write.txt @@ -0,0 +1,34 @@ +#### db_type: tidb #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:50:592:926 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:50:594:629 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:50:693:157 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:50:695:188 +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 17:25:50:793:607 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:25:50:795:52 + Q7-T2 execute opt: 'COMMIT'; + Q7 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224377423265792, conflictStartTS=432224377396789248, conflictCommitTS=432224377449742336, key={tableID=2613, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q7 failed at: 2022-4-1 17:25:51:596:568 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224377423265792, conflictStartTS=432224377396789248, conflictCommitTS=432224377449742336, key={tableID=2613, handle=0} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/read-committed/wat_sda_full_write_committed.txt b/index/result/tidb_opt_4.0.5/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..9d1026d9 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,34 @@ +#### db_type: tidb #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:51:833:44 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:51:834:798 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:51:931:959 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:51:933:739 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:25:51:935:2 +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 17:25:52:32:384 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224377721847808, conflictStartTS=432224377747800064, conflictCommitTS=432224377748586496, key={tableID=2616, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-1 17:25:52:734:517 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224377721847808, conflictStartTS=432224377747800064, conflictCommitTS=432224377748586496, key={tableID=2616, handle=0} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/read-committed/wat_sda_lost_self_update_committed.txt b/index/result/tidb_opt_4.0.5/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..398127af --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:55:550:641 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:55:552:710 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:55:651:180 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:55:653:91 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:25:55:654:504 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:25:55:750:224 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378696499200, conflictStartTS=432224378722713600, conflictCommitTS=432224378723762176, key={tableID=2625, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-1 17:25:56:452:235 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378696499200, conflictStartTS=432224378722713600, conflictCommitTS=432224378723762176, key={tableID=2625, handle=0} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/read-committed/wat_sda_lost_update_c1.txt b/index/result/tidb_opt_4.0.5/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..536ed4cb --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:52:976:770 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:25:52:978:377 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:53:76:711 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:53:78:529 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-1 17:25:53:177:323 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:25:53:178:645 + Q7-T2 execute opt: 'COMMIT'; + Q7 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378047954944, conflictStartTS=432224378021740544, conflictCommitTS=432224378074693632, key={tableID=2619, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q7 failed at: 2022-4-1 17:25:53:977:408 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378047954944, conflictStartTS=432224378021740544, conflictCommitTS=432224378074693632, key={tableID=2619, handle=0} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/read-committed/wat_sda_lost_update_c2.txt b/index/result/tidb_opt_4.0.5/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..c7841396 --- /dev/null +++ b/index/result/tidb_opt_4.0.5/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:54:213:51 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:25:54:214:849 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:54:312:901 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:54:314:707 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-1 17:25:54:416:620 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:54:516:256 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378345750528, conflictStartTS=432224378371964928, conflictCommitTS=432224378425180160, key={tableID=2622, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-1 17:25:55:313:751 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378345750528, conflictStartTS=432224378371964928, conflictCommitTS=432224378425180160, key={tableID=2622, handle=0} primary=[]byte(nil) [try again later] + diff --git a/index/result/tidb_opt_4.0.5/result_summary/read-committed_total-result.txt b/index/result/tidb_opt_4.0.5/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..45e2cffc --- /dev/null +++ b/index/result/tidb_opt_4.0.5/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/index/result/tidb_per_4.0.5/read-committed/iat_dda_read_skew_committed.txt b/index/result/tidb_per_4.0.5/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..8c7f8b21 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:14:759:122 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:14:761:81 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:14:860:233 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:14:862:445 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:14:864:294 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:14:865:934 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:18:14:962:429 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:14:963:598 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:14:966:154 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:14:967:167 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/iat_dda_read_write_skew1_committed.txt b/index/result/tidb_per_4.0.5/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..112ec1f7 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:15:204:606 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:15:206:319 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:15:304:901 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:15:306:846 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:15:308:477 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:15:309:977 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:15:405:431 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:15:406:951 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:15:424:219 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:15:425:427 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew.txt b/index/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..b634c160 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:15:662:808 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:15:664:591 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:15:762:711 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:15:764:557 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:15:766:137 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:18:15:863:308 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:15:864:735 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:15:964:385 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:15:966:764 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:15:967:867 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew_committed.txt b/index/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..d8486cc1 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:17:233:579 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:17:235:356 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:17:336:358 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:17:338:323 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:17:340:234 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:17:341:774 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:17:434:266 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:17:435:719 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:17:438:158 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:17:439:436 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/index/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..f85b2866 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:16:227:229 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 17:18:16:249:442 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 17:18:16:251:304 + Q4-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q4 finished at: 2022-4-1 17:18:16:327:513 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 17:18:16:330:423 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 17:18:16:332:151 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:16:333:628 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:16:428:438 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 17:18:16:431:422 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 17:18:16:434:5 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:16:435:57 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/index/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..fe67e21f --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:16:771:733 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 17:18:16:775:200 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:16:871:520 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + (2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 17:18:16:874:356 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 17:18:16:877:982 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:16:879:402 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 17:18:16:984:345 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:16:985:832 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 17:18:16:988:571 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:16:989:724 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat.txt b/index/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..f2ea1158 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:17:696:585 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:18:17:698:635 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:17:800:203 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:18:17:802:545 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:17:898:214 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:18:17:900:337 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:18:17:997:556 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:18:18:97:429 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:18:18:197:552 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:18:297:75 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:18:397:201 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:18:497:390 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:18:18:500:379 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:18:501:585 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/index/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..2600a199 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:22:140:966 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:22:142:998 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:22:241:76 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:22:242:985 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:22:244:361 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:18:22:341:273 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:18:22:343:484 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:18:22:345:240 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:22:346:749 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 17:18:22:441:970 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:18:22:443:185 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 17:18:22:445:716 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:18:22:446:695 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/index/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..7cf85e90 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:21:370:783 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:21:374:385 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:21:470:483 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:21:473:153 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:21:571:434 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 17:18:21:573:365 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:21:574:853 + Q8-T4 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-1 17:18:21:673:481 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:18:21:676:49 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:21:677:554 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 17:18:21:772:226 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:21:773:422 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 17:18:21:873:804 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 17:18:21:875:178 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:18:21:879:468 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:18:21:880:639 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/index/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..27eaa1eb --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:18:742:179 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 17:18:18:744:238 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:18:842:117 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:18:18:844:184 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:18:942:159 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:18:18:944:128 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:18:19:42:806 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:18:19:144:627 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:18:19:242:904 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:19:342:830 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:19:442:702 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:19:542:756 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:18:19:545:271 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:19:546:410 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/index/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..00bb4379 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:19:779:86 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:18:19:783:351 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:19:879:9 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 17:18:19:880:986 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:19:979:293 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 17:18:19:981:567 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 17:18:20:79:807 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 17:18:20:179:847 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 17:18:20:280:55 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:20:379:600 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:20:479:608 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:20:579:819 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:18:20:582:483 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:20:583:625 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/index/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..5a580e12 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:22:685:674 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:18:22:687:804 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 17:18:22:689:749 + Q4-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q4 finished at: 2022-4-1 17:18:22:785:692 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 17:18:22:787:860 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 17:18:22:789:673 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:22:791:696 + Q8-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-1 17:18:22:885:725 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 17:18:22:887:955 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:18:22:890:38 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:22:891:184 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 17:18:22:988:972 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 17:18:22:990:574 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 17:18:22:993:524 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 17:18:22:994:532 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_uname_anomaly.txt b/index/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..4a66559f --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:20:825:498 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 17:18:20:827:553 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:20:928:71 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 17:18:20:930:268 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:20:932:96 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:18:20:934:38 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 17:18:20:935:785 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:20:937:198 + Q9-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q9 finished at: 2022-4-1 17:18:21:25:522 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 17:18:21:27:683 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 17:18:21:29:370 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 17:18:21:31:394 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 17:18:21:33:53 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:21:34:420 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 17:18:21:126:537 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 17:18:21:127:772 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 17:18:21:130:713 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 17:18:21:131:796 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/iat_sda_lost_update_committed.txt b/index/result/tidb_per_4.0.5/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..26427bda --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:14:316:260 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:18:14:320:587 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:14:416:134 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:14:417:805 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:14:419:89 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 17:18:14:518:242 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:14:519:677 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:14:521:743 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:14:522:794 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/iat_sda_non_repeatable_read_committed.txt b/index/result/tidb_per_4.0.5/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..40a6a7d2 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:13:871:278 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:13:873:269 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:13:972:99 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:13:973:945 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:13:975:889 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:18:14:72:735 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:14:73:804 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:14:75:985 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:14:77:198 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:14:78:270 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/rat_dda_double_write_skew1.txt b/index/result/tidb_per_4.0.5/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..6fcc1918 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:52:447:732 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:52:449:688 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:52:547:640 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:52:549:412 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:17:52:551:84 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:17:52:762:853 +Q6 finished at: 2022-4-1 17:17:52:795:218 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:52:848:184 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:17:52:850:988 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:52:852:116 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/read-committed/rat_dda_double_write_skew1_committed.txt b/index/result/tidb_per_4.0.5/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..c4b2dc4a --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:53:108:887 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:53:110:741 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:53:208:892 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:53:211:256 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:17:53:213:400 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:53:214:824 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 17:17:53:312:761 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:53:314:76 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:17:53:316:427 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:53:317:359 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/read-committed/rat_dda_double_write_skew2.txt b/index/result/tidb_per_4.0.5/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..4bfd525a --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:53:567:987 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:53:569:879 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:53:668:191 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:53:670:229 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:17:53:770:884 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:17:53:776:131 + Q5 finished at: 2022-4-1 17:17:53:776:671 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:17:53:868:202 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:17:53:870:447 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:53:871:363 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew.txt b/index/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..531d1e18 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:54:121:952 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:17:54:123:764 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:54:221:897 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:54:223:779 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:17:54:225:297 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:17:54:322:754 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:17:54:422:152 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:54:521:894 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:17:54:524:235 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:54:525:118 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew2.txt b/index/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..25c1a1f0 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:55:706:739 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:55:708:619 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:55:808:192 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:17:55:822:53 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:17:55:824:12 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:17:55:914:420 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:17:55:920:788 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:17:56:12:262 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:17:56:15:209 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:56:16:423 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew2_committed.txt b/index/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..f0f86f41 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:56:318:757 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:56:320:771 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:56:420:141 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:17:56:421:969 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:17:56:423:939 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:56:424:986 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:17:56:523:175 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:56:524:506 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:17:56:526:952 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:56:528:23 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/index/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..e001425a --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:54:780:204 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:17:54:782:844 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:54:879:991 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:54:881:691 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:17:54:883:280 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:54:884:456 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:17:54:983:360 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:54:984:334 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 17:17:54:986:273 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:54:987:205 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/index/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..c1386b3e --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:55:238:688 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:17:55:243:763 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:55:338:894 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 17:17:55:340:885 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 17:17:55:342:784 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:55:344:173 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:17:55:440:5 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:55:441:40 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 17:17:55:443:280 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:55:444:375 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/rat_dda_write_read_skew.txt b/index/result/tidb_per_4.0.5/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..fc6fc91a --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:51:337:450 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:51:339:206 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:51:437:597 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:51:439:597 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:17:51:441:348 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:17:51:538:245 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:17:51:640:184 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:51:737:630 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:17:51:739:960 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:51:740:990 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/rat_dda_write_read_skew_committed.txt b/index/result/tidb_per_4.0.5/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..1b93be75 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:51:994:273 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:51:996:263 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:52:94:438 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:52:96:799 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:17:52:98:573 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:52:99:856 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:17:52:194:745 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:52:195:927 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:17:52:198:207 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:52:199:180 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat.txt b/index/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..f04c3125 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:56:809:848 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:56:811:741 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:56:912:94 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:56:913:947 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:17:56:915:933 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:17:57:12:133 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:17:57:14:13 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 17:17:57:16:85 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 17:17:57:111:109 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:17:57:112:495 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:17:57:212:393 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:17:57:310:775 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:17:57:314:467 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:17:57:315:572 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat_long_fork.txt b/index/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..cbf4a886 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN PESSIMISTIC;' + Q1 finished at: 2022-4-1 17:17:57:600:213 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 17:17:57:602:929 +Q3-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q3 finished at: 2022-4-1 17:17:57:713:470 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 17:17:57:719:499 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:17:57:801:574 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 17:17:57:804:339 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:17:57:807:19 + Q8-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-1 17:17:57:900:578 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:17:57:902:544 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:17:58:4:206 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:17:58:102:450 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:17:58:200:738 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:17:58:300:550 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:17:58:301:784 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:17:58:305:178 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:17:58:306:106 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/index/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..2053927e --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:58:567:406 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:58:570:480 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:58:674:990 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:58:677:25 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:17:58:711:868 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:17:58:767:639 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:17:58:769:467 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 17:17:58:771:909 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:17:58:869:771 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:17:58:871:396 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:17:58:968:277 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:17:59:68:68 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:17:59:70:578 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:17:59:71:491 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/index/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..7dabf720 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:59:324:782 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 17:17:59:329:51 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:59:432:425 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 17:17:59:434:200 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:17:59:436:814 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:17:59:527:998 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 17:17:59:529:803 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 17:17:59:532:125 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:17:59:626:206 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:17:59:627:517 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:17:59:724:986 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:17:59:828:267 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:17:59:831:155 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:17:59:832:201 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/rat_sda_dirty_read.txt b/index/result/tidb_per_4.0.5/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..4dac8098 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:47:518:552 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:47:520:345 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:47:620:909 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:17:47:622:572 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:17:47:718:531 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:47:818:469 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:17:47:821:287 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:17:47:822:342 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/read-committed/rat_sda_intermediate_read.txt b/index/result/tidb_per_4.0.5/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..da7fb7e6 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:48:746:422 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:48:748:247 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:48:846:447 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:17:48:848:227 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 17:17:48:948:557 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:49:46:282 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:17:49:148:77 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:17:49:150:248 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:17:49:151:139 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/read-committed/rat_sda_intermediate_read_committed.txt b/index/result/tidb_per_4.0.5/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..b4c89394 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:49:409:445 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:49:411:456 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:49:509:666 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:17:49:511:952 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:17:49:513:109 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 17:17:49:609:833 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:17:49:611:82 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:17:49:613:305 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:17:49:614:307 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/read-committed/rat_sda_lost_self_update.txt b/index/result/tidb_per_4.0.5/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..b0627806 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:50:769:928 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:50:771:783 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:50:869:976 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:17:50:970:571 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:17:50:990:655 + Q4 finished at: 2022-4-1 17:17:51:63:993 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:17:51:82:538 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:17:51:84:783 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:17:51:85:586 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/read-committed/rat_sda_non_repeatable_read.txt b/index/result/tidb_per_4.0.5/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..939a8782 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:48:88:955 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:17:48:90:969 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:48:188:708 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:17:48:190:399 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:17:48:289:444 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:48:389:5 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:17:48:491:897 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:17:48:494:232 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:17:48:495:153 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/index/result/tidb_per_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..c68a3c71 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:49:864:265 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:17:49:866:605 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:49:964:282 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:17:49:966:126 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:17:49:967:473 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:17:50:65:406 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:17:50:66:655 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 17:17:50:68:565 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:17:50:69:544 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/index/result/tidb_per_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..6f8fb380 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:50:314:454 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:17:50:368:164 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:50:414:458 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 17:17:50:416:321 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:17:50:417:440 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:17:50:516:228 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:17:50:517:162 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 17:17:50:519:391 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:17:50:520:204 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/wat_dda_double_write_skew2_committed.txt b/index/result/tidb_per_4.0.5/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..a196f58c --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:4:23:316 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:4:25:168 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:4:124:124 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:4:125:966 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:18:4:227:633 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:4:248:652 + Q5 finished at: 2022-4-1 17:18:4:280:195 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:4:281:510 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:4:284:410 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:4:285:511 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/read-committed/wat_dda_full_write_skew_c1.txt b/index/result/tidb_per_4.0.5/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..67f3bd0b --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:4:520:498 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:4:522:376 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:4:620:415 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:4:622:299 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:18:4:766:889 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:4:820:814 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:18:5:431:565 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/tidb_per_4.0.5/read-committed/wat_dda_full_write_skew_c2.txt b/index/result/tidb_per_4.0.5/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..38757763 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:5:667:766 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:5:670:834 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:5:767:333 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:5:769:168 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:18:5:880:677 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:5:967:859 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:18:6:480:823 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/tidb_per_4.0.5/read-committed/wat_dda_full_write_skew_committed.txt b/index/result/tidb_per_4.0.5/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..cccc0977 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:6:716:61 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:6:717:811 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:6:816:158 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:6:817:967 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:18:6:941:872 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:6:943:309 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:18:7:639:788 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew1_c1.txt b/index/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..f358b76c --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:7:874:757 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:7:876:649 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:7:974:225 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:7:975:963 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:7:977:610 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:8:179:388 +Q6 finished at: 2022-4-1 17:18:8:180:107 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:8:181:467 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:8:183:940 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:8:184:962 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew1_c2.txt b/index/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..7ad20233 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:8:417:932 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:8:419:702 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:8:518:86 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:8:520:2 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:8:521:679 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:8:733:253 +Q6 finished at: 2022-4-1 17:18:8:761:750 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:8:818:352 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:8:820:737 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:8:821:762 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew2_c1.txt b/index/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..c4163b6c --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:9:54:136 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:9:55:998 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:9:154:265 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:9:156:201 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:18:9:267:207 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:9:283:201 + Q5 finished at: 2022-4-1 17:18:9:283:528 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:9:354:429 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:9:356:769 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:9:357:790 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew2_c2.txt b/index/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..43309280 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:9:591:549 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:9:593:205 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:9:691:512 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:9:693:496 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:18:9:804:511 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:10:6:819 + Q5 finished at: 2022-4-1 17:18:10:47:740 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:10:49:249 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:10:51:587 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:10:52:570 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew2_committed.txt b/index/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..f76ea842 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:10:285:560 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:10:287:509 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:10:385:645 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:10:387:422 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:10:493:354 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:10:504:9 + Q5 finished at: 2022-4-1 17:18:10:504:298 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:10:505:615 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:10:508:2 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:10:508:883 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/wat_mda_step_wat_c1.txt b/index/result/tidb_per_4.0.5/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..1f4869d4 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:10:744:702 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:10:746:856 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:10:844:530 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:10:846:363 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:18:10:944:594 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:18:10:958:782 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-1 17:18:11:75:920 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:11:148:827 + Q8 finished at: 2022-4-1 17:18:11:149:214 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:11:245:82 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:18:11:965:622 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/tidb_per_4.0.5/read-committed/wat_mda_step_wat_c2.txt b/index/result/tidb_per_4.0.5/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..6bb05d14 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:12:206:698 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:12:208:725 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:12:306:711 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:12:308:681 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:12:406:733 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:18:12:612:997 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-1 17:18:12:729:424 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:12:823:166 + Q8 finished at: 2022-4-1 17:18:12:855:286 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:13:9:13 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:18:13:624:444 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/tidb_per_4.0.5/read-committed/wat_sda_dirty_write_1abort.txt b/index/result/tidb_per_4.0.5/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..367b0a52 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:0:202:793 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:0:204:534 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:0:335:899 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:18:0:406:215 + Q4 finished at: 2022-4-1 17:18:0:432:437 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:0:503:132 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:18:0:505:288 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:18:0:539:222 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:0:543:729 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/read-committed/wat_sda_dirty_write_2commit.txt b/index/result/tidb_per_4.0.5/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..67b4dbdb --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:0:776:525 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:0:778:220 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:0:876:400 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:18:0:987:415 + Q4 finished at: 2022-4-1 17:18:0:987:859 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:1:80:378 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:18:1:82:640 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:18:1:96:629 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:1:98:626 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/read-committed/wat_sda_full_write.txt b/index/result/tidb_per_4.0.5/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..1b576a5a --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:1:315:447 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:1:317:227 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:1:415:479 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 17:18:1:515:943 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:18:1:527:907 + Q4 finished at: 2022-4-1 17:18:1:587:730 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:1:615:689 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:18:1:618:691 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:1:619:525 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/read-committed/wat_sda_full_write_committed.txt b/index/result/tidb_per_4.0.5/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..d5e87209 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:1:847:239 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:1:849:47 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:1:947:256 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 17:18:2:47:820 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:2:59:888 + Q4 finished at: 2022-4-1 17:18:2:88:449 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:2:89:864 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:18:2:91:982 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:2:93:51 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/read-committed/wat_sda_lost_self_update_committed.txt b/index/result/tidb_per_4.0.5/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..f651510c --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:3:530:183 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:3:532:23 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:3:630:70 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:18:3:730:652 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:3:751:632 + Q4 finished at: 2022-4-1 17:18:3:787:408 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:3:788:812 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:3:790:994 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:3:791:947 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/read-committed/wat_sda_lost_update_c1.txt b/index/result/tidb_per_4.0.5/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..54215405 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:2:322:116 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:18:2:323:794 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:2:422:101 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:2:423:966 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:2:632:394 +Q5 finished at: 2022-4-1 17:18:2:660:990 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:18:2:662:645 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:2:664:865 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:2:665:805 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/read-committed/wat_sda_lost_update_c2.txt b/index/result/tidb_per_4.0.5/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..70f63738 --- /dev/null +++ b/index/result/tidb_per_4.0.5/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:2:897:458 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:18:2:899:241 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:2:997:478 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:2:999:484 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:3:212:643 +Q5 finished at: 2022-4-1 17:18:3:244:885 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:3:297:618 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:3:299:723 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:3:300:744 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/iat_dda_read_skew_committed.txt b/index/result/tidb_per_4.0.5/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..14e114fe --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:50:282:523 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:50:284:223 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:50:384:50 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:50:386:80 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:50:387:732 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:50:389:120 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:18:50:483:43 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:50:484:126 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:50:486:192 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:50:487:270 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/iat_dda_read_write_skew1_committed.txt b/index/result/tidb_per_4.0.5/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..11751c74 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:50:741:146 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:50:743:10 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:50:841:29 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:50:843:64 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:50:845:10 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:50:846:433 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:50:941:996 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:50:943:422 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:50:945:989 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:50:947:119 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew.txt b/index/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..2494bef8 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:51:204:505 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:51:206:151 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:51:304:528 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:51:306:222 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:51:307:968 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:18:51:408:875 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:51:410:317 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:51:504:986 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:51:507:613 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:51:508:643 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew_committed.txt b/index/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..f86954bb --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:52:729:190 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:52:730:948 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:52:829:266 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:52:831:86 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:52:832:867 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:52:834:304 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:52:929:979 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:52:931:517 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:52:933:811 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:52:934:869 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/index/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..d0484c17 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:51:792:93 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 17:18:51:794:887 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 17:18:51:796:703 + Q4-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q4 finished at: 2022-4-1 17:18:51:892:38 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 17:18:51:894:878 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 17:18:51:896:667 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:51:898:19 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:51:992:459 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 17:18:51:995:395 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 17:18:52:17:11 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:52:18:320 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/index/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..97915f9e --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:52:272:338 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 17:18:52:275:353 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:52:372:473 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + (2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 17:18:52:376:201 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 17:18:52:379:43 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:52:380:507 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 17:18:52:474:286 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:52:475:571 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 17:18:52:477:746 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:52:478:777 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat.txt b/index/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..a005a361 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:53:190:390 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:18:53:192:537 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:53:290:310 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:18:53:292:443 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:53:392:212 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:18:53:394:298 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:18:53:491:82 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:18:53:591:371 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:18:53:691:347 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:53:791:19 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:53:891:58 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:53:991:89 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:18:53:993:927 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:53:997:549 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/index/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..ce54079c --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:57:701:203 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:57:703:186 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:57:802:14 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:57:804:2 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:57:805:397 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:18:57:901:199 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:18:57:903:797 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:18:57:905:480 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:57:906:818 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 17:18:58:2:354 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:18:58:3:548 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 17:18:58:6:281 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:18:58:7:454 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/index/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..5930da18 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:56:931:108 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:56:933:786 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:57:31:145 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:57:33:835 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:57:131:140 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 17:18:57:133:44 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:57:134:436 + Q8-T4 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-1 17:18:57:232:93 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:18:57:234:91 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:57:235:518 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 17:18:57:332:848 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:57:334:21 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 17:18:57:433:728 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 17:18:57:435:1 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:18:57:439:101 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:18:57:440:182 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/index/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..bef0d401 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:54:256:184 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 17:18:54:258:397 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:54:356:97 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:18:54:358:122 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:54:456:88 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:18:54:457:959 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:18:54:556:826 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:18:54:656:712 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:18:54:760:759 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:54:856:628 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:54:956:695 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:55:57:24 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:18:55:59:491 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:55:60:539 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/index/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..954fe524 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:55:307:587 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:18:55:311:953 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:55:407:651 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 17:18:55:409:755 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:55:507:558 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 17:18:55:509:581 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 17:18:55:608:352 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 17:18:55:708:614 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 17:18:55:808:578 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:55:908:46 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:56:8:412 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:56:108:35 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:18:56:110:722 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:56:111:752 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/index/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..25319fe8 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:58:265:658 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:18:58:267:749 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 17:18:58:269:824 + Q4-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q4 finished at: 2022-4-1 17:18:58:365:700 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 17:18:58:367:995 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 17:18:58:370:1 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:58:371:356 + Q8-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-1 17:18:58:465:628 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 17:18:58:467:815 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:18:58:469:876 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:58:471:10 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 17:18:58:566:403 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 17:18:58:567:913 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 17:18:58:570:640 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 17:18:58:571:805 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/index/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..8ad969aa --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:56:366:289 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 17:18:56:368:417 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:56:466:234 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 17:18:56:468:499 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:56:470:188 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:18:56:472:319 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 17:18:56:474:129 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:56:475:578 + Q9-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q9 finished at: 2022-4-1 17:18:56:566:275 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 17:18:56:568:376 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 17:18:56:570:21 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 17:18:56:571:981 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 17:18:56:573:596 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:56:574:963 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 17:18:56:667:487 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 17:18:56:668:701 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 17:18:56:671:432 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 17:18:56:672:415 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/iat_sda_lost_update_committed.txt b/index/result/tidb_per_4.0.5/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..c7d0b286 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:49:812:969 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:18:49:814:851 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:49:916:341 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:49:918:346 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:49:919:885 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 17:18:50:14:70 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:50:15:517 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:50:17:873 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:50:18:977 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/index/result/tidb_per_4.0.5/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..94cae838 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:49:351:711 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:49:353:431 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:49:451:816 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:49:453:678 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:49:454:952 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:18:49:552:238 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:49:553:497 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:49:555:579 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:49:556:577 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:49:557:448 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_double_write_skew1.txt b/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..aca8bdff --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:28:138:748 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:28:140:648 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:28:239:473 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:28:241:395 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:18:28:243:160 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:28:441:732 +Q6 finished at: 2022-4-1 17:18:28:442:240 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:28:539:148 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:18:28:541:816 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:28:542:945 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_double_write_skew1_committed.txt b/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..70a229b1 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:28:788:384 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:28:790:351 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:28:888:319 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:28:890:393 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:18:28:892:374 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:28:893:595 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:28:989:292 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:28:990:668 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:18:28:993:224 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:28:994:272 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_double_write_skew2.txt b/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..cbd6eeb1 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:29:244:577 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:29:246:796 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:29:344:454 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:29:345:987 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:18:29:451:966 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:29:462:756 + Q5 finished at: 2022-4-1 17:18:29:463:476 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:29:545:854 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:29:548:441 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:29:549:500 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew.txt b/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..48ffd56d --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:29:804:940 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:29:806:847 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:29:908:199 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:29:911:129 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:29:913:132 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:18:30:8:805 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:30:106:512 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:30:205:139 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:30:207:970 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:30:209:37 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew2.txt b/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..89330ca0 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:31:389:299 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:31:391:502 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:31:488:264 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:31:490:480 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:18:31:492:406 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:18:31:588:997 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:31:590:309 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:31:687:923 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:31:690:578 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:31:692:60 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew2_committed.txt b/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..c8593962 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:31:956:142 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:31:957:945 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:32:57:522 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:32:59:404 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:18:32:61:352 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:32:62:346 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:32:161:33 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:32:162:475 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:32:165:488 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:32:166:585 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..a943b74a --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:30:478:821 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:18:30:481:599 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:30:580:254 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:30:582:245 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:30:584:42 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:30:585:586 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:18:30:680:414 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:30:681:659 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 17:18:30:683:809 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:30:684:794 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..aee32930 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:30:932:928 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:18:30:941:337 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:31:32:161 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 17:18:31:34:288 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 17:18:31:36:75 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:31:37:441 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:18:31:133:687 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:31:134:768 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 17:18:31:137:277 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:31:138:399 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_write_read_skew.txt b/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..35ab3b08 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:27:42:324 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:27:44:53 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:27:142:591 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:27:144:598 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:18:27:146:611 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:18:27:242:964 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:27:342:758 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:27:442:580 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:27:444:919 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:27:445:844 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_write_read_skew_committed.txt b/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..2cda2b7b --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:27:688:525 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:27:690:229 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:27:788:397 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:27:790:120 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:18:27:791:784 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:27:792:952 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:18:27:889:167 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:27:890:325 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:27:892:528 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:27:893:466 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat.txt b/index/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..25612b58 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:32:421:217 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:32:441:957 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:32:524:124 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:32:525:995 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:18:32:527:868 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:18:32:621:211 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:18:32:623:57 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 17:18:32:625:121 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 17:18:32:722:306 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:32:723:685 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:32:821:546 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:32:921:503 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:18:32:925:124 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:32:926:239 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat_long_fork.txt b/index/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..d655be63 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN PESSIMISTIC;' + Q1 finished at: 2022-4-1 17:18:33:175:349 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 17:18:33:178:48 +Q3-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q3 finished at: 2022-4-1 17:18:33:275:332 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 17:18:33:277:24 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:33:376:151 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 17:18:33:379:154 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:18:33:382:46 + Q8-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-1 17:18:33:476:92 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:18:33:478:21 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:18:33:577:317 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:18:33:675:683 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:33:775:786 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:18:33:875:531 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:33:876:755 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:18:33:880:56 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:18:33:880:967 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/index/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..cebe2755 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:34:126:580 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:34:128:346 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:34:226:456 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:34:228:73 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:18:34:230:716 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:18:34:326:558 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:18:34:328:327 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 17:18:34:330:967 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:18:34:433:684 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:34:435:312 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:34:526:767 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:34:626:835 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:18:34:628:946 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:34:629:912 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/index/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..91a9724b --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:34:868:785 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 17:18:34:872:877 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:34:968:938 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 17:18:34:970:802 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:18:34:973:126 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:18:35:68:941 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 17:18:35:70:663 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 17:18:35:73:89 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:18:35:170:447 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:35:171:726 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:35:269:112 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:35:372:213 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:18:35:375:42 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:35:376:80 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/rat_sda_dirty_read.txt b/index/result/tidb_per_4.0.5/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..f2f8c6df --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:23:340:585 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:23:342:483 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:23:441:152 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:18:23:442:965 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:18:23:543:99 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:23:640:304 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:18:23:642:911 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:23:643:834 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/rat_sda_intermediate_read.txt b/index/result/tidb_per_4.0.5/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..e54303fd --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:24:524:952 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:24:526:999 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:24:624:877 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:18:24:626:601 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 17:18:24:728:575 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:24:824:939 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:24:926:390 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:18:24:928:728 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:24:929:876 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/rat_sda_intermediate_read_committed.txt b/index/result/tidb_per_4.0.5/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..06b3e66d --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:25:169:701 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:25:171:733 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:25:269:676 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:18:25:271:819 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:25:273:581 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 17:18:25:370:474 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:25:371:815 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:18:25:373:932 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:25:374:912 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/rat_sda_lost_self_update.txt b/index/result/tidb_per_4.0.5/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..95584d5f --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:26:496:957 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:26:498:608 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:26:597:25 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:18:26:697:678 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:18:26:713:125 + Q4 finished at: 2022-4-1 17:18:26:747:442 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:26:797:191 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:26:799:257 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:26:800:94 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/rat_sda_non_repeatable_read.txt b/index/result/tidb_per_4.0.5/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..5d195ed9 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:23:881:129 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:23:882:814 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:23:981:190 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:23:982:928 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:18:24:81:768 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:24:181:367 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:24:281:132 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:24:283:324 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:24:284:186 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/index/result/tidb_per_4.0.5/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..d6b6c4a7 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:25:613:427 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:18:25:615:709 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:25:713:446 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:25:715:99 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:25:716:215 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:18:25:814:728 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:25:815:707 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 17:18:25:817:454 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:25:818:300 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/index/result/tidb_per_4.0.5/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..42195cfc --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:26:53:8 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:18:26:57:856 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:26:153:74 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 17:18:26:155:17 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:26:156:234 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:18:26:254:22 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:26:255:10 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 17:18:26:256:875 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:26:257:770 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/tidb_half-predicate-read-skew_repeatable-read.txt b/index/result/tidb_per_4.0.5/repeatable-read/tidb_half-predicate-read-skew_repeatable-read.txt new file mode 100644 index 00000000..9392d87b --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/tidb_half-predicate-read-skew_repeatable-read.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: half-predicate-read-skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------tidb_half-predicate-read-skew test prepare---------- +T1 execute sql: 'DROP TABLE IF EXISTS t1;' +T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + +----------tidb_half-predicate-read-skew test run---------- +T1 execute sql: 'select * from t1 where v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + + T2 execute sql: 'update t1 set v=2 where k=1;' + T2 execute sql: 'insert into t1 values(0,0);' +T1 execute sql: 'select * from t1 where k=1;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,2) + + T3 execute sql: 'select * from t1;' + current_result: + (0,0) (1,2) + *(1) expected_result: + (0,0) (1,2) + *(2) expected_result: + (0,0) (1,2) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/tidb_half-predicate-write-skew_repeatable-read.txt b/index/result/tidb_per_4.0.5/repeatable-read/tidb_half-predicate-write-skew_repeatable-read.txt new file mode 100644 index 00000000..ef528ad4 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/tidb_half-predicate-write-skew_repeatable-read.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: half-predicate-write-skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------tidb_half-predicate-write-skew test prepare---------- +T1 execute sql: 'DROP TABLE IF EXISTS t1;' +T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + +----------tidb_half-predicate-write-skew test run---------- +T1 execute sql: 'select * from t1 where v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + + T2 execute sql: 'select * from t1 where k=1;' + current_result: + (1,1) + (1) expected_result: + (1,2) + *(2) expected_result: + (1,1) + +T1 execute sql: 'update t1 set v=2 where k=1;' + T2 execute sql: 'insert into t1 values(0,0);' + T3 execute sql: 'select * from t1;' + current_result: + (0,0) (1,2) + *(1) expected_result: + (0,0) (1,2) + *(2) expected_result: + (0,0) (1,2) + + +Test Result: Exception +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_double_write_skew2_committed.txt b/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..b5987602 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:39:456:404 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:39:458:134 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:39:556:527 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:39:558:289 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:18:39:664:20 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:39:669:237 + Q5 finished at: 2022-4-1 17:18:39:669:533 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:39:670:828 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:39:673:157 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:39:674:42 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_full_write_skew_c1.txt b/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..ff5b2b98 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:39:919:549 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:39:921:293 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:40:19:806 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:40:21:628 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:18:40:140:366 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:40:219:938 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:18:40:738:250 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_full_write_skew_c2.txt b/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..a5bc1ae6 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:40:992:612 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:40:994:500 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:41:92:591 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:41:94:573 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:18:41:217:550 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:41:294:149 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:18:41:815:491 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_full_write_skew_committed.txt b/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..2d318df2 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:42:64:173 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:42:65:861 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:42:164:117 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:42:165:846 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:18:42:284:635 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:42:285:986 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:18:42:982:480 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew1_c1.txt b/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..5642a1f3 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:43:233:215 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:43:234:834 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:43:333:235 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:43:335:173 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:43:336:759 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:43:543:321 +Q6 finished at: 2022-4-1 17:18:43:543:771 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:43:545:119 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:43:547:365 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:43:548:404 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew1_c2.txt b/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..9aee3526 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:43:800:846 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:43:802:505 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:43:904:125 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:43:906:337 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:43:908:331 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:44:121:557 +Q6 finished at: 2022-4-1 17:18:44:121:880 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:44:201:368 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:44:203:758 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:44:204:741 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew2_c1.txt b/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..55275f9c --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:44:464:798 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:44:466:616 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:44:567:1 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:44:569:647 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:18:44:670:231 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:44:685:987 + Q5 finished at: 2022-4-1 17:18:44:718:311 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:44:765:234 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:44:767:659 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:44:768:716 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew2_c2.txt b/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..c38774ba --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:45:23:698 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:45:25:469 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:45:123:609 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:45:125:363 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:18:45:232:662 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:45:430:631 + Q5 finished at: 2022-4-1 17:18:45:477:930 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:45:479:338 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:45:482:74 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:45:483:163 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew2_committed.txt b/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..8b8510dd --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:45:733:818 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:45:735:590 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:45:833:625 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:45:835:455 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:45:941:569 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:45:957:453 + Q5 finished at: 2022-4-1 17:18:45:957:842 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:45:959:216 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:45:964:820 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:45:965:963 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/wat_mda_step_wat_c1.txt b/index/result/tidb_per_4.0.5/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..e59c9f71 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:46:221:206 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:46:223:106 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:46:321:192 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:46:323:25 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:18:46:424:27 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:18:46:434:556 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-1 17:18:46:534:511 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:46:628:209 + Q8 finished at: 2022-4-1 17:18:46:628:520 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:46:721:954 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:18:47:434:504 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/wat_mda_step_wat_c2.txt b/index/result/tidb_per_4.0.5/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..2bd1da08 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:47:689:987 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:47:691:750 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:47:790:686 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:47:792:661 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:47:892:71 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:18:48:95:309 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-1 17:18:48:200:495 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:48:302:211 + Q8 finished at: 2022-4-1 17:18:48:342:272 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:48:491:37 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:18:49:100:688 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/wat_sda_dirty_write_1abort.txt b/index/result/tidb_per_4.0.5/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..c2ae16f5 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:35:621:612 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:35:623:482 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:35:721:575 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:18:35:822:416 + Q4 finished at: 2022-4-1 17:18:35:822:549 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:35:921:778 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:18:35:923:951 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:18:35:948:426 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:35:949:734 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/wat_sda_dirty_write_2commit.txt b/index/result/tidb_per_4.0.5/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..f62b8419 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:36:171:816 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:36:173:508 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:36:271:738 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:18:36:378:337 + Q4 finished at: 2022-4-1 17:18:36:378:621 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:36:472:270 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:18:36:474:591 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:18:36:496:216 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:36:497:395 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/wat_sda_full_write.txt b/index/result/tidb_per_4.0.5/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..79754370 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:36:726:925 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:36:728:791 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:36:826:967 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 17:18:36:927:342 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:18:36:932:775 + Q4 finished at: 2022-4-1 17:18:36:933:137 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:37:27:145 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:18:37:29:486 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:37:30:425 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/wat_sda_full_write_committed.txt b/index/result/tidb_per_4.0.5/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..c6cb147c --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:37:277:443 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:37:279:91 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:37:377:292 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 17:18:37:477:773 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:37:488:445 + Q4 finished at: 2022-4-1 17:18:37:488:738 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:37:489:903 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:18:37:491:986 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:37:492:963 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/wat_sda_lost_self_update_committed.txt b/index/result/tidb_per_4.0.5/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..74875ee6 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:38:953:266 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:38:955:48 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:39:53:300 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:18:39:153:833 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:39:169:936 + Q4 finished at: 2022-4-1 17:18:39:203:317 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:39:204:807 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:39:207:130 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:39:208:236 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/wat_sda_lost_update_c1.txt b/index/result/tidb_per_4.0.5/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..78524700 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:37:735:732 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:18:37:737:319 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:37:835:664 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:37:837:558 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:38:50:696 +Q5 finished at: 2022-4-1 17:18:38:51:106 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:18:38:52:418 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:38:54:550 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:38:55:608 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/repeatable-read/wat_sda_lost_update_c2.txt b/index/result/tidb_per_4.0.5/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..047ebb94 --- /dev/null +++ b/index/result/tidb_per_4.0.5/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:38:302:254 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:18:38:304:184 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:38:402:343 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:38:404:211 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:38:612:120 +Q5 finished at: 2022-4-1 17:18:38:612:440 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:38:702:519 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:38:704:894 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:38:706:128 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/index/result/tidb_per_4.0.5/result_summary/read-committed_total-result.txt b/index/result/tidb_per_4.0.5/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..38745346 --- /dev/null +++ b/index/result/tidb_per_4.0.5/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/index/result/tidb_per_4.0.5/result_summary/repeatable-read_total-result.txt b/index/result/tidb_per_4.0.5/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..42d5fc7b --- /dev/null +++ b/index/result/tidb_per_4.0.5/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/index/testcase/iat_dda_read_skew_committed.txt b/index/testcase/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..6dc7af49 --- /dev/null +++ b/index/testcase/iat_dda_read_skew_committed.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=1 WHERE k=1; +5-2-UPDATE t1 SET v=1 WHERE k=0; +6-2-COMMIT; +7-1-SELECT * from t1 WHERE k=1; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-0,0 +7-1,0 +9-0,1 1,1 + +2-0,1 +7-1,1 +9-0,1 1,1 +} \ No newline at end of file diff --git a/index/testcase/iat_dda_read_write_skew1_committed.txt b/index/testcase/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..794a5a36 --- /dev/null +++ b/index/testcase/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=1; +5-2-UPDATE t1 SET v=1 WHERE k=0; +6-2-COMMIT; +7-1-UPDATE t1 SET v=1 WHERE k=1; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-0,0 +9-0,1 1,2 + +2-0,1 +9-0,1 1,1 +} diff --git a/index/testcase/iat_dda_write_skew.txt b/index/testcase/iat_dda_write_skew.txt new file mode 100644 index 00000000..744cb016 --- /dev/null +++ b/index/testcase/iat_dda_write_skew.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where k=0; +3-2-BEGIN; +4-2-select * from t1 where k=1; +5-2-update t1 set v=1 where k=0; +6-1-update t1 set v=1 where k=1; +7-1-COMMIT; +8-2-COMMIT; +9-3-select * from t1 ORDER BY k; +8-3-COMMIT; + +serializable { +2-0,0 +4-1,1 +9-0,1 1,1 + +2-0,1 +4-1,0 +9-0,1 1,1 +} diff --git a/index/testcase/iat_dda_write_skew_committed.txt b/index/testcase/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..d897428d --- /dev/null +++ b/index/testcase/iat_dda_write_skew_committed.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where k=0; +3-2-BEGIN; +4-2-select * from t1 where k=1; +5-2-update t1 set v=1 where k=0; +6-2-COMMIT; +7-1-update t1 set v=1 where k=1; +8-1-COMMIT; +9-3-select * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-0,0 +4-1,1 +9-0,1 1,1 + +2-0,1 +4-1,0 +9-0,1 1,1 +} diff --git a/index/testcase/iat_dda_write_skew_pred_insert.txt b/index/testcase/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..575b255b --- /dev/null +++ b/index/testcase/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,25 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where v<2; +3-2-BEGIN; +4-2-select * from t1 where v>2; +5-2-INSERT INTO t1 VALUES (0, 1); +6-1-INSERT INTO t1 VALUES (1, 3); +7-1-COMMIT; +8-2-COMMIT; +9-3-select * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-null +4-1,3 +9-0,1 1,3 + +2-0,1 +4-null +9-0,1 1,3 +} + diff --git a/index/testcase/iat_mda_step_iat.txt b/index/testcase/iat_mda_step_iat.txt new file mode 100644 index 00000000..9f1a518a --- /dev/null +++ b/index/testcase/iat_mda_step_iat.txt @@ -0,0 +1,53 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where k=2; +3-2-BEGIN; +4-2-select * from t1 where k=0; +5-3-BEGIN; +6-3-select * from t1 where k=1; +7-1-update t1 set v=1 where k=0; +8-2-update t1 set v=1 where k=1; +9-3-update t1 set v=1 where k=2; +10-1-COMMIT; +11-2-COMMIT; +12-3-COMMIT; +13-4-select * from t1 ORDER BY k; +14-4-COMMIT; + +serializable { +2-2,0 +4-0,1 +6-1,1 +13-0,1 1,1 2,1 + +2-2,0 +4-0,1 +6-1,0 +13-0,1 1,1 2,1 + +2-2,0 +4-0,0 +6-1,1 +13-0,1 1,1 2,1 + +2-2,1 +4-0,0 +6-1,1 +13-0,1 1,1 2,1 + +2-2,1 +4-0,1 +6-1,0 +13-0,1 1,1 2,1 + +2-2,1 +4-0,0 +6-1,0 +13-0,1 1,1 2,1 +} diff --git a/index/testcase/iat_sda_lost_update_committed.txt b/index/testcase/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..b8ecf732 --- /dev/null +++ b/index/testcase/iat_sda_lost_update_committed.txt @@ -0,0 +1,22 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-2-COMMIT; +6-1-UPDATE t1 SET v=1 WHERE k=0; +7-1-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +2-0,0 +8-0,2 + +2-0,2 +8-0,1 +} diff --git a/index/testcase/iat_sda_non_repeatable_read_committed.txt b/index/testcase/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..ab3a4efa --- /dev/null +++ b/index/testcase/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=1 WHERE k=0; +5-2-COMMIT; +6-1-SELECT * from t1 WHERE k=0; +7-1-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +2-0,0 +6-0,0 +8-0,1 + +2-0,1 +6-0,1 +8-0,1 +} diff --git a/index/testcase/rat_dda_double_write_skew1.txt b/index/testcase/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..83deae26 --- /dev/null +++ b/index/testcase/rat_dda_double_write_skew1.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-begin; +2-1-update t1 set v=1 where k=0; +3-2-begin; +4-2-update t1 set v=1 where k=1; +5-2-select * from t1 where k=0; +6-1-update t1 set v=2 where k=1; +7-2-commit; +8-1-commit; +9-3-SELECT * FROM t1 ORDER BY k; +10-3-COMMIT; + +serializable { +5-0,1 +9-0,1 1,1 + +5-0,0 +9-0,1 1,2 +} \ No newline at end of file diff --git a/index/testcase/rat_dda_double_write_skew1_committed.txt b/index/testcase/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..bbe68e15 --- /dev/null +++ b/index/testcase/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-begin; +2-1-update t1 set v=1 where k=0; +3-2-begin; +4-2-update t1 set v=1 where k=1; +5-2-select * from t1 where k=0; +6-2-commit; +7-1-update t1 set v=2 where k=1; +8-1-commit; +9-3-SELECT * FROM t1 ORDER BY k; +10-3-COMMIT; + +serializable { +5-0,1 +9-0,1 1,1 + +5-0,0 +9-0,1 1,2 +} diff --git a/index/testcase/rat_dda_double_write_skew2.txt b/index/testcase/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..9e81e864 --- /dev/null +++ b/index/testcase/rat_dda_double_write_skew2.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-begin; +2-1-update t1 set v=1 where k=0; +3-2-begin; +4-2-update t1 set v=1 where k=1; +5-2-update t1 set v=2 where k=0; +6-1-select * from t1 where k=1; +7-1-commit; +8-2-commit; +9-3-SELECT * FROM t1 ORDER BY k; +10-3-COMMIT; + +serializable { +6-1,0 +9-0,2 1,1 + +6-1,1 +9-0,1 1,1 +} \ No newline at end of file diff --git a/index/testcase/rat_dda_read_skew.txt b/index/testcase/rat_dda_read_skew.txt new file mode 100644 index 00000000..648f49b3 --- /dev/null +++ b/index/testcase/rat_dda_read_skew.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=1 WHERE k=1; +5-2-UPDATE t1 SET v=1 WHERE k=0; +6-1-SELECT * from t1 WHERE k=1; +7-2-COMMIT; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-0,0 +6-1,0 +9-0,1 1,1 + +2-0,1 +6-1,1 +9-0,1 1,1 +} diff --git a/index/testcase/rat_dda_read_skew2.txt b/index/testcase/rat_dda_read_skew2.txt new file mode 100644 index 00000000..a3a4691d --- /dev/null +++ b/index/testcase/rat_dda_read_skew2.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k=1; +5-2-SELECT * from t1 WHERE k=0; +6-1-UPDATE t1 SET v=1 WHERE k=1; +7-1-COMMIT; +8-2-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +4-1,1 +5-0,1 +9-0,1 1,1 + +4-1,0 +5-0,0 +9-0,1 1,1 +} diff --git a/index/testcase/rat_dda_read_skew2_committed.txt b/index/testcase/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..4a43fdbc --- /dev/null +++ b/index/testcase/rat_dda_read_skew2_committed.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k=1; +5-2-SELECT * from t1 WHERE k=0; +6-2-COMMIT; +7-1-UPDATE t1 SET v=1 WHERE k=1; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +4-1,1 +5-0,1 +9-0,1 1,1 + +4-1,0 +5-0,0 +9-0,1 1,1 +} \ No newline at end of file diff --git a/index/testcase/rat_dda_write_read_skew.txt b/index/testcase/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..90b9ada2 --- /dev/null +++ b/index/testcase/rat_dda_write_read_skew.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-update t1 set v=1 where k=0; +3-2-BEGIN; +4-2-update t1 set v=1 where k=1; +5-2-select * from t1 where k=0; +6-1-select * from t1 where k=1; +7-2-COMMIT; +8-1-commit; +9-3-select * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +5-0,1 +6-1,0 +9-0,1 1,1 + +5-0,0 +6-1,1 +9-0,1 1,1 +} \ No newline at end of file diff --git a/index/testcase/rat_dda_write_read_skew_committed.txt b/index/testcase/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..764cb1a2 --- /dev/null +++ b/index/testcase/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,29 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-update t1 set v=1 where k=0; +3-2-BEGIN; +4-2-update t1 set v=1 where k=1; +5-2-select * from t1 where k=0; +6-2-COMMIT; +7-1-select * from t1 where k=1; +8-1-COMMIT; +9-3-select * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +5-0,1 +7-1,0 +9-0,1 1,1 + +5-0,0 +7-1,1 +9-0,1 1,1 +} + + + diff --git a/index/testcase/rat_mda_step_rat.txt b/index/testcase/rat_mda_step_rat.txt new file mode 100644 index 00000000..6a3e0eb3 --- /dev/null +++ b/index/testcase/rat_mda_step_rat.txt @@ -0,0 +1,53 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-update t1 set v=1 where k=0; +3-2-BEGIN; +4-2-update t1 set v=1 where k=1; +5-2-select * from t1 where k=0; +6-3-BEGIN; +7-3-update t1 set v=1 where k=2; +8-3-select * from t1 where k=1; +9-1-select * from t1 where k=2; +10-1-COMMIT; +11-2-COMMIT; +12-3-COMMIT; +13-4-select * from t1 ORDER BY k; +14-4-COMMIT; + +serializable { +5-0,1 +8-1,1 +9-2,0 +13-0,1 1,1 2,1 + +5-0,1 +8-1,0 +9-2,0 +13-0,1 1,1 2,1 + +5-0,0 +8-1,1 +9-2,0 +13-0,1 1,1 2,1 + +5-0,0 +8-1,1 +9-2,1 +13-0,1 1,1 2,1 + +5-0,1 +8-1,0 +9-2,1 +13-0,1 1,1 2,1 + +5-0,0 +8-1,0 +9-2,1 +13-0,1 1,1 2,1 +} diff --git a/index/testcase/rat_sda_dirty_read.txt b/index/testcase/rat_sda_dirty_read.txt new file mode 100644 index 00000000..51a54867 --- /dev/null +++ b/index/testcase/rat_sda_dirty_read.txt @@ -0,0 +1,18 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k = 0; +5-1-ROLLBACK; +6-2-COMMIT; +7-3-SELECT * FROM t1; +8-3-COMMIT; + +serializable { +4-0,0 +7-0,0 +} diff --git a/index/testcase/rat_sda_intermediate_read.txt b/index/testcase/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..7054534f --- /dev/null +++ b/index/testcase/rat_sda_intermediate_read.txt @@ -0,0 +1,23 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k=0; +5-1-UPDATE t1 SET v=2 WHERE k=0; +6-2-COMMIT; +7-1-COMMIT; +8-3-SELECT * from t1; +9-3-COMMIT; + +serializable { +4-0,2 +8-0,2 + +4-0,0 +8-0,2 +} + diff --git a/index/testcase/rat_sda_intermediate_read_committed.txt b/index/testcase/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..cd9132fe --- /dev/null +++ b/index/testcase/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,23 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k=0; +5-2-COMMIT; +6-1-UPDATE t1 SET v=2 WHERE k=0; +7-1-COMMIT; +8-3-SELECT * from t1; +9-3-COMMIT; + +serializable { +4-0,2 +8-0,2 + +4-0,0 +8-0,2 +} + diff --git a/index/testcase/rat_sda_lost_self_update.txt b/index/testcase/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..31745804 --- /dev/null +++ b/index/testcase/rat_sda_lost_self_update.txt @@ -0,0 +1,22 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-1-SELECT * from t1 WHERE k=0; +6-1-COMMIT; +7-2-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +5-0,1 +8-0,2 + +5-0,1 +8-0,1 +} diff --git a/index/testcase/rat_sda_non_repeatable_read.txt b/index/testcase/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..18d8be0b --- /dev/null +++ b/index/testcase/rat_sda_non_repeatable_read.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN;; +4-2-UPDATE t1 SET v=1 WHERE k=0; +5-1-SELECT * from t1 WHERE k=0; +6-2-COMMIT; +7-1-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +2-0,0 +5-0,0 +8-0,1 + +2-0,1 +5-0,1 +8-0,1 +} \ No newline at end of file diff --git a/index/testcase/rat_sda_non_repeatable_read_pred_insert.txt b/index/testcase/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..ec8a64b7 --- /dev/null +++ b/index/testcase/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,23 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE v>0; +3-2-BEGIN;; +4-2-INSERT INTO t1 VALUES (0, 1); +5-1-SELECT * from t1 WHERE v>0; +6-2-COMMIT; +7-1-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +2-null +5-null +8-0,1 + +2-0,1 +5-0,1 +8-0,1 +} \ No newline at end of file diff --git a/index/testcase/wat_dda_double_write_skew2_committed.txt b/index/testcase/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..c925c802 --- /dev/null +++ b/index/testcase/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-begin; +2-1-update t1 set v=1 where k=0; +3-2-begin; +4-2-update t1 set v=1 where k=1; +5-2-update t1 set v=2 where k=0; +6-2-commit; +7-1-select * from t1 where k=1; +8-1-commit; +9-3-SELECT * FROM t1 ORDER BY k; +10-3-COMMIT; + +serializable { +7-1,0 +9-0,2 1,1 + +7-1,1 +9-0,1 1,1 +} \ No newline at end of file diff --git a/index/testcase/wat_dda_full_write_skew_c1.txt b/index/testcase/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..2ad62d13 --- /dev/null +++ b/index/testcase/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,22 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=1; +5-2-UPDATE t1 SET v=2 WHERE k=0; +6-1-UPDATE t1 SET v=1 WHERE k=1; +7-1-COMMIT; +8-2-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +9-0,1 1,1 + +9-0,2 1,2 +} diff --git a/index/testcase/wat_dda_full_write_skew_committed.txt b/index/testcase/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..de5b71d0 --- /dev/null +++ b/index/testcase/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,22 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=1; +5-2-UPDATE t1 SET v=2 WHERE k=0; +6-2-COMMIT; +7-1-UPDATE t1 SET v=1 WHERE k=1; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +9-0,1 1,1 + +9-0,2 1,2 +} diff --git a/index/testcase/wat_dda_read_write_skew1_c1.txt b/index/testcase/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..e129c548 --- /dev/null +++ b/index/testcase/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=1; +5-2-UPDATE t1 SET v=1 WHERE k=0; +6-1-UPDATE t1 SET v=1 WHERE k=1; +7-1-COMMIT; +8-2-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-0,0 +9-0,1 1,2 + +2-0,1 +9-0,1 1,1 +} diff --git a/index/testcase/wat_dda_read_write_skew2_c1.txt b/index/testcase/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..2b92f31a --- /dev/null +++ b/index/testcase/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k=1; +5-2-UPDATE t1 SET v=2 WHERE k=0; +6-1-UPDATE t1 SET v=1 WHERE k=1; +7-1-COMMIT; +8-2-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +4-1,1 +9-0,2 1,1 + +4-1,0 +9-0,1 1,1 +} diff --git a/index/testcase/wat_dda_read_write_skew2_committed.txt b/index/testcase/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..ade01f80 --- /dev/null +++ b/index/testcase/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k=1; +5-2-UPDATE t1 SET v=2 WHERE k=0; +6-2-COMMIT; +7-1-UPDATE t1 SET v=1 WHERE k=1; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +4-1,1 +9-0,2 1,1 + +4-1,0 +9-0,1 1,1 +} diff --git a/index/testcase/wat_mda_step_wat_c1.txt b/index/testcase/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..1a57bfed --- /dev/null +++ b/index/testcase/wat_mda_step_wat_c1.txt @@ -0,0 +1,35 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-update t1 set v=1 where k=0; +3-2-BEGIN; +4-2-update t1 set v=2 where k=1; +5-2-update t1 set v=2 where k=0; +6-3-BEGIN; +7-3-update t1 set v=3 where k=2; +8-3-update t1 set v=3 where k=1; +9-1-update t1 set v=1 where k=2; +10-1-COMMIT; +11-2-COMMIT; +12-3-COMMIT; +13-4-select * from t1 ORDER BY k; +14-4-COMMIT; + +serializable { +13-0,2 1,3 2,3 + +13-0,2 1,2 2,3 + +13-0,1 1,3 2,3 + +13-0,1 1,3 2,1 + +13-0,2 1,2 2,1 + +13-0,1 1,2 2,1 +} diff --git a/index/testcase/wat_sda_dirty_write_2commit.txt b/index/testcase/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..736f479f --- /dev/null +++ b/index/testcase/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,21 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-1-COMMIT; +6-2-COMMIT; +7-3-SELECT * FROM t1; +8-3-DROP TABLE IF EXISTS t1; +9-3-COMMIT; + + +serializable { +7-0,1 + +7-0,2 +} diff --git a/index/testcase/wat_sda_full_write.txt b/index/testcase/wat_sda_full_write.txt new file mode 100644 index 00000000..c4c9ceaf --- /dev/null +++ b/index/testcase/wat_sda_full_write.txt @@ -0,0 +1,20 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-1-UPDATE t1 SET v=3 WHERE k=0; +6-1-COMMIT; +7-2-COMMIT; +8-3-SELECT * from t1; +9-3-COMMIT; + +serializable { +8-0,2 + +8-0,3 +} diff --git a/index/testcase/wat_sda_full_write_committed.txt b/index/testcase/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..97b442de --- /dev/null +++ b/index/testcase/wat_sda_full_write_committed.txt @@ -0,0 +1,20 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-2-COMMIT; +6-1-UPDATE t1 SET v=3 WHERE k=0; +7-1-COMMIT; +8-3-SELECT * from t1; +9-3-COMMIT; + +serializable { +8-0,2 + +8-0,3 +} \ No newline at end of file diff --git a/index/testcase/wat_sda_lost_self_update_committed.txt b/index/testcase/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..7b8a0059 --- /dev/null +++ b/index/testcase/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,22 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-2-COMMIT; +6-1-SELECT * from t1 WHERE k=0; +7-1-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +6-0,1 +8-0,2 + +6-0,1 +8-0,1 +} diff --git a/index/testcase/wat_sda_lost_update_c1.txt b/index/testcase/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..5bc21686 --- /dev/null +++ b/index/testcase/wat_sda_lost_update_c1.txt @@ -0,0 +1,22 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-1-UPDATE t1 SET v=1 WHERE k=0; +6-1-COMMIT; +7-2-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +2-0,0 +8-0,2 + +2-0,2 +8-0,1 +} \ No newline at end of file diff --git a/install/doc/en/setup_db_environment b/install/doc/en/setup_db_environment new file mode 100644 index 00000000..4e7960cb --- /dev/null +++ b/install/doc/en/setup_db_environment @@ -0,0 +1,22 @@ +# Database environment + +We are using Unix ODBC to connect databases. The following are the general steps to set up the environment for successfully connecting to databases. + + +0. Setup database service (e.g., by docker) +1. Install the UnixODBC +2. Install the ODBC driver for specific databases +3. Configure unixODBC by /etc/odbc.ini (e.g., ip, port, username, password, database name) and /etc/odbcinst.ini (e.g., drivers) +4. Test isql connection + + +The following are examples we set up databases (Oracle 12c, PostgreSQL, SQL Server, Oceanbase, CockroachDB, TiDB, MySQL) by dockers in Centos systems. + + +====== Copyright && Authorship ====== + +Original from farrisli at Tencent Inc. Check it out the Chinese version: by fishheader from JianShu, link: https://www.jianshu.com/u/e9202bc75c4e + +Author: axingguchen at Tencent Inc. + + diff --git a/install/doc/en/setup_db_postgresql b/install/doc/en/setup_db_postgresql new file mode 100644 index 00000000..3672d094 --- /dev/null +++ b/install/doc/en/setup_db_postgresql @@ -0,0 +1,101 @@ +# Setup PostgreSQL 12.4 + +0. Download and install PostgreSQL + + +We refer to a decent document for detailed setups as follows. +https://www.cnblogs.com/kcxg/p/10718211.html + + +Remember to setup the environment: +``` +// edit /etc/profile if root user, or edit ~/.bash_profile if other suers +export PGHOME=/usr/local/pgsql/ +export PGUSER=test123 +export PGPORT=5432 +export PGDATA=$PGHOME/data +export PATH=$PGHOME/bin:$PATH:$HOME/bin +export LD_LIBRARY_PATH=$PGHOME/lib:$LD_LIBRARY_PATH +// Source it +source /etc/profile +``` + + +1. install UnixODBC + +Once database is up, we also need to install client to connect databases. The typical clients are sqlplus and isql(odbc-oracle), we will deploy the latter one in our tests. + +``` +// install UnixODBC +yum install unixODBC +yum install unixODBC-devel + +// to check out the installed rpm package +rpm -qa | grep unixodbc + +// find the installed location +rpm -ql [rpm_package_name] + + +// add it to enviroments at /etc/profile if root user, otherwise edit ~/.bash_profile +export ODBCSYSINI=/etc +export ODBCINI=/etc/odbc.ini + +// make it work: +source /etc/profile +``` + + +2. install odbc-pg + +Download site: http://rpmfind.net/linux/rpm2html/search.php?query=postgresql-odbc(x86-64) +Here is the example package name: postgresql-odbc-10.03.0000-2.el8.x86_64.rpm + + +``` +// yum install for rpm package +yum install postgresql-odbc-10.03.0000-2.el8.x86_64 + +// set up environment +// edit /etc/profile if root user, ~/.bash_profile if other users +ORACLE_HOME=/usr/lib/oracle/21/client64 +export ORACLE_HOME +TNS_ADMIN=/usr/lib/oracle/21/client64/network/admin +export TNS_ADMIN +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH: /usr/lib/oracle/21/client64/lib + +// source it: +source /etc/profile + +// // to check out the installed rpm package +rpm -qa | grep [rpm_name] + +// find the installed location +rpm -ql [rpm_package_name] +``` + +3. configure unixODBC + +``` +// /etc/odbc.ini +[pg] +Driver=PG +USER=test123 +Password=[your_password_here] +PORT=5432 +SERVER=[your_pg_service_ip_address] + +// /etc/odbcinst.ini +[PG] +Description=ODBC for PostgreSQL +Driver=/usr/lib64/psqlodbcw.so +Setup=/usr/lib64/psqlodbcw.so +FileUsage=1 +``` + +4. Test isql connection + +``` +isql pg -v +``` +You will connect to SQL command line once succeed. \ No newline at end of file diff --git a/install/index.html b/install/index.html new file mode 100644 index 00000000..24520e4a --- /dev/null +++ b/install/index.html @@ -0,0 +1,462 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Install | 3TS-Coo | 3TS + + + + + + + + + + + + + +
+
+ +
+
+ + + + + +
+ + + + + + + + +
+ +
+ +
+
+ + +
+ + 0% +
+ + +
+
+
+ + + + +
+ + + + + +
+
+ +

Install +

+ + + +
+ + + + +
+

Dependence

In order to generate Makefile, compile the code, and link the databases.

+

It’s necessary to install:

+
    +
  • CMake

    +
  • +
  • ODBC

    +
  • +
  • Database to be tested(e.g. mysql)

    +
  • +
  • The connector corresponding to the database (e.g. mysql-connector-odbc)

    +
  • +
  • etc.

    +
  • +
+

Usage

To generate Makefile (all commands are executed under ‘3TS/src/dbtest’):

+
1
cmake -S ./
+ +

To complie the code:

+
1
make
+ +

Example

For test cases, it specify in “do_test_list.txt”. Use “#” to exclude (comment) the test case.
We provide three levels of test cases, i.e., the basic cases (33 anomalies in the paper), the predicate cases, and the MDA cases (with multiple transactions and objects). For specific test cases to evaluate, we specify it in do_test_list.txt.

+
1
2
3
4
5
6
7
8
// to test all test cases
cp t/bk_do_test_list_all.txt do_test_list.txt

// to test only basic cases
cp t/bk_do_test_list_basic.txt do_test_list.txt

// to test only predicate cases
cp t/bk_do_test_list_predicate.txt do_test_list.txt
+ +

Edit “auto_test.sh” for database configurations (e.g., username, password). Edit “auto_test_all.sh” for databse (e.g., PostgreSQL, and MySQL) and isolation (e.g., SERIALIZABLE, REPEATABLE READ, READ COMMITTED, and READ UNCOMMITTED) configuration.

+

To run the test (under ‘3TS/src/dbtest’):

+
1
./auto_test_all.sh
+ +

Config

When generating the Makefile, you may get the following error message

+
1
2
3
4
5
6
Could not find a package configration file provided by "odbc" with any of
the following names:


odbcConfig.cmake
odbc-config.cmake
+ +

To solve this error:

+
1
2
3
4
find / -name "FindODBC.cmake"

//filepath is obtained by "find"
cp filepath/FindODBC.cmake 3TS/src/dbtest
+ +

Then update CMakeList.txt.

+

Write in:

+
1
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
+ +

Modify:

+
1
find_package(odbc REQUIRED) ---> find_package(ODBC REQUIRED)
+ +

Analyze an anomaly case run by PostgreSQL

Setup PostgreSQL

Please check out the general environment setup and PostgreSQL setup.

+

Check if it successfully connects to PostgreSQL server by isql,

+
1
isql pg -v
+ +

Once the connected information showed, we are able to run our code to test designed anomaly schedules.

+

The anomaly test cases are Write-read Skew and Write-read Skew Committed, the schedules are as follows:

+

Write-read Skew :

+

Write-read Skew Committed :

+

Under “src/dbtest/“ folder, add rat_dda_write_read_skew and rat_dda_write_read_skew_committed to “do_test_list.txt”.
Add the following to “auto_test_all.sh” for runing PostgreSQL with four isolation levels:

+
1
2
3
4
./auto_test.sh "pg" "read-uncommitted"
./auto_test.sh "pg" "read-committed"
./auto_test.sh "pg" "repeatable-read"
./auto_test.sh "pg" "serializable"
+ +

Run test by “./auto_test_all.sh”. The test result are in the following:

+ + + + + + + + + + + + + + + + + + + + + + + +
Isolation levelWrite-read Skew (SQL)Write-read Skew Committed (SQL)
SerializableRollback (result)Rollback (result)
Repeatable ReadAnomaly reported (result)Anomaly reported (result)
Read (Un)CommittedAnomaly reported (result)Pass the test (result)
+

At serializbale level, both tested cases detected consecutive RW conflicts.
At Repeatable Read level, both generated two consecutive RW confilcts and allowed.
At Read (Un)Committed level, Write-read Skew test case generated two consecutive RW ($R_2W_1,R_1W_2$) conflicts while Write-read Skew Committed test case read the newest committed version and executed into non-anomaly schedule ($R_2W_1,W_2C_2R_1$).

+

License

GPLv3 @ Tencent

+ +
+ + + +
+ + + + + + + +
+ + + + +
+ + + + + + + + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/install/test_result/centralizend_result/crdb/result_summary/serializable_total-result.txt b/install/test_result/centralizend_result/crdb/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..63240c80 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/result_summary/serializable_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Avoid + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Avoid + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Avoid + +rat_mda_step_rat_predicate_based_insert: Avoid + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +iat_mda_step_iat_predicate_based_delete: Rollback + +iat_mda_step_iat_predicate_based_insert: Rollback + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Rollback + diff --git a/install/test_result/centralizend_result/crdb/serializable/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/crdb/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..da1d915e --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:6:619:49 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:53:6:622:619 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:6:720:978 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:53:6:724:491 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:53:6:727:692 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:53:6:730:895 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 16:53:6:823:571 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:53:6:825:405 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:53:6:828:827 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/crdb/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..70d32f52 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:7:145:274 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:53:7:148:534 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:7:247:353 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:53:7:250:486 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:53:7:253:575 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:53:7:256:516 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889587.144869253,0 too old; wrote at 1648889587.246952816,1 errcode: HY000 +Q7 failed at: 2022-4-2 16:53:8:48:989 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889587.144869253,0 too old; wrote at 1648889587.246952816,1 + diff --git a/install/test_result/centralizend_result/crdb/serializable/iat_dda_write_skew.txt b/install/test_result/centralizend_result/crdb/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..c8c75c64 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/iat_dda_write_skew.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:8:400:595 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:53:8:403:821 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:8:500:401 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:53:8:503:880 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:53:8:507:190 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 16:53:8:601:965 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-2 16:53:8:703:2 +Q7 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=8947d20d key=/Table/330/1/1/0 rw=true pri=0.04650676 stat=PENDING epo=0 ts=1648889588.50002684 errcode: HY000 +Q7 failed at: 2022-4-2 16:53:9:306:390 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=8947d20d key=/Table/330/1/1/0 rw=true pri=0.04650676 stat=PENDING epo=0 ts=1648889588.50002684 + diff --git a/install/test_result/centralizend_result/crdb/serializable/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/crdb/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..3b4c03ff --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:11:383:976 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:53:11:387:951 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:11:483:991 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:53:11:487:620 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:53:11:491:337 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:53:11:495:486 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 16:53:11:585:833 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=27646345 key=/Table/333/1/1/0 rw=true pri=0.01261970 stat=PENDING epo=0 ts=1648889591.48360386 errcode: HY000 +Q8 failed at: 2022-4-2 16:53:12:390:533 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=27646345 key=/Table/333/1/1/0 rw=true pri=0.01261970 stat=PENDING epo=0 ts=1648889591.48360386 + diff --git a/install/test_result/centralizend_result/crdb/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/crdb/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..3f1e9364 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,71 @@ +#### db_type: crdb #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:9:553:603 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 16:53:9:557:927 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 16:53:9:560:904 + Q4-T2 execute sql: 'BEGIN TRANSACTION;' + Q4 finished at: 2022-4-2 16:53:9:653:444 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:53:9:755:484 + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 16:53:9:763:506 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 16:53:9:766:343 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:53:9:769:535 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 16:53:9:773:367 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 16:53:9:776:569 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/crdb/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..49077e81 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:10:48:555 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 16:53:10:52:730 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:10:148:628 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 16:53:10:153:630 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 16:53:10:170:832 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:53:10:174:944 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-2 16:53:10:250:997 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=c6ca7478 key=/Table/332/1/"kevin"/"checking"/0 rw=true pri=0.06037639 stat=PENDING epo=0 ts=16 errcode: HY000 +Q8 failed at: 2022-4-2 16:53:11:55:114 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=c6ca7478 key=/Table/332/1/"kevin"/"checking"/0 rw=true pri=0.06037639 stat=PENDING epo=0 ts=16 + diff --git a/install/test_result/centralizend_result/crdb/serializable/iat_mda_step_iat.txt b/install/test_result/centralizend_result/crdb/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..c9156645 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/iat_mda_step_iat.txt @@ -0,0 +1,90 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:12:714:385 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 16:53:12:717:793 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:12:814:282 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 16:53:12:817:887 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-2 16:53:12:916:503 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 16:53:12:920:179 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 16:53:13:16:387 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 16:53:13:116:164 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 16:53:13:216:323 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-2 16:53:13:317:177 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:53:13:516:406 + Q11 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=bc65461d key=/Table/334/1/1/0 rw=true pri=0.00452134 stat=PENDING epo=0 ts=1648889592.91615675 errcode: HY000 + Q11 failed at: 2022-4-2 16:53:14:517:981 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=bc65461d key=/Table/334/1/1/0 rw=true pri=0.00452134 stat=PENDING epo=0 ts=1648889592.91615675 + diff --git a/install/test_result/centralizend_result/crdb/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/crdb/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..af310a1f --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,105 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:20:506:798 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:53:20:510:541 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:20:605:331 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 16:53:20:609:906 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 16:53:20:613:911 + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-2 16:53:20:708:644 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 16:53:20:712:234 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 16:53:20:716:229 + Q9-T3 execute sql: 'COMMIT TRANSACTION;' + Q9 finished at: 2022-4-2 16:53:20:719:599 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 16:53:20:810:537 +Q11-T1 execute sql: 'COMMIT TRANSACTION;' +Q11 finished at: 2022-4-2 16:53:20:812:290 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 16:53:20:815:850 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/crdb/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..180d08f7 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,206 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:19:677:63 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:53:19:681:657 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:19:776:517 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:53:19:780:669 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-2 16:53:19:873:76 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 16:53:19:876:915 + Q7-T3 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:53:19:880:466 + Q8-T4 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-2 16:53:19:976:338 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 16:53:19:979:715 + Q10-T4 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-2 16:53:19:982:881 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 16:53:20:75:321 + Q12-T2 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:53:20:77:211 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 16:53:20:173:706 +Q14-T1 execute sql: 'COMMIT TRANSACTION;' +Q14 finished at: 2022-4-2 16:53:20:175:621 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 16:53:20:180:642 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/crdb/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..fb54777c --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,90 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:14:846:121 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 16:53:14:849:986 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:14:945:358 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 16:53:14:949:504 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-2 16:53:15:45:108 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 16:53:15:49:342 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 16:53:15:151:612 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 16:53:15:248:369 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 16:53:15:348:54 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-2 16:53:15:448:324 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:53:15:647:444 + Q11 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=28793754 key=/Table/335/1/1 rw=true pri=0.03177472 stat=PENDING epo=0 ts=1648889595.044727208, errcode: HY000 + Q11 failed at: 2022-4-2 16:53:16:650:0 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=28793754 key=/Table/335/1/1 rw=true pri=0.03177472 stat=PENDING epo=0 ts=1648889595.044727208, + diff --git a/install/test_result/centralizend_result/crdb/serializable/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/crdb/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..e5d92f92 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,87 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:16:948:897 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 16:53:16:961:521 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:17:48:486 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 16:53:17:52:290 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-2 16:53:17:148:412 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 16:53:17:152:120 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 16:53:17:250:314 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 16:53:17:351:85 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 16:53:17:450:336 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-2 16:53:17:552:164 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:53:17:751:324 + Q11 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=56c02bb7 key=/Table/336/1/1/0 rw=true pri=0.00554938 stat=PENDING epo=0 ts=1648889597.14800837 errcode: HY000 + Q11 failed at: 2022-4-2 16:53:18:752:22 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=56c02bb7 key=/Table/336/1/1/0 rw=true pri=0.00554938 stat=PENDING epo=0 ts=1648889597.14800837 + diff --git a/install/test_result/centralizend_result/crdb/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/crdb/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..e2d25f5c --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,121 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:21:147:87 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 16:53:21:151:376 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 16:53:21:155:190 + Q4-T2 execute sql: 'BEGIN TRANSACTION;' + Q4 finished at: 2022-4-2 16:53:21:246:842 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 16:53:21:250:476 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 16:53:21:253:908 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:53:21:257:421 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-2 16:53:21:349:72 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 16:53:21:353:526 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 16:53:21:356:956 + Q11-T3 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-2 16:53:21:358:628 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-2 16:53:21:454:623 +Q13-T1 execute sql: 'COMMIT TRANSACTION;' +Q13 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=fda15299 key=/Table/340/1/0/0 rw=true pri=0.01143240 stat=PENDING epo=0 ts=1648889601.34859007 errcode: HY000 +Q13 failed at: 2022-4-2 16:53:22:759:597 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=fda15299 key=/Table/340/1/0/0 rw=true pri=0.01143240 stat=PENDING epo=0 ts=1648889601.34859007 + diff --git a/install/test_result/centralizend_result/crdb/serializable/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/crdb/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..b9814723 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,161 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:19:32:345 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 16:53:19:35:955 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:19:132:460 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 16:53:19:136:690 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:53:19:140:56 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 16:53:19:144:462 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-2 16:53:19:147:665 + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-2 16:53:19:150:542 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-2 16:53:19:232:785 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 16:53:19:236:461 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-2 16:53:19:239:523 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 16:53:19:243:290 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 16:53:19:246:559 + Q14-T3 execute sql: 'COMMIT TRANSACTION;' + Q14 finished at: 2022-4-2 16:53:19:250:546 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 16:53:19:334:943 +Q16-T1 execute sql: 'COMMIT TRANSACTION;' +Q16 finished at: 2022-4-2 16:53:19:337:19 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 16:53:19:341:278 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/crdb/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..b96c3930 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: crdb #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:5:486:810 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 16:53:5:490:194 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:5:586:870 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 16:53:5:590:159 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 16:53:5:597:748 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889585.486334849,0 too old; wrote at 1648889585.586497792,1 errcode: HY000 +Q6 failed at: 2022-4-2 16:53:6:291:46 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889585.486334849,0 too old; wrote at 1648889585.586497792,1 + diff --git a/install/test_result/centralizend_result/crdb/serializable/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/crdb/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..a8fe60af --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,57 @@ +#### db_type: crdb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 17:11:2:974:620 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 17:11:2:987:952 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 17:11:3:69:739 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 17:11:3:76:433 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 17:11:3:80:252 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 17:11:3:172:212 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 17:11:3:175:236 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 17:11:3:179:334 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/crdb/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..b60794da --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,34 @@ +#### db_type: crdb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:35:843:731 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:35:848:536 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:35:943:160 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:35:947:281 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q6 finished at: 2022-4-2 16:52:36:59:421 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:36:246:191 + Q5 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=6dfc20ac key=/Table/297/1/1/0 rw=true pri=0.01388052 stat=ABORTED epo=0 ts=1648889555.942584994 errcode: HY000 + Q5 failed at: 2022-4-2 16:52:36:576:336 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=6dfc20ac key=/Table/297/1/1/0 rw=true pri=0.01388052 stat=ABORTED epo=0 ts=1648889555.942584994 + diff --git a/install/test_result/centralizend_result/crdb/serializable/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/crdb/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..ce138127 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:36:906:164 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:36:910:645 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:37:6:93 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:37:9:779 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 16:52:37:119:777 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:37:123:752 +Q7 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_ABORT_SPAN): "sql txn" id=74990123 key=/Table/298/1/0/0 rw=true pri=0.01323698 stat=ABORTED epo=0 ts=1648889557.005586845,1 o errcode: HY000 +Q7 failed at: 2022-4-2 16:52:37:832:763 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_ABORT_SPAN): "sql txn" id=74990123 key=/Table/298/1/0/0 rw=true pri=0.01323698 stat=ABORTED epo=0 ts=1648889557.005586845,1 o + diff --git a/install/test_result/centralizend_result/crdb/serializable/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/crdb/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..a1906abf --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,53 @@ +#### db_type: crdb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:38:176:466 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:38:180:183 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:38:276:786 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:38:280:743 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 16:52:38:378:469 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:38:382:239 + Q5 finished at: 2022-4-2 16:52:38:390:589 + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-2 16:52:38:483:60 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:52:38:486:960 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/rat_dda_read_skew.txt b/install/test_result/centralizend_result/crdb/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..3fceb3a6 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/rat_dda_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:38:808:758 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:52:38:812:426 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:38:908:512 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:38:912:320 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:52:38:915:832 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 16:52:39:11:248 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:52:39:110:523 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:39:208:728 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:52:39:212:592 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/crdb/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..5c81b566 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:40:581:343 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:40:584:775 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:40:681:552 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:52:40:685:445 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 16:52:40:783:156 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:40:787:95 + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 16:52:40:794:871 + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-2 16:52:40:881:336 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:52:40:896:759 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/crdb/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..556ef637 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:41:217:439 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:41:221:680 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:41:317:547 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:52:41:321:482 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 16:52:41:419:20 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:41:422:969 + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 16:52:41:430:871 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:41:432:972 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:52:41:436:425 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/crdb/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..f7b52476 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:39:525:393 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 16:52:39:529:591 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:39:623:985 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:39:628:603 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:52:39:640:990 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:39:644:745 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 16:52:39:725:617 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:39:727:575 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 16:52:39:730:764 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/crdb/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..7d892e39 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,58 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:40:29:59 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 16:52:40:39:609 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:40:128:893 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 16:52:40:132:102 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 16:52:40:134:933 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:40:138:58 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 16:52:40:249:669 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:40:251:983 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 16:52:40:255:335 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/crdb/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..9ee7ba9f --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:34:530:528 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:34:534:579 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:34:630:662 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:34:634:645 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 16:52:34:732:539 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:34:933:761 + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 16:52:34:942:919 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:52:34:963:972 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:52:34:970:209 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/crdb/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..de802241 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:35:306:802 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:35:310:707 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:35:406:781 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:35:411:616 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 16:52:35:507:707 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:35:512:969 + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 16:52:35:520:904 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:35:524:857 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:52:35:528:228 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/rat_mda_step_rat.txt b/install/test_result/centralizend_result/crdb/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..6188472f --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: crdb #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:41:759:44 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:41:762:637 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:41:858:928 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:41:863:128 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:41:961:857 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 16:52:41:969:486 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-2 16:52:42:61:131 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-2 16:52:42:65:429 + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + (3) expected_result: + (0,0) + (4) expected_result: + (0,0) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 16:52:42:74:447 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-2 16:52:42:166:622 + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 16:52:42:175:58 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:52:42:263:624 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 16:52:42:268:672 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/crdb/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..8fdbeba7 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,206 @@ +#### db_type: crdb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN TRANSACTION;' + Q1 finished at: 2022-4-2 17:27:5:712:79 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 17:27:5:726:913 +Q3-T1 execute sql: 'BEGIN TRANSACTION;' +Q3 finished at: 2022-4-2 17:27:5:806:747 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 17:27:5:813:256 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-2 17:27:5:906:907 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 17:27:5:912:640 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-2 17:27:6:7:141 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 17:27:6:12:179 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 17:27:6:110:283 +Q11-T1 execute sql: 'COMMIT TRANSACTION;' +Q11 finished at: 2022-4-2 17:27:6:209:42 + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + *(7) expected_result: + (0,1) + *(8) expected_result: + (0,1) + *(9) expected_result: + (0,1) + (10) expected_result: + (0,0) + (11) expected_result: + (0,0) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + (14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 17:27:6:217:667 + Q12-T2 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 17:27:6:312:35 + Q13-T3 execute sql: 'COMMIT TRANSACTION;' + Q13 finished at: 2022-4-2 17:27:6:407:35 + Q14-T4 execute sql: 'COMMIT TRANSACTION;' + Q14 finished at: 2022-4-2 17:27:6:410:227 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 17:27:6:415:876 + +The current result is consistent with the [(13) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/crdb/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..969ce569 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: crdb #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:43:636:278 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:43:641:204 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:43:735:949 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:43:740:773 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:43:836:102 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 16:52:43:841:389 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-2 16:52:43:940:639 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-2 16:52:43:946:302 + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 16:52:43:952:913 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-2 16:52:44:38:381 + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 16:52:44:45:341 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:52:44:138:47 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 16:52:44:141:809 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/crdb/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..a33c8c47 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: crdb #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:44:445:477 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 16:52:44:454:239 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:44:545:188 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 16:52:44:549:659 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:44:645:752 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 16:52:44:651:894 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 16:52:44:747:897 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-2 16:52:44:752:774 + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 16:52:44:759:643 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-2 16:52:44:847:478 + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + (4) expected_result: + (,) + *(5) expected_result: + (1,) + (6) expected_result: + (,) + + Q8 finished at: 2022-4-2 16:52:44:872:86 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:52:44:947:943 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 16:52:44:951:764 + +The current result is consistent with the [(5) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/crdb/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..8494439b --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,44 @@ +#### db_type: crdb #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:30:123:669 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:30:131:464 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:30:217:226 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 16:52:30:335:656 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:30:417:922 +Q5 finished at: 2022-4-2 16:52:30:514:207 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 16:52:30:519:396 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/crdb/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..92fc2d2c --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:31:565:893 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:31:570:753 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:31:666:67 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 16:52:31:765:904 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:31:965:271 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 16:52:31:973:611 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:31:976:572 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 16:52:31:980:356 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/crdb/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..b6301d37 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:32:294:584 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:32:299:673 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:32:394:636 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 16:52:32:496:908 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:32:501:408 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 16:52:32:509:523 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 16:52:32:511:834 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 16:52:32:515:124 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/crdb/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..210509ba --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:33:904:863 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:33:909:653 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:34:5:399 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 16:52:34:106:576 +Q6-T1 execute sql: 'COMMIT TRANSACTION;' +Q6 finished at: 2022-4-2 16:52:34:111:258 + Q4 finished at: 2022-4-2 16:52:34:117:225 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:52:34:207:471 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 16:52:34:213:48 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/crdb/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..6edfa97f --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,57 @@ +#### db_type: crdb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 17:3:16:212:181 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 17:3:16:226:708 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 17:3:16:307:584 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 17:3:16:314:243 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 17:3:16:407:747 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 17:3:16:508:114 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 17:3:16:604:887 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 17:3:16:609:389 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/crdb/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..99d97dbd --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,57 @@ +#### db_type: crdb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:32:824:457 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 16:52:32:828:771 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:32:924:263 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 16:52:32:929:870 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 16:52:32:933:787 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 16:52:33:26:448 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:33:29:15 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 16:52:33:32:509 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/crdb/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..6a859974 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,56 @@ +#### db_type: crdb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:33:385:681 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 16:52:33:399:667 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:33:485:555 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 16:52:33:489:411 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 16:52:33:493:43 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 16:52:33:587:210 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:33:589:858 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 16:52:33:593:715 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/crdb/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..1d9fe1ad --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,53 @@ +#### db_type: crdb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:50:472:711 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:50:476:546 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:50:573:57 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:50:576:493 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 16:52:50:671:334 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:50:675:357 + Q5 finished at: 2022-4-2 16:52:50:682:789 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:50:687:384 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:52:50:690:695 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/crdb/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..c4888768 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: crdb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:51:31:130 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:51:34:372 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:51:131:333 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:51:135:368 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 16:52:51:251:927 + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-2 16:52:51:334:959 +Q6 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=a169cc1e key=/Table/316/1/0/0 rw=true pri=0.00752718 stat=ABORTED epo=0 ts=1648889571.030721457 errcode: HY000 +Q6 failed at: 2022-4-2 16:52:51:846:79 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=a169cc1e key=/Table/316/1/0/0 rw=true pri=0.00752718 stat=ABORTED epo=0 ts=1648889571.030721457 + diff --git a/install/test_result/centralizend_result/crdb/serializable/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/crdb/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..f215eea5 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,34 @@ +#### db_type: crdb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:52:189:799 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:52:193:155 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:52:289:670 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:52:292:897 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 16:52:52:398:920 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:52:52:492:639 +Q6 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=2eaf352b key=/Table/317/1/0/0 rw=true pri=0.00510947 stat=ABORTED epo=0 ts=1648889572.189359556 errcode: HY000 +Q6 failed at: 2022-4-2 16:52:52:992:684 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=2eaf352b key=/Table/317/1/0/0 rw=true pri=0.00510947 stat=ABORTED epo=0 ts=1648889572.189359556 + diff --git a/install/test_result/centralizend_result/crdb/serializable/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/crdb/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..9247baee --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,34 @@ +#### db_type: crdb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:53:325:159 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:53:329:229 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:53:432:990 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:53:436:234 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 16:52:53:536:572 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:53:539:534 +Q7 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=e329b49a key=/Table/318/1/0/0 rw=true pri=0.00928901 stat=ABORTED epo=0 ts=1648889573.324600888 errcode: HY000 +Q7 failed at: 2022-4-2 16:52:54:227:705 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=e329b49a key=/Table/318/1/0/0 rw=true pri=0.00928901 stat=ABORTED epo=0 ts=1648889573.324600888 + diff --git a/install/test_result/centralizend_result/crdb/serializable/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/crdb/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..ffeefd9a --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:54:555:746 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:52:54:559:501 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:54:655:902 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:54:659:146 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:52:54:662:213 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-2 16:52:54:859:363 +Q6 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889574.555247881,0 too old; wrote at 1648889574.655508025,1 errcode: HY000 +Q6 failed at: 2022-4-2 16:52:55:468:761 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889574.555247881,0 too old; wrote at 1648889574.655508025,1 + diff --git a/install/test_result/centralizend_result/crdb/serializable/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/crdb/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..697c113f --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:55:812:679 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:52:55:816:529 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:55:912:464 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:55:916:58 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:52:55:918:987 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:52:56:114:906 +Q6 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889575.812167779,0 too old; wrote at 1648889575.911965607,1 errcode: HY000 +Q6 failed at: 2022-4-2 16:52:56:724:661 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889575.812167779,0 too old; wrote at 1648889575.911965607,1 + diff --git a/install/test_result/centralizend_result/crdb/serializable/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/crdb/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..938a005e --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:57:81:303 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:57:85:211 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:57:180:891 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:52:57:184:569 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 16:52:57:282:373 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:57:286:335 + Q5 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889577.180503439,0 too old; wrote at 1648889577.180503439,2 errcode: HY000 + Q5 failed at: 2022-4-2 16:52:57:795:551 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889577.180503439,0 too old; wrote at 1648889577.180503439,2 + diff --git a/install/test_result/centralizend_result/crdb/serializable/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/crdb/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..d2748e59 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:58:126:383 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:58:129:711 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:58:229:101 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:52:58:232:499 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 16:52:58:327:904 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:58:533:580 + Q5 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889578.228739680,0 too old; wrote at 1648889578.228739680,2 errcode: HY000 + Q5 failed at: 2022-4-2 16:52:59:44:731 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889578.228739680,0 too old; wrote at 1648889578.228739680,2 + diff --git a/install/test_result/centralizend_result/crdb/serializable/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/crdb/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..db5a2aa9 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:59:371:862 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:59:375:572 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:59:471:508 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:52:59:490:17 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 16:52:59:574:538 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:59:578:375 + Q5 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889579.471137871,0 too old; wrote at 1648889579.471137871,2 errcode: HY000 + Q5 failed at: 2022-4-2 16:53:0:88:400 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889579.471137871,0 too old; wrote at 1648889579.471137871,2 + diff --git a/install/test_result/centralizend_result/crdb/serializable/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/crdb/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..f0389c2c --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: crdb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:0:452:107 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:53:0:455:384 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:0:552:119 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:53:0:555:491 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-2 16:53:0:652:3 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 16:53:0:655:276 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 16:53:0:762:614 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-2 16:53:0:854:432 + Q8 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=e76ccdd4 key=/Table/324/1/2/0 rw=true pri=0.00480525 stat=ABORTED epo=0 ts=1648889580.651684517 errcode: HY000 + Q8 failed at: 2022-4-2 16:53:1:555:694 +Q9 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_ABORT_SPAN): "sql txn" id=7a95c40f key=/Table/324/1/0/0 rw=true pri=0.01270054 stat=ABORTED epo=0 ts=1648889580.651684517,1 o errcode: HY000 +Q9 failed at: 2022-4-2 16:53:1:662:239 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=e76ccdd4 key=/Table/324/1/2/0 rw=true pri=0.00480525 stat=ABORTED epo=0 ts=1648889580.651684517 + diff --git a/install/test_result/centralizend_result/crdb/serializable/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/crdb/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..cef6b97a --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,42 @@ +#### db_type: crdb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:2:11:895 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:53:2:15:947 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:2:113:226 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:53:2:117:345 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-2 16:53:2:210:128 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 16:53:2:414:924 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 finished at: 2022-4-2 16:53:2:520:958 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:53:2:814:848 + Q6 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=e7f9c264 key=/Table/325/1/1/0 rw=true pri=0.00574430 stat=ABORTED epo=0 ts=1648889582.112823795 errcode: HY000 + Q6 failed at: 2022-4-2 16:53:3:114:416 +Q9 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889582.011428435,0 too old; wrote at 1648889582.209768259,1 errcode: HY000 +Q9 failed at: 2022-4-2 16:53:3:724:704 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=e7f9c264 key=/Table/325/1/1/0 rw=true pri=0.00574430 stat=ABORTED epo=0 ts=1648889582.112823795 + diff --git a/install/test_result/centralizend_result/crdb/serializable/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/crdb/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..92d8a128 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,43 @@ +#### db_type: crdb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:45:269:798 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:45:273:620 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:45:369:781 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 16:52:45:473:538 + Q4 finished at: 2022-4-2 16:52:45:478:464 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:45:572:576 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 16:52:45:576:368 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 16:52:45:664:625 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/crdb/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..714c1f7f --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,43 @@ +#### db_type: crdb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 17:5:35:407:121 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 17:5:35:414:26 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 17:5:35:502:377 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'COMMIT TRANSACTION;' +Q5 finished at: 2022-4-2 17:5:35:606:400 + Q4 finished at: 2022-4-2 17:5:35:618:397 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 17:5:35:704:339 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 17:5:35:717:642 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 17:5:35:812:352 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/wat_sda_full_write.txt b/install/test_result/centralizend_result/crdb/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..efa1e3e5 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/wat_sda_full_write.txt @@ -0,0 +1,43 @@ +#### db_type: crdb #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:46:431:18 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:46:434:925 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:46:531:264 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 16:52:46:633:72 +Q6-T1 execute sql: 'COMMIT TRANSACTION;' +Q6 finished at: 2022-4-2 16:52:46:660:813 + Q4 finished at: 2022-4-2 16:52:46:668:526 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:52:46:732:830 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 16:52:46:736:459 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/crdb/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..8bba31e4 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,43 @@ +#### db_type: crdb #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:47:67:354 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:47:71:395 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:47:167:615 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 16:52:47:274:472 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:47:278:240 + Q4 finished at: 2022-4-2 16:52:47:285:416 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 16:52:47:289:56 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 16:52:47:291:951 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/crdb/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..6fb6a10e --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:49:915:427 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:49:918:994 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:50:17:366 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 16:52:50:115:468 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:50:119:496 + Q4 finished at: 2022-4-2 16:52:50:131:463 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 16:52:50:135:699 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 16:52:50:139:273 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/crdb/serializable/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/crdb/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..14d3f34e --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,38 @@ +#### db_type: crdb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:47:611:890 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 16:52:47:616:239 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:47:712:408 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 16:52:47:716:327 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:52:47:914:368 +Q5 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889567.611475606,0 too old; wrote at 1648889567.711824399,1 errcode: HY000 +Q5 failed at: 2022-4-2 16:52:48:423:981 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889567.611475606,0 too old; wrote at 1648889567.711824399,1 + diff --git a/install/test_result/centralizend_result/crdb/serializable/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/crdb/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..9ea41593 --- /dev/null +++ b/install/test_result/centralizend_result/crdb/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,38 @@ +#### db_type: crdb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:48:747:850 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 16:52:48:751:882 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:48:847:508 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 16:52:48:851:303 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:49:53:829 +Q5 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889568.747395113,0 too old; wrote at 1648889568.847053441,1 errcode: HY000 +Q5 failed at: 2022-4-2 16:52:49:564:48 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889568.747395113,0 too old; wrote at 1648889568.847053441,1 + diff --git a/install/test_result/centralizend_result/mongodb/mongodb_snapshot_total-result.txt b/install/test_result/centralizend_result/mongodb/mongodb_snapshot_total-result.txt new file mode 100644 index 00000000..38119496 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/mongodb_snapshot_total-result.txt @@ -0,0 +1,96 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Rollback + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Rollback + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +wat_sda_dirty_write_1abort: Rollback + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_uname_anomaly: Rollback + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/mongodb/snapshot/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..7992c237 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/iat_dda_read_skew_committed.txt @@ -0,0 +1,45 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.put(0, 1)' + T2 COMMIT transaction success +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/mongodb/snapshot/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..ee21b19d --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,28 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 2)' + T2 execute stmt: 't1.put(0, 1)' + T2 COMMIT transaction success +T1 execute stmt: 't1.put(1, 1)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/iat_dda_write_skew.txt b/install/test_result/centralizend_result/mongodb/snapshot/iat_dda_write_skew.txt new file mode 100644 index 00000000..9db24d63 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/iat_dda_write_skew.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_write_skew #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.put(1, 1)' +T1 COMMIT transaction success + T2 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/mongodb/snapshot/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..08e84475 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/iat_dda_write_skew_committed.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_write_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + T2 execute stmt: 't1.put(0, 1)' +T1 COMMIT transaction success +T1 execute stmt: 't1.put(1, 1)' + T2 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/iat_mda_step_iat.txt b/install/test_result/centralizend_result/mongodb/snapshot/iat_mda_step_iat.txt new file mode 100644 index 00000000..079793ec --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/iat_mda_step_iat.txt @@ -0,0 +1,87 @@ +#### db_type: mongodb #### +#### test_type: mda_step_iat #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 execute stmt: 't1.put(2, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(2)' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + + T2 start transaction success + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + T3 start transaction success + T3 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + +T1 execute stmt: 't1.put(0, 1)' + T2 execute stmt: 't1.put(1, 1)' + T3 execute stmt: 't1.put(2, 1)' +T1 COMMIT transaction success + T2 COMMIT transaction success + T3 COMMIT transaction success + T4 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/mongodb/snapshot/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..1f2e5df0 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,87 @@ +#### db_type: mongodb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 1)' + T2 COMMIT transaction success + T3 start transaction success + T3 execute stmt: 't1.get(0)' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + T3 execute stmt: 't1.put(1, 1)' + T3 COMMIT transaction success +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +T1 COMMIT transaction success + T4 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/mongodb/snapshot/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..bd28717c --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,185 @@ +#### db_type: mongodb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + T3 start transaction success + T3 execute stmt: 't1.put(0, 1)' + T3 COMMIT transaction success + T4 start transaction success + T4 execute stmt: 't1.put(1, 1)' + T4 COMMIT transaction success + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + T2 COMMIT transaction success +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +T1 COMMIT transaction success + T4 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/mongodb/snapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..091e05a5 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,57 @@ +#### db_type: mongodb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,20) + + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + + T2 execute stmt: 't1.put(1, 20)' + T2 COMMIT transaction success + T3 start transaction success + T3 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + T3 execute stmt: 't1.get(1)' + current_result: + (1,20) + (1) expected_result: + (1,0) + + T3 COMMIT transaction success +T1 execute stmt: 't1.put(0, 11)' +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/mongodb/snapshot/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..fde424c5 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,69 @@ +#### db_type: mongodb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 execute stmt: 't1.put(2, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + + T2 start transaction success + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + T2 execute stmt: 't1.put(0, 1)' + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + T2 execute stmt: 't1.put(1,1)' + T3 start transaction success + T3 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/mongodb/snapshot/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..9b004276 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/iat_sda_lost_update_committed.txt @@ -0,0 +1,26 @@ +#### db_type: mongodb #### +#### test_type: sda_lost_update_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + T2 COMMIT transaction success +T1 execute stmt: 't1.put(0, 1)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/mongodb/snapshot/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..53530f5a --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 1)' + T2 COMMIT transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..446bd5e5 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_double_write_skew1.txt @@ -0,0 +1,27 @@ +#### db_type: mongodb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + +T1 execute stmt: 't1.put(1, 2)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..d94e02d1 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,28 @@ +#### db_type: mongodb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + T2 COMMIT transaction success +T1 execute stmt: 't1.put(1, 2)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..ff4cc00a --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_double_write_skew2.txt @@ -0,0 +1,19 @@ +#### db_type: mongodb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_read_skew.txt b/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_read_skew.txt new file mode 100644 index 00000000..f678050c --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_read_skew.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.getpred(0)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) (1,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.getpred(1)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) (1,1) + + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (1,1) (0,1) + *(1) expected_result: + (1,1) (0,1) + *(2) expected_result: + (1,1) (0,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_read_skew2.txt new file mode 100644 index 00000000..0949c602 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_read_skew2.txt @@ -0,0 +1,45 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + +T1 execute stmt: 't1.put(1, 1)' + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..7a264ae2 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_read_skew2_committed.txt @@ -0,0 +1,45 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + T2 COMMIT transaction success +T1 execute stmt: 't1.put(1, 1)' +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..8f1af041 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.getpred(0)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.getpred(1)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (1,1) + + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (1,1) (0,1) + *(1) expected_result: + (1,1) (0,1) + *(2) expected_result: + (1,1) (0,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..91cd714b --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.getpred(0)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.getpred(1)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (1,1) + + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (1,1) (0,1) + *(1) expected_result: + (1,1) (0,1) + *(2) expected_result: + (1,1) (0,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..1f75f989 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_write_read_skew.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_write_read_skew #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..ce414368 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + T2 COMMIT transaction success +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/rat_mda_step_rat.txt b/install/test_result/centralizend_result/mongodb/snapshot/rat_mda_step_rat.txt new file mode 100644 index 00000000..173a98be --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/rat_mda_step_rat.txt @@ -0,0 +1,87 @@ +#### db_type: mongodb #### +#### test_type: mda_step_rat #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 execute stmt: 't1.put(2, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + T3 start transaction success + T3 execute stmt: 't1.put(2, 1)' + T3 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + +T1 execute stmt: 't1.get(2)' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +T1 COMMIT transaction success + T2 COMMIT transaction success + T3 COMMIT transaction success + T4 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/mongodb/snapshot/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..6812249a --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,115 @@ +#### db_type: mongodb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' + T4 start transaction success + T4 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T3 start transaction success + T3 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + + T3 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (1,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T4 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + +T1 COMMIT transaction success + T2 COMMIT transaction success + T3 COMMIT transaction success + T4 COMMIT transaction success + T4 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/mongodb/snapshot/rat_sda_dirty_read.txt new file mode 100644 index 00000000..9c0caa07 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/rat_sda_dirty_read.txt @@ -0,0 +1,29 @@ +#### db_type: mongodb #### +#### test_type: sda_dirty_read #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.put(0, 0)' + T2 start transaction success + T2 execute stmt: 't1.get(0)' + current_result: + null + *(1) expected_result: + null + + T2 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + null + *(1) expected_result: + null + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/mongodb/snapshot/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..ded07c96 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/rat_sda_intermediate_read.txt @@ -0,0 +1,36 @@ +#### db_type: mongodb #### +#### test_type: sda_intermediate_read #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + +T1 execute stmt: 't1.put(0, 2)' + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/mongodb/snapshot/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..74e1fee4 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,36 @@ +#### db_type: mongodb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + T2 COMMIT transaction success +T1 execute stmt: 't1.put(0, 2)' +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/mongodb/snapshot/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..943c62cc --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/rat_sda_lost_self_update.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_lost_self_update #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/mongodb/snapshot/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..4d66d15f --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/rat_sda_non_repeatable_read.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/mongodb/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..dea6ed7f --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,25 @@ +#### db_type: mongodb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.getpred(0)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 0)' + T2 COMMIT transaction success +T1 execute stmt: 't1.getpred(0)' +[ERROR] in MongoConnector::ExecFindkV ->Unable to read from a snapshot due to pending collection catalog changes; please retry the operation. Snapshot timestamp is Timestamp(1651677643, 7). Collection minimum is Timestamp(1651677643, 8): generic server error + +Test Result: Rollback +Reason: Unable to read from a snapshot due to pending collection catalog changes; please retry the operation. Snapshot timestamp is Timestamp(1651677643, 7). Collection minimum is Timestamp(1651677643, 8): generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/mongodb/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..58692d18 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,25 @@ +#### db_type: mongodb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.getpred(0)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 0)' + T2 COMMIT transaction success +T1 execute stmt: 't1.getpred(0)' +[ERROR] in MongoConnector::ExecFindkV ->Unable to read from a snapshot due to pending collection catalog changes; please retry the operation. Snapshot timestamp is Timestamp(1651677643, 3). Collection minimum is Timestamp(1651677643, 4): generic server error + +Test Result: Rollback +Reason: Unable to read from a snapshot due to pending collection catalog changes; please retry the operation. Snapshot timestamp is Timestamp(1651677643, 3). Collection minimum is Timestamp(1651677643, 4): generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..0f58314b --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,19 @@ +#### db_type: mongodb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..ba6cddb9 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,18 @@ +#### db_type: mongodb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..10f1b1a5 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,18 @@ +#### db_type: mongodb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..caa683c7 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,18 @@ +#### db_type: mongodb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..b5ca6d5a --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,27 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 2)' + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.put(1, 1)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..2200a7ab --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,27 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 2)' + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.put(1, 1)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..eb37768b --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,26 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..86a584ba --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,26 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..87dfd066 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,26 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/mongodb/snapshot/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..d97861cb --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/wat_mda_step_wat_c1.txt @@ -0,0 +1,20 @@ +#### db_type: mongodb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 execute stmt: 't1.put(2, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 2)' + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/mongodb/snapshot/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..a72dce7a --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/wat_mda_step_wat_c2.txt @@ -0,0 +1,20 @@ +#### db_type: mongodb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 execute stmt: 't1.put(2, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 2)' + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/mongodb/snapshot/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..1cc1018d --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/mongodb/snapshot/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..66d36468 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/wat_sda_full_write.txt b/install/test_result/centralizend_result/mongodb/snapshot/wat_sda_full_write.txt new file mode 100644 index 00000000..e057f4c9 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/wat_sda_full_write.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_full_write #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/mongodb/snapshot/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..65581c56 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/wat_sda_full_write_committed.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_full_write_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/mongodb/snapshot/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..cc27e358 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/mongodb/snapshot/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..f67f3686 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/wat_sda_lost_update_c1.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/mongodb/snapshot/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/mongodb/snapshot/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..910560b5 --- /dev/null +++ b/install/test_result/centralizend_result/mongodb/snapshot/wat_sda_lost_update_c2.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..1cc2a2b4 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:30:338:29 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:20:30:338:746 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:30:437:923 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:30:438:586 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:20:30:439:35 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:30:456:391 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 14:20:30:538:184 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:30:546:95 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:30:547:46 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:30:548:826 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..92d08ce9 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:30:889:607 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:20:30:890:408 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:30:989:573 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:30:990:246 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:20:30:990:734 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:31:2:441 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:20:31:89:669 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:31:118:586 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:31:119:514 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:31:131:705 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/iat_dda_write_skew.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..c614a791 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:31:450:93 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:20:31:450:756 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:31:550:165 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:20:31:550:888 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:20:31:551:383 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:20:31:650:264 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:20:31:663:500 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:20:31:768:566 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:31:769:584 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:20:31:773:403 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..d1e98c5a --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:33:182:494 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:20:33:183:187 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:33:282:471 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:20:33:283:201 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:20:33:283:732 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:33:301:383 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:20:33:382:599 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:33:398:809 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:33:399:785 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:33:408:305 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..f4463a4d --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:32:77:579 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 14:20:32:78:424 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 14:20:32:79:27 + Q4-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q4 finished at: 2022-4-2 14:20:32:177:583 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 14:20:32:178:442 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 14:20:32:179:13 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:20:32:189:466 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:32:290:301 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 14:20:32:291:342 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 14:20:32:292:17 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:20:32:294:507 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..fb3da580 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:32:631:536 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 14:20:32:632:361 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:32:731:431 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 14:20:32:732:304 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 14:20:32:733:180 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:32:749:531 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-2 14:20:32:831:732 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:32:853:943 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 14:20:32:855:59 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:32:861:481 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/iat_mda_step_iat.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..659a0cf8 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:33:756:989 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:20:33:757:899 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:33:856:955 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:20:33:857:892 + Q5-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q5 finished at: 2022-4-2 14:20:33:957:68 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:20:33:958:44 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 14:20:34:57:140 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:20:34:157:188 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 14:20:34:257:147 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:20:34:375:952 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:20:34:471:183 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:20:34:570:427 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:20:34:571:652 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:20:34:582:987 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..ead6a4f5 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:38:587:843 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:20:38:588:817 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:38:687:763 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:20:38:688:409 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:20:38:700:609 + Q6-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q6 finished at: 2022-4-2 14:20:38:787:757 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:20:38:788:653 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:20:38:789:233 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:38:798:412 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 14:20:38:888:327 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 14:20:38:892:825 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 14:20:38:893:858 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:20:38:897:553 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..df3bb654 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:37:722:865 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:20:37:724:172 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:37:822:788 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:20:37:823:995 + Q5-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q5 finished at: 2022-4-2 14:20:37:922:866 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 14:20:37:923:603 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:20:37:935:330 + Q8-T4 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q8 finished at: 2022-4-2 14:20:38:22:871 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:20:38:23:595 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:38:39:97 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 14:20:38:123:648 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:20:38:126:145 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 14:20:38:223:887 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 14:20:38:233:28 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 14:20:38:234:788 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 14:20:38:251:946 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..cadeb773 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:34:919:516 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 14:20:34:920:487 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:35:19:465 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:20:35:20:387 + Q5-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q5 finished at: 2022-4-2 14:20:35:119:617 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:20:35:120:668 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 14:20:35:219:694 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:20:35:319:628 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 14:20:35:419:677 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:20:35:529:50 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:20:35:630:333 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:20:35:730:902 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 14:20:35:731:977 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:20:35:736:597 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..654ab18c --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:36:11:626 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:20:36:12:659 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:36:111:583 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 14:20:36:112:462 + Q5-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q5 finished at: 2022-4-2 14:20:36:211:677 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 14:20:36:212:618 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 14:20:36:311:786 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 14:20:36:411:934 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 14:20:36:512:77 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:20:36:620:98 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:20:36:721:489 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:20:36:819:491 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:20:36:820:723 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:20:36:827:16 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..d7ca1ddf --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:39:168:43 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:20:39:168:901 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 14:20:39:169:576 + Q4-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q4 finished at: 2022-4-2 14:20:39:268:30 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 14:20:39:268:952 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 14:20:39:269:478 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:20:39:282:133 + Q8-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q8 finished at: 2022-4-2 14:20:39:368:73 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 14:20:39:368:969 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:20:39:369:679 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:20:39:380:229 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-2 14:20:39:468:335 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 14:20:39:484:296 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 14:20:39:485:513 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 14:20:39:489:814 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..eba7c60b --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:37:114:242 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 14:20:37:115:109 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:37:213:968 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 14:20:37:214:858 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:20:37:215:388 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:20:37:216:146 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-2 14:20:37:216:662 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:20:37:226:196 + Q9-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q9 finished at: 2022-4-2 14:20:37:313:976 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 14:20:37:314:806 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-2 14:20:37:315:344 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 14:20:37:316:104 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 14:20:37:316:554 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:20:37:329:606 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 14:20:37:414:501 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 14:20:37:418:568 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 14:20:37:419:768 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-2 14:20:37:423:610 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..c303c925 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:29:753:456 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:20:29:754:109 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:29:853:480 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:20:29:854:119 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:20:29:864:718 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 14:20:29:953:622 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:20:29:972:818 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:20:29:973:704 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:29:982:221 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..c7759a72 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:29:184:707 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:20:29:185:569 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:29:284:587 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:20:29:285:261 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:20:29:297:949 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:20:29:385:58 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:20:29:388:34 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:20:29:388:898 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:29:403:683 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:29:411:385 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..92fb24bb --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:6:317:720 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:6:318:362 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:6:417:652 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:6:418:287 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:20:6:418:930 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:20:6:622:313 + Q7 finished at: 2022-4-2 14:20:6:628:994 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:6:722:828 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 14:20:6:723:903 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:6:728:73 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..511c03b5 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:7:29:207 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:7:29:780 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:7:129:182 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:7:129:869 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:20:7:130:548 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:7:145:506 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-2 14:20:7:229:284 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:7:237:471 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 14:20:7:238:456 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:7:242:233 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..a23c24cc --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:7:532:611 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:7:533:164 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:7:632:507 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:7:633:151 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 14:20:7:732:832 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:20:7:739:124 +Q7 finished at: 2022-4-2 14:20:7:742:263 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:20:7:840:135 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:7:841:230 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:7:855:515 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_read_skew.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..f4451d34 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:8:183:277 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:20:8:183:964 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:8:283:232 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:8:283:847 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:20:8:284:316 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 14:20:8:383:557 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:20:8:502:165 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:8:584:656 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:8:585:637 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:8:589:751 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..f05d19d3 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:9:899:864 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:9:900:474 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:9:999:830 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:20:10:8:450 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:20:10:9:80 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:20:10:100:93 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:20:10:113:696 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:20:10:201:751 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:10:202:773 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:10:206:798 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..b84c8a25 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:10:501:544 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:10:502:249 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:10:594:267 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:20:10:595:135 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:20:10:595:842 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:10:603:66 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:20:10:694:306 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:10:702:386 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:10:703:289 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:10:707:66 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..594dc2a7 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:8:894:529 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:20:8:895:293 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:8:994:438 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:8:995:66 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:20:8:995:762 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:9:5:794 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:20:9:94:706 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:9:100:304 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 14:20:9:101:214 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:9:108:98 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..cf0bda53 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:9:396:667 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:20:9:397:563 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:9:496:636 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 14:20:9:497:170 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 14:20:9:497:613 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:9:507:287 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:20:9:596:927 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:9:607:602 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 14:20:9:608:524 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:9:612:55 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..a9043044 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:5:97:226 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:5:97:923 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:5:197:155 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:5:197:815 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:20:5:198:566 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 14:20:5:297:606 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:20:5:411:433 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:5:503:930 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:5:504:921 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:5:511:796 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..f47f9b8c --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:5:796:729 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:5:797:405 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:5:896:709 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:5:897:297 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:20:5:897:913 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:5:907:311 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 14:20:5:997:45 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:6:12:801 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:6:13:847 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:6:18:214 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/rat_mda_step_rat.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..84802a88 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:10:986:459 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:10:987:65 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:11:86:394 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:11:87:6 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:20:11:87:822 + Q6-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q6 finished at: 2022-4-2 14:20:11:186:394 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:20:11:186:993 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 14:20:11:187:817 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-2 14:20:11:286:861 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:20:11:298:568 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:20:11:395:432 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:20:11:493:794 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:20:11:495:37 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:20:11:496:294 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..be70c7a5 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q1 finished at: 2022-4-2 14:20:11:768:595 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 14:20:11:769:936 +Q3-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q3 finished at: 2022-4-2 14:20:11:868:623 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 14:20:11:869:336 + Q5-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q5 finished at: 2022-4-2 14:20:11:968:559 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 14:20:11:970:39 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:20:11:971:234 + Q8-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q8 finished at: 2022-4-2 14:20:12:68:605 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:20:12:69:378 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:20:12:169:522 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 14:20:12:277:52 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:20:12:376:179 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:20:12:476:578 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:20:12:480:911 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 14:20:12:482:330 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 14:20:12:486:262 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..1264dec2 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:12:784:488 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:12:785:136 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:12:884:465 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:12:885:35 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:20:12:887:19 + Q6-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q6 finished at: 2022-4-2 14:20:12:984:472 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:20:12:985:54 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 14:20:12:985:948 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-2 14:20:13:84:964 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:20:13:99:797 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:20:13:197:693 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:20:13:291:984 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 14:20:13:293:81 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:20:13:297:548 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..a5012625 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:13:596:10 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 14:20:13:596:788 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:13:695:879 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 14:20:13:696:451 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:20:13:697:544 + Q6-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q6 finished at: 2022-4-2 14:20:13:795:919 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 14:20:13:796:444 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-2 14:20:13:797:279 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 14:20:13:896:406 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:20:13:907:525 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:20:14:15:406 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:20:14:124:421 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:20:14:125:673 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:20:14:133:118 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..6554d06d --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-11 19:13:58:606:31 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 19:13:58:606:705 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-11 19:13:58:714:894 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + Q4 finished at: 2022-4-11 19:13:58:715:750 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-11 19:13:58:813:169 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 19:13:58:912:542 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + Q7 finished at: 2022-4-11 19:13:58:913:460 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 19:13:58:920:444 + +The current result is consistent with the [(1) expected_result] of serial scheduling +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent \ No newline at end of file diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..8f8af0f5 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:2:232:994 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:2:233:567 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:2:333:4 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:20:2:333:731 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 14:20:2:433:265 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:2:537:991 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:20:2:642:667 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:20:2:643:739 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:2:653:806 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..77119394 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:2:944:217 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:2:944:902 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:3:44:106 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:20:3:44:811 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:20:3:49:586 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 14:20:3:144:400 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:20:3:159:624 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:20:3:160:663 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:3:169:445 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..c4db8ced --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:4:459:810 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:4:460:422 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:4:559:778 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:20:4:660:178 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:20:4:665:608 +Q6 finished at: 2022-4-2 14:20:4:669:403 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:20:4:766:548 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:20:4:767:597 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:4:771:698 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..71f12c44 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:1:498:155 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:20:1:498:965 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:1:598:173 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:20:1:598:791 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:20:1:698:515 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:1:814:963 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:20:1:903:547 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:20:1:904:600 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:1:911:746 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..adcc5732 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:3:444:862 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:20:3:445:645 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:3:544:759 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:20:3:545:425 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:20:3:556:368 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:20:3:645:30 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:20:3:658:738 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 14:20:3:659:656 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:3:665:833 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..365e6c31 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:3:944:353 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:20:3:945:277 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:4:44:250 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 14:20:4:44:779 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:20:4:55:463 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:20:4:144:614 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:20:4:156:65 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 14:20:4:157:136 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:4:169:453 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..12eb80c2 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:18:608:384 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:18:609:91 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:18:708:317 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:18:708:933 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 14:20:18:808:676 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:20:18:814:82 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:18:817:212 + Q6 finished at: 2022-4-2 14:20:18:820:344 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:18:821:518 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:18:830:875 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..e3365262 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:19:129:759 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:19:130:370 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:19:229:667 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:19:230:440 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:20:19:329:979 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:20:19:437:993 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 14:20:19:938:648 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..4ae51930 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:20:228:788 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:20:229:422 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:20:328:733 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:20:329:383 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:20:20:429:83 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:20:20:546:934 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 14:20:21:36:406 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..8434f081 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:21:362:497 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:21:363:115 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:21:462:452 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:21:463:203 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:20:21:562:707 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:21:569:899 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 14:20:22:266:951 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..0bb2b276 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:22:567:591 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:20:22:568:384 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:22:667:601 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:22:668:283 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:20:22:668:785 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:20:22:871:502 +Q7-T1 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:20:22:876:713 +Q7 finished at: 2022-4-2 14:20:22:879:668 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:22:880:631 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:22:884:633 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..0cd0f653 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:23:150:683 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:20:23:151:446 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:23:250:601 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:23:251:221 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:20:23:251:703 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:20:23:458:166 + Q7 finished at: 2022-4-2 14:20:23:465:297 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:23:558:659 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:23:559:726 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:23:563:696 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..3e1223df --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:23:883:165 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:23:883:875 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:23:983:60 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:20:23:983:764 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:20:24:83:176 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:20:24:88:405 +Q7 finished at: 2022-4-2 14:20:24:94:932 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:20:24:201:381 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:24:202:347 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:24:208:528 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..793a4371 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:24:561:332 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:24:561:924 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:24:661:382 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:20:24:662:190 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:20:24:761:480 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:20:24:965:398 + Q7-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:24:971:775 + Q7 finished at: 2022-4-2 14:20:24:975:316 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:24:976:286 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:24:980:93 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..51adc376 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:25:302:264 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:25:302:832 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:25:402:273 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:20:25:402:970 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:20:25:502:391 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:20:25:514:504 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:25:523:237 + Q6 finished at: 2022-4-2 14:20:25:527:273 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:25:528:247 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:25:532:526 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..6c14baf1 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:25:840:385 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:25:840:987 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:25:940:414 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:25:941:80 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q6 finished at: 2022-4-2 14:20:26:40:316 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:20:26:40:936 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 14:20:26:140:688 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:20:26:245:616 + Q11 finished at: 2022-4-2 14:20:26:250:154 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:20:26:361:829 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 14:20:27:53:883 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..1dfaee5a --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:27:476:405 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:27:477:49 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:27:576:418 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:27:577:28 + Q5-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q5 finished at: 2022-4-2 14:20:27:676:430 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:20:27:876:674 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 14:20:27:976:773 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:20:28:89:46 + Q10 finished at: 2022-4-2 14:20:28:101:299 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:20:28:301:526 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 14:20:28:882:98 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..4dfdc7c9 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:14:429:763 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:14:430:344 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:14:529:755 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 14:20:14:629:813 +Q5 finished at: 2022-4-2 14:20:14:635:129 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:14:741:164 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:20:14:742:89 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:20:14:773:851 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:14:778:322 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..de01c62a --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:15:48:217 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:15:48:961 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:15:148:86 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:20:15:254:120 +Q5 finished at: 2022-4-2 14:20:15:259:177 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:15:361:728 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:20:15:362:727 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:20:15:392:366 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:15:397:419 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/wat_sda_full_write.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..975310b2 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:15:654:366 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:15:654:927 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:15:754:349 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 14:20:15:854:524 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:20:15:861:263 +Q6 finished at: 2022-4-2 14:20:15:866:286 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:20:15:962:111 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:20:15:963:14 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:15:970:326 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..d68b80a5 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:16:255:301 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:16:255:930 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:16:355:242 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 14:20:16:455:455 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:20:16:460:618 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:20:16:465:477 + Q5 finished at: 2022-4-2 14:20:16:473:480 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:20:16:474:428 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:16:478:760 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..6b568485 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:18:85:627 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:18:86:252 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:18:185:658 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:20:18:285:850 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:20:18:292:360 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:20:18:295:889 + Q5 finished at: 2022-4-2 14:20:18:302:762 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:20:18:303:621 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:18:307:298 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..d8e934ac --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:16:748:309 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:20:16:749:4 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:16:848:371 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:20:16:849:50 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 14:20:17:53:823 +Q6-T1 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:20:17:59:900 +Q6 finished at: 2022-4-2 14:20:17:63:206 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:20:17:64:163 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:17:67:642 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..364079ea --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:17:370:195 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:20:17:370:918 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:17:470:112 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:20:17:470:689 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 14:20:17:674:203 + Q6 finished at: 2022-4-2 14:20:17:677:223 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:20:17:779:907 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:20:17:780:938 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:17:787:29 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..0de24b84 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:8:797:635 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:21:8:798:420 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:21:8:897:743 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:21:8:898:435 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:21:8:898:863 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:21:8:910:910 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 14:21:8:998:86 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:21:9:6:845 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:21:9:7:879 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:21:9:9:421 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..e70b7c06 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:9:332:670 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:21:9:333:373 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:21:9:432:667 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:21:9:433:289 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:21:9:433:800 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:21:9:440:970 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:21:9:532:863 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:21:9:540:892 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:21:9:541:884 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:21:9:549:996 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_dda_write_skew.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..59497743 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:9:834:903 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:21:9:835:639 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:21:9:934:938 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:21:9:935:750 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:21:9:936:326 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:21:10:35:210 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:21:10:49:79 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:21:10:150:313 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:21:10:151:276 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:21:10:161:85 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..15703650 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:11:480:129 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:21:11:480:878 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:21:11:580:258 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:21:11:581:14 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:21:11:581:610 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:21:11:589:621 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:21:11:680:274 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:21:11:698:220 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:21:11:699:147 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:21:11:703:234 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..39a4a2f2 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:10:489:73 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 14:21:10:489:840 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 14:21:10:490:350 + Q4-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q4 finished at: 2022-4-2 14:21:10:589:51 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 14:21:10:589:901 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 14:21:10:590:386 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:21:10:599:236 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:21:10:698:522 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 14:21:10:699:538 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 14:21:10:700:191 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:21:10:704:591 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..a91b5cba --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:11:8:181 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 14:21:11:9:35 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:21:11:100:444 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 14:21:11:101:378 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 14:21:11:102:91 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:21:11:109:714 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-2 14:21:11:200:935 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:21:11:208:528 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 14:21:11:209:453 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:21:11:213:300 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_mda_step_iat.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..e759327a --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:11:995:858 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:21:11:996:785 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:21:12:95:691 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:21:12:96:887 + Q5-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q5 finished at: 2022-4-2 14:21:12:195:683 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:21:12:196:693 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 14:21:12:295:890 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:21:12:395:955 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 14:21:12:495:938 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:21:12:604:61 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:21:12:703:499 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:21:12:804:433 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:21:12:805:709 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:21:12:824:224 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..a9d68bb7 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:16:743:144 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:21:16:744:361 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:21:16:843:116 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:21:16:843:909 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:21:16:856:345 + Q6-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q6 finished at: 2022-4-2 14:21:16:943:24 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:21:16:943:971 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:21:16:944:537 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:21:16:955:536 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 14:21:17:43:534 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 14:21:17:48:608 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 14:21:17:49:963 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:21:17:57:836 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..194ffdce --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:15:942:648 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:21:15:943:896 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:21:16:42:666 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:21:16:43:952 + Q5-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q5 finished at: 2022-4-2 14:21:16:142:620 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 14:21:16:143:365 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:21:16:152:84 + Q8-T4 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q8 finished at: 2022-4-2 14:21:16:242:686 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:21:16:243:334 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:21:16:253:269 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 14:21:16:343:689 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:21:16:348:368 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 14:21:16:443:538 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 14:21:16:451:671 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 14:21:16:453:362 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 14:21:16:459:839 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..9689a1ce --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:13:109:873 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 14:21:13:110:733 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:21:13:209:855 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:21:13:210:763 + Q5-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q5 finished at: 2022-4-2 14:21:13:309:797 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:21:13:310:788 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 14:21:13:409:970 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:21:13:510:7 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 14:21:13:610:72 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:21:13:719:27 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:21:13:819:724 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:21:13:920:613 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 14:21:13:921:946 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:21:13:927:340 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..91a118ce --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:14:252:82 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:21:14:253:81 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:21:14:352:129 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 14:21:14:352:963 + Q5-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q5 finished at: 2022-4-2 14:21:14:452:37 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 14:21:14:452:925 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 14:21:14:552:246 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 14:21:14:652:266 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 14:21:14:752:240 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:21:14:859:524 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:21:14:958:821 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:21:15:57:391 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:21:15:58:455 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:21:15:62:545 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..879464fb --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:17:391:743 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:21:17:392:663 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 14:21:17:393:522 + Q4-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q4 finished at: 2022-4-2 14:21:17:491:626 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 14:21:17:492:534 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 14:21:17:493:24 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:21:17:500:783 + Q8-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q8 finished at: 2022-4-2 14:21:17:591:634 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 14:21:17:592:632 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:21:17:593:439 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:21:17:595:756 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-2 14:21:17:691:882 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 14:21:17:699:426 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 14:21:17:700:577 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 14:21:17:705:26 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..733e34a7 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:15:350:636 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 14:21:15:351:578 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:21:15:450:521 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 14:21:15:451:504 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:21:15:452:151 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:21:15:452:919 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-2 14:21:15:453:378 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:21:15:470:613 + Q9-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q9 finished at: 2022-4-2 14:21:15:550:581 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 14:21:15:551:462 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-2 14:21:15:552:2 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 14:21:15:552:789 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 14:21:15:553:349 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:21:15:562:962 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 14:21:15:651:155 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 14:21:15:655:234 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 14:21:15:656:310 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-2 14:21:15:669:530 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..29b04f1d --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:8:320:730 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:21:8:321:433 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:21:8:420:701 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:21:8:421:392 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:21:8:432:470 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 14:21:8:520:891 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:21:8:529:120 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:21:8:529:995 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:21:8:534:149 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..4058fe0f --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:7:835:273 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:21:7:836:8 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:21:7:935:269 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:21:7:935:948 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:21:7:942:536 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:21:8:35:540 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:21:8:37:805 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:21:8:38:598 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:21:8:43:593 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:21:8:47:205 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..5fd20694 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:45:326:30 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:45:326:638 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:45:426:78 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:45:426:782 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:20:45:427:499 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:20:45:630:310 + Q7 finished at: 2022-4-2 14:20:45:636:608 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:45:737:218 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 14:20:45:738:289 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:45:742:916 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..c888d758 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:46:57:391 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:46:57:990 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:46:157:355 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:46:158:80 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:20:46:158:782 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:46:172:257 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-2 14:20:46:257:606 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:46:265:765 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 14:20:46:266:709 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:46:270:798 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..0d4c2b85 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:46:566:132 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:46:566:753 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:46:666:60 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:46:666:641 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 14:20:46:766:441 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:20:46:771:157 +Q7 finished at: 2022-4-2 14:20:46:778:284 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:20:46:876:374 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:46:877:292 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:46:880:671 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_read_skew.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..95ac26ef --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:47:165:384 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:20:47:166:103 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:47:265:362 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:47:265:942 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:20:47:266:371 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 14:20:47:365:726 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:20:47:480:782 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:47:566:660 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:47:567:560 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:47:574:485 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..364684c2 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:48:844:786 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:48:845:387 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:48:944:800 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:20:48:945:597 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:20:48:946:225 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:20:49:44:993 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:20:49:58:505 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:20:49:146:403 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:49:147:367 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:49:153:139 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..c4f8a2ba --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:49:441:217 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:49:441:795 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:49:541:138 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:20:49:541:880 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:20:49:542:629 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:49:547:631 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:20:49:641:375 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:49:653:351 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:49:654:387 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:49:664:12 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..14e04be0 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:47:851:787 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:20:47:852:496 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:47:951:733 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:47:952:359 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:20:47:952:876 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:47:964:362 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:20:48:52:74 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:48:60:316 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 14:20:48:61:266 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:48:70:741 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..b1ba257c --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:48:362:195 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:20:48:363:59 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:48:462:286 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 14:20:48:462:944 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 14:20:48:463:470 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:48:477:159 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:20:48:562:480 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:48:566:477 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 14:20:48:567:468 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:48:572:119 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..4231925b --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:44:114:564 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:44:115:188 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:44:214:484 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:44:215:103 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:20:44:215:704 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 14:20:44:314:807 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:20:44:426:233 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:44:521:545 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:44:522:523 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:44:526:106 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..2a255cd8 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:44:812:53 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:44:812:642 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:44:912:62 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:44:913:605 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:20:44:914:275 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:44:922:730 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 14:20:45:12:322 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:45:22:3 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:45:22:927 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:45:26:853 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_mda_step_rat.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..7e37bf25 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:49:976:159 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:49:976:746 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:50:76:169 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:50:76:783 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:20:50:77:517 + Q6-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q6 finished at: 2022-4-2 14:20:50:176:214 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:20:50:176:925 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 14:20:50:177:857 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-2 14:20:50:276:669 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:20:50:284:356 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:20:50:382:396 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:20:50:486:29 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:20:50:487:224 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:20:50:489:81 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..68fa91ef --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q1 finished at: 2022-4-2 14:20:50:791:331 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 14:20:50:792:636 +Q3-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q3 finished at: 2022-4-2 14:20:50:891:413 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 14:20:50:892:62 + Q5-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q5 finished at: 2022-4-2 14:20:50:991:381 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 14:20:50:992:619 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:20:50:993:701 + Q8-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q8 finished at: 2022-4-2 14:20:51:91:391 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:20:51:92:26 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:20:51:192:462 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 14:20:51:299:679 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:20:51:400:736 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:20:51:495:498 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:20:51:510:137 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 14:20:51:511:515 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 14:20:51:516:666 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..f1e5b7db --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:51:844:878 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:51:845:517 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:51:944:889 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:51:945:519 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:20:51:946:302 + Q6-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q6 finished at: 2022-4-2 14:20:52:44:921 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:20:52:45:562 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 14:20:52:46:472 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-2 14:20:52:145:426 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:20:52:169:586 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:20:52:255:848 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:20:52:351:481 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 14:20:52:352:633 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:20:52:356:411 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..6fa67cf7 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:52:630:75 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 14:20:52:630:763 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:52:730:72 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 14:20:52:730:738 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:20:52:731:538 + Q6-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q6 finished at: 2022-4-2 14:20:52:830:32 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 14:20:52:830:576 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-2 14:20:52:831:428 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 14:20:52:930:649 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:20:52:938:129 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:20:53:37:937 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:20:53:140:513 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:20:53:141:741 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:20:53:145:386 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..b69fd01f --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:39:870:553 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:39:871:129 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:39:970:597 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:20:39:971:368 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 14:20:40:82:700 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:40:175:241 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:20:40:176:254 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:20:40:180:55 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..d477662c --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:41:182:953 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:41:183:547 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:41:282:749 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:20:41:283:639 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 14:20:41:382:894 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:41:487:96 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:20:41:596:510 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:20:41:597:493 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:41:606:191 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..6240a96a --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:41:878:424 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:41:879:58 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:41:978:363 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:20:41:979:210 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:20:41:983:646 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 14:20:42:78:559 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:20:42:96:270 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:20:42:97:93 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:42:108:789 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..9703d8da --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:43:438:205 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:43:438:753 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:43:538:174 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:20:43:638:473 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:20:43:643:10 +Q6 finished at: 2022-4-2 14:20:43:651:870 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:20:43:747:259 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:20:43:748:124 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:43:754:979 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..f885e432 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:40:479:857 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:20:40:480:582 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:40:579:896 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:20:40:580:514 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:20:40:680:228 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:40:790:495 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:20:40:885:713 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:20:40:886:605 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:40:890:255 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..b568bbcf --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:42:429:482 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:20:42:430:239 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:42:529:518 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:20:42:530:191 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:20:42:538:453 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:20:42:629:856 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:20:42:635:80 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 14:20:42:635:971 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:42:641:27 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..285d9193 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:42:922:322 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:20:42:923:280 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:43:22:285 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 14:20:43:22:843 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:20:43:41:550 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:20:43:122:596 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:20:43:130:455 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 14:20:43:131:387 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:43:135:607 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..b0051d3c --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:57:552:481 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:57:553:83 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:57:652:444 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:57:653:80 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 14:20:57:752:742 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:20:57:757:599 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:20:57:763:900 + Q6 finished at: 2022-4-2 14:20:57:767:117 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:20:57:767:959 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:20:57:771:417 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..160adcd2 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:58:41:341 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:58:41:968 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:58:141:281 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:58:141:908 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:20:58:241:613 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:20:58:349:471 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 14:20:58:847:666 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..4c6313a5 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:59:139:358 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:59:139:954 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:59:239:250 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:20:59:239:900 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:20:59:339:509 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:20:59:446:535 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 14:20:59:950:574 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..15b7237e --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:0:224:102 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:21:0:224:660 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:21:0:324:151 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:21:0:324:842 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:21:0:424:304 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:21:0:431:493 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 14:21:1:128:326 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..43aa7114 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:1:407:134 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:21:1:407:861 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:21:1:507:137 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:21:1:507:926 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:21:1:508:593 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:21:1:713:242 +Q7-T1 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:21:1:719:917 +Q7 finished at: 2022-4-2 14:21:1:722:910 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:21:1:723:913 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:21:1:730:969 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..4d7ad86a --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:2:21:583 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:21:2:22:299 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:21:2:121:464 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:21:2:122:185 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:21:2:122:657 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:21:2:327:308 + Q7 finished at: 2022-4-2 14:21:2:330:848 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:21:2:439:101 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:21:2:440:99 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:21:2:444:119 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..bd4d5231 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:2:732:86 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:21:2:732:707 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:21:2:832:40 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:21:2:832:767 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:21:2:932:228 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:21:2:936:913 +Q7 finished at: 2022-4-2 14:21:2:941:880 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:21:3:46:65 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:21:3:47:60 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:21:3:51:403 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..569aaffd --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:3:386:754 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:21:3:387:587 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:21:3:486:795 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:21:3:487:508 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:21:3:586:902 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:21:3:793:883 + Q7-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:21:3:797:398 + Q7 finished at: 2022-4-2 14:21:3:801:85 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:21:3:802:152 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:21:3:806:538 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..2c622360 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:4:120:32 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:21:4:120:609 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:21:4:220:63 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:21:4:220:743 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:21:4:320:266 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:21:4:326:7 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:21:4:329:935 + Q6 finished at: 2022-4-2 14:21:4:336:564 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:21:4:337:504 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:21:4:348:437 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..d558f2cd --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:4:642:77 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:21:4:642:638 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:21:4:742:70 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:21:4:742:686 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q6 finished at: 2022-4-2 14:21:4:842:92 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:21:4:842:747 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 14:21:4:942:585 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:21:5:46:794 + Q11 finished at: 2022-4-2 14:21:5:50:621 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:21:5:152:990 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 14:21:5:848:47 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..b000233a --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:21:6:160:950 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:21:6:161:544 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:21:6:261:35 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:21:6:261:719 + Q5-T3 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q5 finished at: 2022-4-2 14:21:6:360:721 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:21:6:561:0 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 14:21:6:661:153 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:21:6:767:196 + Q10 finished at: 2022-4-2 14:21:6:770:590 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:21:6:967:930 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 14:21:7:565:969 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..ab9f8efc --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:53:436:218 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:53:436:792 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:53:536:194 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 14:20:53:636:223 +Q5 finished at: 2022-4-2 14:20:53:640:530 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:53:746:166 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:20:53:747:64 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:20:53:769:167 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:53:773:381 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..851c0a68 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:54:27:932 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:54:28:574 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:54:127:669 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:20:54:241:593 +Q5 finished at: 2022-4-2 14:20:54:246:98 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:20:54:336:52 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:20:54:336:926 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:20:54:375:27 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:54:382:225 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_sda_full_write.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..e5da334d --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:54:652:729 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:54:653:397 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:54:743:309 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 14:20:54:843:514 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:20:54:847:697 +Q6 finished at: 2022-4-2 14:20:54:851:398 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:20:54:950:932 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:20:54:952:70 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:54:957:341 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..84836335 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:55:266:45 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:55:266:743 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:55:365:916 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 14:20:55:466:108 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:20:55:473:939 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:20:55:477:186 + Q5 finished at: 2022-4-2 14:20:55:480:617 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:20:55:481:448 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:55:486:5 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..e4b50633 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:57:62:288 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:20:57:62:885 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:57:162:293 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:20:57:262:521 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:20:57:267:351 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:20:57:270:466 + Q5 finished at: 2022-4-2 14:20:57:275:256 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:20:57:276:133 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:57:282:346 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..e787ad43 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:55:763:858 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:20:55:764:589 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:55:863:693 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:20:55:864:357 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 14:20:56:74:573 +Q6-T1 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:20:56:77:355 +Q6 finished at: 2022-4-2 14:20:56:81:42 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:20:56:81:888 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:56:87:402 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..c931960b --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' +Q1 finished at: 2022-4-2 14:20:56:372:683 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:20:56:373:372 + Q3-T2 execute sql: 'START TRANSACTION WITH CONSISTENT SNAPSHOT;' + Q3 finished at: 2022-4-2 14:20:56:472:499 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:20:56:473:270 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 14:20:56:677:845 + Q6 finished at: 2022-4-2 14:20:56:683:59 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:20:56:777:823 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:20:56:778:661 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:20:56:785:502 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrocks_si/result_summary/read-committed_total-result.txt b/install/test_result/centralizend_result/myrocks_si/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..38745346 --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/myrocks_si/result_summary/repeatable-read_total-result.txt b/install/test_result/centralizend_result/myrocks_si/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..42d5fc7b --- /dev/null +++ b/install/test_result/centralizend_result/myrocks_si/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/myrockss/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..e8fbc326 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:45:667:873 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:45:668:657 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:45:767:860 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:45:768:596 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:45:769:47 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:45:776:968 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:7:45:868:464 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:45:883:773 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:45:884:848 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:45:887:461 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/myrockss/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..355c54c9 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:46:159:215 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:46:164:405 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:46:259:47 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:46:259:789 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:46:260:284 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:46:268:628 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:46:359:476 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:46:372:344 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:46:373:256 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:46:376:635 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/iat_dda_write_skew.txt b/install/test_result/centralizend_result/myrockss/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..a0b84a26 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:46:658:393 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:46:659:270 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:46:758:429 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:46:759:387 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:46:759:972 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:7:46:858:800 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:46:872:476 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:46:969:591 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:46:970:599 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:46:974:350 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/myrockss/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..75279811 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:48:301:972 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:48:302:908 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:48:401:812 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:48:402:669 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:48:403:235 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:48:413:155 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:48:502:226 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:48:511:523 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:48:512:576 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:48:516:187 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/myrockss/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..d1df63f4 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:47:307:116 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 11:7:47:308:109 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 11:7:47:308:683 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:7:47:407:79 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 11:7:47:408:71 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 11:7:47:408:616 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:47:426:713 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:47:516:453 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 11:7:47:517:434 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 11:7:47:518:93 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:47:520:784 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/myrockss/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..6e68d22c --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:47:800:978 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 11:7:47:802:12 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:47:900:873 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 11:7:47:901:953 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 11:7:47:902:593 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:47:909:576 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-2 11:7:48:6:722 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:48:14:565 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 11:7:48:15:590 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:48:19:603 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/iat_mda_step_iat.txt b/install/test_result/centralizend_result/myrockss/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..0c371727 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:48:814:308 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:7:48:815:275 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:48:914:259 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:48:915:347 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:49:14:211 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:7:49:15:316 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 11:7:49:114:845 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:7:49:214:954 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 11:7:49:314:931 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:49:429:215 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:49:532:259 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:49:620:662 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:7:49:622:8 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:49:632:480 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/myrockss/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..60c15975 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:53:525:46 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:53:526:144 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:53:624:918 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:53:625:660 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:53:633:29 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:7:53:725:36 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:7:53:726:72 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:7:53:726:631 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:53:734:756 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 11:7:53:825:823 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 11:7:53:832:384 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 11:7:53:833:417 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:7:53:839:190 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/myrockss/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..a10c161a --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:52:744:245 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:52:745:517 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:52:844:225 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:52:845:727 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:52:944:226 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 11:7:52:944:912 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:52:952:191 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:7:53:44:261 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 11:7:53:45:26 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:53:67:566 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 11:7:53:145:251 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:53:149:891 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 11:7:53:245:462 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 11:7:53:249:845 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 11:7:53:251:377 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 11:7:53:255:157 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/myrockss/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..b625e729 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:49:934:996 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 11:7:49:935:966 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:50:34:961 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:50:35:960 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:50:135:56 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:7:50:135:995 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 11:7:50:235:504 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:7:50:335:506 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 11:7:50:435:486 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:50:541:708 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:50:645:797 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:50:741:270 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 11:7:50:742:297 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:50:746:29 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/myrockss/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..23051cbb --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:51:33:34 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:7:51:34:384 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:51:133:25 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 11:7:51:133:995 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:51:233:61 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 11:7:51:234:86 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 11:7:51:333:418 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 11:7:51:433:488 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 11:7:51:533:548 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:51:642:160 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:51:742:146 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:51:842:1 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:7:51:843:185 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:51:851:662 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/myrockss/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..3ff1a41c --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:54:121:269 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:7:54:122:288 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 11:7:54:123:46 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:7:54:221:402 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 11:7:54:222:735 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 11:7:54:223:317 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:54:232:711 + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:7:54:321:312 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 11:7:54:322:534 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:7:54:323:282 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:54:325:2 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-2 11:7:54:421:732 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 11:7:54:431:442 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 11:7:54:432:525 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 11:7:54:436:134 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/myrockss/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..1400ebd2 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:52:129:607 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 11:7:52:130:821 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:52:229:617 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 11:7:52:230:708 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:52:231:273 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:7:52:232:98 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-2 11:7:52:232:584 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:52:249:930 + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 11:7:52:329:560 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 11:7:52:330:601 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-2 11:7:52:331:178 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 11:7:52:332:31 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 11:7:52:332:584 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:52:341:676 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 11:7:52:430:230 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 11:7:52:437:278 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 11:7:52:438:369 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-2 11:7:52:441:968 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/myrockss/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..6604794e --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:45:154:326 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:7:45:155:141 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:45:254:272 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:45:255:74 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:45:263:465 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 11:7:45:354:697 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:45:366:835 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:45:367:749 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:45:379:53 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/myrockss/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..ebe42747 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:44:669:577 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:44:670:384 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:44:769:445 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:44:770:313 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:44:795:429 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:7:44:870:397 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:44:872:132 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:44:872:973 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:44:877:415 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:44:882:902 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..2f4c53b6 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:22:402:987 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:22:403:668 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:22:503:12 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:22:503:690 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:22:504:319 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:7:22:712:271 + Q7 finished at: 2022-4-2 11:7:22:715:971 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:22:810:744 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 11:7:22:811:764 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:22:820:723 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..ef074195 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:23:109:480 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:23:110:167 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:23:209:509 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:23:210:299 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:23:211:93 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:23:220:734 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:23:310:0 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:23:318:373 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 11:7:23:319:252 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:23:322:901 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..f46afd56 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:23:613:655 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:23:614:349 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:23:713:593 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:23:714:358 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:7:23:814:151 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:23:822:459 +Q7 finished at: 2022-4-2 11:7:23:827:157 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:23:923:547 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:23:924:551 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:23:928:212 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_read_skew.txt b/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..aeb94d77 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:24:213:33 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:24:213:896 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:24:313:27 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:24:313:777 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:24:314:223 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:7:24:413:643 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:24:521:928 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:24:615:67 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:24:615:979 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:24:624:429 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..a9895205 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:25:872:295 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:25:873:17 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:25:972:222 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:25:973:3 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:25:973:561 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:7:26:72:729 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:26:82:449 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:26:174:424 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:26:175:412 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:26:179:372 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..c20b2ec9 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:26:448:472 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:26:449:173 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:26:548:528 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:26:549:518 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:26:550:122 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:26:554:986 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:26:648:994 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:26:666:828 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:26:667:889 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:26:672:35 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..e6b64bfb --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:24:896:675 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:7:24:897:449 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:24:996:679 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:24:997:371 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:24:997:847 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:25:8:316 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:7:25:97:298 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:25:102:261 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 11:7:25:103:214 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:25:106:717 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..08134f2a --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:25:404:164 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:7:25:405:179 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:25:504:69 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 11:7:25:504:758 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 11:7:25:505:182 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:25:513:120 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:7:25:604:805 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:25:608:533 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 11:7:25:609:422 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:25:612:505 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..5f5c3578 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:21:155:645 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:21:156:385 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:21:255:704 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:21:256:554 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:21:257:300 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:7:21:356:297 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:21:463:484 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:21:567:990 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:21:568:981 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:21:573:799 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..f67e3542 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:21:864:298 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:21:865:56 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:21:964:288 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:21:965:20 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:21:965:694 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:21:975:363 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:7:22:64:928 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:22:75:211 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:22:76:256 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:22:84:86 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/rat_mda_step_rat.txt b/install/test_result/centralizend_result/myrockss/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..a29ae0dc --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:26:936:259 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:26:937:3 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:27:36:234 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:27:36:920 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:27:37:752 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:7:27:136:438 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:7:27:137:66 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 11:7:27:137:862 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-2 11:7:27:237:72 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:27:244:376 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:27:342:508 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:27:445:457 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:7:27:446:803 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:27:448:390 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/myrockss/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..de25b62c --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 11:7:27:719:37 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 11:7:27:720:309 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 11:7:27:818:792 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 11:7:27:819:503 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:27:918:839 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 11:7:27:920:345 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:7:27:921:406 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:7:28:18:814 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 11:7:28:19:535 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:7:28:119:918 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 11:7:28:225:722 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:28:327:751 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:7:28:427:786 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:28:433:18 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 11:7:28:434:206 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 11:7:28:438:962 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/myrockss/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..1ccc0827 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:28:715:490 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:28:716:136 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:28:815:474 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:28:816:193 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:7:28:817:105 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:7:28:915:516 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:7:28:916:248 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 11:7:28:917:67 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-2 11:7:29:16:352 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:29:25:737 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:29:127:632 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:29:221:99 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 11:7:29:222:132 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:29:225:779 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/myrockss/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..fb4bf0ab --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:29:487:453 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 11:7:29:488:379 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:29:587:416 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 11:7:29:588:120 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:7:29:588:987 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:7:29:687:455 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 11:7:29:688:276 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-2 11:7:29:689:190 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 11:7:29:788:218 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:29:802:636 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:29:894:963 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:30:10:868 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:7:30:12:152 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:30:16:128 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/myrockss/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..c48013b3 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:17:29:235 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:17:29:836 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:17:129:220 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:17:130:294 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 11:7:17:237:594 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:17:331:633 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:7:17:332:557 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:17:336:724 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/myrockss/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..3240909e --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:18:354:249 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:18:354:944 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:18:454:219 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:18:455:106 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 11:7:18:554:728 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:18:657:638 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:18:761:428 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:7:18:762:346 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:18:765:786 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/myrockss/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..736ac698 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:19:59:752 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:19:60:456 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:19:159:770 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:19:160:705 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:19:169:76 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 11:7:19:260:237 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:19:269:165 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:7:19:270:179 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:19:281:487 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/myrockss/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..dcb63958 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:20:569:511 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:20:570:218 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:20:669:462 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:7:20:770:136 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:7:20:774:616 +Q6 finished at: 2022-4-2 11:7:20:777:383 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:20:874:189 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:20:875:163 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:20:879:355 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/myrockss/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..83e8b89f --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:17:642:676 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:17:643:482 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:17:742:662 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:17:743:381 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:7:17:843:264 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:17:953:11 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:18:50:110 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:18:51:99 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:18:55:276 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/myrockss/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..072b9ab9 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:19:580:770 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:7:19:581:636 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:19:680:801 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:19:681:579 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:19:691:510 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:7:19:781:451 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:19:788:167 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 11:7:19:788:936 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:19:792:765 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/myrockss/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..7f1cd9de --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:20:73:189 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:7:20:74:352 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:20:173:131 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 11:7:20:173:839 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:20:186:668 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:7:20:273:859 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:20:279:493 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 11:7:20:280:430 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:20:285:29 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..76e8b886 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:34:418:979 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:34:419:704 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:34:518:987 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:34:519:846 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:7:34:619:513 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:34:623:649 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:34:626:247 + Q6 finished at: 2022-4-2 11:7:34:630:893 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:34:631:799 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:34:635:248 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..6a65778b --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:34:916:751 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:34:917:424 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:35:16:886 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:35:17:703 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:7:35:117:298 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:35:231:856 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:7:35:723:84 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..3ab33fd3 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:35:988:620 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:35:989:376 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:36:88:759 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:36:89:508 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:7:36:189:179 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:36:295:319 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:7:36:794:551 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..6ed216f2 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:37:83:309 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:37:84:81 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:37:183:235 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:37:184:59 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:7:37:283:743 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:37:295:941 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:7:37:990:367 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..1bd4f4ec --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:38:291:674 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:38:292:571 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:38:391:570 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:38:392:446 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:38:393:33 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:7:38:596:578 +Q7-T1 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:38:599:932 +Q7 finished at: 2022-4-2 11:7:38:603:150 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:38:604:85 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:38:610:875 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..ea77f378 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:38:907:604 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:38:908:429 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:39:7:582 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:39:8:445 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:39:9:128 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:7:39:217:933 + Q7 finished at: 2022-4-2 11:7:39:222:591 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:39:318:243 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:39:319:200 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:39:328:360 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..c728341f --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:39:634:274 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:39:634:937 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:39:734:231 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:39:735:58 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:7:39:834:688 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:39:840:682 +Q7 finished at: 2022-4-2 11:7:39:846:702 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:39:943:813 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:39:944:963 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:39:948:415 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..3617e4bf --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:40:251:40 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:40:251:895 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:40:351:66 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:40:352:182 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:7:40:451:589 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:40:654:974 + Q7-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:40:658:170 + Q7 finished at: 2022-4-2 11:7:40:661:719 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:40:662:581 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:40:667:251 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..d9016710 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:40:944:376 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:40:945:252 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:41:44:308 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:41:45:214 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:41:147:748 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:41:154:695 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:41:164:17 + Q6 finished at: 2022-4-2 11:7:41:170:335 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:41:171:231 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:41:176:589 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/myrockss/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..ab5022a9 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:41:451:86 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:41:451:933 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:41:551:128 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:41:551:971 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:7:41:651:143 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:7:41:651:956 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 11:7:41:751:771 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:41:856:395 + Q11 finished at: 2022-4-2 11:7:41:859:707 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:41:963:206 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:7:42:656:543 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/myrockss/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..dd610223 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:42:959:628 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:42:960:428 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:43:59:666 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:43:60:494 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:43:159:640 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:7:43:360:149 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 11:7:43:460:346 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:43:564:191 + Q10 finished at: 2022-4-2 11:7:43:570:282 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:43:768:4 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:7:44:365:598 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/myrockss/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..9f5a046f --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:30:320:901 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:30:321:669 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:30:420:819 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 11:7:30:521:387 +Q5 finished at: 2022-4-2 11:7:30:525:168 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:30:629:603 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:7:30:630:545 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:7:30:649:408 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:30:653:942 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/myrockss/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..af9a5b88 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:30:909:503 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:30:910:226 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:31:9:508 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:7:31:117:584 +Q5 finished at: 2022-4-2 11:7:31:121:45 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:31:216:751 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:7:31:217:599 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:7:31:239:388 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:31:242:994 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/wat_sda_full_write.txt b/install/test_result/centralizend_result/myrockss/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..91124df4 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:31:494:449 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:31:495:124 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:31:594:410 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 11:7:31:694:847 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:7:31:706:865 +Q6 finished at: 2022-4-2 11:7:31:711:116 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:31:802:529 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:7:31:803:444 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:31:810:91 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/myrockss/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..fd4601b6 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:32:81:535 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:32:82:277 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:32:181:526 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 11:7:32:281:960 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:7:32:286:702 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:32:289:779 + Q5 finished at: 2022-4-2 11:7:32:292:819 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:7:32:293:741 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:32:297:737 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/myrockss/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..c4f64f58 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:33:875:295 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:33:875:977 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:33:975:246 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:7:34:75:943 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:7:34:82:320 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:34:85:688 + Q5 finished at: 2022-4-2 11:7:34:95:316 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:34:96:230 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:34:99:899 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/myrockss/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..15dd4c81 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:32:575:78 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:7:32:575:957 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:32:675:28 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:32:675:839 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 11:7:32:880:176 +Q6-T1 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:32:884:55 +Q6 finished at: 2022-4-2 11:7:32:890:368 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:32:891:397 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:32:895:861 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/myrockss/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..0f263338 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:33:162:956 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:7:33:163:790 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:33:262:846 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:33:263:585 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 11:7:33:466:797 + Q6 finished at: 2022-4-2 11:7:33:470:652 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:33:568:518 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:33:569:488 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:33:573:294 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..854be0aa --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:7:864:299 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:7:865:240 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:7:964:227 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:7:965:8 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:7:965:527 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:8:8:328 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:7:8:64:885 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:8:71:195 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:8:72:66 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:8:73:895 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..e2294f00 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:8:361:730 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:8:362:739 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:8:461:632 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:8:462:502 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:8:463:58 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:8:472:126 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:8:561:986 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:8:574:438 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:8:575:337 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:8:579:53 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_dda_write_skew.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_dda_write_skew.txt new file mode 100644 index 00000000..bd9ec014 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:8:886:103 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:8:886:984 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:8:985:949 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:8:986:763 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:8:987:226 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:7:9:86:500 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:9:95:547 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:9:194:412 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:9:195:366 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:9:199:439 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..34a00465 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:10:528:27 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:10:528:850 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:10:628:14 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:10:628:868 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:10:629:466 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:10:641:499 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:10:728:466 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:10:739:981 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:10:740:941 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:10:751:813 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..163e995e --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:9:513:489 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 11:7:9:514:351 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 11:7:9:514:798 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:7:9:613:390 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 11:7:9:614:281 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 11:7:9:614:769 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:9:623:295 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:9:723:921 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 11:7:9:724:895 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 11:7:9:725:464 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:9:726:953 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..22551446 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:10:15:920 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 11:7:10:16:958 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:10:109:60 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 11:7:10:110:253 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 11:7:10:111:163 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:10:120:515 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-2 11:7:10:209:740 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:10:222:583 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 11:7:10:223:536 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:10:230:144 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_mda_step_iat.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_mda_step_iat.txt new file mode 100644 index 00000000..86b41b13 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:11:49:131 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:7:11:50:92 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:11:149:146 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:11:150:181 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:11:249:131 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:7:11:250:190 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 11:7:11:349:579 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:7:11:449:540 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 11:7:11:549:678 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:11:661:189 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:11:760:870 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:11:854:831 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:7:11:855:924 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:11:859:356 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..8fdf032d --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:15:757:776 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:15:758:823 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:15:857:499 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:15:858:416 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:15:866:635 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:7:15:957:532 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:7:15:958:552 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:7:15:959:153 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:15:968:412 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 11:7:16:58:256 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 11:7:16:68:957 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 11:7:16:70:181 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:7:16:80:987 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..b32f1af8 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:14:947:18 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:14:948:194 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:15:47:13 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:15:48:458 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:15:147:27 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 11:7:15:147:812 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:15:175:627 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:7:15:247:29 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 11:7:15:247:837 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:15:255:866 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 11:7:15:348:141 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:15:350:112 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 11:7:15:448:180 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 11:7:15:452:268 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 11:7:15:453:750 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 11:7:15:457:306 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..a1839cb9 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:12:143:893 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 11:7:12:144:910 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:12:243:880 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:12:244:937 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:12:343:875 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:7:12:344:905 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 11:7:12:444:351 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:7:12:544:274 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 11:7:12:644:334 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:12:757:431 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:12:853:933 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:12:951:101 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 11:7:12:952:226 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:12:956:66 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..b4e4aa45 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:13:225:343 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:7:13:226:599 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:13:325:290 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 11:7:13:326:355 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:13:425:327 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 11:7:13:426:473 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 11:7:13:525:646 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 11:7:13:625:683 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 11:7:13:725:691 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:13:840:705 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:13:933:242 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:14:34:934 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:7:14:36:96 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:14:39:576 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..c01a7172 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:16:374:985 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:7:16:376:80 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 11:7:16:376:835 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:7:16:488:201 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 11:7:16:489:151 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 11:7:16:489:647 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:16:506:570 + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:7:16:596:180 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 11:7:16:597:220 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:7:16:597:944 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:16:599:950 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-2 11:7:16:675:406 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 11:7:16:689:30 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 11:7:16:690:99 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 11:7:16:694:109 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..3a674bda --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:14:332:843 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 11:7:14:333:861 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:14:432:832 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 11:7:14:434:5 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:14:434:638 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:7:14:435:568 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-2 11:7:14:436:31 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:14:447:700 + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 11:7:14:532:845 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 11:7:14:533:861 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-2 11:7:14:534:345 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 11:7:14:535:41 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 11:7:14:535:515 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:14:543:627 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 11:7:14:633:570 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 11:7:14:649:210 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 11:7:14:650:431 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-2 11:7:14:657:90 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..02a461b2 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:7:342:513 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:7:7:343:368 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:7:442:527 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:7:443:377 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:7:464:612 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 11:7:7:543:7 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:7:558:311 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:7:559:374 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:7:563:837 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..68a31d3c --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:6:781:947 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:6:782:830 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:6:881:847 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:6:882:576 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:6:897:644 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:7:6:982:601 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:6:985:89 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:6:986:60 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:6:991:354 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:6:996:156 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..b6b91463 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_double_write_skew1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:44:111:881 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:44:112:595 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:44:211:883 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:44:212:622 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:6:44:213:221 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:6:44:415:841 + Q7 finished at: 2022-4-2 11:6:44:419:23 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:44:517:507 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 11:6:44:518:651 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:44:522:575 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..3db0145a --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:44:813:948 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:44:814:705 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:44:913:852 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:44:914:595 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:6:44:915:293 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:44:927:639 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-2 11:6:45:14:402 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:45:23:653 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 11:6:45:24:564 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:45:29:59 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..b4db5bc9 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_double_write_skew2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:45:360:876 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:45:361:638 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:45:460:874 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:45:461:679 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:6:45:561:457 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:6:45:585:200 +Q7 finished at: 2022-4-2 11:6:45:591:983 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:6:45:667:901 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:6:45:668:778 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:45:672:659 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_read_skew.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_read_skew.txt new file mode 100644 index 00000000..8b9ad8a9 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:45:976:382 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:6:45:977:241 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:46:76:299 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:46:77:78 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:6:46:77:570 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:6:46:176:975 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:6:46:285:709 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:46:378:160 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:6:46:379:229 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:46:383:464 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_read_skew2.txt new file mode 100644 index 00000000..f6c64bb3 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_read_skew2.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:47:680:890 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:47:681:754 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:47:780:851 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:6:47:781:740 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:6:47:782:398 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:6:47:881:397 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:47:890:477 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:6:47:985:974 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:6:47:986:965 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:47:992:365 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..6efd92e7 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_read_skew2_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:48:288:685 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:48:289:453 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:48:388:655 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:6:48:389:496 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:6:48:390:150 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:48:393:938 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:6:48:489:194 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:48:498:972 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:6:48:499:906 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:48:503:168 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..0d0e9e92 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:46:698:199 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:6:46:699:135 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:46:798:223 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:46:798:930 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:6:46:799:446 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:46:809:696 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:6:46:898:810 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:46:902:944 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 11:6:46:903:725 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:46:907:625 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..550ea609 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:47:203:401 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:6:47:204:389 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:47:303:353 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 11:6:47:304:49 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 11:6:47:304:536 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:47:312:368 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:6:47:403:975 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:47:408:219 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 11:6:47:409:189 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:47:413:65 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..d111d122 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:42:904:178 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:42:904:895 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:43:4:374 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:43:5:431 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:6:43:6:174 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:6:43:104:877 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:6:43:211:113 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:43:317:822 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:6:43:318:823 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:43:322:868 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..b9e3b4e1 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:43:611:538 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:43:612:270 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:43:711:539 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:43:712:636 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:6:43:713:192 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:43:721:280 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:6:43:812:121 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:43:820:283 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:6:43:821:199 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:43:824:769 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_mda_step_rat.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_mda_step_rat.txt new file mode 100644 index 00000000..4dd84f5b --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:48:761:99 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:48:761:824 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:48:861:66 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:48:861:829 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + (3) expected_result: + (0,0) + (4) expected_result: + (0,0) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:6:48:862:666 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:6:48:961:403 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:6:48:962:82 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 11:6:48:962:900 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + *(4) expected_result: + (2,1) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q9 finished at: 2022-4-2 11:6:49:61:960 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:6:49:87:748 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:6:49:168:306 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:6:49:274:493 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:6:49:275:776 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:6:49:277:591 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..d6bb57f6 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,207 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 11:6:49:582:181 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 11:6:49:583:532 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 11:6:49:682:71 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 11:6:49:682:929 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:6:49:782:38 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 11:6:49:783:629 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + *(7) expected_result: + (0,1) + *(8) expected_result: + (0,1) + *(9) expected_result: + (0,1) + (10) expected_result: + (0,0) + (11) expected_result: + (0,0) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + (14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:6:49:784:954 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:6:49:882:137 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 11:6:49:882:862 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:6:49:983:183 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 11:6:50:92:437 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:6:50:193:820 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:6:50:286:440 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:6:50:291:537 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 11:6:50:292:762 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 11:6:50:296:633 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..41e9b4aa --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:50:576:630 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:50:577:327 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:50:676:633 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:50:677:353 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:6:50:678:133 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:6:50:776:649 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:6:50:777:393 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 11:6:50:778:188 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + (3) expected_result: + (1,) + *(4) expected_result: + (,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 11:6:50:877:635 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:6:50:888:165 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:6:50:989:97 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:6:51:87:480 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 11:6:51:88:578 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:6:51:94:508 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..971b8e35 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:51:406:105 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 11:6:51:406:978 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:51:505:975 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 11:6:51:506:637 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:6:51:507:664 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:6:51:606:31 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 11:6:51:606:662 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + (4) expected_result: + (,) + *(5) expected_result: + (1,) + (6) expected_result: + (,) + + Q8 finished at: 2022-4-2 11:6:51:607:504 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-2 11:6:51:706:907 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:6:51:714:953 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:6:51:821:716 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:6:51:934:908 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:6:51:936:57 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:6:51:942:36 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_sda_dirty_read.txt new file mode 100644 index 00000000..77bf0090 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_sda_dirty_read.txt @@ -0,0 +1,45 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:38:642:614 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:38:643:217 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:38:742:658 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:6:38:743:637 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 11:6:38:850:102 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:38:944:122 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:6:38:945:77 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:6:38:953:392 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..c5ff27d2 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_sda_intermediate_read.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:40:47:38 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:40:47:727 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:40:147:13 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:6:40:147:926 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 11:6:40:247:645 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:40:353:55 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:40:457:521 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:6:40:458:467 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:40:474:141 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..8be05dea --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:40:784:975 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:40:785:644 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:40:884:874 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:6:40:885:681 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:6:40:892:24 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 11:6:40:985:478 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:40:990:503 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:6:40:991:355 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:40:994:684 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..666fd609 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:42:303:573 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:42:304:282 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:42:403:559 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:6:42:504:176 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:6:42:514:564 +Q6 finished at: 2022-4-2 11:6:42:518:117 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:6:42:611:236 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:6:42:612:124 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:42:616:388 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..21a785fe --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_sda_non_repeatable_read.txt @@ -0,0 +1,58 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:39:288:802 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:6:39:289:676 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:39:388:756 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:6:39:389:486 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:6:39:489:344 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:39:600:730 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:39:703:661 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:6:39:704:573 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:39:714:814 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..3b691c75 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:41:305:628 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:6:41:306:419 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:41:405:514 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:6:41:406:250 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:6:41:415:95 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:6:41:506:107 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:41:510:37 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 11:6:41:510:851 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:41:514:997 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..55bf3710 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:41:785:724 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:6:41:786:651 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:41:885:726 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 11:6:41:886:397 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:6:41:896:626 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:6:41:986:284 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:41:991:30 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 11:6:41:991:748 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:41:996:220 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..134598bd --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:56:435:566 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:56:436:272 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:56:535:569 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:56:536:287 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:6:56:636:142 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:6:56:639:945 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:56:644:289 + Q6 finished at: 2022-4-2 11:6:56:647:996 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:6:56:649:26 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:56:653:198 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..8430b280 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:56:941:270 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:56:942:62 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:57:41:343 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:57:42:179 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:6:57:141:750 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:6:57:248:229 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:6:57:752:966 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..ff34857c --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:58:35:180 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:58:35:904 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:58:135:168 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:58:135:878 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:6:58:235:729 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:6:58:342:781 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:6:58:840:372 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..f36d80c6 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:59:122:192 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:59:122:917 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:59:222:178 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:59:223:25 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:6:59:322:766 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:59:332:418 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:7:0:29:211 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..47f01067 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:0:338:484 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:0:339:283 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:0:438:502 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:0:439:231 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:0:439:730 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:7:0:645:185 +Q7-T1 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:0:649:265 +Q7 finished at: 2022-4-2 11:7:0:653:661 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:0:654:674 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:0:658:385 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..790ea3af --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:0:937:716 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:0:938:511 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:1:37:757 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:1:38:558 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:1:39:1 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:7:1:242:962 + Q7 finished at: 2022-4-2 11:7:1:246:31 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:1:346:986 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:1:347:972 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:1:352:740 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..bfaa4189 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:1:659:903 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:1:660:575 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:1:759:930 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:1:760:835 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:7:1:862:482 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:1:875:929 +Q7 finished at: 2022-4-2 11:7:1:882:111 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:1:969:540 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:1:970:584 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:1:976:834 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..d03b514a --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:2:316:777 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:2:317:489 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:2:416:794 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:2:417:842 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:7:2:517:142 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:2:726:2 + Q7-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:2:730:926 + Q7 finished at: 2022-4-2 11:7:2:746:22 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:2:746:999 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:2:757:586 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..2bae8673 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:3:34:87 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:3:34:820 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:3:134:139 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:3:135:78 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:3:234:651 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:3:249:238 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:3:258:511 + Q6 finished at: 2022-4-2 11:7:3:272:783 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:3:273:696 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:3:284:229 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..ea91f3ba --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:3:605:341 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:3:606:70 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:3:705:355 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:3:706:130 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:7:3:805:393 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:7:3:806:180 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 11:7:3:906:14 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:4:9:947 + Q11 finished at: 2022-4-2 11:7:4:13:179 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:4:117:98 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:7:4:812:768 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..649ae5d0 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:5:90:470 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:5:91:122 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:5:190:593 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:5:191:426 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:5:290:443 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:7:5:490:951 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 11:7:5:591:81 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:5:697:777 + Q10 finished at: 2022-4-2 11:7:5:701:539 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:5:903:269 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:7:6:495:23 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..ed1e38a0 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:52:235:675 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:52:236:413 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:52:335:668 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 11:6:52:436:26 +Q5 finished at: 2022-4-2 11:6:52:439:932 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:52:552:497 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:6:52:553:486 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:6:52:574:844 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:52:584:32 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..df2a0f2c --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:52:884:520 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:52:885:253 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:52:984:484 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:6:53:89:339 +Q5 finished at: 2022-4-2 11:6:53:99:767 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:53:197:979 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:6:53:198:923 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:6:53:231:174 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:53:238:543 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_sda_full_write.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_sda_full_write.txt new file mode 100644 index 00000000..89c0df77 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:53:505:379 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:53:506:95 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:53:605:361 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 11:6:53:705:765 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:6:53:717:820 +Q6 finished at: 2022-4-2 11:6:53:723:651 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:6:53:812:585 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:6:53:813:509 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:53:817:1 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..539563d6 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:54:94:0 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:54:94:722 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:54:194:31 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 11:6:54:294:558 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:6:54:299:695 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:54:304:13 + Q5 finished at: 2022-4-2 11:6:54:309:7 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:6:54:309:857 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:54:314:512 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..fc044d0a --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:55:876:191 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:55:876:905 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:55:976:167 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:6:56:76:775 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:6:56:81:598 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:56:84:479 + Q5 finished at: 2022-4-2 11:6:56:87:975 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:6:56:88:779 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:56:94:707 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..39a63d59 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:54:579:769 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:6:54:580:599 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:54:679:702 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:6:54:680:467 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 11:6:54:884:880 +Q6-T1 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:6:54:888:77 +Q6 finished at: 2022-4-2 11:6:54:891:220 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:6:54:892:233 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:54:896:414 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..f0a2a2a7 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/read-uncommitted/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:55:174:509 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:6:55:175:331 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:55:274:451 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:6:55:275:226 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 11:6:55:479:203 + Q6 finished at: 2022-4-2 11:6:55:489:484 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:55:588:52 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:6:55:589:203 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:55:595:188 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..baf23007 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:23:687:664 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:23:688:476 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:23:787:651 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:23:788:537 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:23:789:66 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:23:796:356 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:8:23:888:251 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:23:893:952 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:23:894:908 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:23:896:322 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..1118f91f --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:24:169:902 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:24:170:696 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:24:269:902 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:24:270:719 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:24:271:242 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:24:278:630 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:8:24:370:401 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:24:377:510 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:24:378:485 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:24:384:224 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/iat_dda_write_skew.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..8110e480 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:24:653:359 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:24:654:400 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:24:753:387 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:24:754:521 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:24:755:67 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:8:24:853:853 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:24:861:334 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:24:960:272 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:24:961:309 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:24:965:147 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..6f3415c1 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:26:270:912 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:26:271:754 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:26:370:803 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:26:371:680 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:26:372:219 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:26:382:665 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:8:26:471:280 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:26:480:593 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:26:481:412 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:26:485:157 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..bba08a36 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:25:242:402 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 11:8:25:243:304 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 11:8:25:243:839 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:8:25:342:382 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 11:8:25:343:289 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 11:8:25:343:827 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:25:351:14 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:25:449:377 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 11:8:25:450:316 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 11:8:25:450:949 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:25:452:616 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..b0de6e5f --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:25:738:167 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 11:8:25:739:87 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:25:838:154 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 11:8:25:839:274 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 11:8:25:840:36 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:25:845:391 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-2 11:8:25:938:738 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:25:947:795 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 11:8:25:948:733 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:25:952:592 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/iat_mda_step_iat.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..9a24db4a --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:26:759:773 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:8:26:760:782 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:26:859:708 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:8:26:860:760 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:8:26:959:679 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:8:26:960:773 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 11:8:27:60:176 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:8:27:160:129 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 11:8:27:260:238 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:8:27:376:617 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:8:27:472:39 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:27:566:69 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:8:27:567:234 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:27:571:183 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..7c11ec3d --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:31:419:476 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:31:420:433 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:31:519:426 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:8:31:520:226 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:31:529:296 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:31:619:509 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:8:31:620:645 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:8:31:621:156 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:31:639:314 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 11:8:31:720:285 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 11:8:31:729:189 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 11:8:31:730:288 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:8:31:735:404 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..532ae9c4 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:30:592:911 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:30:594:280 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:30:692:940 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:30:694:302 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:8:30:792:918 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 11:8:30:793:570 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:30:800:74 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:8:30:892:967 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 11:8:30:893:767 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:30:901:613 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 11:8:30:993:911 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:30:995:963 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 11:8:31:94:31 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 11:8:31:101:9 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 11:8:31:102:714 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 11:8:31:106:116 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..c3bbd353 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:27:849:40 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 11:8:27:850:75 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:27:949:40 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:8:27:950:251 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:8:28:49:43 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:8:28:50:294 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 11:8:28:149:439 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:8:28:249:409 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 11:8:28:349:613 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:8:28:458:138 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:8:28:556:222 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:28:655:321 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 11:8:28:656:379 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:28:660:142 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..ac70bf44 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:28:922:432 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:8:28:923:587 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:29:22:439 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 11:8:29:23:405 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:8:29:122:460 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 11:8:29:123:466 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 11:8:29:222:808 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 11:8:29:322:961 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 11:8:29:422:851 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:8:29:529:869 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:8:29:629:952 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:29:728:426 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:8:29:729:517 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:29:733:202 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..9c04ff7d --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:32:34:495 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:8:32:35:592 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 11:8:32:36:404 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:8:32:134:478 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 11:8:32:135:609 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 11:8:32:136:138 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:32:170:576 + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:8:32:234:410 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 11:8:32:235:477 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:8:32:236:332 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:8:32:238:721 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-2 11:8:32:334:814 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 11:8:32:343:572 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 11:8:32:344:703 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 11:8:32:349:705 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..7a9dc4cf --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:30:15:182 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 11:8:30:16:318 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:30:115:186 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 11:8:30:116:266 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:30:116:806 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:8:30:117:945 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-2 11:8:30:118:427 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:30:128:464 + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 11:8:30:215:129 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 11:8:30:216:500 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-2 11:8:30:217:151 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 11:8:30:218:97 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 11:8:30:218:698 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:30:230:166 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 11:8:30:315:960 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 11:8:30:319:917 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 11:8:30:321:37 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-2 11:8:30:324:659 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..cd1fcc46 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:23:168:505 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:8:23:169:274 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:23:268:506 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:8:23:269:276 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:23:285:777 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 11:8:23:368:983 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:23:389:562 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:23:390:437 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:23:398:574 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..71e1c9ef --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:22:646:65 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:22:646:989 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:22:745:988 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:8:22:746:731 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:22:758:336 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:8:22:846:568 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:22:848:352 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:22:849:109 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:22:853:464 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:22:863:612 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..f34aee42 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:0:150:916 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:0:151:633 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:0:250:929 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:0:251:761 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:0:252:411 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:8:0:455:824 + Q7 finished at: 2022-4-2 11:8:0:461:678 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:0:555:556 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 11:8:0:556:468 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:0:560:157 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..5a042986 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:0:832:843 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:0:833:518 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:0:932:787 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:0:933:529 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:0:934:184 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:0:949:633 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-2 11:8:1:33:414 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:1:48:235 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 11:8:1:49:129 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:1:56:48 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..3b77a80e --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:1:398:881 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:1:399:575 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:1:498:941 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:1:499:986 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:8:1:599:543 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:1:614:598 +Q7 finished at: 2022-4-2 11:8:1:619:160 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:1:719:948 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:1:720:987 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:1:738:548 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_read_skew.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..2b66f286 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:2:41:367 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:2:42:169 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:2:141:345 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:2:142:75 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:2:142:601 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:8:2:242:44 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:2:351:896 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:2:443:913 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:2:445:21 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:2:449:130 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..5ca94dc9 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:3:757:658 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:3:758:381 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:3:857:695 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:3:858:604 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:3:859:254 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:8:3:958:205 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:3:972:656 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:4:61:323 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:4:62:293 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:4:70:550 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..bcd35616 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:4:353:507 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:4:354:183 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:4:453:478 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:4:454:262 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:4:454:846 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:4:461:920 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:8:4:554:32 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:4:562:247 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:4:563:300 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:4:568:518 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..92ec9ed2 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:2:734:491 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:8:2:735:299 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:2:834:537 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:2:835:319 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:2:835:818 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:2:846:950 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:8:2:935:222 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:2:939:915 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 11:8:2:940:779 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:2:945:921 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..1557f5b4 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:3:242:499 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:8:3:243:536 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:3:342:475 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 11:8:3:343:201 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 11:8:3:343:730 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:3:358:426 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:8:3:443:21 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:3:450:629 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 11:8:3:451:597 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:3:457:839 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..483264de --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:58:921:285 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:58:921:995 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:59:21:239 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:59:22:40 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:59:22:739 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:7:59:122:9 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:59:228:389 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:59:328:286 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:59:329:513 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:59:333:95 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..ac195807 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:59:606:47 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:59:606:811 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:59:705:980 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:59:706:704 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:59:707:360 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:59:726:76 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:7:59:806:614 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:59:816:11 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:59:816:984 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:59:828:409 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/rat_mda_step_rat.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..fa6ae70e --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:4:855:914 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:4:856:584 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:4:955:901 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:4:956:643 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:4:957:506 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:5:56:70 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:8:5:56:657 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 11:8:5:57:446 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-2 11:8:5:156:629 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:8:5:171:265 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:8:5:264:969 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:5:368:542 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:8:5:369:713 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:5:371:269 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..0c6ef2fe --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 11:8:5:658:904 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 11:8:5:660:162 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 11:8:5:758:735 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 11:8:5:759:445 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:8:5:858:757 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 11:8:5:860:133 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:8:5:861:204 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:8:5:958:781 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 11:8:5:959:571 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:8:6:59:815 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 11:8:6:166:525 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:6:265:635 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:8:6:363:72 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:6:366:630 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 11:8:6:368:22 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 11:8:6:371:479 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..5d42f494 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:6:636:389 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:6:637:146 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:6:736:331 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:6:737:145 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:8:6:737:946 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:6:836:318 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:8:6:837:111 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 11:8:6:837:959 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-2 11:8:6:937:92 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:8:6:952:547 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:8:7:49:608 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:7:152:54 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 11:8:7:153:146 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:7:159:516 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..616eac3a --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:7:441:962 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 11:8:7:442:786 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:7:541:938 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 11:8:7:542:683 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:8:7:543:646 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:7:641:952 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 11:8:7:642:665 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-2 11:8:7:643:547 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 11:8:7:742:845 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:8:7:765:328 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:8:7:869:975 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:7:953:130 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:8:7:954:349 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:7:963:553 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..cd5576b2 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:54:795:644 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:54:796:229 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:54:895:609 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:54:896:372 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 11:7:55:7:17 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:55:97:107 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:7:55:98:13 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:55:102:161 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..7726055a --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:56:88:794 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:56:89:550 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:56:188:725 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:56:189:695 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 11:7:56:289:362 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:56:393:229 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:56:495:117 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:7:56:495:996 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:56:499:374 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..b2767375 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:56:804:15 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:56:804:757 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:56:904:22 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:56:904:981 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:56:909:455 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 11:7:57:4:633 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:57:11:351 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:7:57:12:299 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:57:16:87 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..457fe501 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:58:308:16 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:58:308:711 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:58:408:63 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:7:58:508:639 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:7:58:515:512 +Q6 finished at: 2022-4-2 11:7:58:518:958 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:58:616:757 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:58:617:774 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:58:624:312 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..a6995f26 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:55:409:106 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:55:409:951 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:55:509:137 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:55:509:836 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:7:55:609:746 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:55:729:635 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:55:815:23 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:55:816:27 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:55:820:112 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..936f4a4a --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:57:303:267 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:7:57:304:120 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:57:403:261 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:57:404:27 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:57:411:627 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:7:57:503:835 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:57:512:634 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 11:7:57:513:480 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:57:519:190 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..b1b7c4b0 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:57:790:398 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:7:57:791:382 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:57:890:425 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 11:7:57:891:98 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:57:910:782 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:7:57:991:122 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:57:996:139 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 11:7:57:996:887 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:58:8:775 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..62ee7a51 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:12:461:170 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:12:461:858 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:12:561:138 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:12:561:975 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:8:12:661:806 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:12:665:772 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:12:668:696 + Q6 finished at: 2022-4-2 11:8:12:671:497 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:12:672:490 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:12:675:636 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..2c8699dc --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:12:939:854 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:12:940:699 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:13:39:860 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:13:40:723 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:13:140:459 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:13:254:185 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:13:754:308 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..6e96da1f --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:14:44:621 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:14:45:382 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:14:144:639 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:14:145:482 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:14:245:315 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:14:355:722 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:14:849:561 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..a5ddb856 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:15:141:817 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:15:142:532 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:15:241:853 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:15:242:691 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:15:342:522 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:15:350:395 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:8:16:46:891 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..3aa4b768 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:16:347:968 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:16:348:976 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:16:447:924 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:16:448:748 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:16:449:238 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:8:16:660:912 +Q7-T1 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:16:665:500 +Q7 finished at: 2022-4-2 11:8:16:668:369 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:16:669:354 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:16:677:576 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..7fd6f58e --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:16:933:637 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:16:934:538 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:17:33:605 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:17:34:318 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:17:34:798 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:8:17:237:514 + Q7 finished at: 2022-4-2 11:8:17:240:411 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:17:340:973 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:17:341:939 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:17:345:266 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..b29cf0d5 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:17:636:967 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:17:637:683 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:17:736:975 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:17:737:926 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:8:17:837:404 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:17:842:984 +Q7 finished at: 2022-4-2 11:8:17:846:878 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:17:944:754 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:17:945:700 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:17:949:8 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..ec0ab3e8 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:18:218:441 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:18:219:177 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:18:318:427 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:18:319:294 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:8:18:418:776 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:18:629:475 + Q7-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:18:639:311 + Q7 finished at: 2022-4-2 11:8:18:644:539 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:18:645:560 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:18:655:457 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..605c760b --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:18:964:505 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:18:965:259 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:19:64:492 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:19:65:404 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:8:19:164:883 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:19:170:569 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:19:177:27 + Q6 finished at: 2022-4-2 11:8:19:180:421 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:19:181:387 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:19:184:978 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..d18d05f4 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:19:469:567 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:19:470:358 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:19:569:522 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:19:570:260 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:19:669:546 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:8:19:670:313 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 11:8:19:770:157 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:19:879:241 + Q11 finished at: 2022-4-2 11:8:19:882:615 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:19:975:603 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:8:20:674:333 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..076371a2 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:20:945:495 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:20:946:330 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:21:45:431 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:21:46:318 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:8:21:145:355 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:8:21:345:971 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 11:8:21:446:67 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:21:552:811 + Q10 finished at: 2022-4-2 11:8:21:559:762 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:21:752:962 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:8:22:353:623 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..827df83a --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:8:297:488 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:8:298:158 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:8:397:439 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 11:8:8:497:870 +Q5 finished at: 2022-4-2 11:8:8:501:405 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:8:608:716 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:8:8:609:598 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:8:8:634:669 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:8:641:837 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..84a3b9eb --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:8:893:549 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:8:894:358 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:8:993:492 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:9:105:703 +Q5 finished at: 2022-4-2 11:8:9:111:128 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:9:202:872 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:8:9:203:773 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:8:9:237:34 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:9:242:779 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/wat_sda_full_write.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..55c4dfc5 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:9:509:970 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:9:510:696 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:9:609:909 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 11:8:9:710:416 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:9:717:149 +Q6 finished at: 2022-4-2 11:8:9:720:554 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:9:815:216 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:8:9:816:94 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:9:822:228 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..885ad8e6 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:10:81:468 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:10:82:237 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:10:181:465 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 11:8:10:281:977 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:10:286:200 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:10:289:28 + Q5 finished at: 2022-4-2 11:8:10:292:532 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:8:10:293:504 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:10:297:85 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..a725a706 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:11:918:75 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:11:918:796 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:12:18:19 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:8:12:118:723 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:12:149:10 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:12:158:44 + Q5 finished at: 2022-4-2 11:8:12:163:79 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:12:163:981 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:12:168:700 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..f47112f0 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:10:555:956 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:8:10:556:889 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:10:655:943 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:8:10:656:718 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 11:8:10:860:699 +Q6-T1 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:10:865:226 +Q6 finished at: 2022-4-2 11:8:10:871:876 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:10:872:824 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:10:886:631 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/repeatable-read/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..3dc5f513 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:11:226:913 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:8:11:227:789 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:11:326:820 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:8:11:327:614 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 11:8:11:531:50 + Q6 finished at: 2022-4-2 11:8:11:534:686 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:11:639:665 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:11:640:755 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:11:644:334 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/myrockss/result_summary/read-committed_total-result.txt b/install/test_result/centralizend_result/myrockss/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..38745346 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/myrockss/result_summary/read-uncommitted_total-result.txt b/install/test_result/centralizend_result/myrockss/result_summary/read-uncommitted_total-result.txt new file mode 100644 index 00000000..f709ccda --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/result_summary/read-uncommitted_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Anomaly + +rat_sda_non_repeatable_read: Anomaly + +rat_sda_intermediate_read: Anomaly + +rat_sda_intermediate_read_committed: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Anomaly + +rat_dda_double_write_skew1_committed: Anomaly + +rat_dda_double_write_skew2: Anomaly + +rat_dda_read_skew: Anomaly + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Anomaly + +rat_dda_read_skew2_committed: Anomaly + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Anomaly + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Anomaly + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/myrockss/result_summary/repeatable-read_total-result.txt b/install/test_result/centralizend_result/myrockss/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..ef182286 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/myrockss/result_summary/serializable_total-result.txt b/install/test_result/centralizend_result/myrockss/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..b5b686cf --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/result_summary/serializable_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Rollback + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Rollback + +rat_dda_read_skew2_committed: Rollback + +rat_mda_step_rat: Rollback + +rat_mda_step_rat_long_fork: Rollback + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Rollback + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Rollback + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +iat_mda_step_iat_predicate_based_delete: Rollback + +iat_mda_step_iat_predicate_based_insert: Rollback + +iat_mda_step_iat_uname_anomaly: Rollback + +iat_mda_step_iat_cross_phenomenon: Rollback + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Rollback + diff --git a/install/test_result/centralizend_result/myrockss/serializable/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/myrockss/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..bad23c9a --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:11:737:443 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:11:738:336 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:11:837:411 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:9:11:838:72 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:11:937:920 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:9:11:946:111 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:9:12:638:63 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/myrockss/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..378f6589 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:12:938:43 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:12:938:902 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:13:37:977 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:9:13:38:753 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:13:138:510 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:9:13:164:130 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:9:13:838:632 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/iat_dda_write_skew.txt b/install/test_result/centralizend_result/myrockss/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..24ab6a11 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/iat_dda_write_skew.txt @@ -0,0 +1,49 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:14:153:583 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:14:156:600 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:14:253:612 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:9:14:254:503 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:14:354:110 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:9:14:462:209 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:9:14:954:214 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/myrockss/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..9d18f0f7 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,49 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:16:931:83 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:16:931:971 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:17:31:40 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:9:17:31:874 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:17:131:541 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:9:17:148:216 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:9:17:831:643 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/myrockss/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..67c11f47 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:15:243:702 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 11:9:15:244:600 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 11:9:15:245:156 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:9:15:343:706 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute opt: 'COMMIT'; + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 11:9:15:448:636 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 11:9:15:449:176 + Q7-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:9:15:454:763 + Q7 finished at: 2022-4-2 11:9:15:458:445 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 11:9:15:459:512 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 11:9:15:460:145 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:9:15:467:68 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/myrockss/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..5a4957d0 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,49 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:15:751:986 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 11:9:15:752:955 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:15:851:984 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 11:9:15:853:12 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q5 finished at: 2022-4-2 11:9:15:952:625 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:9:15:963:630 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:9:16:652:723 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/iat_mda_step_iat.txt b/install/test_result/centralizend_result/myrockss/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..7d8f3d27 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/iat_mda_step_iat.txt @@ -0,0 +1,89 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:18:106:946 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:9:18:107:880 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:18:206:931 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:9:18:207:945 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:9:18:307:86 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:9:18:308:142 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 finished at: 2022-4-2 11:9:18:607:562 + Q11-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:9:18:812:697 +Q10-T1 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:9:18:815:821 +Q10 finished at: 2022-4-2 11:9:18:816:947 + Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q9 failed at: 2022-4-2 11:9:19:507:694 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/myrockss/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..b24bcbee --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:26:604:635 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:26:605:532 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:26:704:638 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:9:26:804:616 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 11:9:26:905:298 +Q11-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:9:26:912:554 +Q11 finished at: 2022-4-2 11:9:26:912:569 + Q5-T2 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:9:26:916:505 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:9:26:917:79 + Q9-T3 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:9:26:930:77 + Q9 finished at: 2022-4-2 11:9:26:933:672 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 11:9:26:935:16 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:9:26:939:750 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/serializable/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/myrockss/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..a2814e73 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,171 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:25:227:940 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:25:229:401 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:25:327:980 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:9:25:329:248 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:9:25:427:967 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:9:25:527:983 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 11:9:25:729:339 + Q12-T2 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:9:25:734:489 + Q12 finished at: 2022-4-2 11:9:25:734:500 + Q10-T4 execute opt: 'COMMIT'; + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 11:9:25:738:956 +Q14-T1 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:9:25:740:974 +Q14 finished at: 2022-4-2 11:9:25:743:747 + Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q6 failed at: 2022-4-2 11:9:26:328:789 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/myrockss/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..142ac590 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,89 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:19:796:135 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 11:9:19:797:162 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:19:896:73 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:9:19:897:102 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:9:19:996:82 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:9:19:997:115 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q8 finished at: 2022-4-2 11:9:20:296:678 + Q11-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:9:20:498:339 +Q10-T1 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:9:20:503:938 +Q10 finished at: 2022-4-2 11:9:20:506:922 + Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q9 failed at: 2022-4-2 11:9:21:196:777 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/myrockss/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..003ea8dd --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,85 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:21:476:226 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:9:21:477:387 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:21:576:130 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 11:9:21:577:237 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:9:21:676:155 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 11:9:21:677:293 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q7 finished at: 2022-4-2 11:9:21:976:648 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:9:22:92:158 + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q8 failed at: 2022-4-2 11:9:22:676:749 + Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q9 failed at: 2022-4-2 11:9:22:876:945 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/myrockss/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..7215878b --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,120 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:27:213:626 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:9:27:214:640 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 11:9:27:215:435 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:9:27:313:591 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 11:9:27:314:610 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:9:27:413:596 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 11:9:27:414:654 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q6 finished at: 2022-4-2 11:9:27:514:95 + Q7-T2 execute opt: 'COMMIT'; + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:9:27:520:673 + Q11-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:9:27:527:321 + Q11 finished at: 2022-4-2 11:9:27:527:333 +Q12 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q12 failed at: 2022-4-2 11:9:28:714:226 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/myrockss/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..348a3efa --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,127 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:23:154:163 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 11:9:23:155:280 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:23:254:129 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 11:9:23:255:249 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:9:23:255:804 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:9:23:256:543 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 11:9:23:354:132 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 11:9:23:355:166 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-2 11:9:23:355:669 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:9:23:454:599 + Q8-T2 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 11:9:23:463:522 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 11:9:23:464:104 + Q14-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:9:23:466:51 + Q14 finished at: 2022-4-2 11:9:23:476:121 +Q15 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q15 failed at: 2022-4-2 11:9:24:954:752 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/myrockss/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..ec4c2313 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:10:870:756 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:9:10:871:607 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:10:970:743 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 11:9:11:71:233 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:9:11:81:861 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q4 failed at: 2022-4-2 11:9:11:471:412 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/myrockss/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..1da43254 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:10:352:253 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:10:353:53 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:10:452:262 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:9:10:552:832 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:9:10:554:683 + Q4 finished at: 2022-4-2 11:9:10:554:744 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:9:10:564:613 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:9:10:565:652 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:9:10:572:350 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:9:10:580:415 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/serializable/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/myrockss/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..40e821f3 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:39:207:984 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:39:208:730 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:39:308:25 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:39:308:865 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:39:408:785 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:39:514:910 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:40:12:340 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/myrockss/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..e48407e8 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:40:304:963 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:40:305:788 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:40:404:977 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:40:405:813 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:40:505:694 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:40:514:513 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:8:41:210:37 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/myrockss/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..608342f0 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:41:481:395 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:41:482:71 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:41:581:330 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:41:582:78 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:41:681:961 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:41:792:168 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:42:286:404 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/rat_dda_read_skew.txt b/install/test_result/centralizend_result/myrockss/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..7561b934 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/rat_dda_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:42:561:618 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:42:562:453 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:42:661:676 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:42:662:469 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:42:762:134 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:42:868:639 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:43:362:229 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/myrockss/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..2a2eacdf --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:44:605:590 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:44:606:240 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:44:705:549 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:44:706:385 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:8:44:806:86 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:44:813:190 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-2 11:8:45:306:229 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/myrockss/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..ef32048c --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:45:589:624 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:45:590:408 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:45:689:648 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:45:690:600 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:8:45:790:285 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:45:801:187 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-2 11:8:46:290:388 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/myrockss/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..d08eb3e1 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:43:647:367 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:8:43:648:366 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:43:747:283 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:8:43:848:110 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:43:853:104 + Q4 finished at: 2022-4-2 11:8:43:853:144 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:43:853:719 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:43:859:378 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 11:8:43:860:174 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:43:863:328 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/serializable/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/myrockss/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..85da2bdd --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:44:117:438 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:8:44:118:492 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:44:217:479 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:8:44:318:157 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:44:322:101 + Q4 finished at: 2022-4-2 11:8:44:322:114 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 11:8:44:322:760 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:44:334:527 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 11:8:44:337:601 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:44:340:892 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/serializable/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/myrockss/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..a6fdd2f3 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:36:912:804 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:36:913:546 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:37:12:817 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:37:13:656 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:37:113:552 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:37:228:234 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:37:722:667 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/myrockss/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..8e116ac6 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:37:993:992 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:37:994:738 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:38:93:976 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:38:94:780 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:38:194:837 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:38:201:624 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:8:38:898:312 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/rat_mda_step_rat.txt b/install/test_result/centralizend_result/myrockss/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..9b91f9e7 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/rat_mda_step_rat.txt @@ -0,0 +1,74 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:46:568:760 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:46:569:522 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:46:668:673 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:46:669:388 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:46:768:969 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:8:46:769:581 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:46:869:585 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 11:8:46:973:894 + Q11 finished at: 2022-4-2 11:8:46:976:624 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:47:78:651 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:8:47:774:625 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/myrockss/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..2dc7e42c --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,169 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 11:8:48:110:275 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 11:8:48:111:812 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 11:8:48:209:958 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:8:48:310:6 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 11:8:48:311:477 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:8:48:410:39 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:8:48:511:238 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:8:48:812:305 + Q9 finished at: 2022-4-2 11:8:48:812:388 + Q12-T2 execute opt: 'COMMIT'; + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:8:48:818:376 + Q12 finished at: 2022-4-2 11:8:48:823:676 +Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q4 failed at: 2022-4-2 11:8:48:910:718 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/myrockss/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..58b37a81 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,74 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:49:238:772 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:49:239:589 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:49:338:734 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:49:339:545 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:49:438:741 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:8:49:439:478 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:8:49:539:967 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 11:8:49:644:286 + Q11 finished at: 2022-4-2 11:8:49:646:966 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:49:754:66 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:8:50:444:511 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/myrockss/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..0317bf9e --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,71 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:50:712:664 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 11:8:50:713:454 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:50:812:676 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 11:8:50:813:620 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:50:912:628 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 11:8:50:913:279 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:8:51:13:540 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + (4) expected_result: + (,) + *(5) expected_result: + (1,) + (6) expected_result: + (,) + + Q8 finished at: 2022-4-2 11:8:51:118:665 + Q11 finished at: 2022-4-2 11:8:51:122:535 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:51:223:163 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:8:51:924:212 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/myrockss/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..547b1b58 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:32:701:628 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:32:702:212 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:32:801:554 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:8:32:901:921 +Q5 finished at: 2022-4-2 11:8:32:905:59 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:33:8:155 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:8:33:9:194 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:33:16:916 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/serializable/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/myrockss/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..aa2d252c --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:34:55:775 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:34:56:644 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:34:155:779 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 11:8:34:256:292 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:8:34:459:853 + Q6-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:34:462:664 + Q6 finished at: 2022-4-2 11:8:34:464:656 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:8:34:465:575 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:34:469:503 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/serializable/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/myrockss/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..fe1acea6 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:34:741:32 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:34:742:4 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:34:840:962 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 11:8:34:941:558 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:8:34:949:206 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:34:952:936 +Q7 finished at: 2022-4-2 11:8:34:955:483 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:8:34:956:324 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:34:963:44 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/serializable/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/myrockss/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..cce36b90 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:36:327:698 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:36:328:546 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:36:427:656 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:8:36:528:279 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:36:533:617 +Q6 finished at: 2022-4-2 11:8:36:539:850 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:36:632:789 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:36:633:618 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:36:637:33 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/serializable/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/myrockss/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..c38460ec --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:33:333:995 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:33:334:751 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:33:434:23 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:8:33:534:624 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:33:745:440 + Q4 finished at: 2022-4-2 11:8:33:745:462 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:33:757:815 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:33:758:772 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:33:762:322 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/myrockss/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..37bfe9df --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:35:310:795 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:8:35:311:793 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:35:410:746 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:8:35:511:467 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:35:517:229 + Q4 finished at: 2022-4-2 11:8:35:517:287 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:35:527:236 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 11:8:35:531:657 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:35:536:372 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/myrockss/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..a7a567a7 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:35:813:337 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:8:35:814:487 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:35:913:217 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:8:36:13:960 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:36:18:997 + Q4 finished at: 2022-4-2 11:8:36:19:20 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:36:35:166 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 11:8:36:36:54 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:36:39:980 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/serializable/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/myrockss/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..7235db7f --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:56:887:814 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:56:888:502 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:56:987:890 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:56:988:663 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:57:88:374 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:57:94:988 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:8:57:792:377 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/myrockss/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..60f3d62c --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:58:81:764 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:58:82:449 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:58:181:754 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:58:182:480 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:58:282:342 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:58:393:737 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:58:891:565 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/myrockss/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..22b166fc --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:59:186:271 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:59:187:119 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:59:286:197 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:59:286:954 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:59:386:840 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:59:494:87 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:59:990:461 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/myrockss/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..fabca386 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:0:289:519 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:9:0:290:298 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:0:389:491 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:9:0:390:347 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:0:489:963 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:9:0:497:440 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:9:1:194:396 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/myrockss/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..64fe36f1 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:1:470:903 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:1:471:725 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:1:570:924 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:9:1:571:740 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:1:671:414 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:9:1:781:875 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:9:2:271:533 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/myrockss/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..3d3edfff --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:2:587:34 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:2:587:927 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:2:686:989 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:9:2:687:772 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:2:787:604 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:9:2:898:162 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:9:3:387:725 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/myrockss/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..1afc2bdf --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:3:713:916 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:9:3:714:673 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:3:813:916 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:9:3:814:774 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:3:914:418 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:9:4:20:941 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:9:4:518:303 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/myrockss/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..27602adb --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:4:827:884 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:9:4:828:589 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:4:927:893 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:9:4:928:725 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:5:28:452 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:9:5:135:659 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:9:5:634:279 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/myrockss/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..adc7c8b5 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:5:915:939 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:9:5:916:633 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:6:15:937 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:9:6:16:832 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:6:116:587 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:9:6:127:199 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:9:6:823:549 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/myrockss/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..1692e477 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:7:127:479 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:9:7:128:209 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:7:227:484 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:9:7:228:229 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:9:7:327:569 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:9:7:328:398 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 11:9:7:428:94 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:9:7:532:822 + Q11 finished at: 2022-4-2 11:9:7:536:483 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:9:7:637:531 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:9:8:333:941 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/myrockss/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..57b438ca --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:8:619:204 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:9:8:620:49 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:8:719:139 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:9:8:719:884 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:9:8:819:134 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:9:9:19:748 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 11:9:9:119:788 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:9:9:224:749 + Q10 finished at: 2022-4-2 11:9:9:229:470 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:9:9:429:526 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:9:10:25:884 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/myrockss/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..886672f9 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:52:243:958 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:52:244:730 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:52:343:879 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 11:8:52:444:310 +Q5 finished at: 2022-4-2 11:8:52:447:761 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:52:554:450 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:8:52:555:312 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:8:52:589:809 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:52:591:629 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/serializable/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/myrockss/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..3c006f17 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:52:900:979 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:52:901:697 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:53:0:989 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:53:102:708 +Q5 finished at: 2022-4-2 11:8:53:108:891 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:53:210:469 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:8:53:211:370 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:8:53:226:450 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:53:229:620 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/serializable/wat_sda_full_write.txt b/install/test_result/centralizend_result/myrockss/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..a2b56b9a --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:53:474:162 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:53:474:866 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:53:574:67 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 11:8:53:674:538 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:53:678:892 +Q6 finished at: 2022-4-2 11:8:53:681:788 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:53:780:627 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:8:53:781:509 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:53:783:255 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/serializable/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/myrockss/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..46c245e2 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:54:61:703 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:54:62:428 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:54:161:689 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 11:8:54:262:246 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:54:264:743 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:54:280:573 + Q5 finished at: 2022-4-2 11:8:54:290:421 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:8:54:291:460 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:54:299:181 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/serializable/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/myrockss/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..78a80ad3 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:56:371:131 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:56:371:864 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:56:471:108 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:8:56:571:788 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:56:575:665 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:56:579:220 + Q5 finished at: 2022-4-2 11:8:56:582:863 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:56:583:784 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:56:587:658 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/myrockss/serializable/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/myrockss/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..5ed58e0d --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:54:586:468 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:8:54:587:416 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:54:686:443 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-2 11:8:54:787:19 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:8:54:795:3 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q4 failed at: 2022-4-2 11:8:55:187:138 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/myrockss/serializable/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/myrockss/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..7caf2d21 --- /dev/null +++ b/install/test_result/centralizend_result/myrockss/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,39 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:55:479:84 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:8:55:479:866 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:55:579:107 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-2 11:8:55:679:657 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:55:892:492 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q4 failed at: 2022-4-2 11:8:56:79:839 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/mysql/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..30b7ba41 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:43:774:210 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:43:775:942 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:43:874:270 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:43:876:139 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:43:877:710 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:43:884:333 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:40:43:975:186 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:43:976:170 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:43:977:952 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:43:978:863 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/mysql/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..a8d9b2af --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:44:255:190 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:44:256:724 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:44:359:510 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:44:361:141 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:44:362:538 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:44:369:54 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:44:456:190 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:44:462:330 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:44:464:513 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:44:465:340 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/iat_dda_write_skew.txt b/install/test_result/centralizend_result/mysql/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..6fe72c8c --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:44:741:392 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:44:743:32 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:44:841:455 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:44:843:257 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:44:844:754 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:40:44:942:346 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:44:948:830 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:45:47:173 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:45:49:581 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:45:50:661 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/mysql/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..f7c38655 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:46:347:661 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:46:349:326 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:46:447:697 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:46:449:384 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:46:450:863 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:46:457:488 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:46:548:649 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:46:554:913 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:46:557:277 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:46:558:154 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/mysql/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..3bd95d86 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:45:368:754 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 17:40:45:370:644 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 17:40:45:372:228 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:40:45:468:758 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 17:40:45:470:714 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 17:40:45:472:206 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:45:477:882 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:45:576:86 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 17:40:45:578:817 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 17:40:45:580:513 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:45:581:452 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/mysql/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..9bf6680c --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:45:859:577 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 17:40:45:861:800 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:45:959:567 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 17:40:45:962:1 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 17:40:45:964:421 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:45:971:354 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 17:40:46:61:501 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:46:70:6 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 17:40:46:72:377 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:46:73:483 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/iat_mda_step_iat.txt b/install/test_result/centralizend_result/mysql/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..ce340f85 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:46:823:250 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:40:46:825:386 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:46:924:79 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:46:926:475 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:47:23:157 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:40:47:25:321 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:40:47:124:498 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:40:47:225:93 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:40:47:328:444 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:47:429:676 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:47:534:153 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:47:629:338 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:40:47:631:778 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:47:632:822 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/mysql/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..061cc64c --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:51:440:451 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:51:442:366 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:51:540:516 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:51:542:188 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:51:549:325 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:40:51:640:648 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:40:51:642:881 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:40:51:644:462 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:51:651:352 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 17:40:51:741:901 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:40:51:742:976 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 17:40:51:745:336 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:40:51:746:373 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/mysql/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..8254711a --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:50:639:649 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:50:642:214 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:50:739:664 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:50:742:355 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:50:839:913 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 17:40:50:841:825 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:50:849:36 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:40:50:939:808 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:40:50:941:694 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:50:949:265 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 17:40:51:41:868 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:51:42:968 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 17:40:51:141:815 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 17:40:51:143:40 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:40:51:146:203 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:40:51:147:268 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/mysql/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..4b516abf --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:47:910:455 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 17:40:47:912:590 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:48:13:476 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:48:15:588 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:48:110:349 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:40:48:112:487 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:40:48:213:587 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:40:48:311:428 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:40:48:411:619 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:48:516:885 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:48:618:352 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:48:716:709 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:40:48:719:137 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:48:720:923 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/mysql/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..42203e93 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:48:981:47 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:40:48:984:14 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:49:81:695 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 17:40:49:83:908 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:49:181:107 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 17:40:49:183:411 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 17:40:49:282:139 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 17:40:49:388:35 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 17:40:49:481:900 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:49:586:607 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:49:686:966 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:49:786:958 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:40:49:789:469 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:49:790:394 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/mysql/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..e45e5ad9 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:52:22:706 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:40:52:24:614 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 17:40:52:26:414 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:40:52:122:733 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 17:40:52:127:285 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 17:40:52:129:3 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:52:147:64 + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:40:52:222:792 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 17:40:52:225:83 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:40:52:227:106 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:52:228:284 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 17:40:52:323:534 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 17:40:52:332:309 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 17:40:52:336:713 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 17:40:52:337:850 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/mysql/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..65e52e7d --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:50:61:804 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 17:40:50:63:844 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:50:163:673 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 17:40:50:166:140 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:50:167:884 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:40:50:170:399 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 17:40:50:172:371 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:50:180:15 + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-1 17:40:50:261:731 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 17:40:50:263:895 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 17:40:50:265:341 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 17:40:50:267:98 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 17:40:50:268:542 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:50:279:329 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 17:40:50:363:41 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 17:40:50:364:28 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 17:40:50:366:651 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 17:40:50:367:822 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/mysql/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..374cd63d --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:43:301:803 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:40:43:303:442 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:43:401:817 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:43:403:744 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:43:410:98 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 17:40:43:502:605 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:43:510:741 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:43:512:448 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:43:513:814 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/mysql/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..20b4032f --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:42:834:341 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:42:836:254 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:42:934:300 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:42:936:87 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:42:942:910 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:40:43:35:191 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:43:36:163 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:43:37:866 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:43:38:779 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:43:39:599 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/mysql/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..fe17017a --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:21:57:517 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:21:59:574 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:21:157:412 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:21:159:216 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:21:160:933 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:21:363:529 +Q6 finished at: 2022-4-1 17:40:21:363:660 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:21:463:393 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:40:21:465:417 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:21:467:45 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/mysql/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..d76c40c1 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:21:743:975 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:21:745:953 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:21:843:820 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:21:845:479 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:21:846:952 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:21:853:340 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:21:944:817 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:21:952:284 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:40:21:955:352 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:21:956:178 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/mysql/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..a8a49597 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:22:227:920 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:22:229:458 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:22:327:949 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:22:329:679 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:40:22:430:129 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:22:436:666 + Q5 finished at: 2022-4-1 17:40:22:436:734 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:22:537:263 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:22:539:144 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:22:539:916 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-committed/rat_dda_read_skew.txt b/install/test_result/centralizend_result/mysql/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..e0a2e357 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:22:805:890 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:22:807:577 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:22:905:831 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:22:907:532 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:22:908:961 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:40:23:6:990 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:23:112:721 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:23:206:196 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:23:208:129 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:23:208:944 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-committed/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/mysql/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..ec0dcf9c --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:24:422:541 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:24:424:342 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:24:522:542 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:24:524:529 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:24:526:226 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:40:24:627:580 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:24:634:355 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:24:723:88 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:24:725:135 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:24:726:70 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/mysql/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..6a34338b --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:25:2:94 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:25:3:816 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:25:102:162 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:25:104:311 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:25:105:936 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:25:107:65 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:25:202:890 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:25:209:14 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:25:211:466 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:25:212:262 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/mysql/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..c733a9bf --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:23:474:410 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:40:23:476:291 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:23:575:520 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:23:577:167 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:23:578:440 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:23:585:79 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:40:23:675:515 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:23:676:471 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 17:40:23:678:347 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:23:679:173 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/mysql/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..72d206be --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:23:942:580 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:40:23:945:195 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:24:43:434 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 17:40:24:45:96 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 17:40:24:46:410 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:24:58:843 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:40:24:143:830 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:24:144:886 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 17:40:24:146:898 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:24:147:760 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/mysql/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..3f9f30a5 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:19:891:1 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:19:892:678 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:19:991:5 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:19:992:753 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:19:994:310 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:40:20:92:495 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:20:197:561 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:20:297:390 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:20:299:473 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:20:300:262 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/mysql/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..41f6b904 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:20:577:791 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:20:579:499 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:20:679:573 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:20:681:313 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:20:682:831 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:20:688:686 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:40:20:780:421 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:20:786:799 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:20:788:817 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:20:789:638 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-committed/rat_mda_step_rat.txt b/install/test_result/centralizend_result/mysql/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..7f607c36 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:25:478:13 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:25:480:35 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:25:577:913 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:25:579:764 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:25:581:773 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:40:25:679:779 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:40:25:681:504 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 17:40:25:683:454 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 17:40:25:779:383 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:25:787:218 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:25:883:744 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:25:983:901 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:40:25:987:432 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:25:988:388 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/mysql/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..c723348c --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-1 17:40:26:255:828 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 17:40:26:258:487 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-1 17:40:26:355:730 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 17:40:26:357:463 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:26:455:632 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 17:40:26:458:531 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:40:26:461:61 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:40:26:555:584 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:40:26:557:408 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:40:26:658:687 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:40:26:765:797 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:26:861:590 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:40:26:956:62 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:26:957:150 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:40:26:959:667 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:40:26:960:558 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/mysql/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..51f42de0 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:27:229:291 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:27:230:812 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:27:329:286 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:27:330:988 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:40:27:332:963 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:40:27:429:344 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:40:27:430:936 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 17:40:27:433:751 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:40:27:532:872 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:27:539:179 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:27:637:598 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:27:737:685 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:40:27:739:851 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:27:741:305 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/mysql/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..298b52a7 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:28:16:120 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 17:40:28:18:499 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:28:115:950 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 17:40:28:117:544 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:40:28:121:428 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:40:28:216:31 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 17:40:28:217:629 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 17:40:28:219:489 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:40:28:317:496 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:28:323:109 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:28:421:825 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:28:524:273 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:40:28:527:990 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:28:529:95 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/mysql/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..1986c857 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:15:890:980 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:15:892:589 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:15:993:861 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:15:995:742 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:40:16:94:495 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:16:190:828 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:40:16:192:564 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:16:193:381 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-committed/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/mysql/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..a7e8469b --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:17:154:927 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:17:156:654 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:17:254:999 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:17:256:983 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 17:40:17:356:724 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:17:455:302 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:17:566:305 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:40:17:567:993 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:17:569:950 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/mysql/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..0cf5e574 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:17:848:79 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:17:849:656 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:17:948:99 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:17:949:820 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:17:950:718 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 17:40:18:48:940 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:18:55:929 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:40:18:57:528 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:18:59:232 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-committed/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/mysql/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..f240e0fd --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:19:301:868 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:19:303:666 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:19:401:780 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:40:19:502:910 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:40:19:510:767 + Q4 finished at: 2022-4-1 17:40:19:510:909 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:19:608:883 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:19:610:797 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:19:612:479 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/mysql/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..f88e19f1 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:16:468:343 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:16:470:207 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:16:568:157 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:16:569:902 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:40:16:669:308 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:16:775:69 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:16:868:607 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:16:870:357 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:16:871:302 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/mysql/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..ff494e5b --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:18:341:911 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:40:18:343:853 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:18:442:80 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:18:443:753 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:18:452:393 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:40:18:544:640 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:18:545:495 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 17:40:18:549:357 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:18:550:300 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/mysql/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..8a54dac0 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:18:813:974 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:40:18:816:480 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:18:915:494 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 17:40:18:917:236 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:18:923:630 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:40:19:15:104 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:19:16:0 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 17:40:19:17:632 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:19:18:350 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/mysql/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..20a66e32 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:32:811:166 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:32:814:255 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:32:911:631 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:32:913:625 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:40:33:16:894 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:33:26:994 +Q8 finished at: 2022-4-1 17:40:33:27:6 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:33:34:272 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:33:37:176 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:33:38:144 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/mysql/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..d729419c --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:33:314:306 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:33:316:20 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:33:415:734 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:33:417:608 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:40:33:517:654 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:33:621:671 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:40:34:120:473 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/mysql/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..a603fdd5 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:34:415:439 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:34:417:262 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:34:515:115 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:34:516:853 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:40:34:615:687 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:34:733:699 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:40:35:219:901 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/mysql/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..51c32066 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:35:498:266 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:35:499:937 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:35:598:226 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:35:600:340 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:40:35:699:497 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:35:705:227 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:40:36:403:84 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/mysql/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..f37cb41b --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:36:678:591 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:36:680:243 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:36:778:582 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:36:780:505 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:36:782:412 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:36:984:743 +Q6 finished at: 2022-4-1 17:40:36:984:792 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:36:990:533 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:36:993:583 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:36:994:533 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/mysql/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..8e5c8913 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:37:265:517 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:37:267:369 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:37:364:469 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:37:366:303 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:37:367:954 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:37:570:542 +Q6 finished at: 2022-4-1 17:40:37:570:573 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:37:669:435 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:37:672:194 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:37:673:83 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/mysql/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..17b53bf2 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:37:939:77 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:37:940:754 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:38:39:8 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:38:40:786 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:40:38:139:821 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:38:146:59 + Q5 finished at: 2022-4-1 17:40:38:146:72 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:38:244:715 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:38:247:219 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:38:248:174 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/mysql/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..5611e392 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:38:514:709 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:38:516:569 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:38:618:557 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:38:620:415 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:40:38:716:402 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:38:920:194 + Q5 finished at: 2022-4-1 17:40:38:920:225 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:38:925:816 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:38:928:176 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:38:929:179 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/mysql/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..bdcf551c --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:39:190:504 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:39:192:207 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:39:290:544 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:39:292:414 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:39:391:408 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:39:397:728 + Q5 finished at: 2022-4-1 17:40:39:397:769 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:39:405:143 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:39:407:25 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:39:407:915 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/mysql/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..58074662 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:39:677:713 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:39:679:316 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:39:777:870 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:39:780:117 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:40:39:877:899 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:40:39:880:124 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-1 17:40:39:979:319 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:40:84:249 + Q11 finished at: 2022-4-1 17:40:40:84:270 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:40:184:366 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:40:40:892:678 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/mysql/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..331a0499 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:41:161:985 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:41:163:597 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:41:261:892 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:41:263:657 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:41:362:212 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:40:41:563:79 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-1 17:40:41:663:267 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:41:768:371 + Q8 finished at: 2022-4-1 17:40:41:768:384 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:41:967:628 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:40:42:566:315 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/mysql/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..4f6c06b9 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:28:797:597 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:28:799:409 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:28:897:606 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-1 17:40:28:998:137 +Q5 finished at: 2022-4-1 17:40:29:2:388 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:29:103:414 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:40:29:105:394 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:40:29:130:212 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:29:131:260 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/mysql/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..09637b67 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:29:375:328 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:29:377:97 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:29:475:388 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:40:29:580:856 + Q4 finished at: 2022-4-1 17:40:29:580:863 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:29:681:49 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:40:29:683:282 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:40:29:712:910 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:29:715:362 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-committed/wat_sda_full_write.txt b/install/test_result/centralizend_result/mysql/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..b841677d --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:29:963:442 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:29:965:119 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:30:63:538 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 17:40:30:164:826 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:40:30:172:905 + Q4 finished at: 2022-4-1 17:40:30:172:957 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:30:269:21 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:40:30:271:269 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:30:272:152 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-committed/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/mysql/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..d853b4dd --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:30:541:214 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:30:542:884 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:30:641:207 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 17:40:30:742:84 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:30:748:958 + Q4 finished at: 2022-4-1 17:40:30:749:11 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:30:755:567 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:40:30:757:212 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:30:757:970 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/mysql/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..4c1c5e1a --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:32:326:409 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:32:328:422 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:32:426:243 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:40:32:527:179 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-1 17:40:32:533:615 +Q7 finished at: 2022-4-1 17:40:32:533:750 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:32:541:442 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:32:543:400 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:32:544:293 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/mysql/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..1a98cf28 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:31:30:713 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:40:31:32:434 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:31:130:886 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:31:132:780 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:31:336:301 +Q5 finished at: 2022-4-1 17:40:31:336:374 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:40:31:342:485 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:31:344:918 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:31:345:863 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/mysql/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..c8c85c62 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:31:623:518 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:40:31:625:306 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:31:723:592 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:31:725:645 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:40:31:931:279 + Q6 finished at: 2022-4-1 17:40:31:931:602 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:32:30:442 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:32:32:443 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:32:34:87 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..477a84a5 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:6:826:866 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:6:828:598 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:6:927:53 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:6:928:821 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:6:930:353 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:6:936:966 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:40:7:28:523 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:7:29:561 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:7:31:360 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:7:32:280 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..da363c98 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:7:323:223 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:7:324:987 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:7:424:32 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:7:425:952 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:7:427:488 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:7:435:62 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:7:524:469 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:7:531:562 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:7:533:325 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:7:534:962 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/iat_dda_write_skew.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_dda_write_skew.txt new file mode 100644 index 00000000..b7c82da9 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:7:813:987 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:7:815:673 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:7:913:997 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:7:915:718 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:7:917:258 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:40:8:14:812 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:8:21:505 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:8:123:498 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:8:126:739 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:8:127:937 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..2a5f4641 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:9:396:707 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:9:398:285 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:9:496:639 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:9:498:294 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:9:499:851 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:9:508:219 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:9:597:593 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:9:604:144 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:9:606:78 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:9:607:17 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..fdd1bbe8 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:8:393:222 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 17:40:8:395:259 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 17:40:8:397:10 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:40:8:493:84 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 17:40:8:495:116 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 17:40:8:496:571 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:8:503:942 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:8:598:422 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 17:40:8:601:118 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 17:40:8:602:779 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:8:603:591 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..32b3ae6f --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:8:891:288 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 17:40:8:893:541 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:8:991:348 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 17:40:8:993:784 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 17:40:8:996:69 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:9:3:928 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 17:40:9:93:245 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:9:100:217 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 17:40:9:102:214 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:9:103:752 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/iat_mda_step_iat.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_mda_step_iat.txt new file mode 100644 index 00000000..e045e94e --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:9:887:349 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:40:9:889:366 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:9:987:371 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:9:989:375 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:10:87:580 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:40:10:89:732 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:40:10:188:262 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:40:10:288:399 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:40:10:388:502 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:10:493:435 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:10:593:802 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:10:694:521 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:40:10:696:870 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:10:697:785 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..248193a8 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:14:522:914 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:14:524:834 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:14:623:141 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:14:624:842 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:14:630:942 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:40:14:723:29 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:40:14:725:496 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:40:14:727:345 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:14:741:803 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 17:40:14:824:207 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:40:14:825:279 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 17:40:14:827:749 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:40:14:828:641 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..cf4a4f32 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:13:731:403 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:13:733:945 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:13:831:332 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:13:834:78 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:13:931:394 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 17:40:13:933:148 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:13:940:425 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:40:14:31:493 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:40:14:33:321 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:14:40:772 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 17:40:14:133:446 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:14:134:589 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 17:40:14:237:288 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 17:40:14:238:808 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:40:14:243:362 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:40:14:244:368 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..6e1f37b5 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:10:977:933 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 17:40:10:979:939 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:11:77:462 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:11:79:656 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:11:177:570 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:40:11:179:675 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:40:11:278:708 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:40:11:380:283 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:40:11:478:747 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:11:584:444 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:11:688:160 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:11:784:536 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:40:11:786:622 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:11:787:844 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..7404e52d --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:12:59:257 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:40:12:62:249 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:12:159:163 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 17:40:12:161:215 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:12:259:213 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 17:40:12:261:310 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 17:40:12:360:30 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 17:40:12:460:226 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 17:40:12:560:133 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:12:665:725 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:12:765:470 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:12:865:602 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:40:12:869:58 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:12:870:2 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..67722dfa --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:15:132:593 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:40:15:134:730 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 17:40:15:136:893 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:40:15:232:934 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 17:40:15:235:601 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 17:40:15:237:353 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:15:244:628 + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:40:15:332:690 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 17:40:15:335:173 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:40:15:337:283 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:15:338:280 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 17:40:15:433:711 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 17:40:15:441:25 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 17:40:15:443:352 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 17:40:15:445:10 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..9800e172 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:13:152:23 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 17:40:13:153:960 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:13:252:29 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 17:40:13:254:496 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:13:256:167 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:40:13:258:160 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 17:40:13:259:654 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:13:266:525 + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-1 17:40:13:352:45 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 17:40:13:354:423 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 17:40:13:356:62 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 17:40:13:357:915 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 17:40:13:359:283 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:13:365:617 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 17:40:13:453:513 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 17:40:13:454:557 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 17:40:13:457:119 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 17:40:13:458:114 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..292b57b8 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:6:333:610 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:40:6:335:263 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:6:433:566 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:6:435:358 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:6:447:846 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 17:40:6:534:503 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:6:542:540 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:6:544:859 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:6:545:794 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..0504d43b --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:5:854:385 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:5:855:975 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:5:954:380 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:5:956:152 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:5:964:276 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:40:6:55:277 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:6:56:173 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:6:57:769 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:6:58:614 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:6:59:389 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..8a7c4803 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_double_write_skew1.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:43:833:232 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:43:835:98 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:43:933:132 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:43:934:977 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:39:43:936:597 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:39:44:141:732 +Q6 finished at: 2022-4-1 17:39:44:141:792 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:44:239:636 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:39:44:242:685 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:44:243:535 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..10a5748f --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:44:529:880 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:44:531:601 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:44:629:807 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:44:631:572 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:39:44:633:373 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:44:641:689 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 17:39:44:730:780 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:44:736:877 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:39:44:739:198 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:44:740:138 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..89be7cb3 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_double_write_skew2.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:44:997:822 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:44:999:448 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:45:97:765 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:45:99:524 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:39:45:200:480 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:45:206:816 + Q5 finished at: 2022-4-1 17:39:45:206:876 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:39:45:303:507 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:45:306:282 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:45:307:266 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_read_skew.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_read_skew.txt new file mode 100644 index 00000000..0137f173 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:45:584:923 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:39:45:586:606 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:45:684:972 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:45:686:706 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:39:45:688:258 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:39:45:786:201 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:39:45:891:940 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:45:985:438 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:45:987:478 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:45:988:330 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_read_skew2.txt new file mode 100644 index 00000000..0c5eddf9 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_read_skew2.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:47:226:388 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:47:228:91 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:47:327:184 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:39:47:329:215 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:39:47:330:953 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:39:47:430:931 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:47:440:49 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:39:47:526:773 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:47:528:821 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:47:529:780 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..8ad1094c --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_read_skew2_committed.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:47:808:337 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:47:810:69 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:47:911:10 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:39:47:912:808 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:39:47:914:294 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:47:915:205 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:39:48:11:680 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:48:19:580 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:48:22:499 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:48:23:502 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..b5ff46a2 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:46:275:991 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:39:46:277:929 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:46:382:27 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:46:383:840 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:39:46:385:392 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:46:392:277 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:39:46:477:142 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:46:478:64 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 17:39:46:479:909 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:46:480:733 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..8fcc0981 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:46:751:597 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:39:46:754:336 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:46:851:383 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 17:39:46:852:934 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 17:39:46:854:303 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:46:863:884 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:39:46:952:521 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:46:953:402 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 17:39:46:955:356 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:46:956:409 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..150dd007 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:42:629:945 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:42:631:733 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:42:729:877 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:42:731:587 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:39:42:733:230 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:39:42:830:860 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:39:42:935:539 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:43:38:156 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:43:40:192 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:43:41:56 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..c9813c8c --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:43:326:747 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:43:328:401 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:43:426:897 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:43:428:961 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:39:43:430:689 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:43:437:575 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:39:43:528:49 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:43:533:988 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:43:536:506 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:43:538:169 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/rat_mda_step_rat.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_mda_step_rat.txt new file mode 100644 index 00000000..b47261a0 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:48:297:107 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:48:298:785 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:48:397:82 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:48:399:148 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + (3) expected_result: + (0,0) + (4) expected_result: + (0,0) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:39:48:400:951 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:39:48:497:440 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:39:48:499:479 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 17:39:48:501:655 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + *(4) expected_result: + (2,1) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 17:39:48:598:447 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:39:48:604:583 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:39:48:702:268 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:39:48:802:397 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:39:48:805:401 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:39:48:806:254 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..4384965e --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,207 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-1 17:39:49:70:157 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 17:39:49:72:745 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-1 17:39:49:170:313 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 17:39:49:172:370 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:39:49:269:832 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 17:39:49:272:775 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + *(7) expected_result: + (0,1) + *(8) expected_result: + (0,1) + *(9) expected_result: + (0,1) + (10) expected_result: + (0,0) + (11) expected_result: + (0,0) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + (14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:39:49:275:702 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:39:49:372:581 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:39:49:374:575 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:39:49:472:182 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:39:49:576:318 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:39:49:681:15 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:39:49:770:326 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:39:49:771:475 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:39:49:774:505 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:39:49:775:363 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..5f4a01c4 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:50:65:653 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:50:67:202 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:50:165:660 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:50:167:457 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:39:50:169:402 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:39:50:265:743 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:39:50:267:480 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 17:39:50:269:538 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + (3) expected_result: + (1,) + *(4) expected_result: + (,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:39:50:367:234 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:39:50:374:16 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:39:50:471:785 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:39:50:573:688 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:39:50:575:770 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:39:50:577:729 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..9e0a0fc9 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:50:846:572 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 17:39:50:848:910 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:50:946:728 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 17:39:50:948:411 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:39:50:950:518 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:39:51:46:832 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 17:39:51:48:412 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + (4) expected_result: + (,) + *(5) expected_result: + (1,) + (6) expected_result: + (,) + + Q8 finished at: 2022-4-1 17:39:51:50:205 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:39:51:148:12 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:39:51:154:124 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:39:51:252:223 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:39:51:353:698 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:39:51:355:904 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:39:51:356:836 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_sda_dirty_read.txt new file mode 100644 index 00000000..14a67a80 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_sda_dirty_read.txt @@ -0,0 +1,45 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:38:681:749 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:38:728:904 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:38:781:667 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:39:38:784:510 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:39:38:884:460 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:38:981:744 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:39:38:984:441 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:39:38:985:337 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..d854b0f0 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_sda_intermediate_read.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:39:920:717 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:39:922:316 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:40:20:713 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:39:40:22:658 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 17:39:40:124:431 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:40:221:187 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:40:326:344 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:39:40:328:689 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:40:329:445 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..9d80ed59 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:40:589:388 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:40:590:920 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:40:689:556 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:39:40:691:661 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:39:40:692:779 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 17:39:40:790:634 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:40:801:155 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:39:40:803:543 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:40:804:400 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..183ba2af --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:42:46:206 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:42:48:285 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:42:147:672 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:39:42:248:5 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-1 17:39:42:254:419 +Q6 finished at: 2022-4-1 17:39:42:254:459 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:39:42:352:863 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:39:42:354:771 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:42:356:109 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..7703699d --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_sda_non_repeatable_read.txt @@ -0,0 +1,58 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:39:251:736 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:39:39:253:862 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:39:351:455 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:39:39:353:220 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:39:39:452:462 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:39:557:141 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:39:652:739 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:39:39:654:613 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:39:655:480 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..3434dab0 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:41:67:322 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:39:41:69:302 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:41:167:216 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:39:41:169:93 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:39:41:182:198 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:39:41:268:726 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:41:269:725 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 17:39:41:271:340 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:41:272:234 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..73456bb7 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:41:575:649 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:39:41:578:224 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:41:675:821 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 17:39:41:677:584 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:39:41:684:10 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:39:41:776:680 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:41:777:495 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 17:39:41:779:79 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:41:779:909 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..df85a5d4 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:55:593:938 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:55:595:533 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:55:694:10 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:55:695:841 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:39:55:794:942 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:55:800:887 + Q5 finished at: 2022-4-1 17:39:55:800:911 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:55:806:851 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:55:809:483 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:55:810:313 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..3e9c4489 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:56:78:714 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:56:80:295 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:56:178:895 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:56:180:828 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:39:56:324:376 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:39:56:383:898 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:39:56:927:783 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..06c93f4b --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:57:199:724 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:57:201:344 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:57:299:599 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:57:301:243 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:39:57:401:49 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:39:57:505:341 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:39:58:4:636 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..a5639f2e --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:58:274:340 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:58:276:82 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:58:374:272 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:58:376:210 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:39:58:475:509 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:58:487:155 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:39:59:182:225 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..75e9d872 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:59:472:577 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:39:59:474:229 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:59:575:607 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:59:577:348 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:39:59:578:985 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:39:59:780:453 +Q6 finished at: 2022-4-1 17:39:59:780:490 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:59:794:56 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:59:796:290 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:59:797:269 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..bd8bb911 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:0:78:939 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:0:80:761 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:0:183:683 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:0:185:525 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:0:187:129 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:0:389:242 +Q6 finished at: 2022-4-1 17:40:0:389:313 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:0:492:693 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:0:494:946 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:0:496:67 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..e6af5785 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:0:777:705 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:0:779:369 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:0:891:423 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:0:893:299 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:40:0:979:991 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:0:991:431 +Q7 finished at: 2022-4-1 17:40:0:991:506 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:1:96:797 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:1:98:993 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:1:100:54 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..faaa43cc --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:1:454:914 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:1:456:613 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:1:555:594 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:1:558:660 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:40:1:660:418 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:1:862:820 +Q8 finished at: 2022-4-1 17:40:1:863:225 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:1:870:777 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:1:872:856 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:1:873:781 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..51f9bb82 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:2:181:45 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:2:183:4 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:2:281:674 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:2:283:545 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:2:384:228 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:2:391:19 + Q5 finished at: 2022-4-1 17:40:2:391:32 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:2:397:974 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:2:400:68 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:2:402:52 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..c6b6be40 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:2:685:118 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:2:686:998 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:2:785:25 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:2:786:749 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:40:2:885:393 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:40:2:887:437 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-1 17:40:2:988:770 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:3:91:707 + Q8 finished at: 2022-4-1 17:40:3:91:696 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:3:190:779 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:40:3:891:829 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..d1dcf17d --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:4:166:194 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:4:168:44 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:4:266:160 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:4:267:900 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:4:366:205 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:40:4:567:463 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-1 17:40:4:667:558 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:4:773:53 + Q10 finished at: 2022-4-1 17:40:4:773:100 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:4:972:580 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:40:5:572:326 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..d144d54e --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:51:619:701 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:51:621:288 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:51:719:849 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-1 17:39:51:820:253 +Q5 finished at: 2022-4-1 17:39:51:822:958 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:51:926:925 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:39:51:929:393 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:39:51:951:194 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:51:952:125 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..6da04e2c --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:52:204:716 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:52:206:304 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:52:304:769 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:39:52:410:410 + Q4 finished at: 2022-4-1 17:39:52:410:472 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:52:510:582 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:39:52:512:812 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:39:52:534:171 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:52:535:69 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/wat_sda_full_write.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_sda_full_write.txt new file mode 100644 index 00000000..a9aa7cb5 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:52:786:722 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:52:788:377 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:52:886:685 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 17:39:52:987:623 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:39:52:997:172 + Q4 finished at: 2022-4-1 17:39:52:997:163 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:39:53:93:286 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:39:53:95:175 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:53:96:625 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..36e3b654 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:53:363:712 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:53:365:761 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:53:463:620 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 17:39:53:564:485 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:53:570:956 + Q4 finished at: 2022-4-1 17:39:53:571:21 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:39:53:577:44 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:39:53:579:341 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:53:580:197 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..b00112fb --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:55:97:661 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:55:99:275 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:55:197:702 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:39:55:298:737 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:55:305:633 + Q4 finished at: 2022-4-1 17:39:55:305:712 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:39:55:312:522 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:39:55:314:177 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:55:315:819 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..4abfdd13 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:53:842:95 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:39:53:843:805 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:53:941:978 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:39:53:943:582 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:39:54:148:195 +Q5 finished at: 2022-4-1 17:39:54:148:203 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:39:54:155:277 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:39:54:157:35 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:54:158:492 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/read-uncommitted/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..694305aa --- /dev/null +++ b/install/test_result/centralizend_result/mysql/read-uncommitted/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:54:424:768 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:39:54:426:385 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:54:524:680 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:39:54:526:881 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:39:54:730:776 + Q6 finished at: 2022-4-1 17:39:54:730:752 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:54:830:937 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:39:54:832:815 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:54:834:745 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/mysql/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..73966363 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:20:925:714 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:20:927:605 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:21:26:49 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:21:27:855 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:21:29:318 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:21:36:421 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:41:21:126:615 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:21:127:670 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:21:130:115 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:21:131:57 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/mysql/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..4bfbb67c --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:21:398:261 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:21:400:123 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:21:500:613 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:21:502:707 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:21:504:354 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:21:515:760 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:41:21:600:656 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:21:607:540 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:21:609:468 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:21:611:427 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/iat_dda_write_skew.txt b/install/test_result/centralizend_result/mysql/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..47755e54 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:21:887:33 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:21:888:752 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:21:987:283 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:21:989:286 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:21:990:864 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:41:22:87:965 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:22:93:993 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:22:192:411 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:22:195:215 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:22:196:184 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/mysql/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..04a9228e --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:23:445:726 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:23:447:501 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:23:545:756 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:23:547:542 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:23:549:9 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:23:555:483 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:41:23:646:872 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:23:656:882 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:23:659:540 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:23:660:569 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/mysql/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..9c350e70 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:22:466:988 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 17:41:22:469:190 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 17:41:22:470:919 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:41:22:567:99 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 17:41:22:569:639 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 17:41:22:571:566 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:22:578:441 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:22:676:3 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 17:41:22:679:98 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 17:41:22:680:928 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:22:681:879 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/mysql/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..20a776ed --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:22:956:213 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 17:41:22:958:708 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:23:59:645 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 17:41:23:62:72 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 17:41:23:64:565 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:23:70:692 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 17:41:23:158:79 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:23:163:692 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 17:41:23:166:333 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:23:167:261 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/iat_mda_step_iat.txt b/install/test_result/centralizend_result/mysql/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..976074be --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:23:921:833 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:41:23:923:973 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:24:21:862 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:41:24:24:234 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:41:24:122:195 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:41:24:124:267 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:41:24:223:185 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:41:24:324:514 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:41:24:423:297 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:41:24:527:717 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:24:627:593 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:24:729:275 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:41:24:732:379 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:24:733:423 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/mysql/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..e5b3ef53 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:28:568:514 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:28:576:755 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:28:668:537 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:41:28:670:298 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:28:676:209 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:28:768:719 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:41:28:771:138 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:41:28:772:877 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:28:782:26 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 17:41:28:869:681 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:41:28:870:768 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 17:41:28:872:873 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:41:28:873:768 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/mysql/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..6499ed26 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:27:781:36 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:27:783:766 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:27:881:659 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:27:884:628 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:41:27:981:126 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 17:41:27:983:12 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:27:994:250 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:41:28:81:380 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:41:28:83:467 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:28:89:921 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 17:41:28:183:362 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:28:184:699 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 17:41:28:283:283 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 17:41:28:284:809 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:41:28:287:964 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:41:28:289:10 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/mysql/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..21a264de --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:25:16:96 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 17:41:25:18:5 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:25:116:203 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:41:25:118:513 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:41:25:216:182 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:41:25:218:338 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:41:25:317:184 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:41:25:417:141 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:41:25:517:211 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:41:25:622:959 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:25:723:140 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:25:823:660 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:41:25:826:887 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:25:828:239 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/mysql/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..c3312682 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:26:92:118 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:41:26:95:43 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:26:193:50 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 17:41:26:195:209 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:41:26:292:167 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 17:41:26:294:370 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 17:41:26:393:206 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 17:41:26:493:243 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 17:41:26:593:114 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:41:26:698:792 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:26:798:168 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:26:900:198 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:41:26:902:865 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:26:903:950 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/mysql/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..66d3b6cb --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:29:141:92 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:41:29:143:46 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 17:41:29:144:839 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:41:29:240:921 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 17:41:29:243:103 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 17:41:29:244:672 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:29:252:368 + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:41:29:340:946 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 17:41:29:343:15 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:41:29:344:961 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:29:345:937 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 17:41:29:441:822 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 17:41:29:448:398 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 17:41:29:450:805 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 17:41:29:452:247 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/mysql/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..1182f47d --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:27:195:256 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 17:41:27:197:427 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:27:295:238 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 17:41:27:297:615 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:27:299:95 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:41:27:300:959 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 17:41:27:302:499 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:27:309:448 + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-1 17:41:27:395:332 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 17:41:27:397:765 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 17:41:27:399:466 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 17:41:27:401:529 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 17:41:27:402:977 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:27:411:361 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 17:41:27:496:715 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 17:41:27:497:882 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 17:41:27:500:265 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 17:41:27:501:214 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/mysql/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..6ae309b1 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:20:438:682 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:41:20:440:302 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:20:538:633 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:41:20:540:369 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:20:547:567 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 17:41:20:639:702 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:20:646:556 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:20:648:540 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:20:650:74 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/mysql/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..6f93c59e --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:19:967:2 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:19:968:735 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:20:67:605 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:41:20:69:469 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:20:81:370 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:41:20:167:790 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:20:168:828 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:20:170:758 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:20:171:636 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:20:172:470 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..f0df128f --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:58:16:0 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:58:17:883 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:58:115:771 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:58:117:479 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:58:119:93 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:40:58:321:891 + Q7 finished at: 2022-4-1 17:40:58:322:330 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:58:421:882 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:40:58:423:843 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:58:424:713 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..e9446a07 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:58:701:38 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:58:702:692 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:58:800:944 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:58:802:615 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:58:804:137 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:58:809:909 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:58:901:861 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:58:908:334 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:40:58:910:468 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:58:912:41 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..b1ae7deb --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:59:183:187 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:59:185:163 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:59:283:114 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:59:284:864 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:40:59:384:209 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:59:391:507 + Q5 finished at: 2022-4-1 17:40:59:391:568 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:59:490:956 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:59:493:555 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:59:494:337 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_read_skew.txt b/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..21838f02 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:59:762:97 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:59:763:811 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:59:862:133 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:59:863:912 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:59:865:325 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:40:59:963:226 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:0:67:597 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:0:162:527 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:0:164:613 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:0:165:455 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..3397bada --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:1:376:85 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:1:377:788 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:1:476:70 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:1:477:972 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:1:479:634 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:41:1:577:233 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:1:585:115 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:1:679:738 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:1:681:610 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:1:682:426 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..3ade1796 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:1:985:744 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:1:987:334 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:2:84:463 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:2:86:691 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:2:88:244 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:2:89:124 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:41:2:186:969 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:2:224:224 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:2:226:220 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:2:227:27 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..1b91b6c8 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:0:429:798 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:41:0:431:510 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:0:529:801 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:0:531:568 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:0:532:966 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:0:539:587 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:41:0:631:148 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:0:632:123 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 17:41:0:633:870 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:0:635:555 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..9347cb70 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:0:890:604 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:41:0:893:7 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:0:990:534 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 17:41:0:992:78 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 17:41:0:993:374 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:1:5:325 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:41:1:91:681 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:1:92:627 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 17:41:1:94:416 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:1:95:220 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..99e3035f --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:56:862:683 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:56:864:322 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:56:962:743 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:56:964:747 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:56:967:978 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:40:57:64:746 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:57:168:408 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:57:268:557 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:57:271:179 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:57:272:122 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..7ac35b5a --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:57:538:874 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:57:540:466 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:57:638:903 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:57:640:610 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:57:643:37 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:57:648:517 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:40:57:740:68 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:57:746:412 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:57:748:227 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:57:749:70 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/rat_mda_step_rat.txt b/install/test_result/centralizend_result/mysql/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..310822cf --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:2:551:705 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:2:553:374 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:2:651:670 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:2:653:390 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:2:655:356 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:2:751:923 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:41:2:753:647 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 17:41:2:756:609 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 17:41:2:853:108 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:41:2:860:21 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:2:957:826 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:3:57:649 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:41:3:60:113 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:3:62:172 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/mysql/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..3544d936 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-1 17:41:3:345:877 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 17:41:3:348:596 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-1 17:41:3:445:790 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 17:41:3:447:481 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:41:3:545:708 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 17:41:3:548:528 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:41:3:551:155 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:41:3:645:765 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:41:3:647:417 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:41:3:747:790 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:41:3:851:401 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:3:952:576 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:41:4:46:290 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:4:48:499 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:41:4:51:16 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:41:4:51:877 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/mysql/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..b6615d93 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:4:319:792 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:4:321:384 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:4:419:809 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:4:421:651 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:41:4:423:832 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:4:519:824 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:41:4:521:398 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 17:41:4:523:308 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:41:4:621:427 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:41:4:628:105 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:4:737:319 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:4:830:397 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:41:4:833:606 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:4:834:754 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/mysql/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..fe4f73cb --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:5:94:615 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 17:41:5:96:915 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:5:194:839 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 17:41:5:196:928 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:41:5:199:898 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:5:294:794 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 17:41:5:296:474 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 17:41:5:298:445 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:41:5:396:203 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:41:5:402:534 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:5:500:522 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:5:601:227 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:41:5:604:441 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:5:605:368 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/mysql/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..49dceac2 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:52:785:213 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:52:786:983 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:52:886:208 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:52:888:238 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:40:52:991:192 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:53:84:746 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:40:53:86:903 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:53:87:875 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/mysql/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..6a2ac94f --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:54:29:887 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:54:31:590 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:54:129:669 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:54:131:636 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 17:40:54:230:804 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:54:330:39 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:54:438:364 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:40:54:440:324 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:54:441:504 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/mysql/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..a7db0e22 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:54:757:542 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:54:759:333 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:54:856:977 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:54:858:804 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:54:859:687 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 17:40:54:959:698 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:54:966:539 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:40:54:968:451 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:54:969:341 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/mysql/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..ad38f1da --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:56:277:702 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:56:279:390 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:56:377:601 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:40:56:478:823 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:40:56:484:943 + Q4 finished at: 2022-4-1 17:40:56:485:135 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:56:582:794 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:56:584:675 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:56:585:526 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/mysql/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..871ca4c7 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:53:353:285 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:53:355:143 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:53:453:214 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:53:454:988 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:40:53:559:86 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:53:659:391 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:53:753:914 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:53:756:99 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:53:757:244 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/mysql/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..9b5ba6d2 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:55:244:756 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:40:55:246:567 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:55:344:713 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:55:346:446 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:55:354:890 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:40:55:446:856 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:55:447:747 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 17:40:55:449:514 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:55:450:323 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/mysql/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..4cbc80e1 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:55:725:340 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:40:55:727:931 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:55:825:264 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 17:40:55:826:955 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:55:841:475 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:40:55:926:181 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:55:927:46 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 17:40:55:928:726 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:55:929:557 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..de9b81d3 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:9:949:309 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:9:951:73 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:10:49:313 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:10:51:149 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:41:10:150:634 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:10:159:657 + Q5 finished at: 2022-4-1 17:41:10:159:769 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:10:165:716 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:10:167:660 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:10:168:621 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..0c1f5bd2 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:10:458:512 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:10:460:402 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:10:558:358 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:10:560:338 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:10:659:705 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:10:769:193 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:11:266:333 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..7f3d2da0 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:11:542:140 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:11:543:753 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:11:642:183 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:11:643:872 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:11:744:707 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:11:848:11 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:12:347:797 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..1e756ddf --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:12:618:252 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:12:619:970 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:12:718:55 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:12:719:869 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:12:819:383 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:12:825:466 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:41:13:522:540 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..480f33ad --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:13:789:844 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:13:791:525 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:13:889:899 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:13:891:934 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:13:893:617 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:14:95:594 +Q6 finished at: 2022-4-1 17:41:14:95:645 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:14:101:311 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:14:103:679 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:14:104:625 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..5d373f07 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:14:374:75 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:14:375:831 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:14:474:49 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:14:475:889 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:14:477:343 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:14:679:984 +Q6 finished at: 2022-4-1 17:41:14:680:26 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:14:790:748 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:14:794:168 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:14:795:118 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..18e31d03 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:15:62:119 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:15:64:125 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:15:162:76 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:15:164:279 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:41:15:262:986 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:15:269:956 + Q5 finished at: 2022-4-1 17:41:15:269:990 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:15:367:669 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:15:370:22 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:15:371:66 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..5cceefeb --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:15:642:786 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:15:644:373 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:15:742:785 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:15:744:698 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:41:15:843:831 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:16:50:57 + Q5 finished at: 2022-4-1 17:41:16:50:88 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:16:57:412 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:16:59:392 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:16:60:741 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..d94ca8d2 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:16:333:724 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:16:335:460 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:16:433:777 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:16:435:573 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:41:16:534:632 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:16:541:75 + Q5 finished at: 2022-4-1 17:41:16:541:122 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:16:547:354 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:16:549:678 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:16:550:519 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/mysql/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..0b8c173c --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:16:811:365 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:16:812:861 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:16:911:673 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:16:913:768 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:17:11:424 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:41:17:13:175 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-1 17:41:17:112:920 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:17:217:602 + Q8 finished at: 2022-4-1 17:41:17:217:685 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:17:317:218 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:41:18:15:762 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/mysql/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..199e35a8 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:18:289:639 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:18:291:276 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:18:389:595 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:18:391:330 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:41:18:491:558 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:41:18:691:16 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-1 17:41:18:791:65 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:18:895:111 + Q8 finished at: 2022-4-1 17:41:18:895:136 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:19:98:171 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:41:19:693:844 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/mysql/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..ac890cf5 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:5:880:900 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:5:882:621 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:5:981:755 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-1 17:41:6:84:638 +Q5 finished at: 2022-4-1 17:41:6:87:991 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:6:189:788 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:41:6:191:759 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:41:6:211:626 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:6:212:873 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/mysql/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..3146d9a5 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:6:483:266 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:6:485:211 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:6:583:24 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-1 17:41:6:689:404 +Q5 finished at: 2022-4-1 17:41:6:689:460 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:6:789:544 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:41:6:791:372 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:41:6:810:731 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:6:811:874 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/wat_sda_full_write.txt b/install/test_result/centralizend_result/mysql/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..504b886e --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:7:78:630 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:7:80:736 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:7:179:670 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 17:41:7:280:750 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:41:7:294:793 + Q4 finished at: 2022-4-1 17:41:7:294:846 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:7:385:655 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:41:7:387:658 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:7:388:771 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/mysql/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..e9daf4c9 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:7:667:163 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:7:668:890 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:7:771:601 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 17:41:7:868:451 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:7:874:214 + Q4 finished at: 2022-4-1 17:41:7:874:286 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:7:880:177 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:41:7:882:176 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:7:883:946 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/mysql/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..37a71435 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:9:461:428 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:9:462:927 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:9:561:416 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:41:9:662:414 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:9:668:895 + Q4 finished at: 2022-4-1 17:41:9:669:18 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:9:675:304 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:9:677:478 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:9:678:318 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/mysql/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..4b6bc958 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:8:162:942 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:41:8:164:772 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:8:262:848 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:41:8:265:92 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:8:470:733 +Q5 finished at: 2022-4-1 17:41:8:470:780 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:41:8:478:390 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:8:480:208 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:8:481:890 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/repeatable-read/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/mysql/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..cae557ef --- /dev/null +++ b/install/test_result/centralizend_result/mysql/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:8:782:160 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:41:8:784:47 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:8:882:378 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:41:8:884:451 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:9:88:968 +Q5 finished at: 2022-4-1 17:41:9:88:995 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:9:188:692 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:9:190:892 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:9:193:13 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/mysql/result_summary/read-committed_total-result.txt b/install/test_result/centralizend_result/mysql/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..38745346 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/mysql/result_summary/read-uncommitted_total-result.txt b/install/test_result/centralizend_result/mysql/result_summary/read-uncommitted_total-result.txt new file mode 100644 index 00000000..f709ccda --- /dev/null +++ b/install/test_result/centralizend_result/mysql/result_summary/read-uncommitted_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Anomaly + +rat_sda_non_repeatable_read: Anomaly + +rat_sda_intermediate_read: Anomaly + +rat_sda_intermediate_read_committed: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Anomaly + +rat_dda_double_write_skew1_committed: Anomaly + +rat_dda_double_write_skew2: Anomaly + +rat_dda_read_skew: Anomaly + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Anomaly + +rat_dda_read_skew2_committed: Anomaly + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Anomaly + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Anomaly + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/mysql/result_summary/repeatable-read_total-result.txt b/install/test_result/centralizend_result/mysql/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..ef182286 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/mysql/result_summary/serializable_total-result.txt b/install/test_result/centralizend_result/mysql/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..b5b686cf --- /dev/null +++ b/install/test_result/centralizend_result/mysql/result_summary/serializable_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Rollback + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Rollback + +rat_dda_read_skew2_committed: Rollback + +rat_mda_step_rat: Rollback + +rat_mda_step_rat_long_fork: Rollback + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Rollback + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Rollback + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +iat_mda_step_iat_predicate_based_delete: Rollback + +iat_mda_step_iat_predicate_based_insert: Rollback + +iat_mda_step_iat_uname_anomaly: Rollback + +iat_mda_step_iat_cross_phenomenon: Rollback + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Rollback + diff --git a/install/test_result/centralizend_result/mysql/serializable/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/mysql/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..e0b53796 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:8:25:707 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:42:8:27:361 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:8:125:799 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:42:8:127:830 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:42:8:228:473 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:42:8:234:781 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:42:8:928:633 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/mysql/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..8a78f41c --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:9:207:392 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:42:9:209:102 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:9:307:383 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:42:9:309:74 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:42:9:408:592 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:42:9:415:624 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:42:10:108:725 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/iat_dda_write_skew.txt b/install/test_result/centralizend_result/mysql/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..0f3ae3bd --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/iat_dda_write_skew.txt @@ -0,0 +1,49 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:10:382:465 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:42:10:384:278 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:10:482:443 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:42:10:484:206 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:42:10:583:656 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:42:10:693:391 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:42:11:183:797 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/mysql/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..b452e7fd --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,49 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:13:130:199 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:42:13:132:963 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:13:231:637 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:42:13:233:633 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:42:13:333:102 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:42:13:339:928 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:42:14:33:67 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/mysql/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..69a11cd6 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:11:459:600 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 17:42:11:461:475 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 17:42:11:462:884 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:42:11:559:586 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:42:11:666:67 + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 17:42:11:666:330 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 17:42:11:668:262 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:42:11:673:435 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 17:42:11:675:836 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 17:42:11:678:593 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:42:11:679:584 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/mysql/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..ed636e29 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,49 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:11:958:859 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 17:42:11:961:651 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:12:58:825 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 17:42:12:61:640 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q5 finished at: 2022-4-1 17:42:12:161:585 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:42:12:168:826 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:42:12:861:827 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/iat_mda_step_iat.txt b/install/test_result/centralizend_result/mysql/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..38413186 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/iat_mda_step_iat.txt @@ -0,0 +1,89 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:14:332:357 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:42:14:334:774 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:14:432:758 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:42:14:435:199 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:42:14:533:212 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:42:14:535:337 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 finished at: 2022-4-1 17:42:14:834:916 + Q11-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:42:15:45:452 + Q11 finished at: 2022-4-1 17:42:15:45:475 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:42:15:53:360 + Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q9 failed at: 2022-4-1 17:42:15:734:864 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/mysql/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..d0602268 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:22:942:657 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:42:22:944:626 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:23:42:577 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:42:23:142:686 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 17:42:23:244:149 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:42:23:245:318 + Q4 finished at: 2022-4-1 17:42:23:245:391 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:42:23:250:920 + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:42:23:251:494 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:42:23:253:644 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:42:23:257:953 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 17:42:23:260:52 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:42:23:261:386 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/serializable/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/mysql/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..c6f8f44e --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,171 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:21:575:144 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:42:21:577:667 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:21:675:94 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:42:21:677:800 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:42:21:775:204 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:42:21:875:539 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 17:42:22:77:874 + Q12-T2 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:42:22:79:154 + Q12 finished at: 2022-4-1 17:42:22:79:135 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:42:22:85:726 + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 17:42:22:86:641 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 17:42:22:87:800 + Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q6 failed at: 2022-4-1 17:42:22:676:982 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/mysql/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..ec79f9e5 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,89 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:16:15:347 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 17:42:16:17:345 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:16:115:280 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:42:16:117:484 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:42:16:218:851 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:42:16:221:60 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q8 finished at: 2022-4-1 17:42:16:516:568 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:42:16:722:240 +Q7 finished at: 2022-4-1 17:42:16:722:447 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:42:16:730:211 + Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q9 failed at: 2022-4-1 17:42:17:416:605 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/mysql/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..1647aa2d --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,85 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:17:706:872 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:42:17:709:871 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:17:806:813 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 17:42:17:809:46 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:42:17:906:773 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 17:42:17:908:812 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q7 finished at: 2022-4-1 17:42:18:208:94 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:42:18:320:428 + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q8 failed at: 2022-4-1 17:42:19:8:90 + Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q9 failed at: 2022-4-1 17:42:19:108:264 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/mysql/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..2f8ba04c --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,105 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:23:521:178 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:42:23:523:349 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 17:42:23:525:372 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:42:23:620:959 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 17:42:23:623:186 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:42:23:721:130 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 17:42:23:723:536 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 17:42:23:823:75 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 17:42:23:831:676 + Q6 finished at: 2022-4-1 17:42:23:831:732 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:42:23:838:601 + Q10 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q10 failed at: 2022-4-1 17:42:24:823:261 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/mysql/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..1de048b5 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,127 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:19:454:404 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 17:42:19:456:562 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:19:554:353 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 17:42:19:556:571 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:42:19:558:179 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:42:19:560:195 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-1 17:42:19:654:409 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 17:42:19:656:728 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 17:42:19:658:206 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:42:19:755:691 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:42:19:763:422 + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 17:42:19:764:136 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 17:42:19:765:752 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:42:19:779:603 +Q15 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q15 failed at: 2022-4-1 17:42:21:255:752 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/mysql/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..b02d6556 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:7:157:422 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:42:7:159:286 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:7:257:397 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 17:42:7:358:313 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:42:7:364:857 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q4 failed at: 2022-4-1 17:42:7:758:442 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/mysql/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..5768b4cf --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:6:671:13 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:42:6:672:696 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:6:771:118 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:42:6:874:573 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:42:6:875:560 + Q4 finished at: 2022-4-1 17:42:6:875:640 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:42:6:883:427 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:42:6:885:819 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:42:6:886:698 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:42:6:887:450 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/serializable/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/mysql/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..b0c0ec57 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:36:72:810 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:36:74:503 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:36:172:707 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:36:174:556 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:36:274:474 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:36:379:701 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:36:877:176 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/mysql/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..0877edc9 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:37:146:696 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:37:148:379 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:37:246:809 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:37:248:829 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:37:348:230 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:37:354:963 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:41:38:51:230 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/mysql/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..e7d208bc --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:38:325:985 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:38:327:720 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:38:425:965 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:38:427:701 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:38:527:285 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:38:633:313 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:39:130:385 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/rat_dda_read_skew.txt b/install/test_result/centralizend_result/mysql/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..757def2b --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/rat_dda_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:39:414:333 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:39:416:324 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:39:514:365 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:39:516:258 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:39:615:527 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:39:722:139 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:40:215:668 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/mysql/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..2c29de85 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:41:487:735 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:41:489:539 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:41:587:733 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:41:589:730 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:41:41:689:701 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:41:698:391 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-1 17:41:42:190:183 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/mysql/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..212ddd91 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:42:461:357 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:42:462:979 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:42:561:402 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:42:563:299 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:41:42:664:952 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:42:670:849 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-1 17:41:43:165:75 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/mysql/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..52f11fa5 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:40:512:588 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:41:40:514:356 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:40:614:23 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:41:40:715:175 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:40:716:723 + Q4 finished at: 2022-4-1 17:41:40:716:844 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:40:718:366 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:40:725:19 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 17:41:40:727:5 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:40:727:951 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/serializable/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/mysql/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..a05ab5bc --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:41:3:753 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:41:41:6:456 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:41:104:98 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:41:41:209:666 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:41:211:717 + Q4 finished at: 2022-4-1 17:41:41:211:906 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 17:41:41:213:588 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:41:221:79 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 17:41:41:223:512 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:41:224:517 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/serializable/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/mysql/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..ecf4eb06 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:33:817:277 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:33:818:859 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:33:917:313 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:33:919:31 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:34:18:965 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:34:124:938 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:34:622:434 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/mysql/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..635132e6 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:34:899:58 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:34:900:598 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:34:999:88 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:35:0:747 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:35:100:539 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:35:106:173 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:41:35:803:95 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/rat_mda_step_rat.txt b/install/test_result/centralizend_result/mysql/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..7f36962e --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/rat_mda_step_rat.txt @@ -0,0 +1,74 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:43:437:745 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:43:439:334 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:43:539:23 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:43:540:848 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:43:639:816 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:41:43:641:587 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:43:739:462 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:43:844:617 + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 17:41:43:845:190 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:43:943:656 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:41:44:642:471 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/mysql/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..602d06f2 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,169 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-1 17:41:44:906:691 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 17:41:44:909:579 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-1 17:41:45:6:307 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:41:45:106:381 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 17:41:45:109:229 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:41:45:206:433 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:41:45:308:780 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:41:45:606:891 + Q9 finished at: 2022-4-1 17:41:45:607:101 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:45:613:644 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:41:45:614:867 +Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q4 failed at: 2022-4-1 17:41:45:707:950 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/mysql/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..3aa905cb --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,74 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:45:976:146 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:45:977:698 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:46:76:301 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:46:78:210 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:46:176:118 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:41:46:177:726 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:41:46:288:818 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:46:381:346 + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 17:41:46:382:20 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:46:484:1 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:41:47:191:175 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/mysql/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..29a3b639 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,71 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:47:446:656 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 17:41:47:449:76 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:47:546:738 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 17:41:47:548:474 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:47:651:532 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 17:41:47:653:280 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:41:47:748:738 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:47:852:489 + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + (4) expected_result: + (,) + *(5) expected_result: + (1,) + (6) expected_result: + (,) + + Q8 finished at: 2022-4-1 17:41:47:853:72 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:47:952:352 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:41:48:651:150 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/mysql/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..fd8f3ed6 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:29:872:206 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:29:873:776 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:29:972:28 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:41:30:72:843 +Q5 finished at: 2022-4-1 17:41:30:75:864 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:30:172:234 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:41:30:174:16 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:30:174:777 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/serializable/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/mysql/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..43a392b9 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:31:127:608 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:31:129:511 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:31:227:583 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 17:41:31:328:824 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:31:533:92 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:41:31:533:351 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:31:535:252 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:41:31:537:322 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:31:538:328 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/serializable/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/mysql/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..27354e80 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:31:804:186 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:31:805:768 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:31:904:470 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 17:41:32:5:152 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:32:15:748 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:41:32:16:62 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:32:16:849 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:41:32:18:365 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:32:19:651 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/serializable/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/mysql/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..6a33e43a --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:33:238:408 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:33:240:186 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:33:339:238 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:41:33:439:491 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:41:33:447:842 + Q4 finished at: 2022-4-1 17:41:33:447:907 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:33:544:384 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:33:546:261 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:33:547:127 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/serializable/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/mysql/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..6aa8d05e --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:30:443:285 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:30:444:838 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:30:543:488 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:41:30:644:514 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:30:843:672 + Q4 finished at: 2022-4-1 17:41:30:843:866 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:30:850:540 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:30:852:243 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:30:853:40 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/mysql/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..9d0a6998 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:32:303:405 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:41:32:305:37 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:32:403:362 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:41:32:504:497 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:32:505:462 + Q4 finished at: 2022-4-1 17:41:32:505:653 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:32:511:208 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 17:41:32:512:761 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:32:513:906 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/mysql/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..957ed888 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:32:766:140 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:41:32:768:731 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:32:866:170 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:41:32:967:290 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:32:968:231 + Q4 finished at: 2022-4-1 17:41:32:968:372 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:32:974:70 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 17:41:32:975:700 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:32:976:469 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/serializable/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/mysql/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..93e53b1e --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:53:396:109 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:53:397:807 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:53:496:223 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:53:498:268 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:53:597:375 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:53:603:154 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:41:54:300:308 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/mysql/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..bbe69855 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:54:600:944 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:54:602:630 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:54:700:902 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:54:702:621 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:54:802:193 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:54:907:609 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:55:405:992 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/mysql/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..ed0ac8a1 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:55:689:611 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:55:691:452 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:55:790:648 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:55:792:517 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:55:890:429 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:55:996:768 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:56:494:17 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/mysql/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..2a53175b --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:56:782:597 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:56:784:231 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:56:882:796 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:56:884:531 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:56:983:892 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:56:992:279 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:41:57:688:947 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/mysql/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..bdf4f323 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:57:959:160 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:57:961:152 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:58:58:984 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:58:60:682 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:58:160:692 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:58:265:685 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:58:760:762 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/mysql/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..53c58b8f --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:59:42:696 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:59:44:470 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:59:142:624 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:59:144:352 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:59:243:787 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:59:349:516 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:59:843:891 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/mysql/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..3ed715ab --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:0:118:686 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:42:0:120:266 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:0:218:693 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:42:0:220:463 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:42:0:320:313 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:42:0:425:623 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:42:0:923:308 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/mysql/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..b9c23446 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:1:227:79 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:42:1:228:691 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:1:327:69 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:42:1:329:0 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:42:1:428:354 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:42:1:535:671 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:42:2:31:629 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/mysql/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..4e43d8bb --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:2:342:425 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:42:2:344:361 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:2:442:324 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:42:2:444:15 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:42:2:543:641 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:42:2:552:629 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:42:3:247:566 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/mysql/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..133e0382 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:3:522:950 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:42:3:524:706 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:3:623:3 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:42:3:624:826 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:42:3:722:887 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:42:3:724:756 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-1 17:42:3:824:193 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:42:3:929:742 + Q11 finished at: 2022-4-1 17:42:3:929:757 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:42:4:29:976 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:42:4:726:732 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/mysql/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..1ae36ebb --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:4:993:22 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:42:4:994:695 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:5:93:263 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:42:5:95:109 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:42:5:193:119 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:42:5:395:230 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-1 17:42:5:494:845 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:42:5:598:592 + Q8 finished at: 2022-4-1 17:42:5:598:739 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:42:5:798:557 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:42:6:398:341 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/mysql/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..341b81f9 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:48:926:496 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:48:928:336 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:49:26:363 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-1 17:41:49:127:102 +Q5 finished at: 2022-4-1 17:41:49:128:927 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:49:232:48 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:41:49:234:634 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:41:49:254:491 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:49:255:455 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/serializable/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/mysql/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..c5a0e332 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:49:497:454 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:49:499:150 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:49:597:360 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:41:49:705:710 + Q4 finished at: 2022-4-1 17:41:49:705:807 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:49:804:207 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:41:49:806:919 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:41:49:830:104 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:49:831:101 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/serializable/wat_sda_full_write.txt b/install/test_result/centralizend_result/mysql/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..6e19dd28 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:50:80:303 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:50:81:937 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:50:183:592 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 17:41:50:281:182 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:41:50:288:20 + Q4 finished at: 2022-4-1 17:41:50:288:126 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:50:386:61 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:41:50:388:843 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:50:389:793 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/serializable/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/mysql/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..f5160036 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:50:653:111 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:50:654:699 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:50:755:533 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 17:41:50:853:857 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:50:867:144 + Q4 finished at: 2022-4-1 17:41:50:867:233 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:50:873:679 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:41:50:875:483 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:50:876:362 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/serializable/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/mysql/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..cf6fbba5 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:52:901:776 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:52:903:375 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:53:1:693 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:41:53:102:801 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:53:110:237 + Q4 finished at: 2022-4-1 17:41:53:110:326 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:53:118:411 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:53:121:82 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:53:121:912 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/mysql/serializable/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/mysql/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..83d92063 --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:51:157:127 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:41:51:158:796 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:51:257:113 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-1 17:41:51:358:278 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:41:51:365:242 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q4 failed at: 2022-4-1 17:41:51:758:360 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/mysql/serializable/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/mysql/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..554cc05a --- /dev/null +++ b/install/test_result/centralizend_result/mysql/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,39 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:52:28:69 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:41:52:29:698 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:52:128:280 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-1 17:41:52:232:792 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:52:434:555 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q4 failed at: 2022-4-1 17:41:52:632:899 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..466352bd --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:16:16:877:955 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:16:16:881:228 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:16:16:977:730 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:16:16:980:402 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:16:16:981:886 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:16:16:984:308 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 15:16:17:78:408 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:16:17:79:574 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:16:17:82:233 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:16:17:83:229 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..c9b9786a --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:16:17:363:16 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:16:17:367:125 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:16:17:462:867 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 15:16:17:465:625 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:16:17:467:75 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:16:17:469:424 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 15:16:17:563:403 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:16:17:565:781 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:16:17:568:384 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:16:17:569:439 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/iat_dda_write_skew.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..bab3760e --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:16:17:850:444 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:16:17:859:657 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:16:17:950:853 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:16:17:952:718 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:16:17:955:268 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 15:16:18:50:876 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:16:18:56:246 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 15:16:18:151:978 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:16:18:154:935 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 15:16:18:156:47 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..66161f58 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:16:19:410:243 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:16:19:413:403 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:16:19:510:477 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:16:19:512:376 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:16:19:515:114 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:16:19:517:686 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 15:16:19:610:924 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:16:19:613:846 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:16:19:616:681 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:16:19:617:759 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..0d0cec09 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,71 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:16:18:437:454 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 15:16:18:441:293 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 15:16:18:442:875 + Q4-T2 execute sql: 'BEGIN;' + Q4 finished at: 2022-4-1 15:16:18:537:458 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 15:16:18:539:424 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 15:16:18:543:56 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:16:18:545:584 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:16:18:638:622 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 15:16:18:640:696 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 15:16:18:642:574 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:16:18:643:723 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..8f02f9ec --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:16:18:926:176 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 15:16:18:930:103 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:16:19:26:529 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 15:16:19:28:859 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 15:16:19:33:692 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:16:19:36:39 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 15:16:19:127:529 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:16:19:129:980 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 15:16:19:132:851 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:16:19:133:960 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/iat_mda_step_iat.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..f87131a5 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:16:19:902:618 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 15:16:19:906:560 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:16:20:5:236 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 15:16:20:7:633 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-1 15:16:20:102:615 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 15:16:20:104:780 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 15:16:20:204:97 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 15:16:20:303:556 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 15:16:20:403:85 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 15:16:20:504:450 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 15:16:20:603:541 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:16:20:704:914 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 15:16:20:714:924 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:16:20:716:669 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..f5204c69 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:16:24:540:368 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:16:24:543:934 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:16:24:640:555 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 15:16:24:643:424 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 15:16:24:645:825 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-1 15:16:24:740:472 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 15:16:24:742:572 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 15:16:24:744:157 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:16:24:746:965 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 15:16:24:841:457 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 15:16:24:842:804 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 15:16:24:845:781 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 15:16:24:846:886 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..c6c642e6 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,206 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:16:23:750:703 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:16:23:755:386 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:16:23:850:839 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:16:23:853:886 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-1 15:16:23:950:820 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 15:16:23:953:958 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:16:23:956:805 + Q8-T4 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-1 15:16:24:51:172 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 15:16:24:53:494 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:16:24:56:597 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 15:16:24:152:670 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:16:24:154:106 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 15:16:24:252:321 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 15:16:24:253:670 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 15:16:24:257:689 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 15:16:24:258:813 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..e23c0113 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:16:20:999:260 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 15:16:21:4:460 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:16:21:98:944 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 15:16:21:101:77 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-1 15:16:21:200:117 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 15:16:21:202:237 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 15:16:21:303:78 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 15:16:21:399:468 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 15:16:21:499:790 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 15:16:21:600:649 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 15:16:21:700:812 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:16:21:801:271 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 15:16:21:804:317 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:16:21:805:703 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..a550f9a9 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:16:22:72:437 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 15:16:22:76:754 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:16:22:172:605 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 15:16:22:174:579 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-1 15:16:22:272:431 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 15:16:22:274:280 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 15:16:22:374:174 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 15:16:22:473:320 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 15:16:22:576:370 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 15:16:22:673:913 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 15:16:22:774:229 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:16:22:873:903 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 15:16:22:877:53 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:16:22:878:196 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..5b221c71 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,139 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:16:25:136:321 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 15:16:25:141:28 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 15:16:25:143:414 + Q4-T2 execute sql: 'BEGIN;' + Q4 finished at: 2022-4-1 15:16:25:236:742 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 15:16:25:238:820 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 15:16:25:241:585 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:16:25:244:75 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-1 15:16:25:336:939 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 15:16:25:339:82 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 15:16:25:341:262 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 15:16:25:342:591 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 15:16:25:437:629 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 15:16:25:440:404 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 15:16:25:443:644 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 15:16:25:444:849 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..a62972a9 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,161 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:16:23:160:514 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 15:16:23:164:230 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:16:23:264:23 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 15:16:23:266:438 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:16:23:269:85 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 15:16:23:271:76 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 15:16:23:272:606 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 15:16:23:275:125 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-4-1 15:16:23:364:138 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 15:16:23:366:444 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 15:16:23:368:161 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 15:16:23:370:971 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 15:16:23:372:576 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:16:23:374:946 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 15:16:23:465:231 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 15:16:23:466:533 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 15:16:23:470:46 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 15:16:23:471:305 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..1eaa2a20 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:16:16:389:325 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 15:16:16:393:52 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:16:16:489:313 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 15:16:16:496:668 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 15:16:16:501:566 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 15:16:16:589:831 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:16:16:592:395 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 15:16:16:594:998 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:16:16:596:84 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..66bb7d5d --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:16:15:906:634 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:16:15:910:453 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:16:16:10:2 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 15:16:16:12:751 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 15:16:16:15:92 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 15:16:16:107:217 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:16:16:108:338 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 15:16:16:111:166 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:16:16:113:936 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:16:16:115:101 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..70287c21 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:4:531:220 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:4:534:483 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:4:631:204 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:15:4:632:855 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:15:4:635:472 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:15:4:832:722 +Q6 finished at: 2022-4-1 15:15:4:832:993 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:15:4:933:134 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 15:15:4:935:872 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:15:4:936:869 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..a949f69a --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:5:210:300 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:5:213:648 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:5:310:269 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:15:5:311:933 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:15:5:314:315 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:15:5:316:639 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 15:15:5:410:824 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:15:5:412:788 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 15:15:5:415:640 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:15:5:416:555 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..dfb84dff --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:5:691:854 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:5:695:252 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:5:791:828 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:15:5:793:734 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 15:15:5:893:460 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:15:5:895:899 + Q5 finished at: 2022-4-1 15:15:5:896:145 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 15:15:5:992:953 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:15:5:996:59 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:15:5:997:57 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_read_skew.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..124838a6 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:6:284:819 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:15:6:293:672 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:6:385:65 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:15:6:387:818 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:15:6:389:377 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 15:15:6:485:37 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:15:6:585:834 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:15:6:684:540 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:15:6:687:466 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:15:6:688:415 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..52648a49 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:7:925:691 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:7:929:58 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:8:25:712 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:15:8:28:686 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:15:8:30:403 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 15:15:8:126:110 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:15:8:128:703 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 15:15:8:225:753 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:15:8:228:989 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:15:8:230:130 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..8dcc954b --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:8:510:63 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:8:513:91 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:8:610:231 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:15:8:612:728 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:15:8:614:263 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:15:8:615:448 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 15:15:8:710:801 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:15:8:713:227 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:15:8:716:114 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:15:8:717:266 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..58f4af6b --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:6:964:604 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 15:15:6:967:862 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:7:64:620 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:15:7:67:771 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:15:7:69:239 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:15:7:71:581 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 15:15:7:165:157 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:15:7:166:159 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 15:15:7:168:761 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:15:7:169:698 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..14aadf51 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:7:438:736 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 15:15:7:442:653 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:7:538:909 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 15:15:7:541:324 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 15:15:7:544:22 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:15:7:546:473 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 15:15:7:639:420 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:15:7:640:476 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 15:15:7:643:268 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:15:7:644:311 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..b605b1df --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:3:350:928 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:3:354:556 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:3:450:855 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:15:3:452:502 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:15:3:455:79 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 15:15:3:569:145 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:15:3:652:308 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:15:3:753:536 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:15:3:756:775 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:15:3:757:851 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..7f08afe9 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:4:48:211 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:4:51:962 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:4:152:215 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:15:4:154:606 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:15:4:157:421 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:15:4:159:909 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 15:15:4:248:824 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:15:4:251:201 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:15:4:254:150 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:15:4:255:263 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/rat_mda_step_rat.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..47004537 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:8:996:37 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:8:999:643 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:9:96:42 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:15:9:97:749 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:15:9:100:843 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-1 15:15:9:196:320 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 15:15:9:198:281 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 15:15:9:200:382 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 15:15:9:296:950 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 15:15:9:299:380 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 15:15:9:397:12 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:15:9:497:342 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 15:15:9:500:469 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:15:9:501:621 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..cb147631 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,208 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN;' + Q1 finished at: 2022-4-1 15:15:9:779:245 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 15:15:9:783:388 +Q3-T1 execute sql: 'BEGIN;' +Q3 finished at: 2022-4-1 15:15:9:884:228 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 15:15:9:887:425 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-1 15:15:9:979:553 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 15:15:9:982:335 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 15:15:9:984:924 + Q8-T2 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-1 15:15:10:79:662 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 15:15:10:81:420 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 15:15:10:181:147 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 15:15:10:280:589 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:15:10:380:785 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 15:15:10:479:392 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:15:10:480:877 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 15:15:10:484:470 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 15:15:10:485:520 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..6f029d19 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:10:764:311 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:10:767:334 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:10:864:450 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:15:10:866:21 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 15:15:10:869:66 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-1 15:15:10:964:357 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 15:15:10:965:951 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 15:15:10:967:965 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 15:15:11:65:479 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 15:15:11:67:914 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 15:15:11:165:843 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:15:11:265:526 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 15:15:11:268:431 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:15:11:269:394 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..d2c76e04 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:11:530:585 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 15:15:11:537:945 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:11:630:782 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 15:15:11:632:403 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 15:15:11:636:135 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-1 15:15:11:730:819 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 15:15:11:732:501 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 15:15:11:734:573 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 15:15:11:831:730 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 15:15:11:834:695 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 15:15:11:933:236 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:15:12:37:421 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 15:15:12:41:127 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:15:12:42:483 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..69b34e1f --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,46 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:14:59:231:253 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:14:59:235:167 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:14:59:332:62 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 15:14:59:334:967 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 15:14:59:431:225 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:14:59:532:534 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 15:14:59:535:731 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 15:14:59:536:966 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..0568b32f --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:0:487:646 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:0:490:965 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:0:586:762 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 15:15:0:589:399 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 15:15:0:688:514 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:15:0:787:482 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:15:0:888:386 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 15:15:0:891:333 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:15:0:892:693 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..ffb0af73 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:1:189:309 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:1:193:151 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:1:288:832 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 15:15:1:292:41 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 15:15:1:293:945 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 15:15:1:389:439 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:15:1:392:177 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 15:15:1:394:623 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:15:1:395:662 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..f36e654b --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:2:748:904 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:2:752:60 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:2:848:922 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 15:15:2:950:453 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 15:15:2:957:540 + Q4 finished at: 2022-4-1 15:15:2:957:647 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:15:3:52:182 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 15:15:3:54:934 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:15:3:55:889 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..7dcded64 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:14:59:807:644 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:14:59:810:952 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:14:59:907:500 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 15:14:59:910:227 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 15:15:0:7:950 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:15:0:108:614 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:15:0:207:363 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 15:15:0:210:196 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:15:0:211:162 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..b99a8c0f --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,57 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:1:736:986 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 15:15:1:741:83 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:1:836:979 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 15:15:1:840:525 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 15:15:1:843:196 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 15:15:1:940:248 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:15:1:941:395 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 15:15:1:944:488 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:15:1:945:727 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..7149360b --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,56 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:2:238:622 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 15:15:2:246:78 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:2:339:354 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 15:15:2:342:343 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 15:15:2:345:693 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 15:15:2:439:257 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:15:2:440:404 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 15:15:2:443:357 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:15:2:444:359 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..9a50c594 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:16:296:747 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:16:299:981 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:16:396:827 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:15:16:398:554 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 15:15:16:498:299 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:15:16:503:911 + Q5 finished at: 2022-4-1 15:15:16:504:104 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:15:16:507:677 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:15:16:510:423 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:15:16:511:496 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..513e0dcc --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:16:798:312 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:16:801:510 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:16:898:190 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 15:15:16:899:736 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-1 15:15:27:312:492 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 15:15:27:504:399 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..62f3ed53 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:27:784:722 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:27:788:562 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:27:886:241 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 15:15:27:887:858 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-1 15:15:38:295:615 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 15:15:38:487:748 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..e5bc6cdb --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:38:783:425 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:38:786:615 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:38:884:766 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 15:15:38:886:493 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-1 15:15:49:294:780 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 15:15:49:587:63 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..e373892f --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:49:867:820 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:15:49:870:990 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:49:968:951 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 15:15:49:971:551 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:15:49:973:136 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 15:15:50:169:268 +Q6 finished at: 2022-4-1 15:15:50:169:410 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:15:50:174:956 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:15:50:177:681 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:15:50:178:700 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..3806fea9 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:50:458:169 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:15:50:461:493 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:50:560:208 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 15:15:50:563:487 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:15:50:565:335 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:15:50:764:500 +Q6 finished at: 2022-4-1 15:15:50:764:656 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:15:50:859:396 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:15:50:862:341 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:15:50:863:389 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..c03d64a9 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:51:145:884 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:51:149:508 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:51:248:177 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:15:51:250:750 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 15:15:51:346:273 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:15:51:348:714 + Q5 finished at: 2022-4-1 15:15:51:348:831 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 15:15:51:447:528 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:15:51:450:458 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:15:51:451:680 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..f41e10d5 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:51:727:206 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:51:732:683 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:51:827:233 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:15:51:829:762 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 15:15:51:927:806 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:15:52:129:321 + Q5 finished at: 2022-4-1 15:15:52:129:623 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:15:52:132:186 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:15:52:134:832 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:15:52:135:896 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..600f25f6 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:52:419:98 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:52:422:438 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:52:519:121 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:15:52:521:659 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 15:15:52:619:580 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:15:52:621:801 + Q5 finished at: 2022-4-1 15:15:52:621:917 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:15:52:624:425 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:15:52:627:140 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:15:52:628:121 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..ecc4fc10 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:52:920:782 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:52:925:552 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:53:20:674 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 15:15:53:22:316 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-1 15:15:53:120:811 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 15:15:53:122:469 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-1 15:16:3:427:749 + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q8 failed at: 2022-4-1 15:16:3:835:193 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 15:16:4:27:335 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..1cea06e6 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:16:4:328:808 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:16:4:331:946 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:16:4:430:364 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 15:16:4:431:942 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-1 15:16:4:534:307 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 15:16:4:729:762 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q6 failed at: 2022-4-1 15:16:15:135:691 + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q8 failed at: 2022-4-1 15:16:15:441:519 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 15:16:15:633:767 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..ffd3600e --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:12:317:691 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:12:321:327 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:12:417:628 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 15:15:12:517:772 + Q4 finished at: 2022-4-1 15:15:12:517:966 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:15:12:619:280 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 15:15:12:621:930 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 15:15:12:636:250 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:15:12:637:277 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..d9a8ca84 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:12:899:98 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:12:902:405 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:12:999:197 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 15:15:13:100:329 + Q4 finished at: 2022-4-1 15:15:13:100:602 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:15:13:201:128 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 15:15:13:203:835 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 15:15:13:218:356 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:15:13:219:403 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/wat_sda_full_write.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..d2c21617 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_sda_full_write.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:13:481:979 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:13:485:690 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:13:581:530 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 15:15:13:683:526 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 15:15:13:685:839 + Q4 finished at: 2022-4-1 15:15:13:686:123 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:15:13:782:858 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 15:15:13:785:772 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:15:13:787:3 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..73f15223 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:14:57:930 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:14:61:281 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:14:158:178 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 15:15:14:258:705 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:15:14:261:109 + Q4 finished at: 2022-4-1 15:15:14:261:244 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 15:15:14:263:778 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 15:15:14:266:855 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:15:14:268:35 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..ec1da529 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:15:801:622 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:15:15:805:82 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:15:901:746 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 15:15:16:3:439 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:15:16:5:667 + Q4 finished at: 2022-4-1 15:15:16:6:121 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 15:15:16:8:470 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 15:15:16:11:197 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:15:16:12:282 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..d8f4d74b --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:14:539:601 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 15:15:14:542:917 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:14:639:762 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 15:15:14:642:855 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:15:14:841:519 +Q5 finished at: 2022-4-1 15:15:14:841:693 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 15:15:14:843:904 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 15:15:14:846:471 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:15:14:848:93 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..239175af --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:15:15:126:82 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 15:15:15:129:519 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:15:15:225:867 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 15:15:15:228:667 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:15:15:427:290 +Q5 finished at: 2022-4-1 15:15:15:427:778 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:15:15:527:287 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 15:15:15:529:946 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:15:15:531:26 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_mysql/result_summary/read-committed_total-result.txt b/install/test_result/centralizend_result/ob_mysql/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..a5e025b4 --- /dev/null +++ b/install/test_result/centralizend_result/ob_mysql/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_c2: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Timeout + +wat_mda_step_wat_c2: Timeout + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..8d4c8790 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:15:59:924:302 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:15:59:927:659 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:16:0:24:224 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:16:0:27:226 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:16:0:28:867 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 16:16:0:31:195 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 16:16:0:124:980 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 16:16:0:126:106 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:16:0:129:235 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 16:16:0:130:304 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..70f00c4f --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:16:0:467:631 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:16:0:470:856 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:16:0:567:660 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 16:16:0:570:497 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:16:0:572:285 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 16:16:0:574:508 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 16:16:0:668:435 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 16:16:0:670:889 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:16:0:674:195 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 16:16:0:675:474 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/iat_dda_write_skew.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..82e6b692 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:16:0:960:297 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:16:0:963:685 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:16:1:61:110 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 16:16:1:62:930 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:16:1:65:952 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 16:16:1:163:182 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 16:16:1:165:706 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 16:16:1:266:205 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:16:1:271:503 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 16:16:1:272:977 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..704cc89c --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:16:2:629:703 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:16:2:633:285 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:16:2:729:823 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 16:16:2:731:923 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:16:2:735:506 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 16:16:2:738:158 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 16:16:2:830:126 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 16:16:2:832:471 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:16:2:835:405 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 16:16:2:836:494 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..d3ff0d52 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,71 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:16:1:605:391 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 16:16:1:609:566 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 16:16:1:611:253 + Q4-T2 execute sql: 'BEGIN;' + Q4 finished at: 2022-4-1 16:16:1:705:957 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 16:16:1:710:223 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 16:16:1:712:122 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 16:16:1:714:801 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 16:16:1:807:420 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 16:16:1:809:552 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 16:16:1:811:481 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 16:16:1:812:454 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..5da274e2 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:16:2:124:989 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 16:16:2:130:405 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:16:2:224:553 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 16:16:2:226:720 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 16:16:2:231:667 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 16:16:2:234:176 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 16:16:2:329:826 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 16:16:2:332:991 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 16:16:2:336:176 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 16:16:2:337:183 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/iat_mda_step_iat.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..82f24f5c --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:16:3:120:98 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 16:16:3:124:157 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:16:3:220:50 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 16:16:3:222:156 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-1 16:16:3:320:287 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 16:16:3:323:431 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 16:16:3:426:17 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 16:16:3:525:133 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 16:16:3:620:713 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 16:16:3:721:496 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 16:16:3:824:575 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 16:16:3:921:692 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 16:16:3:925:501 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 16:16:3:926:819 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..014205f2 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:16:7:762:442 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:16:7:765:908 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:16:7:862:417 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 16:16:7:865:238 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 16:16:7:867:438 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-1 16:16:7:964:232 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 16:16:7:966:214 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 16:16:7:967:758 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 16:16:7:969:976 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 16:16:8:63:422 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 16:16:8:64:550 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 16:16:8:67:614 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 16:16:8:68:581 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..d71f8e45 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,206 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:16:6:974:569 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:16:6:978:667 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:16:7:74:701 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 16:16:7:77:285 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-1 16:16:7:174:712 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 16:16:7:177:938 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 16:16:7:180:318 + Q8-T4 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-1 16:16:7:274:573 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 16:16:7:276:265 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 16:16:7:282:756 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 16:16:7:376:21 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 16:16:7:377:106 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 16:16:7:476:356 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 16:16:7:477:507 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 16:16:7:481:311 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 16:16:7:482:255 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..aef34d1c --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:16:4:214:263 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 16:16:4:218:597 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:16:4:314:256 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 16:16:4:316:185 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-1 16:16:4:420:26 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 16:16:4:421:994 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 16:16:4:516:243 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 16:16:4:616:544 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 16:16:4:715:48 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 16:16:4:815:656 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 16:16:4:915:696 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 16:16:5:15:521 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 16:16:5:18:846 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 16:16:5:19:921 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..b49b993a --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:16:5:297:978 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 16:16:5:302:510 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:16:5:400:124 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 16:16:5:402:267 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-1 16:16:5:497:896 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 16:16:5:499:924 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 16:16:5:600:11 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 16:16:5:698:955 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 16:16:5:798:489 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 16:16:5:899:633 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 16:16:5:999:272 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 16:16:6:99:750 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 16:16:6:103:264 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 16:16:6:104:398 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..84f05a8c --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,139 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:16:8:345:182 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 16:16:8:349:338 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 16:16:8:351:913 + Q4-T2 execute sql: 'BEGIN;' + Q4 finished at: 2022-4-1 16:16:8:445:165 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 16:16:8:447:232 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 16:16:8:454:924 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 16:16:8:457:559 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-1 16:16:8:545:166 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 16:16:8:547:237 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 16:16:8:549:184 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 16:16:8:550:265 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 16:16:8:645:695 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 16:16:8:648:261 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 16:16:8:651:909 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 16:16:8:653:125 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..95c85168 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,161 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:16:6:391:394 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 16:16:6:395:77 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:16:6:492:246 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 16:16:6:494:309 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:16:6:497:583 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 16:16:6:499:637 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 16:16:6:501:331 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 16:16:6:503:529 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-4-1 16:16:6:595:725 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 16:16:6:598:189 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 16:16:6:600:17 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 16:16:6:602:260 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 16:16:6:604:153 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 16:16:6:610:190 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 16:16:6:692:385 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 16:16:6:693:547 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 16:16:6:696:963 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 16:16:6:698:10 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..c6b92996 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:15:59:430:573 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 16:15:59:434:222 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:15:59:530:633 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 16:15:59:533:707 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 16:15:59:535:701 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 16:15:59:632:746 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 16:15:59:635:440 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 16:15:59:638:125 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 16:15:59:639:206 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..c759f273 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:15:58:945:344 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:15:58:949:75 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:15:59:45:305 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 16:15:59:48:352 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 16:15:59:50:982 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 16:15:59:145:571 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 16:15:59:146:567 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 16:15:59:149:372 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 16:15:59:150:356 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 16:15:59:151:560 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..dc535a31 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:14:784:117 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:14:788:429 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:14:884:190 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:32:14:886:5 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:32:14:888:982 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:32:15:88:993 +Q6 finished at: 2022-4-1 15:32:15:90:499 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:32:15:189:281 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 15:32:15:192:218 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:32:15:193:97 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..9d292aed --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:15:464:71 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:15:472:109 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:15:564:20 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:32:15:565:589 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:32:15:568:192 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:32:15:570:401 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 15:32:15:664:758 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:32:15:667:18 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 15:32:15:669:795 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:32:15:670:918 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..bd01321b --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:16:2:628 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:16:8:288 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:16:102:607 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:32:16:104:389 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 15:32:16:203:944 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:32:16:206:359 + Q5 finished at: 2022-4-1 15:32:16:206:646 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 15:32:16:304:526 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:32:16:307:323 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:32:16:308:324 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_read_skew.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..147071b9 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:16:589:807 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:32:16:593:513 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:16:690:58 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:32:16:694:82 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:32:16:695:842 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 15:32:16:790:920 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:32:16:891:28 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:32:16:991:148 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:32:16:993:898 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:32:16:994:865 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..a407ef2e --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:18:285:785 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:18:292:265 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:18:388:225 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:32:18:391:286 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:32:18:393:59 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 15:32:18:497:68 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:32:18:500:96 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 15:32:18:584:581 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:32:18:587:680 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:32:18:588:765 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..899c9c14 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:18:872:964 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:18:877:36 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:18:973:872 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:32:18:977:62 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:32:18:979:71 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:32:18:980:323 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 15:32:19:73:247 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:32:19:75:981 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:32:19:79:132 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:32:19:80:438 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..94133857 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:17:275:488 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 15:32:17:278:617 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:17:377:795 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:32:17:381:596 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:32:17:383:418 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:32:17:385:706 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 15:32:17:477:139 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:32:17:478:762 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 15:32:17:493:594 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:32:17:494:882 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..8708d1c7 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:17:774:914 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 15:32:17:778:790 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:17:875:235 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 15:32:17:877:803 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 15:32:17:879:316 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:32:17:881:683 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 15:32:17:987:828 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:32:17:989:146 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 15:32:17:993:121 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:32:17:994:517 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..492579f5 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:13:551:873 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:13:555:535 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:13:651:832 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:32:13:653:546 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:32:13:656:365 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 15:32:13:752:488 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:32:13:858:843 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:32:13:953:209 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:32:13:956:244 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:32:13:957:342 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..50928516 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:14:294:845 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:14:298:566 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:14:394:867 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:32:14:396:534 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:32:14:399:292 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:32:14:401:483 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 15:32:14:495:396 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:32:14:497:737 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:32:14:500:449 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:32:14:501:370 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/rat_mda_step_rat.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..c815e0f1 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:19:386:856 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:19:390:939 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:19:490:94 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:32:19:491:891 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:32:19:504:619 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-1 15:32:19:588:78 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 15:32:19:589:695 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 15:32:19:591:743 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 15:32:19:689:174 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 15:32:19:691:806 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 15:32:19:787:964 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:32:19:887:727 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 15:32:19:890:994 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:32:19:892:140 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..a4208a59 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,208 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN;' + Q1 finished at: 2022-4-1 15:32:20:192:564 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 15:32:20:197:542 +Q3-T1 execute sql: 'BEGIN;' +Q3 finished at: 2022-4-1 15:32:20:296:153 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 15:32:20:299:915 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-1 15:32:20:392:564 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 15:32:20:395:423 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 15:32:20:398:404 + Q8-T2 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-1 15:32:20:496:147 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 15:32:20:498:309 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 15:32:20:598:442 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 15:32:20:693:916 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:32:20:793:996 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 15:32:20:892:703 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:32:20:893:937 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 15:32:20:897:531 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 15:32:20:898:598 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..5206a745 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:21:179:140 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:21:183:339 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:21:278:730 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:32:21:280:731 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 15:32:21:284:79 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-1 15:32:21:378:605 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 15:32:21:380:174 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 15:32:21:382:269 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 15:32:21:480:666 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 15:32:21:482:928 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 15:32:21:581:195 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:32:21:681:768 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 15:32:21:685:240 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:32:21:686:588 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..90eeeb4c --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:21:958:490 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 15:32:21:962:611 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:22:58:469 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 15:32:22:60:492 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 15:32:22:64:531 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-1 15:32:22:158:557 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 15:32:22:160:424 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 15:32:22:162:611 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 15:32:22:259:713 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 15:32:22:262:221 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 15:32:22:359:683 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:32:22:459:564 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 15:32:22:468:798 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:32:22:469:926 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..38092682 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,46 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:9:439:403 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:9:442:737 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:9:539:339 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 15:32:9:542:60 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 15:32:9:639:359 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:32:9:739:396 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 15:32:9:742:40 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 15:32:9:743:63 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..0ea168d0 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:10:745:860 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:10:749:313 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:10:845:895 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 15:32:10:848:369 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 15:32:10:946:421 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:32:11:45:894 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:32:11:148:484 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 15:32:11:151:104 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:32:11:151:990 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..9534ed8f --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:11:491:979 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:11:495:464 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:11:592:52 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 15:32:11:594:628 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 15:32:11:595:656 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 15:32:11:692:508 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:32:11:699:40 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 15:32:11:701:653 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:32:11:702:641 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..c32d25f3 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:12:963:731 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:12:967:708 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:13:63:684 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 15:32:13:165:569 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 15:32:13:167:962 + Q4 finished at: 2022-4-1 15:32:13:168:189 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:32:13:268:888 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 15:32:13:271:733 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:32:13:272:815 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..1ef423e2 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:10:66:659 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:32:10:69:939 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:10:166:589 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 15:32:10:169:795 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 15:32:10:268:723 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:32:10:368:251 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:32:10:466:613 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 15:32:10:469:550 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:32:10:470:659 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..3d5a9906 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,57 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:11:982:859 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 15:32:11:986:314 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:12:81:543 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 15:32:12:86:556 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 15:32:12:88:897 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 15:32:12:182:200 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:32:12:183:465 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 15:32:12:186:123 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:32:12:187:115 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..5ffa138e --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,56 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:12:453:858 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 15:32:12:457:693 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:12:553:831 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 15:32:12:556:527 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 15:32:12:558:846 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 15:32:12:654:464 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:32:12:655:450 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 15:32:12:657:928 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:32:12:658:893 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..8dffd822 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:26:725:967 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:26:729:950 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:26:826:321 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:32:26:828:426 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 15:32:26:927:777 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:32:26:930:825 + Q5 finished at: 2022-4-1 15:32:26:931:117 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:32:26:941:60 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:32:26:944:233 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:32:26:945:186 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..c71decf4 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:27:226:78 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:27:229:624 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:27:326:257 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 15:32:27:328:121 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-4-1 15:32:48:16:637 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-4-1 15:32:48:664:408 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..76011893 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-11 19:10:19:627:135 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 19:10:19:631:31 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-11 19:10:19:726:905 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 19:10:19:728:467 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-4-11 19:10:40:315:538 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-4-11 19:10:40:750:479 +Test Result: Timeout +Reason: Transaction execution timeout \ No newline at end of file diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..30bbe2cc --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-11 19:9:33:378:326 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 19:9:33:382:743 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-11 19:9:33:477:869 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 19:9:33:479:660 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-4-11 19:9:54:73:826 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q7 failed at: 2022-4-11 19:9:54:679:325 +Test Result: Timeout +Reason: Transaction execution timeout \ No newline at end of file diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..163c26ea --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:50:228:908 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:32:50:232:622 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:50:328:17 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 15:32:50:331:399 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:32:50:333:71 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 15:32:50:529:910 +Q6 finished at: 2022-4-1 15:32:50:529:944 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:32:50:532:343 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:32:50:535:236 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:32:50:536:783 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..cd8504e8 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:50:818:524 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:32:50:822:620 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:50:918:94 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 15:32:50:934:318 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:32:50:938:979 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:32:51:121:861 +Q6 finished at: 2022-4-1 15:32:51:122:627 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:32:51:219:439 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:32:51:222:913 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:32:51:224:149 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..f0a5a7cd --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:51:514:530 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:51:518:857 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:51:615:349 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:32:51:618:189 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 15:32:51:716:619 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:32:51:718:957 + Q5 finished at: 2022-4-1 15:32:51:719:411 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 15:32:51:817:642 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:32:51:820:855 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:32:51:822:96 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..a17c57e4 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:52:114:418 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:52:117:838 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:52:214:354 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:32:52:216:906 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 15:32:52:316:817 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:32:52:517:203 + Q5 finished at: 2022-4-1 15:32:52:517:573 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:32:52:519:777 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:32:52:522:511 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:32:52:523:605 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..daaf700f --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:52:816:39 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:52:820:455 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:52:916:77 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:32:52:918:652 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 15:32:53:17:64 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:32:53:19:659 + Q5 finished at: 2022-4-1 15:32:53:19:824 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:32:53:21:979 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:32:53:31:208 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:32:53:32:305 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..266b410f --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:53:325:567 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:53:329:406 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:53:425:500 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 15:32:53:427:404 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-1 15:32:53:527:853 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 15:32:53:529:882 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-4-1 15:33:14:172:722 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-4-1 15:33:14:712:924 + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q8 failed at: 2022-4-1 15:33:15:168:895 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..894be381 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,39 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-11 19:11:33:492:409 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 19:11:33:496:33 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-11 19:11:33:592:480 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 19:11:33:594:140 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-11 19:11:33:692:579 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-11 19:11:33:893:26 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-4-11 19:11:54:737:886 + Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q6 failed at: 2022-4-11 19:11:54:754:707 + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q8 failed at: 2022-4-11 19:11:55:279:448 +Test Result: Timeout +Reason: Transaction execution timeout \ No newline at end of file diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..094367dd --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:22:742:266 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:22:745:758 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:22:842:206 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 15:32:22:942:371 + Q4 finished at: 2022-4-1 15:32:22:942:640 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:32:23:43:758 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 15:32:23:46:703 + Q8-T3 execute sql: 'DROP TABLE t1;' + Q8 finished at: 2022-4-1 15:32:23:59:344 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:32:23:60:483 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..5ab2d736 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:23:324:522 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:23:328:592 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:23:424:352 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 15:32:23:525:878 + Q4 finished at: 2022-4-1 15:32:23:525:899 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:32:23:625:569 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 15:32:23:628:394 + Q8-T3 execute sql: 'DROP TABLE t1;' + Q8 finished at: 2022-4-1 15:32:23:642:315 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:32:23:643:365 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/wat_sda_full_write.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..643cda0e --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_sda_full_write.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:23:906:525 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:23:910:344 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:24:6:546 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 15:32:24:107:27 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 15:32:24:109:458 + Q4 finished at: 2022-4-1 15:32:24:109:617 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:32:24:207:390 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 15:32:24:210:135 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:32:24:211:223 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..db8050ab --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:24:484:103 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:24:487:977 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:24:583:852 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 15:32:24:684:432 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:32:24:686:579 + Q4 finished at: 2022-4-1 15:32:24:686:746 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 15:32:24:688:621 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 15:32:24:691:162 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:32:24:692:182 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..3089e5af --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:26:231:702 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:32:26:235:464 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:26:331:615 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 15:32:26:433:486 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:32:26:436:10 + Q4 finished at: 2022-4-1 15:32:26:436:249 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 15:32:26:438:345 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 15:32:26:440:906 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:32:26:441:988 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..11fe8d50 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:24:965:534 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 15:32:24:969:461 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:25:65:337 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 15:32:25:68:560 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:32:25:270:444 +Q5 finished at: 2022-4-1 15:32:25:270:686 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 15:32:25:273:157 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 15:32:25:275:781 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:32:25:276:758 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..ac28061d --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:32:25:554:295 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 15:32:25:563:3 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:32:25:654:332 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 15:32:25:657:704 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:32:25:855:664 +Q5 finished at: 2022-4-1 15:32:25:855:898 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:32:25:955:454 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 15:32:25:958:14 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:32:25:959:57 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..7fe007d0 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:14:14:282:251 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:14:14:285:620 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:14:14:382:139 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:14:14:385:181 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:14:14:386:879 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 16:14:14:389:16 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 16:14:14:484:564 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 16:14:14:485:584 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:14:14:488:450 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 16:14:14:489:377 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..eabad7bb --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:14:14:765:356 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:14:14:768:691 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:14:14:865:238 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 16:14:14:868:81 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:14:14:869:590 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 16:14:14:871:641 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-4-1 16:14:15:666:358 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_dda_write_skew.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..1021e3b0 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:14:15:948:95 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:14:15:951:418 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:14:16:48:48 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 16:14:16:49:756 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:14:16:52:721 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 16:14:16:148:626 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 16:14:16:150:730 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 16:14:16:250:320 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:14:16:253:243 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 16:14:16:254:265 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..9f2679bc --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:14:17:566:415 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:14:17:569:657 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:14:17:666:419 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 16:14:17:668:267 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:14:17:671:591 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 16:14:17:673:986 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 16:14:17:766:942 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 16:14:17:769:374 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:14:17:772:206 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 16:14:17:773:225 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..fcf9204a --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,71 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:14:16:582:730 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 16:14:16:586:851 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 16:14:16:588:519 + Q4-T2 execute sql: 'BEGIN;' + Q4 finished at: 2022-4-1 16:14:16:683:60 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 16:14:16:685:227 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 16:14:16:687:346 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 16:14:16:693:119 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 16:14:16:784:1 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 16:14:16:786:210 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 16:14:16:788:92 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 16:14:16:789:45 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..265c8779 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:14:17:80:733 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 16:14:17:85:140 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:14:17:181:177 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 16:14:17:183:471 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 16:14:17:188:512 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 16:14:17:190:755 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 16:14:17:282:523 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 16:14:17:284:859 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 16:14:17:287:884 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 16:14:17:288:915 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_mda_step_iat.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..ff4fad6e --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:14:18:95:110 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 16:14:18:98:523 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:14:18:195:88 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 16:14:18:197:209 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-1 16:14:18:294:870 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 16:14:18:296:843 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 16:14:18:402:740 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 16:14:18:496:537 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 16:14:18:595:676 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 16:14:18:696:557 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 16:14:18:796:495 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 16:14:18:896:468 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 16:14:18:899:747 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 16:14:18:900:762 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..d1133cce --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,107 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:14:22:808:574 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:14:22:812:580 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:14:22:909:264 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 16:14:22:912:348 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 16:14:22:914:639 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-1 16:14:23:12:375 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 16:14:23:14:759 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 16:14:23:16:699 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 16:14:23:19:406 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 16:14:23:111:433 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 16:14:23:112:620 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 16:14:23:116:507 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 16:14:23:117:632 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..82f35c6c --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,208 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:14:21:992:233 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:14:21:996:667 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:14:22:92:485 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 16:14:22:95:499 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-1 16:14:22:194:918 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 16:14:22:198:454 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 16:14:22:201:36 + Q8-T4 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-1 16:14:22:295:206 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 16:14:22:297:93 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 16:14:22:299:641 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 16:14:22:394:502 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 16:14:22:395:726 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 16:14:22:494:48 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 16:14:22:495:329 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 16:14:22:503:499 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 16:14:22:504:661 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..ecbe1692 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:14:19:229:324 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 16:14:19:232:849 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:14:19:329:497 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 16:14:19:331:670 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-1 16:14:19:429:729 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 16:14:19:432:219 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 16:14:19:531:21 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 16:14:19:629:809 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 16:14:19:732:562 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 16:14:19:830:841 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 16:14:19:930:658 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 16:14:20:31:954 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 16:14:20:34:829 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 16:14:20:35:851 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..91d06fc9 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:14:20:316:518 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 16:14:20:320:856 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:14:20:417:211 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 16:14:20:419:117 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-1 16:14:20:517:927 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 16:14:20:519:909 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 16:14:20:622:564 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 16:14:20:720:538 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 16:14:20:817:229 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 16:14:20:921:429 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 16:14:21:17:963 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 16:14:21:118:376 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 16:14:21:121:681 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 16:14:21:122:775 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..24d863e4 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,139 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:14:23:435:862 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 16:14:23:440:279 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 16:14:23:442:749 + Q4-T2 execute sql: 'BEGIN;' + Q4 finished at: 2022-4-1 16:14:23:536:237 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 16:14:23:538:309 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 16:14:23:541:651 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 16:14:23:544:228 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-1 16:14:23:635:748 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 16:14:23:637:777 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 16:14:23:639:816 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 16:14:23:640:899 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 16:14:23:736:575 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 16:14:23:738:902 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 16:14:23:741:941 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 16:14:23:742:931 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..62a47ea3 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,163 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:14:21:403:997 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 16:14:21:407:441 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:14:21:504:126 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 16:14:21:506:179 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:14:21:509:48 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 16:14:21:511:599 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 16:14:21:513:165 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 16:14:21:515:513 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-4-1 16:14:21:604:269 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 16:14:21:606:528 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 16:14:21:608:323 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 16:14:21:610:346 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 16:14:21:612:180 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 16:14:21:615:13 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 16:14:21:705:154 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 16:14:21:706:216 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 16:14:21:709:255 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 16:14:21:710:238 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..481f12cb --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:14:13:145:102 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 16:14:13:148:217 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:14:13:245:39 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 16:14:13:248:226 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 16:14:13:250:547 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-4-1 16:14:13:946:134 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..a59437e8 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,61 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:14:12:658:944 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:14:12:662:267 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:14:12:758:817 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 16:14:12:761:773 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 16:14:12:763:761 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 16:14:12:859:346 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 16:14:12:860:320 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 16:14:12:862:721 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 16:14:12:863:649 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 16:14:12:864:624 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..d2735d5d --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:38:261:902 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:33:38:265:492 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:38:364:439 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:33:38:366:249 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:33:38:369:267 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:33:38:563:760 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-4-1 15:33:39:164:601 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..633789f4 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:39:438:786 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:33:39:442:533 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:39:538:653 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:33:39:540:311 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:33:39:543:22 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:33:39:545:258 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-4-1 15:33:40:339:894 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..045ccbdb --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:40:626:403 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:33:40:630:59 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:40:726:559 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:33:40:728:436 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 15:33:40:828:211 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:33:40:830:769 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-1 15:33:41:331:806 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_read_skew.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..ddfda279 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:41:607:64 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:33:41:610:320 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:41:708:424 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:33:41:711:894 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:33:41:713:705 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 15:33:41:807:710 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:33:41:908:312 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:33:42:7:88 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:33:42:10:564 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:33:42:11:737 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..af09fbd9 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:43:258:791 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:33:43:262:595 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:43:358:731 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:33:43:361:579 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:33:43:363:480 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 15:33:43:459:464 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:33:43:462:401 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 15:33:43:558:654 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:33:43:561:593 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:33:43:562:611 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..7ad770da --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:43:839:953 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:33:43:843:582 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:43:940:287 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:33:43:943:131 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:33:43:944:972 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:33:43:946:57 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 15:33:44:40:710 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:33:44:43:250 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:33:44:46:252 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:33:44:47:232 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..3c9af767 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:42:287:576 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 15:33:42:291:797 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:42:386:555 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:33:42:389:917 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:33:42:391:566 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:33:42:393:855 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 15:33:42:487:585 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:33:42:488:700 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 15:33:42:491:726 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:33:42:492:794 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..8e27bf46 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:42:768:944 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 15:33:42:772:739 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:42:869:16 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 15:33:42:872:65 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 15:33:42:873:621 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:33:42:875:963 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 15:33:42:969:678 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:33:42:970:869 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 15:33:42:973:981 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:33:42:975:130 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..2024d25b --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:37:82:430 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:33:37:85:975 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:37:182:549 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:33:37:184:85 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:33:37:186:666 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 15:33:37:283:52 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:33:37:383:650 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:33:37:483:444 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:33:37:486:400 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:33:37:487:351 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..de381b1a --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:37:763:850 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:33:37:767:913 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:37:871:840 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:33:37:873:605 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:33:37:876:485 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:33:37:879:303 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 15:33:37:964:142 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:33:37:966:429 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:33:37:969:306 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:33:37:970:312 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_mda_step_rat.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..86837830 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:44:325:722 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:33:44:329:380 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:44:428:516 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:33:44:430:311 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:33:44:433:434 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-1 15:33:44:525:795 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 15:33:44:527:422 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 15:33:44:529:290 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 15:33:44:626:654 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 15:33:44:628:988 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 15:33:44:733:28 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:33:44:829:590 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 15:33:44:834:133 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:33:44:835:545 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..c439e7c9 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,208 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN;' + Q1 finished at: 2022-4-1 15:33:45:109:437 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 15:33:45:113:729 +Q3-T1 execute sql: 'BEGIN;' +Q3 finished at: 2022-4-1 15:33:45:209:374 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 15:33:45:212:286 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-1 15:33:45:310:383 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 15:33:45:313:203 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 15:33:45:315:838 + Q8-T2 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-1 15:33:45:409:548 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 15:33:45:411:241 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 15:33:45:511:243 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 15:33:45:610:948 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:33:45:710:543 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 15:33:45:809:576 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:33:45:810:907 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 15:33:45:814:665 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 15:33:45:815:752 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..d7212d10 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:46:95:704 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:33:46:103:686 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:46:195:696 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:33:46:197:218 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 15:33:46:200:95 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-1 15:33:46:295:875 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 15:33:46:297:561 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 15:33:46:299:705 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 15:33:46:396:834 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 15:33:46:399:660 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 15:33:46:497:222 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:33:46:596:968 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 15:33:46:600:13 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:33:46:601:61 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..a312ead1 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:46:861:255 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 15:33:46:864:873 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:46:961:218 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 15:33:46:962:814 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 15:33:46:966:830 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-1 15:33:47:61:439 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 15:33:47:63:260 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 15:33:47:65:576 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 15:33:47:164:14 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 15:33:47:166:688 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 15:33:47:266:155 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:33:47:362:318 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 15:33:47:365:708 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:33:47:366:825 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..2fcca5d5 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,46 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:32:825:236 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:33:32:828:778 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:32:925:150 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 15:33:32:927:703 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 15:33:33:25:187 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:33:33:125:104 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 15:33:33:127:838 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 15:33:33:128:817 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..daaf65a0 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:34:70:928 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:33:34:74:705 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:34:170:966 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 15:33:34:174:714 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 15:33:34:272:346 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:33:34:370:779 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:33:34:472:380 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 15:33:34:475:203 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:33:34:476:136 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..1cd95e18 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:34:746:589 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:33:34:750:282 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:34:846:502 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 15:33:34:849:209 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 15:33:34:850:225 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 15:33:34:946:958 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:33:34:949:519 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 15:33:34:952:42 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:33:34:952:922 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..6d8d60ff --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:36:199:223 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:33:36:207:233 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:36:298:981 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 15:33:36:400:589 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 15:33:36:402:880 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-1 15:33:36:803:775 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..f1e4f8ff --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:33:395:638 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:33:33:398:905 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:33:495:661 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 15:33:33:498:642 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 15:33:33:600:430 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:33:33:696:916 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:33:33:795:643 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 15:33:33:798:397 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:33:33:799:380 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..21698c18 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:35:224:969 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 15:33:35:228:527 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:35:324:800 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 15:33:35:328:308 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 15:33:35:330:622 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 15:33:35:425:353 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:33:35:426:354 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 15:33:35:428:837 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:33:35:429:867 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..dfb0d729 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:35:701:263 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 15:33:35:705:352 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:35:801:168 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 15:33:35:803:971 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 15:33:35:806:288 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 15:33:35:901:768 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:33:35:902:852 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 15:33:35:905:482 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:33:35:906:401 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..9b128af3 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:53:908:347 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:33:53:911:816 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:54:8:476 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:33:54:10:204 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 15:33:54:109:861 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:33:54:112:569 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-1 15:33:54:613:272 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..4c20f73a --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:54:906:510 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:33:54:910:50 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:55:8:97 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 15:33:55:9:897 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-4-1 15:34:16:93:224 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-4-1 15:34:16:138:40 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..2feae540 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-11 19:7:38:667:579 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 19:7:38:671:359 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-11 19:7:38:767:514 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 19:7:38:769:136 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-4-11 19:7:59:620:15 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-4-11 19:8:0:60:162 +Test Result: Timeout +Reason: Transaction execution timeout \ No newline at end of file diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..cdd6d25e --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-11 19:8:35:322:421 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 19:8:35:326:151 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-11 19:8:35:422:329 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 19:8:35:423:985 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-4-11 19:8:56:296:960 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q7 failed at: 2022-4-11 19:8:56:831:533 +Test Result: Timeout +Reason: Transaction execution timeout \ No newline at end of file diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..67f34441 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:34:17:835:549 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:34:17:838:837 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:34:17:935:641 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 15:34:17:938:689 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:34:17:940:349 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 15:34:18:137:70 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-4-1 15:34:18:737:786 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..d54bf98b --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:34:19:20:461 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:34:19:24:340 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:34:19:124:117 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 15:34:19:127:822 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:34:19:129:421 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:34:19:322:68 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-4-1 15:34:19:922:871 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..6343a004 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:34:20:241:594 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:34:20:245:372 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:34:20:341:445 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:34:20:344:257 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 15:34:20:441:981 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:34:20:445:115 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-1 15:34:20:945:727 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..d72cd524 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:34:21:265:258 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:34:21:269:754 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:34:21:365:312 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:34:21:368:3 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 15:34:21:465:738 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:34:21:666:541 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-1 15:34:22:167:239 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..cb2b3c21 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:34:22:488:538 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:34:22:492:79 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:34:22:588:910 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:34:22:591:536 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 15:34:22:692:564 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:34:22:695:17 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-1 15:34:23:195:759 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..2518e2cc --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:34:23:466:852 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:34:23:470:429 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:34:23:566:870 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 15:34:23:568:489 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-1 15:34:23:666:851 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 15:34:23:668:477 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-4-1 15:34:44:550:95 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-4-1 15:34:44:953:834 + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q8 failed at: 2022-4-1 15:34:45:251:266 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..499b2a06 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,39 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-11 19:6:13:406:564 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 19:6:13:410:210 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-11 19:6:13:506:551 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 19:6:13:508:189 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-11 19:6:13:608:169 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-11 19:6:13:807:180 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q6 failed at: 2022-4-11 19:6:34:226:584 + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q8 failed at: 2022-4-11 19:6:34:768:445 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-4-11 19:6:35:329:731 +Test Result: Timeout +Reason: Transaction execution timeout \ No newline at end of file diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..99b33bea --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:47:642:610 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:33:47:646:389 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:47:742:955 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 15:33:47:842:610 + Q4 finished at: 2022-4-1 15:33:47:842:961 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:33:47:943:522 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 15:33:47:946:367 + Q8-T3 execute sql: 'DROP TABLE t1;' + Q8 finished at: 2022-4-1 15:33:47:959:819 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:33:47:961:0 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..4a538952 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,29 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:48:234:421 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:33:48:238:180 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:48:334:186 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 15:33:48:435:851 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-1 15:33:48:836:683 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_sda_full_write.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..8b9d0624 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:49:107:125 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:33:49:110:820 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:49:207:351 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 15:33:49:307:622 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 15:33:49:309:659 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-1 15:33:49:710:406 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..f630d117 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:49:992:150 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:33:49:995:696 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:50:92:239 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 15:33:50:193:100 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:33:50:195:716 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-1 15:33:50:596:459 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..b6e39135 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:53:28:732 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:33:53:33:116 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:53:128:789 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 15:33:53:230:60 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:33:53:232:575 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-1 15:33:53:633:246 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..93fd792d --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:50:870:966 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 15:33:50:874:188 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:50:970:964 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 15:33:50:974:33 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:33:51:172:185 +Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q5 failed at: 2022-4-1 15:33:51:672:940 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..13484fe7 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:33:51:945:619 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 15:33:51:948:748 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:33:52:45:672 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 15:33:52:52:290 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:33:52:247:381 +Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q5 failed at: 2022-4-1 15:33:52:748:264 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/result_summary/read-committed_total-result.txt b/install/test_result/centralizend_result/ob_oracle/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..a5e025b4 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_c2: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Timeout + +wat_mda_step_wat_c2: Timeout + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/ob_oracle/result_summary/repeatable-read_total-result.txt b/install/test_result/centralizend_result/ob_oracle/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..4139416e --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_c2: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Timeout + +wat_mda_step_wat_c2: Timeout + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/ob_oracle/result_summary/serializable_total-result.txt b/install/test_result/centralizend_result/ob_oracle/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..4139416e --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/result_summary/serializable_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_c2: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Timeout + +wat_mda_step_wat_c2: Timeout + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/ob_oracle/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..84c76e45 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:36:17:983:65 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:36:17:986:182 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:36:18:83:166 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:36:18:86:111 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:36:18:87:835 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:36:18:90:930 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 15:36:18:183:676 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:36:18:184:849 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:36:18:187:567 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:36:18:188:598 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/ob_oracle/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..18d7acb8 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:36:18:467:25 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:36:18:470:331 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:36:18:567:152 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 15:36:18:570:447 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:36:18:572:109 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:36:18:574:628 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-4-1 15:36:19:369:77 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/iat_dda_write_skew.txt b/install/test_result/centralizend_result/ob_oracle/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..49a7dcbb --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/iat_dda_write_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:36:19:661:27 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:36:19:664:430 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:36:19:761:213 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:36:19:763:32 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:36:19:766:828 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 15:36:19:861:569 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:36:19:864:6 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 15:36:19:964:668 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:36:19:967:823 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 15:36:19:968:923 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/ob_oracle/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..7c5b7e31 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:36:21:234:636 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:36:21:238:486 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:36:21:334:476 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:36:21:336:212 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:36:21:339:79 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:36:21:341:945 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 15:36:21:435:158 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:36:21:437:914 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:36:21:440:993 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:36:21:442:264 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/ob_oracle/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..75d13f8f --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,71 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:36:20:258:272 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 15:36:20:267:129 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 15:36:20:268:943 + Q4-T2 execute sql: 'BEGIN;' + Q4 finished at: 2022-4-1 15:36:20:357:951 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 15:36:20:359:965 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 15:36:20:361:555 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:36:20:365:762 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:36:20:459:562 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 15:36:20:461:908 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 15:36:20:463:938 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:36:20:465:291 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/ob_oracle/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..ea0f4e70 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:36:20:747:105 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 15:36:20:752:4 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:36:20:847:17 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 15:36:20:849:122 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 15:36:20:854:146 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:36:20:856:802 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 15:36:20:948:854 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:36:20:951:190 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 15:36:20:954:570 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:36:20:955:841 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/iat_mda_step_iat.txt b/install/test_result/centralizend_result/ob_oracle/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..1b79972f --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/iat_mda_step_iat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:36:21:724:84 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 15:36:21:727:643 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:36:21:824:139 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 15:36:21:825:985 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-1 15:36:21:924:371 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 15:36:21:926:516 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 15:36:22:26:167 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 15:36:22:128:962 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 15:36:22:224:859 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 15:36:22:325:775 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 15:36:22:425:841 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:36:22:526:313 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 15:36:22:530:125 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:36:22:531:320 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/ob_oracle/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..4b36d7e4 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,107 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:36:26:368:885 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:36:26:372:467 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:36:26:469:72 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 15:36:26:472:269 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 15:36:26:474:932 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-1 15:36:26:569:27 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 15:36:26:571:62 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 15:36:26:572:612 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:36:26:575:405 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 15:36:26:669:817 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 15:36:26:671:72 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 15:36:26:674:91 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 15:36:26:675:147 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/ob_oracle/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..5bba8f18 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,208 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:36:25:587:721 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:36:25:592:382 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:36:25:687:761 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:36:25:690:739 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-1 15:36:25:788:48 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 15:36:25:791:222 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:36:25:793:717 + Q8-T4 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-1 15:36:25:888:151 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 15:36:25:889:871 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:36:25:892:819 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 15:36:25:989:642 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:36:25:991:181 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 15:36:26:89:172 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 15:36:26:90:757 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 15:36:26:94:455 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 15:36:26:95:631 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/ob_oracle/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..d6242e4a --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:36:22:817:658 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 15:36:22:821:412 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:36:22:917:631 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 15:36:22:919:749 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-1 15:36:23:20:147 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 15:36:23:22:260 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 15:36:23:119:609 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 15:36:23:218:357 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 15:36:23:318:321 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 15:36:23:420:128 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 15:36:23:519:18 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:36:23:619:142 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 15:36:23:622:917 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:36:23:623:994 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/ob_oracle/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..bbf1f83c --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:36:23:890:905 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 15:36:23:895:698 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:36:23:990:502 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 15:36:23:992:534 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-1 15:36:24:90:740 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 15:36:24:92:901 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 15:36:24:191:916 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 15:36:24:292:737 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 15:36:24:392:609 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 15:36:24:492:156 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 15:36:24:592:74 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:36:24:692:69 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 15:36:24:695:430 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:36:24:696:567 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/ob_oracle/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..34850bab --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,139 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:36:26:963:931 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 15:36:26:968:68 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 15:36:26:970:853 + Q4-T2 execute sql: 'BEGIN;' + Q4 finished at: 2022-4-1 15:36:27:63:842 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 15:36:27:65:913 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 15:36:27:69:16 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:36:27:71:672 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-1 15:36:27:164:226 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 15:36:27:166:521 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 15:36:27:168:632 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 15:36:27:170:128 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 15:36:27:264:664 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 15:36:27:267:331 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 15:36:27:270:643 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 15:36:27:271:899 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/ob_oracle/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..f80c333d --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,163 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:6:30:314:538 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 16:6:30:322:725 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:6:30:414:473 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 16:6:30:416:527 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:6:30:419:501 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 16:6:30:421:510 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 16:6:30:423:6 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 16:6:30:425:151 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-4-1 16:6:30:514:525 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 16:6:30:516:525 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 16:6:30:518:143 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 16:6:30:520:154 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 16:6:30:521:665 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 16:6:30:523:942 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 16:6:30:615:745 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 16:6:30:616:771 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 16:6:30:619:943 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 16:6:30:620:896 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/ob_oracle/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..c03e535b --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:36:16:907:519 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 15:36:16:917:592 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:36:17:7:488 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 15:36:17:10:526 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 15:36:17:13:352 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-4-1 15:36:17:708:571 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/ob_oracle/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..2e93210b --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,61 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 16:6:2:642:49 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:6:2:650:336 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 16:6:2:742:678 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 16:6:2:745:768 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 16:6:2:748:89 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 16:6:2:842:494 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 16:6:2:843:474 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 16:6:2:845:961 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 16:6:2:846:868 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 16:6:2:847:692 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..6416ac46 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:8:294:944 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:8:298:537 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:8:395:543 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:35:8:397:121 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:35:8:399:917 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:35:8:598:530 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-4-1 15:35:9:199:289 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..6aeafe26 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:9:484:904 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:9:488:676 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:9:583:649 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:35:9:585:209 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:35:9:587:770 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:35:9:590:31 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-4-1 15:35:10:384:870 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..417a2f1b --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:10:668:407 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:10:672:29 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:10:768:211 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:35:10:770:16 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 15:35:10:869:698 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:35:10:872:407 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-1 15:35:11:373:209 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_read_skew.txt b/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..bb09bc10 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_read_skew.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:11:665:105 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:35:11:668:435 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:11:766:641 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:35:11:769:651 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:35:11:771:296 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 15:35:11:865:921 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:35:11:966:713 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:35:12:65:310 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:35:12:68:274 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:35:12:69:284 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..a7a32480 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:13:366:639 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:13:370:41 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:13:466:590 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:35:13:469:8 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:35:13:470:578 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 15:35:13:567:296 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:35:13:569:647 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 15:35:13:666:580 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:35:13:669:752 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:35:13:670:738 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..3eeb7f59 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:13:946:993 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:13:950:932 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:14:46:935 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:35:14:49:693 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:35:14:51:431 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:35:14:52:414 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 15:35:14:147:432 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:35:14:149:878 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:35:14:153:800 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:35:14:154:854 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..2ee98582 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:12:344:568 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 15:35:12:347:952 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:12:444:585 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:35:12:453:996 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:35:12:455:549 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:35:12:457:532 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 15:35:12:545:88 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:35:12:546:134 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 15:35:12:548:738 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:35:12:549:743 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..43bb6992 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:12:828:112 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 15:35:12:832:478 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:12:928:54 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 15:35:12:931:101 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 15:35:12:932:819 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:35:12:935:307 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 15:35:13:28:567 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:35:13:29:564 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 15:35:13:32:483 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:35:13:33:446 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..df83da40 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:7:116:604 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:7:120:169 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:7:216:558 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:35:7:218:222 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:35:7:221:124 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 15:35:7:317:575 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:35:7:417:648 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:35:7:521:115 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:35:7:524:210 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:35:7:525:298 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..333ded88 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:7:809:7 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:7:817:44 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:7:908:950 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:35:7:910:574 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:35:7:913:79 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:35:7:915:675 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 15:35:8:9:537 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:35:8:11:859 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 15:35:8:14:667 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 15:35:8:19:702 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/rat_mda_step_rat.txt b/install/test_result/centralizend_result/ob_oracle/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..13c478bc --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:14:429:390 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:14:432:901 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:14:529:616 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:35:14:531:911 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 15:35:14:535:243 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-1 15:35:14:629:227 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 15:35:14:630:704 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 15:35:14:632:479 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 15:35:14:733:318 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 15:35:14:735:837 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 15:35:14:830:686 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:35:14:930:748 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 15:35:14:933:705 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:35:14:934:720 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/ob_oracle/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..eaf3076c --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,208 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN;' + Q1 finished at: 2022-4-1 15:35:15:218:29 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 15:35:15:222:954 +Q3-T1 execute sql: 'BEGIN;' +Q3 finished at: 2022-4-1 15:35:15:318:229 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 15:35:15:321:352 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-1 15:35:15:418:323 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 15:35:15:421:8 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 15:35:15:423:562 + Q8-T2 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-1 15:35:15:518:119 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 15:35:15:519:869 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 15:35:15:619:478 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 15:35:15:722:635 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:35:15:819:58 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 15:35:15:918:121 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:35:15:919:419 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 15:35:15:922:970 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 15:35:15:923:948 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/ob_oracle/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..c4887572 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:16:210:471 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:16:214:96 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:16:310:773 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:35:16:312:351 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 15:35:16:315:717 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-1 15:35:16:410:696 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 15:35:16:412:364 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 15:35:16:414:587 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 15:35:16:511:800 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 15:35:16:517:285 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 15:35:16:611:996 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:35:16:712:290 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 15:35:16:715:599 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:35:16:717:62 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/ob_oracle/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..3290f7cd --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:16:993:434 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 15:35:16:997:70 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:17:91:370 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 15:35:17:92:895 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 15:35:17:97:66 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-1 15:35:17:192:276 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 15:35:17:194:99 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 15:35:17:196:618 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 15:35:17:292:857 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 15:35:17:295:539 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 15:35:17:392:916 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:35:17:493:244 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 15:35:17:496:443 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 15:35:17:497:608 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/ob_oracle/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..a2305e47 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,46 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:2:789:115 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:2:793:498 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:2:890:163 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 15:35:2:897:301 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 15:35:2:989:716 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:35:3:88:726 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 15:35:3:91:893 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 15:35:3:92:931 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/ob_oracle/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..23d4f8c4 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:4:101:417 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:4:104:893 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:4:201:524 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 15:35:4:204:98 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 15:35:4:304:529 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:35:4:403:868 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:35:4:503:168 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 15:35:4:506:4 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:35:4:507:175 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/ob_oracle/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..36dc2a11 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:4:792:293 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:4:795:804 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:4:892:117 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 15:35:4:894:763 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 15:35:4:895:748 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 15:35:4:994:75 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:35:4:996:592 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 15:35:4:999:244 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:35:5:0:184 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/ob_oracle/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..91acd602 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:6:236:996 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:6:240:831 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:6:337:135 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 15:35:6:438:761 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 15:35:6:441:134 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-1 15:35:6:841:914 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/ob_oracle/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..69e42c02 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:3:401:724 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:35:3:405:663 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:3:504:489 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 15:35:3:507:808 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 15:35:3:602:587 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:35:3:704:814 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:35:3:802:296 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 15:35:3:805:202 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:35:3:806:263 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/ob_oracle/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..c6bd9542 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:5:270:1 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 15:35:5:274:153 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:5:369:424 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 15:35:5:373:140 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 15:35:5:375:530 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 15:35:5:472:88 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:35:5:473:169 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 15:35:5:475:959 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:35:5:476:937 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/ob_oracle/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..7604391f --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:5:743:768 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 15:35:5:747:790 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:5:843:822 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 15:35:5:846:473 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 15:35:5:853:892 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 15:35:5:944:671 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:35:5:946:860 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 15:35:5:949:632 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:35:5:950:615 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..f46bc6ef --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:24:84:370 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:24:88:15 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:24:184:11 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 15:35:24:185:600 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 15:35:24:285:544 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:35:24:288:264 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-1 15:35:24:789:54 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..a48c1f3d --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:25:64:861 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:25:68:626 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:25:166:391 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 15:35:25:168:187 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-4-1 15:35:45:883:846 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-4-1 15:35:46:531:512 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..fc91c011 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-11 17:31:45:886:601 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 17:31:45:890:438 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-11 17:31:45:986:620 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 17:31:45:988:522 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-4-11 17:32:6:660:212 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-4-11 17:32:7:56:358 +Test Result: Timeout +Reason: Transaction execution timeout diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..b381608d --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-11 17:33:28:910:901 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 17:33:28:914:583 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-11 17:33:29:10:733 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 17:33:29:12:372 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-11 17:33:48:944:709 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 17:33:48:947:42 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q7 failed at: 2022-4-11 17:33:49:647:629 +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..bee62b89 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:48:95:373 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:35:48:98:791 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:48:195:385 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 15:35:48:198:270 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:35:48:199:795 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 15:35:48:396:916 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-4-1 15:35:48:997:829 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..780d91f1 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:49:283:678 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 15:35:49:287:250 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:49:383:951 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 15:35:49:387:267 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 15:35:49:388:996 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:35:49:585:229 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-4-1 15:35:50:186:158 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..c207dd2e --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:50:468:744 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:50:481:797 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:50:568:972 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:35:50:571:612 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 15:35:50:669:617 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:35:50:674:668 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-1 15:35:51:174:881 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..37aebd87 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:51:462:549 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:51:466:861 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:51:562:788 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:35:51:565:859 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 15:35:51:663:29 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:35:51:868:551 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-1 15:35:52:369:432 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..04c5bb1c --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:52:652:965 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:52:656:884 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:52:753:214 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 15:35:52:755:916 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 15:35:52:853:552 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 15:35:52:856:901 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-1 15:35:53:357:42 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/ob_oracle/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..c77eaa87 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:53:644:949 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:53:648:496 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:53:745:275 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 15:35:53:747:391 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-1 15:35:53:844:927 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 15:35:53:846:590 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 finished at: 2022-4-1 15:36:13:789:632 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 15:36:13:792:316 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-4-1 15:36:14:692:852 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-4-1 15:36:14:944:948 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/ob_oracle/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..d7a5b688 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,39 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-11 19:4:56:771:626 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 19:4:56:775:549 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-11 19:4:56:871:543 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 19:4:56:873:298 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-11 19:4:56:976:447 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-11 19:4:57:173:107 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q6 failed at: 2022-4-11 19:5:17:716:196 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-4-11 19:5:18:144:657 + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q8 failed at: 2022-4-11 19:5:18:638:647 +Test Result: Timeout +Reason: Transaction execution timeout diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/ob_oracle/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..4dde6bd8 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:17:783:311 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:17:787:270 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:17:883:55 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 15:35:17:983:375 + Q4 finished at: 2022-4-1 15:35:17:983:758 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:35:18:85:943 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 15:35:18:88:880 + Q8-T3 execute sql: 'DROP TABLE t1;' + Q8 finished at: 2022-4-1 15:35:18:103:957 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 15:35:18:105:129 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/ob_oracle/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..9e9fc9fa --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,29 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:18:381:354 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:18:385:127 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:18:481:139 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 15:35:18:583:169 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-1 15:35:18:983:875 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/wat_sda_full_write.txt b/install/test_result/centralizend_result/ob_oracle/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..c59502fe --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/wat_sda_full_write.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:19:270:565 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:19:274:166 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:19:371:737 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 15:35:19:471:71 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 15:35:19:473:994 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-1 15:35:19:874:621 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/ob_oracle/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..2e0f7901 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:20:153:311 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:20:156:933 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:20:256:72 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 15:35:20:354:354 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:35:20:356:910 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-1 15:35:20:758:104 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/ob_oracle/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..89168f98 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:23:200:158 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 15:35:23:203:786 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:23:300:117 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 15:35:23:405:875 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 15:35:23:408:475 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-1 15:35:23:809:280 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/ob_oracle/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..9e0e2873 --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:21:32:57 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 15:35:21:35:602 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:21:132:10 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 15:35:21:135:433 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 15:35:21:333:185 +Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q5 failed at: 2022-4-1 15:35:21:834:209 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/ob_oracle/serializable/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/ob_oracle/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..a1e42a2c --- /dev/null +++ b/install/test_result/centralizend_result/ob_oracle/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-1 15:35:22:110:253 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 15:35:22:113:738 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-1 15:35:22:210:255 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 15:35:22:213:419 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 15:35:22:411:875 +Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q5 failed at: 2022-4-1 15:35:22:912:776 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/oracle/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..1a431c9a --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:27:58:10:172 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:27:58:13:691 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:27:58:110:136 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:27:58:113:608 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:27:58:116:275 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 16:27:58:215:276 +Q8-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:27:58:220:604 + Q10-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/oracle/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..7a5f5619 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,50 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:27:58:466:638 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:27:58:470:11 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:27:58:566:689 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 16:27:58:570:425 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:27:58:573:477 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 16:27:58:669:484 +Q8-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:27:58:676:256 + Q10-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/iat_dda_write_skew.txt b/install/test_result/centralizend_result/oracle/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..700fe78a --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:27:58:924:976 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:27:58:928:354 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:27:59:24:948 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 16:27:59:28:199 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:27:59:31:52 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 16:27:59:127:925 +Q7-T1 execute opt: 'COMMIT'; + Q8-T2 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:27:59:231:270 + Q8-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/oracle/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..40902ed7 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:0:369:572 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:28:0:373:113 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:0:469:719 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 16:28:0:473:188 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:28:0:475:881 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 16:28:0:572:406 +Q8-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:28:0:578:779 + Q10-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/oracle/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..2b558e1f --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,68 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:27:59:455:596 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 16:27:59:460:632 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 16:27:59:462:992 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 16:27:59:555:687 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 16:27:59:559:910 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 16:27:59:562:406 + Q7-T2 execute opt: 'COMMIT'; +Q8-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 16:27:59:660:68 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 16:27:59:662:208 + Q12-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/oracle/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..1d3c64aa --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:58:33:535:772 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 16:58:33:541:373 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:58:33:635:698 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 16:58:33:638:929 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 16:58:33:643:829 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 16:58:33:743:730 +Q8-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 16:58:33:750:862 + Q10-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/iat_mda_step_iat.txt b/install/test_result/centralizend_result/oracle/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..762ab0b2 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,104 @@ +#### db_type: oracle #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:0:829:451 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 16:28:0:833:532 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:0:929:453 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 16:28:0:933:454 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 16:28:1:31:589 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 16:28:1:35:840 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 16:28:1:133:86 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 16:28:1:232:674 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 16:28:1:332:450 +Q10-T1 execute opt: 'COMMIT'; + Q11-T2 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 16:28:1:637:859 + Q14-T4 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/oracle/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..dd8aaf69 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,101 @@ +#### db_type: oracle #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:5:372:741 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:28:5:377:585 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:5:474:79 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 16:28:5:478:774 + Q5-T2 execute opt: 'COMMIT'; + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 16:28:5:574:480 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 16:28:5:577:504 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 16:28:5:581:138 + Q9-T3 execute opt: 'COMMIT'; +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 16:28:5:676:99 +Q11-T1 execute opt: 'COMMIT'; + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 16:28:5:682:636 + Q13-T4 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/oracle/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..7a9b9faf --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,201 @@ +#### db_type: oracle #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:4:597:259 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:28:4:601:748 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:4:699:543 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 16:28:4:704:226 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 16:28:4:797:529 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 16:28:4:801:329 + Q7-T3 execute opt: 'COMMIT'; + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 16:28:4:897:452 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 16:28:4:902:41 + Q10-T4 execute opt: 'COMMIT'; + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 16:28:4:999:883 + Q12-T2 execute opt: 'COMMIT'; +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 16:28:5:102:170 +Q14-T1 execute opt: 'COMMIT'; + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 16:28:5:110:362 + Q16-T5 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/oracle/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..3fb68441 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,104 @@ +#### db_type: oracle #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:1:898:478 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 16:28:1:902:490 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:2:0:418 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 16:28:2:4:499 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 16:28:2:96:875 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 16:28:2:100:839 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 16:28:2:200:20 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 16:28:2:302:839 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 16:28:2:400:74 +Q10-T1 execute opt: 'COMMIT'; + Q11-T2 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 16:28:2:705:813 + Q14-T4 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/oracle/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..a88c872a --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,101 @@ +#### db_type: oracle #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:2:966:589 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 16:28:2:970:886 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:3:67:74 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 16:28:3:71:266 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 16:28:3:170:182 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 16:28:3:174:526 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 16:28:3:270:270 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 16:28:3:370:566 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 16:28:3:470:703 +Q10-T1 execute opt: 'COMMIT'; + Q11-T2 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 16:28:3:774:578 + Q14-T4 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/oracle/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..c1ec2faf --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,135 @@ +#### db_type: oracle #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:5:933:545 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 16:28:5:937:355 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 16:28:5:940:375 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 16:28:6:33:561 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 16:28:6:36:477 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 16:28:6:39:732 + Q7-T2 execute opt: 'COMMIT'; + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 16:28:6:135:481 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 16:28:6:138:467 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 16:28:6:140:663 + Q11-T3 execute opt: 'COMMIT'; +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 16:28:6:236:259 +Q13-T1 execute opt: 'COMMIT'; + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 16:28:6:243:949 + Q15-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/oracle/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..d1fac200 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,157 @@ +#### db_type: oracle #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:4:35:112 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 16:28:4:39:323 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:4:135:85 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 16:28:4:139:240 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:28:4:142:134 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 16:28:4:144:512 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 16:28:4:147:644 + Q8-T2 execute opt: 'COMMIT'; + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-1 16:28:4:235:61 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 16:28:4:238:983 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 16:28:4:241:882 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 16:28:4:244:62 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 16:28:4:246:845 + Q14-T3 execute opt: 'COMMIT'; +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 16:28:4:337:614 +Q16-T1 execute opt: 'COMMIT'; + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 16:28:4:344:68 + Q18-T4 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/oracle/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..4c618e4e --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,47 @@ +#### db_type: oracle #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:27:57:555:463 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 16:27:57:558:908 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:27:57:655:648 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 16:27:57:659:482 + Q5-T2 execute opt: 'COMMIT'; +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 16:27:57:758:277 +Q7-T1 execute opt: 'COMMIT'; + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 16:27:57:764:651 + Q9-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/oracle/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..0680ba23 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,55 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:27:57:100:812 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:27:57:104:823 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:27:57:200:734 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 16:27:57:204:350 + Q5-T2 execute opt: 'COMMIT'; +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 16:27:57:302:692 +Q7-T1 execute opt: 'COMMIT'; + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 16:27:57:308:74 + Q9-T3 execute opt: 'COMMIT'; + Q10-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/oracle/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..ecf484b3 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,52 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:25:55:921:974 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:25:55:925:535 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:25:56:21:989 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:25:56:25:905 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 16:25:56:28:825 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 16:25:56:225:34 +Q8-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 16:25:56:329:728 + Q10-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/oracle/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..21ab090b --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,52 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:25:56:578:761 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:25:56:582:784 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:25:56:678:606 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:25:56:682:84 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 16:25:56:684:891 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 16:25:56:781:510 +Q8-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 16:25:56:789:596 + Q10-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/oracle/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..0e133616 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,52 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:25:57:42:640 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:25:57:45:992 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:25:57:142:729 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:25:57:146:285 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 16:25:57:245:496 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 16:25:57:246:836 + Q8-T2 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:25:57:349:661 + Q10-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/read-committed/rat_dda_read_skew.txt b/install/test_result/centralizend_result/oracle/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..1f6fc32a --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:25:57:597:771 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:25:57:601:43 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:25:57:697:722 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:25:57:701:72 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:25:57:703:688 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 16:25:57:800:531 + Q7-T2 execute opt: 'COMMIT'; +Q8-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:25:58:3:121 + Q10-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/read-committed/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/oracle/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..76b2ed01 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:25:59:166:976 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:25:59:170:450 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:25:59:266:970 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 16:25:59:271:98 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 16:25:59:274:13 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 16:25:59:369:919 +Q7-T1 execute opt: 'COMMIT'; + Q8-T2 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:25:59:472:318 + Q10-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/oracle/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..b26934bd --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:25:59:724:986 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:25:59:729:357 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:25:59:827:468 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 16:25:59:832:736 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 16:25:59:835:816 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 16:25:59:927:662 +Q8-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:25:59:935:412 + Q10-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/oracle/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..2004e26f --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:25:58:265:565 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 16:25:58:270:308 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:25:58:365:569 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:25:58:369:123 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:25:58:372:22 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 16:25:58:467:396 +Q8-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 16:25:58:473:386 + Q10-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/oracle/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..033aa9aa --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,55 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:25:58:713:362 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 16:25:58:717:943 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:25:58:813:407 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 16:25:58:816:615 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 16:25:58:819:645 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (1,0) (0,0) + (1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 16:25:58:915:130 +Q8-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 16:25:58:920:321 + Q10-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/oracle/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..15335557 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:25:54:796:714 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:25:54:800:259 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:25:54:896:761 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:25:54:900:536 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 16:25:54:903:484 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 16:25:54:999:624 + Q7-T2 execute opt: 'COMMIT'; +Q8-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:25:55:203:620 + Q10-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/oracle/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..a6a4be40 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:25:55:453:996 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:25:55:457:430 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:25:55:554:66 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:25:55:557:628 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 16:25:55:560:671 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 16:25:55:658:647 +Q8-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:25:55:665:480 + Q10-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/read-committed/rat_mda_step_rat.txt b/install/test_result/centralizend_result/oracle/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..875e6025 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,104 @@ +#### db_type: oracle #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:26:0:184:397 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:26:0:188:13 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:26:0:284:414 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:26:0:288:458 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 16:26:0:291:878 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 16:26:0:387:618 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 16:26:0:391:960 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 16:26:0:395:563 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 16:26:0:487:390 +Q10-T1 execute opt: 'COMMIT'; + Q11-T2 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 16:26:0:693:174 + Q14-T4 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/oracle/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..d1769a5c --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,203 @@ +#### db_type: oracle #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-1 16:26:0:942:293 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 16:26:0:948:63 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-1 16:26:1:42:194 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 16:26:1:45:918 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 16:26:1:143:637 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 16:26:1:153:65 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 16:26:1:156:111 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 16:26:1:242:304 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 16:26:1:245:903 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 16:26:1:345:439 +Q11-T1 execute opt: 'COMMIT'; + Q12-T2 execute opt: 'COMMIT'; + Q13-T3 execute opt: 'COMMIT'; + Q14-T4 execute opt: 'COMMIT'; + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 16:26:1:650:475 + Q16-T4 execute opt: 'COMMIT'; + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/oracle/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..7a6ae190 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,104 @@ +#### db_type: oracle #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:26:1:905:805 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:26:1:910:650 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:26:2:5:759 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:26:2:9:320 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 16:26:2:13:436 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 16:26:2:105:837 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 16:26:2:109:292 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 16:26:2:112:659 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 16:26:2:209:770 +Q10-T1 execute opt: 'COMMIT'; + Q11-T2 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 16:26:2:412:802 + Q14-T4 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/oracle/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..70c67535 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,101 @@ +#### db_type: oracle #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:26:2:658:718 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 16:26:2:661:910 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:26:2:758:703 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 16:26:2:761:846 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 16:26:2:765:322 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 16:26:2:858:755 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 16:26:2:861:849 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 16:26:2:865:188 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 16:26:2:962:168 +Q10-T1 execute opt: 'COMMIT'; + Q11-T2 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 16:26:3:166:367 + Q14-T4 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/oracle/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..985e0868 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,43 @@ +#### db_type: oracle #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:25:50:999:791 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:25:51:4:476 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:25:51:99:678 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 16:25:51:104:598 +Q5-T1 execute opt: 'ROLLBACK'; + Q6-T2 execute opt: 'COMMIT'; + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 16:25:51:306:992 + Q8-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/read-committed/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/oracle/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..eeeac7df --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:25:52:218:986 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:25:52:222:443 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:25:52:318:994 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 16:25:52:323:205 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 16:25:52:423:838 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute opt: 'COMMIT'; + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 16:25:52:627:417 + Q9-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/oracle/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..601115a7 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:25:52:876:392 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:25:52:879:895 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:25:52:976:479 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 16:25:52:980:60 + Q5-T2 execute opt: 'COMMIT'; +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 16:25:53:79:577 +Q7-T1 execute opt: 'COMMIT'; + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 16:25:53:86:797 + Q9-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/read-committed/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/oracle/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..dc28b468 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:25:54:239:959 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:25:54:243:435 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:25:54:339:931 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 16:25:54:442:758 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-1 16:25:54:444:285 + Q7-T2 execute opt: 'COMMIT'; + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 16:25:54:549:766 + Q9-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/oracle/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..ca667bd7 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,56 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:25:51:561:426 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:25:51:565:196 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:25:51:662:325 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 16:25:51:666:111 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 16:25:51:763:363 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute opt: 'COMMIT'; + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 16:25:51:966:692 + Q9-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/oracle/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..c0f6beb9 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,54 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:25:53:333:669 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 16:25:53:338:584 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:25:53:433:663 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 16:25:53:437:457 + Q5-T2 execute opt: 'COMMIT'; +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 16:25:53:536:913 +Q7-T1 execute opt: 'COMMIT'; + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 16:25:53:541:904 + Q9-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/oracle/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..be9963fa --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,53 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:25:53:782:304 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 16:25:53:787:402 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:25:53:882:96 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 16:25:53:885:932 + Q5-T2 execute opt: 'COMMIT'; +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 16:25:53:987:818 +Q7-T1 execute opt: 'COMMIT'; + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 16:25:53:992:728 + Q9-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/oracle/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..05f489a4 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,52 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:26:7:305:816 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:26:7:309:368 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:26:7:406:342 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:26:7:415:127 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 16:26:7:509:977 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 16:26:7:511:566 + Q6-T2 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:26:7:522:857 + Q10-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/oracle/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..f2d1c3f4 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: oracle #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:26:7:780:849 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:26:7:784:328 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:26:7:880:685 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 16:26:7:884:854 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-4-1 16:26:12:20:189 +Q6 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q6 failed at: 2022-4-1 16:26:38:804:724 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/install/test_result/centralizend_result/oracle/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/oracle/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..5ba9cc3d --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,33 @@ +#### db_type: oracle #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:26:39:56:574 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:26:39:59:980 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:26:39:156:568 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 16:26:39:159:973 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-4-1 16:26:43:274:780 +Q6 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q6 failed at: 2022-4-1 16:26:50:19:699 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/install/test_result/centralizend_result/oracle/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/oracle/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..41672fc3 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: oracle #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:26:50:268:190 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:26:50:271:744 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:26:50:368:246 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 16:26:50:372:74 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-4-1 16:26:54:573:476 +Q7 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q7 failed at: 2022-4-1 16:26:57:599:183 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/install/test_result/centralizend_result/oracle/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/oracle/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..59b195a5 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,50 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:26:57:859:93 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:26:57:862:545 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:26:57:959:161 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 16:26:57:962:919 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:26:57:966:208 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 16:26:58:161:53 +Q7-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:26:58:168:273 + Q10-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/oracle/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..d8f14baf --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,50 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:26:58:418:559 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:26:58:422:177 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:26:58:518:400 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 16:26:58:521:715 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:26:58:524:414 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 16:26:58:719:684 +Q8-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:26:58:825:246 + Q10-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/oracle/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..cd07504e --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,50 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:26:59:74:803 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:26:59:79:23 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:26:59:174:814 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 16:26:59:178:800 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 16:26:59:278:773 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 16:26:59:280:358 + Q8-T2 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:26:59:382:892 + Q10-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/oracle/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..c734bf7f --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,50 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:27:41:644:82 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:27:41:648:570 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:27:41:747:577 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 16:27:41:752:321 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 16:27:41:849:893 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 16:27:42:45:577 + Q7-T2 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:27:42:53:770 + Q10-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/oracle/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..ff41e9a3 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,50 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:27:42:305:374 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:27:42:309:169 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:27:42:405:425 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 16:27:42:408:811 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 16:27:42:508:19 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 16:27:42:509:333 + Q6-T2 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:27:42:516:622 + Q10-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/oracle/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..7d671ac3 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: oracle #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:27:42:770:503 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:27:42:773:934 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:27:42:870:503 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 16:27:42:874:167 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 16:27:42:971:537 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 16:27:42:975:404 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-4-1 16:27:46:559:84 + Q8 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 + Q8 failed at: 2022-4-1 16:27:49:570:400 +Q9 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q9 failed at: 2022-4-1 16:27:49:670:712 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/install/test_result/centralizend_result/oracle/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/oracle/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..7368f183 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,41 @@ +#### db_type: oracle #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:27:49:941:525 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:27:49:945:173 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:27:50:41:452 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 16:27:50:45:555 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 16:27:50:143:634 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 16:27:50:345:112 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q8 failed at: 2022-4-1 16:27:54:253:249 + Q6 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 + Q6 failed at: 2022-4-1 16:27:56:554:542 +Q9 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q9 failed at: 2022-4-1 16:27:56:854:550 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/install/test_result/centralizend_result/oracle/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/oracle/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..70feac7f --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,42 @@ +#### db_type: oracle #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:26:3:412:104 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:26:3:415:441 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:26:3:512:207 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-1 16:26:3:613:362 + Q6-T2 execute opt: 'COMMIT'; + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 16:26:3:718:398 + Q8-T3 execute sql: 'DROP TABLE t1;' + Q8 finished at: 2022-4-1 16:26:3:754:21 + Q9-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/oracle/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..02f5bd2e --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,42 @@ +#### db_type: oracle #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:26:3:975:555 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:26:3:979:116 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:26:4:76:231 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-1 16:26:4:181:63 + Q6-T2 execute opt: 'COMMIT'; + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 16:26:4:292:604 + Q8-T3 execute sql: 'DROP TABLE t1;' + Q8 finished at: 2022-4-1 16:26:4:319:292 + Q9-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/read-committed/wat_sda_full_write.txt b/install/test_result/centralizend_result/oracle/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..62601b17 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/wat_sda_full_write.txt @@ -0,0 +1,42 @@ +#### db_type: oracle #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:26:4:545:751 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:26:4:549:373 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:26:4:645:787 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 16:26:4:748:345 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-1 16:26:4:749:775 + Q7-T2 execute opt: 'COMMIT'; + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 16:26:4:853:759 + Q9-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/read-committed/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/oracle/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..4998ba4c --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,42 @@ +#### db_type: oracle #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:26:5:101:799 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:26:5:105:304 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:26:5:201:891 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 16:26:5:306:181 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-1 16:26:5:307:527 + Q5-T2 execute opt: 'COMMIT'; + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 16:26:5:317:439 + Q9-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/oracle/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..4c0af2ed --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:26:6:836:594 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:26:6:840:584 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:26:6:939:700 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 16:26:7:41:56 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-1 16:26:7:43:713 + Q5-T2 execute opt: 'COMMIT'; + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 16:26:7:51:210 + Q9-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/oracle/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..04e4d117 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,47 @@ +#### db_type: oracle #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:26:5:619:195 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 16:26:5:622:925 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:26:5:719:253 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 16:26:5:722:355 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 16:26:5:920:535 +Q6-T1 execute opt: 'COMMIT'; + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 16:26:5:929:509 + Q9-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/oracle/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..e2ddf593 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,47 @@ +#### db_type: oracle #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:26:6:198:69 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 16:26:6:201:520 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:26:6:287:288 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 16:26:6:291:452 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 16:26:6:488:625 +Q7-T1 execute opt: 'COMMIT'; + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 16:26:6:593:730 + Q9-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/result_summary/read-committed_total-result.txt b/install/test_result/centralizend_result/oracle/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..38745346 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/oracle/result_summary/serializable_total-result.txt b/install/test_result/centralizend_result/oracle/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..01329ba7 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/result_summary/serializable_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +iat_mda_step_iat_predicate_based_delete: Rollback + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Rollback + diff --git a/install/test_result/centralizend_result/oracle/serializable/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/oracle/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..96716e6f --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:36:3:768:144 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:36:3:772:451 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:36:3:869:118 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:36:3:872:887 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:36:3:876:492 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 16:36:3:972:196 +Q8-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:36:3:979:76 + Q10-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/serializable/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/oracle/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..cb0e16c9 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:36:4:247:875 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:36:4:251:591 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:36:4:348:774 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 16:36:4:352:884 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:36:4:360:1 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-4-1 16:36:5:153:681 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/serializable/iat_dda_write_skew.txt b/install/test_result/centralizend_result/oracle/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..3f8ad541 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/iat_dda_write_skew.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:36:5:463:78 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:36:5:466:721 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:36:5:563:588 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 16:36:5:567:323 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:36:5:570:377 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 16:36:5:666:341 +Q7-T1 execute opt: 'COMMIT'; + Q8-T2 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:36:5:770:596 + Q8-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/serializable/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/oracle/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..a57594ef --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,47 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:36:6:895:330 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:36:6:899:463 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:36:6:995:190 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 16:36:6:998:904 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:36:7:2:708 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-4-1 16:36:7:799:319 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/oracle/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..39de93b3 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,68 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:36:6:27:458 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 16:36:6:35:304 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 16:36:6:38:412 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 16:36:6:125:724 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 16:36:6:129:912 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 16:36:6:132:570 + Q7-T2 execute opt: 'COMMIT'; +Q8-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 16:36:6:227:965 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 16:36:6:230:51 + Q12-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/oracle/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..3fd9c7e7 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,47 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:58:16:774:867 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 16:58:16:780:693 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:58:16:874:924 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 16:58:16:877:944 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 16:58:16:882:540 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-4-1 16:58:17:679:120 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/serializable/iat_mda_step_iat.txt b/install/test_result/centralizend_result/oracle/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..00dae59e --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/iat_mda_step_iat.txt @@ -0,0 +1,86 @@ +#### db_type: oracle #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:36:8:50:614 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 16:36:8:54:379 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:36:8:150:601 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 16:36:8:154:634 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 16:36:8:251:762 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 16:36:8:256:347 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 16:36:8:354:102 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 16:36:8:453:623 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q10-T1 execute opt: 'COMMIT'; + Q11-T2 execute opt: 'COMMIT'; + Q9 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q9 failed at: 2022-4-1 16:36:9:454:218 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/oracle/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..a755e129 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,103 @@ +#### db_type: oracle #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:36:13:733:846 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:36:13:737:835 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:36:13:834:771 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 16:36:13:838:184 + Q5-T2 execute opt: 'COMMIT'; + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 16:36:13:933:784 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 16:36:13:936:605 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 16:36:13:940:72 + Q9-T3 execute opt: 'COMMIT'; +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 16:36:14:36:990 +Q11-T1 execute opt: 'COMMIT'; + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 16:36:14:42:718 + Q13-T4 execute opt: 'COMMIT'; + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/serializable/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/oracle/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..68fde7a9 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,203 @@ +#### db_type: oracle #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:36:12:969:495 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:36:12:974:169 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:36:13:69:315 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 16:36:13:73:866 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 16:36:13:170:910 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 16:36:13:174:710 + Q7-T3 execute opt: 'COMMIT'; + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 16:36:13:269:373 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 16:36:13:273:319 + Q10-T4 execute opt: 'COMMIT'; + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 16:36:13:372:119 + Q12-T2 execute opt: 'COMMIT'; +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 16:36:13:472:5 +Q14-T1 execute opt: 'COMMIT'; + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 16:36:13:480:83 + Q16-T5 execute opt: 'COMMIT'; + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/serializable/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/oracle/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..b46aa2de --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,86 @@ +#### db_type: oracle #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:36:9:707:231 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 16:36:9:710:824 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:36:9:807:303 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 16:36:9:811:161 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 16:36:9:907:235 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 16:36:9:910:902 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 16:36:10:10:136 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' +Q10-T1 execute opt: 'COMMIT'; + Q8 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q8 failed at: 2022-4-1 16:36:10:911:7 + Q9 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q9 failed at: 2022-4-1 16:36:11:110:467 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/serializable/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/oracle/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..8da072d6 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,101 @@ +#### db_type: oracle #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:36:11:352:625 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 16:36:11:356:826 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:36:11:452:613 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 16:36:11:456:240 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 16:36:11:552:655 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 16:36:11:556:487 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 16:36:11:655:517 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 16:36:11:756:264 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 16:36:11:856:141 +Q10-T1 execute opt: 'COMMIT'; + Q11-T2 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 16:36:12:160:950 + Q14-T4 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/oracle/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..49574ebd --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,117 @@ +#### db_type: oracle #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:36:14:290:191 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 16:36:14:294:29 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 16:36:14:296:988 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 16:36:14:390:227 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 16:36:14:392:888 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 16:36:14:395:996 + Q7-T2 execute opt: 'COMMIT'; + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 16:36:14:490:302 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 16:36:14:493:11 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 16:36:14:495:268 + Q11-T3 execute opt: 'COMMIT'; +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q12 failed at: 2022-4-1 16:36:15:794:442 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/serializable/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/oracle/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..72c7c339 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,159 @@ +#### db_type: oracle #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:36:12:412:544 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 16:36:12:416:687 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:36:12:512:476 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 16:36:12:516:452 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:36:12:519:785 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 16:36:12:521:905 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 16:36:12:524:521 + Q8-T2 execute opt: 'COMMIT'; + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-1 16:36:12:612:549 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 16:36:12:616:406 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 16:36:12:619:74 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 16:36:12:621:161 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 16:36:12:623:894 + Q14-T3 execute opt: 'COMMIT'; +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 16:36:12:714:819 +Q16-T1 execute opt: 'COMMIT'; + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 16:36:12:722:252 + Q18-T4 execute opt: 'COMMIT'; + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/serializable/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/oracle/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..73344fa2 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,37 @@ +#### db_type: oracle #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:36:2:712:646 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 16:36:2:715:771 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:36:2:812:825 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 16:36:2:816:667 + Q5-T2 execute opt: 'COMMIT'; +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-4-1 16:36:3:516:299 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/serializable/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/oracle/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..c5a87e8f --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:36:2:238:596 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:36:2:242:853 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:36:2:338:527 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 16:36:2:342:442 + Q5-T2 execute opt: 'COMMIT'; +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 16:36:2:440:440 +Q7-T1 execute opt: 'COMMIT'; + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 16:36:2:446:618 + Q9-T3 execute opt: 'COMMIT'; + Q10-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/serializable/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/oracle/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..4c1a299a --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:39:32:91 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:28:39:35:735 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:39:133:30 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:28:39:136:883 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 16:28:39:139:647 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-4-1 16:28:39:933:886 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/serializable/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/oracle/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..ecdb8ba2 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:40:188:367 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:28:40:192:98 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:40:288:37 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:28:40:292:315 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 16:28:40:295:325 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-4-1 16:28:41:91:135 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/serializable/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/oracle/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..ddbe1d56 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:41:349:456 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:28:41:353:21 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:41:449:478 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:28:41:453:94 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 16:28:41:552:694 +Q7-T1 execute opt: 'COMMIT'; + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-1 16:28:42:54:499 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/serializable/rat_dda_read_skew.txt b/install/test_result/centralizend_result/oracle/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..bd393bc2 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/rat_dda_read_skew.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:42:309:702 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:28:42:313:170 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:42:409:739 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:28:42:413:682 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:28:42:416:754 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 16:28:42:512:699 + Q7-T2 execute opt: 'COMMIT'; +Q8-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:28:42:718:928 + Q10-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/serializable/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/oracle/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..0f61e8ad --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:43:892:788 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:28:43:896:507 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:43:992:732 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 16:28:43:996:469 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 16:28:43:999:342 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 16:28:44:95:595 +Q7-T1 execute opt: 'COMMIT'; + Q8-T2 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:28:44:199:655 + Q10-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/serializable/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/oracle/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..e94fd43d --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:44:449:241 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:28:44:452:913 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:44:548:976 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 16:28:44:552:635 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 16:28:44:555:370 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 16:28:44:652:15 +Q8-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:28:44:659:920 + Q10-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/serializable/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/oracle/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..ba1ef192 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:42:979:918 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 16:28:42:984:954 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:43:79:986 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:28:43:83:710 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:28:43:86:352 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 16:28:43:181:946 +Q8-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 16:28:43:187:710 + Q10-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/serializable/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/oracle/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..dd28ee39 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:43:432:343 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 16:28:43:437:56 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:43:532:340 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 16:28:43:535:692 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 16:28:43:538:12 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 16:28:43:633:868 +Q8-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 16:28:43:639:690 + Q10-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/serializable/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/oracle/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..acb08a68 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:37:902:640 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:28:37:906:703 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:38:2:540 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:28:38:6:546 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 16:28:38:9:733 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 16:28:38:105:696 + Q7-T2 execute opt: 'COMMIT'; +Q8-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:28:38:310:351 + Q10-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/serializable/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/oracle/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..c232b4b3 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:38:564:766 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:28:38:568:667 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:38:665:177 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:28:38:668:924 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 16:28:38:672:190 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 16:28:38:767:781 +Q8-T1 execute opt: 'COMMIT'; + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 16:28:38:774:820 + Q10-T3 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/serializable/rat_mda_step_rat.txt b/install/test_result/centralizend_result/oracle/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..01e81f7f --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/rat_mda_step_rat.txt @@ -0,0 +1,104 @@ +#### db_type: oracle #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:44:914:217 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:28:44:917:710 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:45:14:110 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:28:45:17:938 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 16:28:45:21:242 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 16:28:45:114:235 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 16:28:45:118:562 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 16:28:45:122:340 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 16:28:45:217:171 +Q10-T1 execute opt: 'COMMIT'; + Q11-T2 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 16:28:45:422:78 + Q14-T4 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/serializable/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/oracle/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..da1fc244 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,203 @@ +#### db_type: oracle #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-1 16:28:45:667:907 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 16:28:45:673:373 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-1 16:28:45:767:833 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 16:28:45:771:274 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 16:28:45:867:861 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 16:28:45:874:175 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 16:28:45:877:317 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 16:28:45:968:93 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 16:28:45:971:759 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 16:28:46:70:588 +Q11-T1 execute opt: 'COMMIT'; + Q12-T2 execute opt: 'COMMIT'; + Q13-T3 execute opt: 'COMMIT'; + Q14-T4 execute opt: 'COMMIT'; + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 16:28:46:376:30 + Q16-T4 execute opt: 'COMMIT'; + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/serializable/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/oracle/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..ebe38d8f --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,52 @@ +#### db_type: oracle #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:46:628:760 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:28:46:632:374 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:46:728:794 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 16:28:46:828:853 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 16:28:46:933:887 +Q10-T1 execute opt: 'COMMIT'; + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-1 16:28:47:132:723 + Q7 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q7 failed at: 2022-4-1 16:28:47:533:627 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/serializable/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/oracle/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..daa9695e --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,101 @@ +#### db_type: oracle #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:47:785:472 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 16:28:47:789:233 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:47:886:22 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 16:28:47:889:314 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 16:28:47:893:148 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 16:28:47:985:461 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 16:28:47:988:989 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 16:28:47:992:735 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 16:28:48:91:90 +Q10-T1 execute opt: 'COMMIT'; + Q11-T2 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 16:28:48:294:496 + Q14-T4 execute opt: 'COMMIT'; + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/oracle/serializable/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/oracle/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..fca3c1a6 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,43 @@ +#### db_type: oracle #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:33:788:1 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:28:33:791:759 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:33:888:37 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 16:28:33:892:397 +Q5-T1 execute opt: 'ROLLBACK'; + Q6-T2 execute opt: 'COMMIT'; + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 16:28:34:93:910 + Q8-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/serializable/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/oracle/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..e44e1ec6 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:35:18:724 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:28:35:23:123 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:35:119:713 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 16:28:35:124:55 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 16:28:35:222:184 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute opt: 'COMMIT'; + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 16:28:35:426:610 + Q9-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/serializable/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/oracle/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..64891f90 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:35:673:598 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:28:35:677:287 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:35:773:607 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 16:28:35:777:388 + Q5-T2 execute opt: 'COMMIT'; +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 16:28:35:878:398 +Q7-T1 execute opt: 'COMMIT'; + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 16:28:35:885:380 + Q9-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/serializable/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/oracle/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..409a1067 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,37 @@ +#### db_type: oracle #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:37:38:329 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:28:37:41:813 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:37:138:248 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 16:28:37:241:122 +Q6-T1 execute opt: 'COMMIT'; + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-1 16:28:37:643:584 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/serializable/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/oracle/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..c531994b --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,56 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:34:340:508 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:28:34:344:142 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:34:440:534 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 16:28:34:445:116 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 16:28:34:542:403 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute opt: 'COMMIT'; + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 16:28:34:747:523 + Q9-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/oracle/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..2be1c15c --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,56 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:36:131:358 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 16:28:36:136:155 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:36:231:383 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 16:28:36:234:890 + Q5-T2 execute opt: 'COMMIT'; +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 16:28:36:333:365 +Q7-T1 execute opt: 'COMMIT'; + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 16:28:36:338:738 + Q9-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/oracle/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..b3fcd1ca --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,55 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:36:583:564 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 16:28:36:587:967 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:36:683:643 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 16:28:36:687:511 + Q5-T2 execute opt: 'COMMIT'; +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 16:28:36:785:593 +Q7-T1 execute opt: 'COMMIT'; + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 16:28:36:790:993 + Q9-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/serializable/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/oracle/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..7300a57c --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:54:676:353 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:28:54:680:403 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:54:776:755 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 16:28:54:780:836 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 16:28:54:882:659 +Q8-T1 execute opt: 'COMMIT'; + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-1 16:28:55:384:286 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/serializable/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/oracle/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..2ca1e906 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,32 @@ +#### db_type: oracle #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:55:642:436 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:28:55:651:803 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:55:742:999 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 16:28:55:747:300 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 +Q6 failed at: 2022-4-1 16:29:2:462:431 + Q5 finished at: 2022-4-1 16:29:2:464:104 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/install/test_result/centralizend_result/oracle/serializable/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/oracle/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..cc74ce58 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,32 @@ +#### db_type: oracle #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:29:2:724:742 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:29:2:728:210 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:29:2:826:188 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 16:29:2:831:47 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 +Q6 failed at: 2022-4-1 16:29:10:13:281 + Q5 finished at: 2022-4-1 16:29:10:15:666 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/install/test_result/centralizend_result/oracle/serializable/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/oracle/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..748e7b66 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,32 @@ +#### db_type: oracle #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:29:10:278:100 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:29:10:281:867 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:29:10:378:408 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 16:29:10:382:814 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 +Q7 failed at: 2022-4-1 16:29:17:501:855 + Q5 finished at: 2022-4-1 16:29:17:503:854 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/install/test_result/centralizend_result/oracle/serializable/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/oracle/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..725da63e --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:29:17:767:140 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 16:29:17:770:935 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:29:17:867:29 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 16:29:17:870:451 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 16:29:17:873:173 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; +Q6 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-4-1 16:29:18:668:654 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/serializable/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/oracle/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..59b5c742 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,16 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0 failed reason: [Oracle][ODBC][Ora]ORA-01000: maximum open cursors exceeded errcode: HY000 +Q0 failed at: 2022-4-1 16:29:18:707:473 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-01000: maximum open cursors exceeded + diff --git a/install/test_result/centralizend_result/oracle/serializable/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/oracle/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..b436eb57 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:29:57:586:929 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:29:57:591:397 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:29:57:686:907 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 16:29:57:691:907 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 16:29:57:790:741 +Q7-T1 execute opt: 'COMMIT'; + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-1 16:29:58:292:538 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/serializable/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/oracle/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..a439c01c --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:29:58:548:104 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:29:58:551:891 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:29:58:648:15 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 16:29:58:651:563 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 16:29:58:750:738 +Q8-T1 execute opt: 'COMMIT'; + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-1 16:29:59:450:543 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/serializable/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/oracle/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..f8583c99 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:29:59:737:218 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:29:59:741:378 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:29:59:839:651 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 16:29:59:853:51 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 16:29:59:942:438 +Q8-T1 execute opt: 'COMMIT'; + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-1 16:30:0:444:416 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/serializable/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/oracle/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..fc2ca433 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: oracle #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:30:0:705:681 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:30:0:709:55 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:30:0:805:740 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 16:30:0:809:595 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 16:30:0:907:378 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 16:30:0:911:685 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q8 failed at: 2022-4-1 16:30:4:783:302 + Q5 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 + Q5 failed at: 2022-4-1 16:35:57:631:453 +Q9 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q9 failed at: 2022-4-1 16:35:58:31:415 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/install/test_result/centralizend_result/oracle/serializable/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/oracle/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..a4abed1f --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,41 @@ +#### db_type: oracle #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:35:58:284:958 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:35:58:288:358 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:35:58:385:346 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 16:35:58:388:958 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 16:35:58:484:951 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 16:35:58:688:90 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 + Q8 failed at: 2022-4-1 16:36:1:856:719 + Q6 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q6 failed at: 2022-4-1 16:36:1:878:242 +Q9 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q9 failed at: 2022-4-1 16:36:1:967:429 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation + diff --git a/install/test_result/centralizend_result/oracle/serializable/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/oracle/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..42accfc3 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,42 @@ +#### db_type: oracle #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:48:540:493 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:28:48:543:956 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:48:640:660 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-1 16:28:48:744:878 + Q6-T2 execute opt: 'COMMIT'; + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 16:28:48:846:897 + Q8-T3 execute sql: 'DROP TABLE t1;' + Q8 finished at: 2022-4-1 16:28:48:881:171 + Q9-T3 execute opt: 'COMMIT'; + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/oracle/serializable/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/oracle/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..bc226108 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,28 @@ +#### db_type: oracle #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:49:103:321 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:28:49:106:960 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:49:203:516 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-1 16:28:49:704:815 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/serializable/wat_sda_full_write.txt b/install/test_result/centralizend_result/oracle/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..086bce78 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/wat_sda_full_write.txt @@ -0,0 +1,30 @@ +#### db_type: oracle #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:49:953:768 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:28:49:957:290 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:50:53:749 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 16:28:50:158:698 +Q6-T1 execute opt: 'COMMIT'; + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-1 16:28:50:560:360 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/serializable/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/oracle/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..ac73661c --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,30 @@ +#### db_type: oracle #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:50:805:245 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:28:50:808:927 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:50:905:314 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 16:28:51:8:229 +Q7-T1 execute opt: 'COMMIT'; + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-1 16:28:51:409:922 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/serializable/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/oracle/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..b7f7a62c --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,37 @@ +#### db_type: oracle #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:53:768:809 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 16:28:53:772:672 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:53:871:663 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 16:28:53:975:58 +Q7-T1 execute opt: 'COMMIT'; + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-1 16:28:54:380:78 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/serializable/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/oracle/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..d64c73b7 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,37 @@ +#### db_type: oracle #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:51:658:447 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 16:28:51:661:926 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:51:758:473 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 16:28:51:762:5 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; +Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q5 failed at: 2022-4-1 16:28:52:460:906 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/oracle/serializable/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/oracle/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..95d17437 --- /dev/null +++ b/install/test_result/centralizend_result/oracle/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,37 @@ +#### db_type: oracle #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 16:28:52:714:385 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 16:28:52:718:224 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 16:28:52:814:515 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 16:28:52:822:498 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q5 failed at: 2022-4-1 16:28:53:516:61 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/centralizend_result/pg/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/pg/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..87c03f25 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:32:401:585 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:15:32:403:435 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:32:501:494 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:15:32:503:219 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:15:32:504:575 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:15:32:510:361 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 12:15:32:604:426 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:15:32:605:345 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:15:32:607:235 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:15:32:608:195 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/pg/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..c8acd739 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:32:824:681 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:15:32:826:602 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:32:924:641 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:15:32:926:494 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:15:32:927:884 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:15:32:930:155 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 12:15:33:25:474 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:15:33:27:529 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:15:33:29:336 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:15:33:30:77 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/iat_dda_write_skew.txt b/install/test_result/centralizend_result/pg/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..0347f4fc --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:33:243:511 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:15:33:245:605 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:33:343:327 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:15:33:345:141 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:15:33:346:495 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 12:15:33:444:251 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:15:33:446:389 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 12:15:33:544:994 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:15:33:546:905 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 12:15:33:547:741 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/pg/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..7d8765f8 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:34:610:592 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:15:34:612:529 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:34:710:256 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:15:34:712:166 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:15:34:713:450 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:15:34:715:292 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 12:15:34:811:149 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:15:34:813:915 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:15:34:815:974 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:15:34:816:979 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/pg/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..305fb1ec --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:33:760:533 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 12:15:33:762:595 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 12:15:33:764:24 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 12:15:33:860:603 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 12:15:33:862:860 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 12:15:33:864:287 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:15:33:866:373 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:15:33:961:971 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 12:15:33:964:181 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 12:15:33:965:983 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:15:33:966:860 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/pg/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..24715ca8 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:34:188:661 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 12:15:34:191:230 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:34:288:530 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 12:15:34:291:204 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 12:15:34:293:443 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:15:34:295:448 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 12:15:34:390:559 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:15:34:392:587 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 12:15:34:394:487 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:15:34:395:403 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/iat_mda_step_iat.txt b/install/test_result/centralizend_result/pg/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..5121643e --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: pg #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:35:34:208 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 12:15:35:36:384 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:35:134:234 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 12:15:35:136:436 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:15:35:238:48 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 12:15:35:240:247 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 12:15:35:335:196 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 12:15:35:435:181 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 12:15:35:540:451 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:15:35:637:61 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 12:15:35:735:855 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:15:35:835:871 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 12:15:35:838:316 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:15:35:839:361 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/pg/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..f03f01dd --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:39:345:19 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:15:39:347:373 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:39:444:972 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 12:15:39:447:84 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:15:39:449:254 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 12:15:39:545:205 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 12:15:39:547:509 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 12:15:39:548:908 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:15:39:550:921 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 12:15:39:646:164 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 12:15:39:647:258 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 12:15:39:649:318 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 12:15:39:650:208 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/pg/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..7e4638d3 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:38:621:967 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:15:38:627:297 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:38:722:604 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:15:38:727:90 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:15:38:823:855 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 12:15:38:825:824 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:15:38:828:119 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 12:15:38:922:109 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 12:15:38:924:326 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:15:38:926:592 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 12:15:39:25:826 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:15:39:27:349 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 12:15:39:123:923 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 12:15:39:125:8 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 12:15:39:128:384 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 12:15:39:129:272 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/pg/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..78e42920 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:36:55:698 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 12:15:36:57:868 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:36:155:703 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 12:15:36:157:925 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:15:36:255:871 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 12:15:36:258:535 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 12:15:36:356:595 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 12:15:36:460:299 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 12:15:36:556:740 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:15:36:658:426 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 12:15:36:757:261 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:15:36:857:220 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 12:15:36:859:67 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:15:36:859:892 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/pg/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..dcee9a03 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:37:71:532 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 12:15:37:73:991 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:37:171:299 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 12:15:37:173:399 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:15:37:275:648 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 12:15:37:278:74 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 12:15:37:372:284 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 12:15:37:472:386 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 12:15:37:572:420 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:15:37:673:165 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 12:15:37:773:236 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:15:37:873:243 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 12:15:37:875:629 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:15:37:876:669 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/pg/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..14fb9403 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:39:867:205 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 12:15:39:869:721 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 12:15:39:871:604 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 12:15:39:964:875 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 12:15:39:967:305 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 12:15:39:969:310 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:15:39:971:447 + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 12:15:40:64:701 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 12:15:40:67:179 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 12:15:40:69:218 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 12:15:40:70:217 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 12:15:40:168:135 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 12:15:40:171:69 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 12:15:40:173:396 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 12:15:40:174:367 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/pg/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..56c4c769 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:38:96:125 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 12:15:38:98:430 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:38:196:126 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 12:15:38:198:326 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:15:38:199:681 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 12:15:38:201:635 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 12:15:38:203:416 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 12:15:38:206:174 + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-1 12:15:38:299:690 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 12:15:38:302:396 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 12:15:38:304:256 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 12:15:38:307:915 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 12:15:38:309:626 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:15:38:312:46 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 12:15:38:398:890 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 12:15:38:400:57 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 12:15:38:402:391 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 12:15:38:403:373 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/pg/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..c6f39d64 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:31:982:116 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 12:15:31:983:961 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:32:82:135 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 12:15:32:84:182 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:15:32:86:263 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 12:15:32:182:993 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:15:32:185:324 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 12:15:32:186:903 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:15:32:187:669 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/pg/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..08927bdd --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:31:564:734 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:15:31:566:684 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:31:664:775 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 12:15:31:666:727 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:15:31:669:17 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 12:15:31:765:612 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:15:31:766:543 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 12:15:31:768:202 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:15:31:769:142 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:15:31:769:850 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/pg/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..087be577 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:31:683:607 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:13:31:685:432 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:31:783:592 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:13:31:785:397 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:13:31:787:285 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:13:31:985:247 +Q6 finished at: 2022-4-1 12:13:31:985:231 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:13:32:85:274 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 12:13:32:87:380 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:13:32:88:165 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/pg/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..6221fd06 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:32:302:90 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:13:32:303:780 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:32:402:142 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:13:32:403:981 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:13:32:405:363 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:13:32:407:9 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 12:13:32:504:719 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:13:32:506:976 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 12:13:32:509:25 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:13:32:509:632 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/pg/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..9f1fba42 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:32:722:716 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:13:32:724:466 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:32:822:569 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:13:32:824:291 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 12:13:32:923:630 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:13:32:925:587 + Q5 finished at: 2022-4-1 12:13:32:925:760 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 12:13:33:24:142 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:13:33:26:64 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:13:33:26:784 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-committed/rat_dda_read_skew.txt b/install/test_result/centralizend_result/pg/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..beb753a6 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:33:240:802 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:13:33:242:638 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:33:340:867 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:13:33:343:53 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:13:33:344:481 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 12:13:33:441:717 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:13:33:542:191 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:13:33:641:173 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:13:33:643:153 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:13:33:643:849 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-committed/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/pg/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..974cad2a --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:34:690:700 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:13:34:692:437 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:34:790:740 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:13:34:792:651 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:13:34:794:27 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 12:13:34:891:559 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:13:34:893:442 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 12:13:34:991:115 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:13:34:993:130 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:13:34:993:831 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/pg/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..adac0bd3 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:35:212:441 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:13:35:214:284 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:35:312:642 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:13:35:314:861 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:13:35:316:534 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:13:35:317:556 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 12:13:35:413:134 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:13:35:414:923 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:13:35:417:85 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:13:35:418:40 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/pg/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..10a2b8e1 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:33:857:220 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 12:13:33:859:148 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:33:957:182 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:13:33:958:812 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:13:33:960:103 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:13:33:961:627 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 12:13:34:58:66 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:13:34:58:881 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 12:13:34:60:645 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:13:34:61:355 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/pg/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..40b3a27f --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: pg #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:34:272:959 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 12:13:34:274:829 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:34:372:834 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 12:13:34:374:903 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 12:13:34:376:164 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:13:34:378:109 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (1,0) (0,0) + (1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 12:13:34:473:653 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:13:34:474:539 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 12:13:34:476:299 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:13:34:476:971 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/pg/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..aa59cbe2 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:30:644:641 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:13:30:646:735 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:30:747:579 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:13:30:749:397 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:13:30:750:892 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 12:13:30:845:605 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:13:30:946:167 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:13:31:46:200 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:13:31:48:543 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:13:31:49:274 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/pg/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..1e62aa23 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:31:263:708 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:13:31:265:452 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:31:363:785 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:13:31:365:729 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:13:31:367:163 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:13:31:369:83 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 12:13:31:464:741 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:13:31:466:719 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:13:31:468:697 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:13:31:469:461 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-committed/rat_mda_step_rat.txt b/install/test_result/centralizend_result/pg/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..f38b0e1f --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: pg #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:35:633:783 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:13:35:635:588 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:35:733:874 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:13:35:736:106 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:13:35:737:917 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 12:13:35:834:32 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 12:13:35:835:824 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 12:13:35:837:645 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 12:13:35:935:826 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:13:35:937:828 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 12:13:36:35:748 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:13:36:135:569 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 12:13:36:138:155 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:13:36:138:855 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/pg/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..4339ed91 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: pg #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-1 12:13:36:354:416 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 12:13:36:357:400 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-1 12:13:36:454:432 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 12:13:36:456:602 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:13:36:554:398 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 12:13:36:557:367 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 12:13:36:559:828 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 12:13:36:654:418 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 12:13:36:656:302 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 12:13:36:757:734 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 12:13:36:856:182 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:13:36:956:172 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 12:13:37:54:850 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:13:37:55:893 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 12:13:37:58:362 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 12:13:37:59:217 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/pg/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..f63df17f --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: pg #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:37:274:988 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:13:37:276:697 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:37:379:635 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:13:37:381:673 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 12:13:37:383:761 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 12:13:37:475:229 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 12:13:37:477:291 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 12:13:37:479:722 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 12:13:37:576:395 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:13:37:578:574 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 12:13:37:676:991 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:13:37:776:659 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 12:13:37:778:720 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:13:37:779:552 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/pg/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..0f67f4f1 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: pg #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:37:990:639 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 12:13:37:992:362 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:38:90:582 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 12:13:38:92:541 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 12:13:38:94:527 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 12:13:38:190:648 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 12:13:38:192:451 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 12:13:38:194:495 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 12:13:38:292:74 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:13:38:294:254 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 12:13:38:392:197 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:13:38:492:755 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 12:13:38:495:51 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:13:38:495:858 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/pg/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..7bcdb259 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: pg #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 13:3:43:967:775 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 13:3:43:969:445 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 13:3:44:67:772 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 13:3:44:69:802 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 13:3:44:168:62 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 13:3:44:268:202 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 13:3:44:270:31 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 13:3:44:270:663 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-committed/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/pg/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..a30533c3 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:28:243:721 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:13:28:245:498 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:28:343:578 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 12:13:28:345:644 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 12:13:28:445:7 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:13:28:547:762 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:13:28:646:381 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 12:13:28:648:188 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:13:28:648:890 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/pg/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..d2d0937d --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:28:873:868 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:13:28:875:842 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:28:961:888 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 12:13:28:963:893 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:13:28:964:742 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 12:13:29:64:544 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:13:29:66:562 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 12:13:29:68:379 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:13:29:69:176 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-committed/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/pg/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..e442c743 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:30:125:811 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:13:30:127:661 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:30:227:142 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 12:13:30:326:693 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 12:13:30:328:520 + Q4 finished at: 2022-4-1 12:13:30:328:872 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:13:30:428:930 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 12:13:30:430:870 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:13:30:431:602 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/pg/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..6163c75d --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:27:627:212 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:13:27:629:571 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:27:727:463 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 12:13:27:729:856 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 12:13:27:828:234 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:13:27:928:875 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:13:28:27:734 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 12:13:28:29:734 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:13:28:30:493 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/pg/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..f4d55bdc --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:29:283:575 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 12:13:29:285:648 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:29:383:514 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 12:13:29:385:902 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:13:29:387:641 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 12:13:29:485:146 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:13:29:486:95 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 12:13:29:487:835 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:13:29:488:617 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/pg/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..bb6c8911 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:29:705:505 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 12:13:29:707:935 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:29:807:66 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 12:13:29:809:178 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:13:29:811:615 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 12:13:29:908:719 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:13:29:909:657 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 12:13:29:911:722 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:13:29:912:514 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/pg/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..cd6565cc --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:42:242:459 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:13:42:244:787 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:42:344:861 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:13:42:346:632 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 12:13:42:443:182 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:13:42:445:162 + Q5 finished at: 2022-4-1 12:13:42:445:180 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:13:42:446:853 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:13:42:448:738 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:13:42:449:607 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/pg/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..19c6a366 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:53:51:596:677 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:53:51:598:488 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:53:51:696:573 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:53:51:698:512 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q5 failed at: 2022-4-1 12:53:53:298:95 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-1 12:54:12:398:214 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/install/test_result/centralizend_result/pg/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/pg/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..41a05b92 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,34 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:54:12:613:380 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:54:12:616:690 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:54:12:713:731 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:54:12:715:634 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q5 failed at: 2022-4-1 12:54:14:314:687 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-1 12:54:33:414:661 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/install/test_result/centralizend_result/pg/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/pg/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..3aaf3e7a --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,34 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:54:33:630:626 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:54:33:632:376 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:54:33:730:591 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:54:33:732:353 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q5 failed at: 2022-4-1 12:54:35:332:22 +Q7 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q7 failed at: 2022-4-1 12:54:54:532:33 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/install/test_result/centralizend_result/pg/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/pg/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..c02179b5 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:14:45:819:34 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:14:45:821:65 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:14:45:919:9 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:14:45:920:784 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:14:45:922:219 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 12:14:46:120:578 + Q8 finished at: 2022-4-1 12:14:46:120:647 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:14:46:122:438 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:14:46:124:363 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:14:46:125:248 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/pg/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..267d11dd --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:14:46:340:780 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:14:46:342:656 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:14:46:440:832 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:14:46:442:715 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:14:46:444:45 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:14:46:642:352 +Q6 finished at: 2022-4-1 12:14:46:642:361 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:14:46:742:499 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:14:46:744:484 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:14:46:745:386 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/pg/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..982dbe25 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:14:46:959:513 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:14:46:961:406 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:14:47:59:713 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:14:47:61:887 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 12:14:47:160:399 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:14:47:162:522 + Q5 finished at: 2022-4-1 12:14:47:162:564 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 12:14:47:265:530 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:14:47:267:463 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:14:47:268:518 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/pg/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..31a13c60 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:14:47:483:208 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:14:47:485:255 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:14:47:583:156 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:14:47:585:895 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 12:14:47:686:871 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:14:47:888:235 + Q5 finished at: 2022-4-1 12:14:47:888:320 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:14:47:890:323 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:14:47:892:240 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:14:47:893:150 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/pg/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..c2b0a92d --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:14:48:106:842 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:14:48:108:841 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:14:48:207:196 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:14:48:209:574 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 12:14:48:307:696 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:14:48:309:606 + Q5 finished at: 2022-4-1 12:14:48:309:654 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:14:48:311:508 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:14:48:313:107 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:14:48:313:863 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/pg/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..51174f83 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:54:54:749:448 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:54:54:751:282 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:54:54:849:460 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:54:54:851:285 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 12:54:54:949:421 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 12:54:54:951:458 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q8 failed at: 2022-4-1 12:54:56:753:380 + Q5 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q5 failed at: 2022-4-1 12:55:15:550:781 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-1 12:55:15:950:816 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/install/test_result/centralizend_result/pg/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/pg/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..49bb16a3 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:55:16:167:501 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:55:16:171:19 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:55:16:267:347 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:55:16:269:274 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:55:16:367:588 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 12:55:16:568:664 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q8 failed at: 2022-4-1 12:55:18:371:59 + Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q6 failed at: 2022-4-1 12:55:37:269:673 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-1 12:55:37:569:673 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/install/test_result/centralizend_result/pg/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/pg/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..0566b5bf --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: pg #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:38:711:313 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:13:38:713:111 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:38:811:338 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 12:13:38:911:625 + Q4 finished at: 2022-4-1 12:13:38:911:833 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:13:39:12:819 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 12:13:39:14:540 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 12:13:39:16:393 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:13:39:18:502 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/pg/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..90158794 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: pg #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:39:230:202 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:13:39:231:953 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:39:330:314 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 12:13:39:431:484 + Q4 finished at: 2022-4-1 12:13:39:431:492 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:13:39:531:553 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 12:13:39:533:197 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 12:13:39:534:757 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:13:39:536:989 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-committed/wat_sda_full_write.txt b/install/test_result/centralizend_result/pg/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..4b520e8e --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: pg #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:39:748:733 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:13:39:750:491 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:39:848:670 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 12:13:39:949:610 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-1 12:13:39:951:789 +Q6 finished at: 2022-4-1 12:13:39:951:802 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:13:40:50:178 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 12:13:40:51:787 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:13:40:52:654 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-committed/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/pg/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..61d241a7 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: pg #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:40:264:566 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:13:40:266:276 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:40:364:581 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 12:13:40:465:371 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:13:40:467:202 + Q4 finished at: 2022-4-1 12:13:40:467:240 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:13:40:468:828 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 12:13:40:470:339 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:13:40:471:105 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/pg/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..34b4e77b --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:41:819:552 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:13:41:821:526 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:41:919:538 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 12:13:42:20:450 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:13:42:22:562 + Q4 finished at: 2022-4-1 12:13:42:22:942 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:13:42:24:990 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 12:13:42:26:632 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:13:42:27:534 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/pg/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..ecd3f83a --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:40:683:898 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 12:13:40:685:608 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:40:783:860 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 12:13:40:785:780 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:13:40:985:563 +Q5 finished at: 2022-4-1 12:13:40:985:575 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 12:13:40:987:491 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 12:13:40:989:196 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:13:40:990:194 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/pg/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..16d8cffc --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:41:202:143 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 12:13:41:203:964 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:41:302:211 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 12:13:41:303:982 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:13:41:503:505 +Q5 finished at: 2022-4-1 12:13:41:503:580 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:13:41:603:607 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 12:13:41:605:296 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:13:41:606:124 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/pg/read-uncommitted/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..3ce6f981 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:18:874:277 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:13:18:876:157 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:18:974:243 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:13:18:975:907 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:13:18:977:324 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:13:18:979:648 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 12:13:19:75:247 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:13:19:76:146 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:13:19:77:984 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:13:19:78:977 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/pg/read-uncommitted/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..c0e48b4d --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:19:292:702 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:13:19:294:633 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:19:392:677 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:13:19:394:645 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:13:19:396:57 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:13:19:397:912 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 12:13:19:493:422 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:13:19:495:750 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:13:19:497:573 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:13:19:498:625 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/iat_dda_write_skew.txt b/install/test_result/centralizend_result/pg/read-uncommitted/iat_dda_write_skew.txt new file mode 100644 index 00000000..9f2d026d --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:19:712:976 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:13:19:714:967 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:19:812:942 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:13:19:814:933 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:13:19:816:245 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 12:13:19:913:842 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:13:19:916:49 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 12:13:20:14:634 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:13:20:16:701 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 12:13:20:17:671 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/pg/read-uncommitted/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..99eff8ba --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:21:78:898 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:13:21:80:703 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:21:178:902 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:13:21:180:875 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:13:21:182:267 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:13:21:184:138 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 12:13:21:279:726 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:13:21:281:827 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:13:21:283:746 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:13:21:284:740 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/pg/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..eec7713a --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:20:231:193 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 12:13:20:233:278 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 12:13:20:234:631 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 12:13:20:331:307 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 12:13:20:333:662 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 12:13:20:335:267 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:13:20:337:381 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:13:20:433:590 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 12:13:20:435:567 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 12:13:20:437:200 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:13:20:438:59 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/pg/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..0aaa2c34 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:20:658:84 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 12:13:20:660:544 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:20:758:43 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 12:13:20:760:629 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 12:13:20:762:758 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:13:20:764:543 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 12:13:20:859:638 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:13:20:861:769 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 12:13:20:863:610 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:13:20:864:582 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/iat_mda_step_iat.txt b/install/test_result/centralizend_result/pg/read-uncommitted/iat_mda_step_iat.txt new file mode 100644 index 00000000..35312631 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: pg #### +#### test_type: mda_step_iat #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:21:500:387 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 12:13:21:502:483 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:21:600:534 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 12:13:21:602:795 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:13:21:700:494 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 12:13:21:702:825 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 12:13:21:801:343 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 12:13:21:901:605 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 12:13:22:4:820 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:13:22:102:289 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 12:13:22:202:177 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:13:22:302:265 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 12:13:22:304:553 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:13:22:305:597 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/pg/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..fb1d1040 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:25:845:437 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:13:25:847:527 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:25:945:343 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 12:13:25:947:139 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:13:25:950:137 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 12:13:26:45:322 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 12:13:26:47:580 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 12:13:26:48:921 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:13:26:51:750 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 12:13:26:146:586 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 12:13:26:147:676 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 12:13:26:149:893 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 12:13:26:151:135 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/pg/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..11f2dd88 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:25:107:835 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:13:25:110:480 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:25:207:939 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:13:25:210:765 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:13:25:308:176 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 12:13:25:310:81 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:13:25:312:398 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 12:13:25:408:878 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 12:13:25:410:648 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:13:25:412:620 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 12:13:25:509:818 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:13:25:511:39 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 12:13:25:609:715 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 12:13:25:610:831 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 12:13:25:614:38 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 12:13:25:614:835 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/pg/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..b07fee56 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:22:523:278 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 12:13:22:525:460 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:22:624:0 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 12:13:22:626:199 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:13:22:723:353 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 12:13:22:725:758 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 12:13:22:824:448 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 12:13:22:924:247 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 12:13:23:24:176 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:13:23:125:422 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 12:13:23:225:390 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:13:23:325:380 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 12:13:23:327:271 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:13:23:328:198 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/pg/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..53f590cc --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:23:540:432 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 12:13:23:542:520 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:23:640:422 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 12:13:23:642:486 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:13:23:740:508 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 12:13:23:742:793 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 12:13:23:841:279 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 12:13:23:941:322 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 12:13:24:41:375 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:13:24:142:85 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 12:13:24:242:283 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:13:24:343:61 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 12:13:24:345:228 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:13:24:346:218 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/pg/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..fc928097 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:26:365:789 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 12:13:26:367:932 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 12:13:26:369:639 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 12:13:26:465:715 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 12:13:26:467:938 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 12:13:26:469:429 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:13:26:471:661 + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 12:13:26:565:885 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 12:13:26:568:286 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 12:13:26:570:90 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 12:13:26:571:220 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 12:13:26:666:572 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 12:13:26:668:571 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 12:13:26:670:631 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 12:13:26:671:621 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/pg/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..e1c3f303 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:24:582:65 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 12:13:24:584:560 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:24:681:941 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 12:13:24:684:141 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:13:24:685:573 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 12:13:24:687:424 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 12:13:24:688:730 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 12:13:24:690:625 + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-1 12:13:24:783:875 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 12:13:24:786:107 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 12:13:24:787:491 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 12:13:24:789:250 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 12:13:24:790:686 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:13:24:792:629 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 12:13:24:883:344 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 12:13:24:884:485 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 12:13:24:886:877 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 12:13:24:887:859 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/pg/read-uncommitted/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..70317dba --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:18:449:139 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 12:13:18:451:62 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:18:548:810 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 12:13:18:550:626 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:13:18:552:895 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 12:13:18:649:935 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:13:18:652:534 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 12:13:18:654:140 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:13:18:655:23 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/pg/read-uncommitted/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..3efc3297 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:13:18:29:425 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:13:18:31:408 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:13:18:129:675 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 12:13:18:131:932 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:13:18:134:586 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 12:13:18:232:299 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:13:18:233:147 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 12:13:18:234:664 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:13:18:235:608 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:13:18:236:289 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..ac687bcd --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:37:127:607 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:11:37:129:384 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:37:227:679 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:11:37:229:525 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:11:37:230:922 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:11:37:429:129 +Q6 finished at: 2022-4-1 12:11:37:429:220 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:11:37:529:228 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 12:11:37:531:411 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:11:37:532:131 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..14b0e04c --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:37:745:654 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:11:37:747:821 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:37:845:806 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:11:37:847:724 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:11:37:849:183 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:11:37:851:200 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 12:11:37:946:785 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:11:37:948:737 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 12:11:37:950:706 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:11:37:951:480 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..29d8216f --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:38:165:404 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:11:38:167:471 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:38:265:318 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:11:38:267:155 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 12:11:38:366:478 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:11:38:368:901 +Q7 finished at: 2022-4-1 12:11:38:368:916 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 12:11:38:467:4 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:11:38:469:166 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:11:38:469:842 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_read_skew.txt b/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_read_skew.txt new file mode 100644 index 00000000..1e57890e --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:38:683:509 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:11:38:685:555 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:38:784:132 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:11:38:786:68 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:11:38:787:445 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 12:11:38:884:676 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:11:38:989:47 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:11:39:87:875 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:11:39:89:877 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:11:39:90:641 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_read_skew2.txt new file mode 100644 index 00000000..5a1d7beb --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:40:139:197 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:11:40:140:895 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:40:239:145 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:11:40:240:948 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:11:40:242:284 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 12:11:40:340:133 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:11:40:342:287 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 12:11:40:439:518 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:11:40:441:500 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:11:40:442:206 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..1e78d925 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:40:669:679 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:11:40:671:771 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:40:756:106 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:11:40:757:982 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:11:40:759:580 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:11:40:760:378 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 12:11:40:856:844 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:11:40:859:109 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:11:40:860:893 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:11:40:861:604 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..3b0f325e --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:39:304:982 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 12:11:39:306:828 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:39:405:118 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:11:39:407:47 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:11:39:408:649 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:11:39:410:740 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 12:11:39:506:75 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:11:39:506:996 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 12:11:39:508:732 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:11:39:509:410 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..c282028a --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: pg #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:39:720:994 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 12:11:39:723:46 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:39:820:915 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 12:11:39:822:686 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 12:11:39:824:10 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:11:39:825:568 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (1,0) (0,0) + (1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 12:11:39:921:778 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:11:39:922:706 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 12:11:39:924:524 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:11:39:925:235 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..9ce9a473 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_read_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:36:85:701 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:11:36:87:536 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:36:186:30 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:11:36:187:940 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:11:36:189:525 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 12:11:36:286:913 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:11:36:387:537 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:11:36:488:887 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:11:36:491:74 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:11:36:491:859 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..9e9d7d02 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:36:707:197 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:11:36:709:94 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:36:807:179 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:11:36:809:174 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:11:36:810:611 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:11:36:812:616 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 12:11:36:908:111 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:11:36:911:108 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:11:36:913:6 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:11:36:913:713 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/rat_mda_step_rat.txt b/install/test_result/centralizend_result/pg/read-uncommitted/rat_mda_step_rat.txt new file mode 100644 index 00000000..a6bcead2 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: pg #### +#### test_type: mda_step_rat #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:41:79:203 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:11:41:80:993 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:41:179:282 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:11:41:181:55 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:11:41:182:810 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 12:11:41:279:206 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 12:11:41:281:97 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 12:11:41:282:904 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 12:11:41:380:372 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:11:41:382:698 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 12:11:41:480:840 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:11:41:580:679 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 12:11:41:583:360 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:11:41:584:167 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/pg/read-uncommitted/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..fdfe21f0 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: pg #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-1 12:11:41:801:566 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 12:11:41:804:574 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-1 12:11:41:901:585 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 12:11:41:903:610 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:11:42:1:606 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 12:11:42:4:520 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 12:11:42:7:86 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 12:11:42:101:758 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 12:11:42:103:573 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 12:11:42:205:395 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 12:11:42:303:253 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:11:42:403:406 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 12:11:42:505:812 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:11:42:506:942 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 12:11:42:509:838 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 12:11:42:510:852 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/pg/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..c63cf529 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: pg #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:42:729:188 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:11:42:730:850 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:42:829:160 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:11:42:831:69 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 12:11:42:833:267 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 12:11:42:929:144 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 12:11:42:930:862 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 12:11:42:932:925 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 12:11:43:32:911 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:11:43:34:986 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 12:11:43:132:488 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:11:43:230:774 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 12:11:43:232:916 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:11:43:233:790 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/pg/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..36f480aa --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: pg #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:43:446:747 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 12:11:43:448:616 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:43:547:499 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 12:11:43:549:355 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 12:11:43:551:395 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 12:11:43:646:963 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 12:11:43:649:12 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 12:11:43:651:198 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 12:11:43:752:888 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:11:43:754:901 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 12:11:43:848:945 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:11:43:948:568 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 12:11:43:951:370 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:11:43:952:465 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/pg/read-uncommitted/rat_sda_dirty_read.txt new file mode 100644 index 00000000..5270f4dc --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: pg #### +#### test_type: sda_dirty_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 13:3:43:392:354 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 13:3:43:394:79 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 13:3:43:492:302 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 13:3:43:494:302 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 13:3:43:592:563 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 13:3:43:692:689 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 13:3:43:694:331 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 13:3:43:695:70 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/pg/read-uncommitted/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..a3e18830 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_intermediate_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:33:683:668 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:11:33:685:426 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:33:783:648 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 12:11:33:785:482 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 12:11:33:884:805 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:11:33:984:50 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:11:34:85:233 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 12:11:34:86:854 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:11:34:87:481 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/pg/read-uncommitted/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..24463f91 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:34:301:182 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:11:34:302:962 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:34:401:46 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 12:11:34:403:14 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:11:34:403:814 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 12:11:34:502:44 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:11:34:504:137 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 12:11:34:505:813 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:11:34:506:585 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/pg/read-uncommitted/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..19aef99c --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_lost_self_update #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:35:561:888 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:11:35:563:809 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:35:661:814 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 12:11:35:763:871 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 12:11:35:766:31 + Q4 finished at: 2022-4-1 12:11:35:766:54 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:11:35:868:841 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 12:11:35:870:588 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:11:35:871:242 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/pg/read-uncommitted/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..d77b17c7 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:33:64:842 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:11:33:66:715 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:33:165:51 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 12:11:33:167:145 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 12:11:33:268:258 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:11:33:366:483 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:11:33:467:804 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 12:11:33:469:621 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:11:33:470:278 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/pg/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..ea2d1f5b --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:34:725:936 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 12:11:34:727:831 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:34:826:42 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 12:11:34:827:963 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:11:34:829:810 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 12:11:34:927:39 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:11:34:928:132 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 12:11:34:929:855 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:11:34:930:556 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/pg/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..8fe99ad8 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:35:142:316 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 12:11:35:144:77 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:35:242:352 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 12:11:35:244:417 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:11:35:246:337 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 12:11:35:345:606 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:11:35:346:440 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 12:11:35:348:233 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:11:35:349:15 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..dde0ad75 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:47:710:880 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:11:47:712:616 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:47:810:983 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:11:47:813:0 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 12:11:47:911:686 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:11:47:913:695 + Q5 finished at: 2022-4-1 12:11:47:913:762 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:11:47:915:415 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:11:47:917:107 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:11:47:917:941 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..b0c09ebc --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:52:5:345:218 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:52:5:347:204 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:52:5:444:983 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:52:5:447:95 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q5 failed at: 2022-4-1 12:52:7:46:459 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-1 12:52:26:146:514 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..8eadeb1a --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,34 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:52:26:360:482 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:52:26:362:188 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:52:26:460:500 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:52:26:462:351 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q5 failed at: 2022-4-1 12:52:28:61:742 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-1 12:52:47:161:836 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..ff4eaae0 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,34 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:52:47:377:374 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:52:47:379:359 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:52:47:477:445 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:52:47:479:296 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q5 failed at: 2022-4-1 12:52:49:80:735 +Q7 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q7 failed at: 2022-4-1 12:53:8:280:767 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..5f89b953 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:12:32:290:462 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:12:32:292:248 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:12:32:390:493 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:12:32:392:399 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:12:32:393:801 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 12:12:32:592:212 +Q6 finished at: 2022-4-1 12:12:32:592:264 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:12:32:594:162 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:12:32:596:46 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:12:32:596:808 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..dc4965f1 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:12:32:811:213 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:12:32:813:451 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:12:32:911:143 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:12:32:913:224 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:12:32:914:834 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:12:33:112:978 +Q6 finished at: 2022-4-1 12:12:33:112:990 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:12:33:217:90 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:12:33:219:199 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:12:33:220:348 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..9b835878 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:12:33:434:455 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:12:33:436:289 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:12:33:534:425 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:12:33:536:450 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 12:12:33:635:455 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:12:33:637:452 + Q5 finished at: 2022-4-1 12:12:33:637:529 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 12:12:33:735:853 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:12:33:737:752 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:12:33:738:605 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..0b5e43ef --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:12:33:952:48 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:12:33:954:42 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:12:34:52:25 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:12:34:53:816 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 12:12:34:152:762 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:12:34:353:498 + Q5 finished at: 2022-4-1 12:12:34:353:529 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:12:34:355:292 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:12:34:357:196 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:12:34:358:33 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..d464783e --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:12:34:571:705 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:12:34:573:692 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:12:34:671:700 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:12:34:674:140 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 12:12:34:772:551 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:12:34:774:756 + Q5 finished at: 2022-4-1 12:12:34:774:774 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:12:34:776:756 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:12:34:778:535 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:12:34:779:410 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/pg/read-uncommitted/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..c2c98cd4 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:53:8:498:367 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:53:8:500:194 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:53:8:598:250 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:53:8:600:0 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 12:53:8:698:311 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 12:53:8:700:269 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q8 failed at: 2022-4-1 12:53:10:502:160 + Q5 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q5 failed at: 2022-4-1 12:53:29:300:710 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-1 12:53:29:700:693 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/pg/read-uncommitted/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..e23656f3 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/wat_mda_step_wat_c2.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:53:29:918:127 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:53:29:920:168 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:53:30:18:37 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:53:30:20:28 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:53:30:118:19 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 12:53:30:319:36 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q8 failed at: 2022-4-1 12:53:32:120:859 + Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q6 failed at: 2022-4-1 12:53:51:19:508 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-1 12:53:51:319:662 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/pg/read-uncommitted/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..7e461b4d --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: pg #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:44:165:883 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:11:44:167:607 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:44:265:913 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-1 12:11:44:366:216 +Q5 finished at: 2022-4-1 12:11:44:366:257 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:11:44:469:0 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 12:11:44:470:555 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 12:11:44:472:383 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:11:44:474:551 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/pg/read-uncommitted/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..a013b6c7 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: pg #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:44:688:607 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:11:44:690:511 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:44:788:564 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 12:11:44:890:216 + Q4 finished at: 2022-4-1 12:11:44:890:261 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:11:44:989:921 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 12:11:44:991:578 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 12:11:44:993:84 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:11:44:995:368 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/wat_sda_full_write.txt b/install/test_result/centralizend_result/pg/read-uncommitted/wat_sda_full_write.txt new file mode 100644 index 00000000..57f7d3a4 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: pg #### +#### test_type: sda_full_write #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:45:207:615 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:11:45:209:372 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:45:307:593 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 12:11:45:411:158 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 12:11:45:413:4 + Q4 finished at: 2022-4-1 12:11:45:413:94 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:11:45:509:320 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 12:11:45:510:943 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:11:45:511:728 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/pg/read-uncommitted/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..7b5290d7 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: pg #### +#### test_type: sda_full_write_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:45:724:545 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:11:45:726:302 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:45:824:557 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 12:11:45:925:371 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:11:45:927:582 + Q4 finished at: 2022-4-1 12:11:45:927:622 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:11:45:929:240 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 12:11:45:930:807 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:11:45:931:546 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/pg/read-uncommitted/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..722d004e --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:47:290:538 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:11:47:292:364 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:47:390:554 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 12:11:47:491:740 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:11:47:493:620 + Q4 finished at: 2022-4-1 12:11:47:493:671 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:11:47:495:340 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 12:11:47:496:874 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:11:47:497:652 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/pg/read-uncommitted/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..f98b8994 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:46:143:597 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 12:11:46:145:411 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:46:243:654 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 12:11:46:245:469 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 12:11:46:445:221 + Q7 finished at: 2022-4-1 12:11:46:445:276 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 12:11:46:447:86 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 12:11:46:448:844 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:11:46:449:720 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/read-uncommitted/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/pg/read-uncommitted/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..aeb40283 --- /dev/null +++ b/install/test_result/centralizend_result/pg/read-uncommitted/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:11:46:662:248 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 12:11:46:664:21 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:11:46:762:156 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 12:11:46:764:48 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:11:46:964:275 +Q5 finished at: 2022-4-1 12:11:46:964:325 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:11:47:64:45 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 12:11:47:65:717 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:11:47:66:810 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/pg/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..59c8319f --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:17:53:726:787 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:17:53:728:566 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:17:53:826:735 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:17:53:828:416 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:17:53:829:723 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:17:53:831:833 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 12:17:53:929:625 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:17:53:930:562 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:17:53:932:353 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:17:53:933:149 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/pg/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..607cbb26 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:17:54:147:592 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:17:54:149:751 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:17:54:247:524 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:17:54:249:409 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:17:54:250:830 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:17:54:253:63 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q7 failed at: 2022-4-1 12:17:55:48:614 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/iat_dda_write_skew.txt b/install/test_result/centralizend_result/pg/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..ce51c196 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:17:55:264:291 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:17:55:266:212 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:17:55:364:239 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:17:55:366:76 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:17:55:367:507 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 12:17:55:465:127 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:17:55:467:209 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 12:17:55:566:921 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:17:55:568:913 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 12:17:55:569:850 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/pg/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..2489c1c4 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:17:56:634:531 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:17:56:636:535 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:17:56:734:444 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:17:56:736:474 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:17:56:737:811 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:17:56:739:851 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 12:17:56:835:262 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:17:56:838:875 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:17:56:840:742 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:17:56:841:572 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/pg/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..19124eaa --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:17:55:782:319 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 12:17:55:784:368 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 12:17:55:785:705 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 12:17:55:882:819 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 12:17:55:884:840 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 12:17:55:886:178 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:17:55:888:340 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:17:55:983:853 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 12:17:55:985:825 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 12:17:55:987:456 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:17:55:988:242 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/pg/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..14f740af --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:17:56:212:638 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 12:17:56:215:518 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:17:56:312:597 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 12:17:56:315:662 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 12:17:56:317:836 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:17:56:319:972 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 12:17:56:414:805 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:17:56:417:76 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 12:17:56:418:836 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:17:56:419:749 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/iat_mda_step_iat.txt b/install/test_result/centralizend_result/pg/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..dc16636a --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: pg #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:17:57:65:129 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 12:17:57:67:296 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:17:57:165:28 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 12:17:57:167:175 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:17:57:265:90 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 12:17:57:267:209 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 12:17:57:365:970 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 12:17:57:465:901 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 12:17:57:566:75 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:17:57:666:498 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 12:17:57:767:137 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:17:57:866:576 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 12:17:57:868:894 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:17:57:869:755 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/pg/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..9f330781 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:1:366:871 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:18:1:369:38 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:1:466:830 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 12:18:1:468:803 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:18:1:471:323 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 12:18:1:566:908 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 12:18:1:569:373 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 12:18:1:570:855 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:18:1:573:256 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 12:18:1:667:965 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 12:18:1:669:68 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 12:18:1:671:283 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 12:18:1:672:234 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/pg/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..c54d45e2 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:0:642:496 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:18:0:645:485 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:0:742:528 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:18:0:745:592 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:18:0:842:812 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 12:18:0:844:709 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:18:0:847:130 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 12:18:0:943:680 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 12:18:0:945:674 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:18:0:948:270 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 12:18:1:44:573 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:18:1:45:718 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 12:18:1:144:339 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 12:18:1:145:360 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 12:18:1:148:778 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 12:18:1:149:613 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/pg/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..3ebb0376 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:17:58:85:192 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 12:17:58:87:388 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:17:58:185:244 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 12:17:58:187:551 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:17:58:285:202 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 12:17:58:287:245 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 12:17:58:385:853 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 12:17:58:486:30 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 12:17:58:586:144 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:17:58:686:838 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 12:17:58:786:869 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:17:58:887:80 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 12:17:58:889:55 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:17:58:889:919 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/pg/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..ccf57854 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:17:59:100:730 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 12:17:59:103:32 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:17:59:200:722 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 12:17:59:202:842 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:17:59:300:730 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 12:17:59:303:218 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 12:17:59:401:544 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 12:17:59:501:479 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 12:17:59:601:375 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:17:59:702:493 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 12:17:59:802:408 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:17:59:902:382 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 12:17:59:904:629 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:17:59:905:543 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/pg/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..b5ea01cd --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:1:887:243 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 12:18:1:889:419 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 12:18:1:891:207 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 12:18:1:987:277 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 12:18:1:989:655 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 12:18:1:991:604 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:18:1:993:872 + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 12:18:2:87:686 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 12:18:2:89:999 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 12:18:2:91:827 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 12:18:2:92:725 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 12:18:2:192:865 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 12:18:2:196:518 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 12:18:2:198:769 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 12:18:2:199:757 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/pg/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..f749edd2 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:0:121:42 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 12:18:0:123:326 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:0:220:984 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 12:18:0:223:771 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:18:0:225:196 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 12:18:0:226:915 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 12:18:0:228:312 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 12:18:0:230:296 + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-1 12:18:0:321:83 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 12:18:0:323:443 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 12:18:0:325:34 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 12:18:0:327:263 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 12:18:0:328:850 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:18:0:331:556 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 12:18:0:422:416 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 12:18:0:423:520 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 12:18:0:425:951 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 12:18:0:426:940 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/pg/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..6546a8b0 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:17:52:708:397 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 12:17:52:710:337 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:17:52:808:357 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 12:17:52:810:118 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:17:52:812:180 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q6 failed at: 2022-4-1 12:17:53:510:68 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/pg/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..0278209c --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:17:52:282:633 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:17:52:284:384 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:17:52:382:613 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 12:17:52:384:249 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:17:52:386:410 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 12:17:52:483:410 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:17:52:484:270 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 12:17:52:485:734 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:17:52:486:754 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:17:52:487:422 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..c6199cf4 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:45:502:972 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:15:45:504:791 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:45:602:934 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:15:45:604:756 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:15:45:606:272 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:15:45:804:355 +Q6 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q6 failed at: 2022-4-1 12:15:46:404:616 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..44827b1d --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:46:619:789 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:15:46:621:662 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:46:719:888 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:15:46:721:919 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:15:46:723:427 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:15:46:725:363 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q7 failed at: 2022-4-1 12:15:47:524:304 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..aa998264 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:47:738:992 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:15:47:741:29 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:47:838:907 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:15:47:840:657 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 12:15:47:939:919 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:15:47:944:170 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-4-1 12:15:48:444:513 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_read_skew.txt b/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..e99ee2f1 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:48:662:572 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:15:48:664:429 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:48:762:558 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:15:48:764:447 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:15:48:765:761 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 12:15:48:863:670 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:15:48:964:69 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:15:49:62:853 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:15:49:64:816 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:15:49:65:500 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..4242da91 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:50:112:652 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:15:50:114:485 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:50:212:706 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:15:50:214:648 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:15:50:216:120 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 12:15:50:313:518 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:15:50:315:255 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 12:15:50:413:91 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:15:50:415:92 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:15:50:415:798 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..8d8a7c95 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:50:629:833 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:15:50:631:572 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:50:729:841 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:15:50:732:96 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:15:50:733:643 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:15:50:734:471 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 12:15:50:830:766 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:15:50:835:204 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:15:50:837:336 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:15:50:838:84 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..b8a97057 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:49:279:222 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 12:15:49:280:964 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:49:379:550 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:15:49:381:644 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:15:49:383:121 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:15:49:385:302 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 12:15:49:480:251 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:15:49:481:44 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 12:15:49:482:658 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:15:49:483:338 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..4b7fc5d4 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:49:694:406 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 12:15:49:696:305 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:49:794:413 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 12:15:49:796:266 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 12:15:49:797:572 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:15:49:799:434 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 12:15:49:895:384 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:15:49:896:317 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 12:15:49:898:28 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:15:49:898:709 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..3978abe8 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:44:463:852 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:15:44:465:766 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:44:563:893 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:15:44:565:836 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:15:44:567:666 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 12:15:44:665:220 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:15:44:765:875 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:15:44:865:237 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:15:44:867:354 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:15:44:868:67 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..7dcab273 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:45:81:709 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:15:45:83:440 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:45:181:653 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:15:45:183:411 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:15:45:184:822 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:15:45:186:752 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 12:15:45:282:655 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:15:45:284:725 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:15:45:286:590 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:15:45:287:303 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/rat_mda_step_rat.txt b/install/test_result/centralizend_result/pg/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..bbe0e148 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: pg #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:51:54:73 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:15:51:55:855 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:51:154:124 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:15:51:155:932 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:15:51:157:798 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 12:15:51:254:95 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 12:15:51:255:945 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 12:15:51:257:800 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 12:15:51:355:626 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:15:51:357:595 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 12:15:51:457:314 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:15:51:555:689 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 12:15:51:558:403 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:15:51:559:105 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/pg/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..90090ad0 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: pg #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-1 12:15:51:772:701 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 12:15:51:775:929 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-1 12:15:51:875:762 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 12:15:51:878:28 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:15:51:972:825 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 12:15:51:976:134 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 12:15:51:978:743 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 12:15:52:72:924 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 12:15:52:74:717 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 12:15:52:174:894 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 12:15:52:274:192 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:15:52:374:464 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 12:15:52:473:257 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:15:52:474:475 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 12:15:52:476:999 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 12:15:52:477:905 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/pg/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..c0139d5d --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: pg #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:52:694:967 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:15:52:696:662 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:52:794:920 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:15:52:796:761 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 12:15:52:798:790 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 12:15:52:894:927 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 12:15:52:896:680 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 12:15:52:898:876 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 12:15:52:996:469 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:15:52:999:908 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 12:15:53:96:543 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:15:53:196:636 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 12:15:53:198:578 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:15:53:199:458 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/pg/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..297f2af5 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: pg #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:53:410:930 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 12:15:53:412:642 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:53:511:78 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 12:15:53:512:909 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 12:15:53:515:58 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 12:15:53:610:951 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 12:15:53:612:751 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 12:15:53:614:665 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 12:15:53:712:679 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:15:53:714:893 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 12:15:53:812:700 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:15:53:912:467 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 12:15:53:914:817 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:15:53:915:653 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/pg/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..179e61b6 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: pg #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 13:3:44:536:325 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 13:3:44:538:75 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 13:3:44:636:309 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 13:3:44:638:282 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 13:3:44:736:632 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 13:3:44:836:707 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 13:3:44:838:449 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 13:3:44:839:183 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/pg/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..088cffae --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:41:776:895 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:15:41:778:606 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:41:876:697 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 12:15:41:878:827 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 12:15:41:977:560 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:15:42:77:77 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:15:42:178:128 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 12:15:42:180:107 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:15:42:180:883 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/pg/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..fb07dea7 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:42:394:92 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:15:42:395:933 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:42:494:92 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 12:15:42:496:65 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:15:42:496:870 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 12:15:42:596:356 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:15:42:598:273 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 12:15:42:600:109 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:15:42:600:896 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/pg/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..6011588f --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:43:645:454 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:15:43:647:213 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:43:745:507 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 12:15:43:846:458 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 12:15:43:848:450 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-4-1 12:15:44:248:807 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/pg/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..7983b0ec --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:41:158:876 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:15:41:160:636 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:41:258:813 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 12:15:41:260:488 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 12:15:41:359:768 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:15:41:463:570 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:15:41:559:318 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 12:15:41:561:72 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:15:41:561:994 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/pg/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..e72ce827 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:42:813:447 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 12:15:42:815:274 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:42:913:481 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 12:15:42:915:737 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:15:42:917:740 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 12:15:43:14:765 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:15:43:15:637 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 12:15:43:17:236 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:15:43:18:29 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/pg/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..0c0bc443 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:43:229:385 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 12:15:43:231:178 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:43:329:416 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 12:15:43:331:309 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:15:43:333:251 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 12:15:43:430:398 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:15:43:431:340 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 12:15:43:432:852 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:15:43:433:545 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..851bff66 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:59:968:10 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:15:59:969:932 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:16:0:67:927 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:16:0:69:724 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 12:16:0:168:801 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:16:0:170:850 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-4-1 12:16:0:671:124 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..39a12099 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:55:37:859:67 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:55:37:860:901 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:55:37:958:968 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:55:37:960:861 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q5 failed at: 2022-4-1 12:55:39:560:236 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-1 12:55:58:660:389 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..c392e625 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,34 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:55:58:875:83 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:55:58:876:921 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:55:58:975:92 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:55:58:976:778 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q5 failed at: 2022-4-1 12:56:0:576:289 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-1 12:56:19:676:454 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..c6f63bf4 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,34 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:56:19:892:394 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:56:19:894:354 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:56:19:992:307 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:56:19:994:431 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q5 failed at: 2022-4-1 12:56:21:594:661 +Q7 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q7 failed at: 2022-4-1 12:56:40:794:692 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..d1c06f02 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:17:4:43:547 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:17:4:45:525 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:17:4:143:620 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:17:4:145:653 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:17:4:147:225 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 12:17:4:345:46 +Q6 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q6 failed at: 2022-4-1 12:17:4:945:635 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..b951e23e --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:17:5:160:578 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:17:5:162:389 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:17:5:260:550 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:17:5:262:666 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:17:5:263:996 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:17:5:462:273 +Q6 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q6 failed at: 2022-4-1 12:17:6:62:476 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..1152c0f5 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:17:6:281:827 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:17:6:283:967 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:17:6:382:79 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:17:6:384:254 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 12:17:6:483:101 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:17:6:486:43 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-4-1 12:17:6:986:311 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..1eb4715b --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:17:7:203:614 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:17:7:205:440 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:17:7:303:524 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:17:7:305:364 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 12:17:7:404:475 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:17:7:604:981 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-4-1 12:17:8:105:247 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..983a9f39 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:17:8:324:754 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:17:8:326:586 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:17:8:427:506 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:17:8:429:346 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 12:17:8:525:690 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:17:8:527:967 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-4-1 12:17:9:28:254 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/pg/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..c4241d60 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:56:41:11:774 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:56:41:13:612 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:56:41:111:817 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:56:41:113:663 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 12:56:41:211:924 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 12:56:41:214:80 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q8 failed at: 2022-4-1 12:56:43:16:166 + Q5 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q5 failed at: 2022-4-1 12:57:1:813:169 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-1 12:57:2:213:183 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/pg/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..f8b76bf6 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:57:2:431:645 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:57:2:433:507 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:57:2:531:722 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:57:2:533:501 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:57:2:631:779 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 12:57:2:832:895 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q8 failed at: 2022-4-1 12:57:4:634:754 + Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q6 failed at: 2022-4-1 12:57:23:536:668 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-1 12:57:23:836:689 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/pg/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..7eea8458 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: pg #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:54:128:836 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:15:54:130:894 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:54:228:564 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-1 12:15:54:329:217 +Q5 finished at: 2022-4-1 12:15:54:329:213 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:15:54:433:106 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 12:15:54:434:884 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 12:15:54:436:955 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:15:54:439:132 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/pg/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..fc35eb99 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,30 @@ +#### db_type: pg #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:54:652:168 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:15:54:653:994 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:54:755:634 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 12:15:54:856:810 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-4-1 12:15:55:257:377 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/wat_sda_full_write.txt b/install/test_result/centralizend_result/pg/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..1d06ff56 --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,32 @@ +#### db_type: pg #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:55:472:711 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:15:55:474:704 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:55:572:705 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 12:15:55:673:518 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 12:15:55:675:756 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-4-1 12:15:56:76:100 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/pg/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..3fa7c30e --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,32 @@ +#### db_type: pg #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:56:293:648 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:15:56:295:780 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:56:393:594 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 12:15:56:494:409 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:15:56:496:699 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-4-1 12:15:56:896:921 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/pg/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..47759c5a --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:59:147:961 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:15:59:149:705 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:59:247:951 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 12:15:59:348:888 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:15:59:350:881 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-4-1 12:15:59:751:156 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/pg/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..a94a0ecc --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:57:110:833 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 12:15:57:113:61 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:57:211:555 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 12:15:57:213:575 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:15:57:413:259 +Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q5 failed at: 2022-4-1 12:15:57:913:583 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/repeatable-read/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/pg/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..0d1f5f7d --- /dev/null +++ b/install/test_result/centralizend_result/pg/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:15:58:130:714 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 12:15:58:132:564 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:15:58:230:741 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 12:15:58:232:529 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:15:58:432:245 +Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q5 failed at: 2022-4-1 12:15:58:932:533 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/result_summary/read-committed_total-result.txt b/install/test_result/centralizend_result/pg/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..38745346 --- /dev/null +++ b/install/test_result/centralizend_result/pg/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/pg/result_summary/read-uncommitted_total-result.txt b/install/test_result/centralizend_result/pg/result_summary/read-uncommitted_total-result.txt new file mode 100644 index 00000000..38745346 --- /dev/null +++ b/install/test_result/centralizend_result/pg/result_summary/read-uncommitted_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/pg/result_summary/repeatable-read_total-result.txt b/install/test_result/centralizend_result/pg/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..45e2cffc --- /dev/null +++ b/install/test_result/centralizend_result/pg/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/pg/result_summary/serializable_total-result.txt b/install/test_result/centralizend_result/pg/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..4ce755ba --- /dev/null +++ b/install/test_result/centralizend_result/pg/result_summary/serializable_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Rollback + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Rollback + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_predicate_based-intersecting_data: Rollback + +iat_dda_write_skew_predicate_based-overdraft_protection: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +iat_mda_step_iat_predicate_based_delete: Rollback + +iat_mda_step_iat_predicate_based_insert: Rollback + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Rollback + diff --git a/install/test_result/centralizend_result/pg/serializable/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/pg/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..e907fb35 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:19:42:255:370 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:19:42:257:217 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:19:42:355:359 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:19:42:357:161 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:19:42:358:422 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:19:42:360:525 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 12:19:42:456:305 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:19:42:457:339 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:19:42:459:359 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:19:42:460:338 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/serializable/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/pg/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..dd6d0f59 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:19:42:673:950 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:19:42:675:838 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:19:42:774:35 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:19:42:775:746 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:19:42:777:57 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:19:42:779:145 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q7 failed at: 2022-4-1 12:19:43:576:976 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/serializable/iat_dda_write_skew.txt b/install/test_result/centralizend_result/pg/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..e6bcced0 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/iat_dda_write_skew.txt @@ -0,0 +1,51 @@ +#### db_type: pg #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:19:43:792:864 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:19:43:794:880 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:19:43:892:846 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:19:43:894:686 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:19:43:896:60 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 12:19:43:993:705 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:19:43:995:870 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions errcode: 40001 + Q8 failed at: 2022-4-1 12:19:44:893:395 + +Test Result: Rollback +ERROR: could not serialize access due to read/write dependencies among transactions + diff --git a/install/test_result/centralizend_result/pg/serializable/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/pg/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..a3a4d1fb --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,49 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:19:47:447:347 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:19:47:449:231 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:19:47:547:312 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:19:47:549:56 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:19:47:550:322 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:19:47:552:306 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions; errcode: 40001 +Q7 failed at: 2022-4-1 12:19:48:348:527 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to read/write dependencies among transactions; + diff --git a/install/test_result/centralizend_result/pg/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/pg/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..c13f6216 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:19:45:106:110 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 12:19:45:108:508 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 12:19:45:109:954 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 12:19:45:206:112 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 12:19:45:208:319 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 12:19:45:209:715 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:19:45:211:685 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions errcode: 40001 +Q8 failed at: 2022-4-1 12:19:46:106:465 + +Test Result: Rollback +ERROR: could not serialize access due to read/write dependencies among transactions + diff --git a/install/test_result/centralizend_result/pg/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/pg/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..81e32681 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,49 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:19:46:328:845 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 12:19:46:331:767 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:19:46:428:774 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 12:19:46:431:529 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 12:19:46:433:712 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:19:46:435:592 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions; errcode: 40001 +Q7 failed at: 2022-4-1 12:19:47:230:914 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to read/write dependencies among transactions; + diff --git a/install/test_result/centralizend_result/pg/serializable/iat_mda_step_iat.txt b/install/test_result/centralizend_result/pg/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..b61a3fa8 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/iat_mda_step_iat.txt @@ -0,0 +1,91 @@ +#### db_type: pg #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:19:48:565:498 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 12:19:48:568:11 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:19:48:665:469 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 12:19:48:667:741 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:19:48:765:475 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 12:19:48:767:738 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 12:19:48:866:944 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 12:19:48:966:727 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 12:19:49:68:919 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:19:49:166:942 + Q11-T2 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:19:49:367:765 + Q11 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions errcode: 40001 + Q11 failed at: 2022-4-1 12:19:50:366:27 + +Test Result: Rollback +ERROR: could not serialize access due to read/write dependencies among transactions + diff --git a/install/test_result/centralizend_result/pg/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/pg/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..d97c6b28 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:19:56:64:829 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:19:56:67:38 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:19:56:165:592 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 12:19:56:167:468 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:19:56:170:176 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 12:19:56:264:982 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 12:19:56:267:460 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 12:19:56:269:48 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:19:56:271:275 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 12:19:56:368:859 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 12:19:56:370:198 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 12:19:56:372:615 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 12:19:56:373:550 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/serializable/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/pg/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..a3f2fe0b --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:19:55:337:133 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:19:55:344:108 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:19:55:438:51 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:19:55:441:397 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:19:55:537:248 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 12:19:55:539:937 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:19:55:543:367 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 12:19:55:638:107 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 12:19:55:640:468 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:19:55:643:87 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 12:19:55:741:952 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:19:55:743:121 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 12:19:55:842:251 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 12:19:55:843:603 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 12:19:55:847:606 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 12:19:55:848:483 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/serializable/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/pg/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..4b4ddf7b --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,91 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:19:50:581:675 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 12:19:50:584:115 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:19:50:681:686 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 12:19:50:683:888 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:19:50:787:605 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 12:19:50:789:859 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 12:19:50:882:485 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 12:19:50:982:639 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 12:19:51:85:338 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:19:51:183:467 + Q11-T2 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:19:51:383:443 + Q11 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions errcode: 40001 + Q11 failed at: 2022-4-1 12:19:52:382:536 + +Test Result: Rollback +ERROR: could not serialize access due to read/write dependencies among transactions + diff --git a/install/test_result/centralizend_result/pg/serializable/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/pg/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..338223ae --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,89 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:19:52:594:378 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 12:19:52:596:658 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:19:52:694:325 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 12:19:52:696:426 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:19:52:794:387 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 12:19:52:796:524 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 12:19:52:895:328 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 12:19:52:996:319 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 12:19:53:95:303 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:19:53:196:228 + Q11-T2 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; + Q11 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions errcode: 40001 + Q11 failed at: 2022-4-1 12:19:54:394:961 + Q12 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions errcode: 40001 + Q12 failed at: 2022-4-1 12:19:54:595:410 + +Test Result: Rollback +ERROR: could not serialize access due to read/write dependencies among transactions + diff --git a/install/test_result/centralizend_result/pg/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/pg/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..1859a146 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,120 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:19:56:590:83 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 12:19:56:592:434 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 12:19:56:594:199 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 12:19:56:690:0 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 12:19:56:692:379 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 12:19:56:693:863 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:19:56:696:302 + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 12:19:56:790:89 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 12:19:56:792:498 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 12:19:56:794:368 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 12:19:56:795:298 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions; errcode: 40001 +Q12 failed at: 2022-4-1 12:19:58:92:536 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to read/write dependencies among transactions; + diff --git a/install/test_result/centralizend_result/pg/serializable/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/pg/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..26627ee1 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: pg #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:19:54:814:159 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 12:19:54:816:573 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:19:54:915:757 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 12:19:54:918:245 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:19:54:919:965 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 12:19:54:921:773 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 12:19:54:923:462 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 12:19:54:925:701 + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-1 12:19:55:14:886 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 12:19:55:18:941 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 12:19:55:20:670 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 12:19:55:22:731 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 12:19:55:24:250 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:19:55:26:245 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 12:19:55:116:576 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 12:19:55:117:618 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 12:19:55:120:85 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 12:19:55:121:22 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/serializable/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/pg/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..dc7e895f --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:19:41:237:914 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 12:19:41:239:725 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:19:41:337:484 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 12:19:41:339:386 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:19:41:341:160 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q6 failed at: 2022-4-1 12:19:42:39:534 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/serializable/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/pg/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..bc9a59d5 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:19:40:811:445 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:19:40:813:466 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:19:40:911:520 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 12:19:40:913:555 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:19:40:915:855 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 12:19:41:12:429 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:19:41:13:414 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 12:19:41:15:829 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:19:41:16:881 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:19:41:17:855 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/serializable/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/pg/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..e1aac0ed --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:9:35:589 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:18:9:37:507 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:9:135:551 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:18:9:137:546 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:18:9:139:125 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:18:9:337:264 +Q6 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q6 failed at: 2022-4-1 12:18:9:937:613 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/serializable/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/pg/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..abe70179 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:10:154:65 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:18:10:155:984 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:10:253:878 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:18:10:255:716 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:18:10:257:227 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:18:10:259:89 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions; errcode: 40001 +Q7 failed at: 2022-4-1 12:18:11:55:100 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to read/write dependencies among transactions; + diff --git a/install/test_result/centralizend_result/pg/serializable/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/pg/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..0b524ea3 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:11:272:556 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:18:11:274:789 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:11:372:260 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:18:11:374:267 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 12:18:11:473:347 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:18:11:475:628 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-4-1 12:18:11:975:992 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/serializable/rat_dda_read_skew.txt b/install/test_result/centralizend_result/pg/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..3f0a89d3 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:12:192:188 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:18:12:194:398 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:12:295:536 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:18:12:297:286 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:18:12:298:592 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 12:18:12:392:734 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:18:12:497:229 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:18:12:592:240 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:18:12:594:361 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:18:12:595:88 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/serializable/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/pg/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..164c947f --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:13:649:454 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:18:13:651:140 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:13:749:543 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:18:13:751:509 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:18:13:753:138 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 12:18:13:850:300 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:18:13:852:244 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 12:18:13:949:756 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:18:13:951:798 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:18:13:952:560 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/serializable/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/pg/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..adb75a8c --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:14:167:354 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:18:14:169:194 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:14:267:308 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:18:14:269:207 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:18:14:270:614 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:18:14:271:381 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 12:18:14:368:120 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:18:14:370:45 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 12:18:14:371:951 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:18:14:372:687 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/serializable/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/pg/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..a8b5f42c --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:12:808:849 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 12:18:12:810:762 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:12:908:897 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:18:12:910:575 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:18:12:911:874 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:18:12:913:689 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 12:18:13:9:898 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:18:13:10:721 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 12:18:13:12:376 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:18:13:13:86 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/serializable/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/pg/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..d310e138 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:13:225:426 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 12:18:13:227:413 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:13:325:497 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 12:18:13:327:433 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 12:18:13:328:677 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:18:13:330:725 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 12:18:13:428:748 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:18:13:430:23 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 12:18:13:432:390 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 12:18:13:433:220 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/serializable/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/pg/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..aa4bede4 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,51 @@ +#### db_type: pg #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:6:501:356 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:18:6:503:53 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:6:601:347 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:18:6:603:166 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:18:6:604:500 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 12:18:6:702:312 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:18:6:802:775 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions errcode: 40001 +Q8 failed at: 2022-4-1 12:18:7:701:797 + +Test Result: Rollback +ERROR: could not serialize access due to read/write dependencies among transactions + diff --git a/install/test_result/centralizend_result/pg/serializable/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/pg/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..76ee9dd9 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:7:916:260 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:18:7:918:244 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:8:16:243 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:18:8:18:548 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:18:8:20:34 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:18:8:21:767 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions; errcode: 40001 +Q7 failed at: 2022-4-1 12:18:8:817:371 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to read/write dependencies among transactions; + diff --git a/install/test_result/centralizend_result/pg/serializable/rat_mda_step_rat.txt b/install/test_result/centralizend_result/pg/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..ab8c38a8 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/rat_mda_step_rat.txt @@ -0,0 +1,91 @@ +#### db_type: pg #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:14:588:520 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:18:14:590:366 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:14:688:451 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:18:14:690:303 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 12:18:14:692:159 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 12:18:14:791:471 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 12:18:14:793:409 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 12:18:14:795:66 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 12:18:14:890:143 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:18:14:892:360 + Q11-T2 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:18:15:90:427 + Q11 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions errcode: 40001 + Q11 failed at: 2022-4-1 12:18:16:89:424 + +Test Result: Rollback +ERROR: could not serialize access due to read/write dependencies among transactions + diff --git a/install/test_result/centralizend_result/pg/serializable/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/pg/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..33cbedcc --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: pg #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-1 12:18:16:306:608 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 12:18:16:309:793 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-1 12:18:16:409:244 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 12:18:16:411:323 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:18:16:506:540 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 12:18:16:509:455 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 12:18:16:512:26 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 12:18:16:606:595 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 12:18:16:608:428 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 12:18:16:709:857 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 12:18:16:808:248 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:18:16:908:256 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 12:18:17:7:156 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 12:18:17:8:384 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 12:18:17:11:167 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 12:18:17:12:30 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/serializable/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/pg/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..569de27c --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,91 @@ +#### db_type: pg #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:17:228:73 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:18:17:230:43 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:17:328:69 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:18:17:330:494 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 12:18:17:333:242 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 12:18:17:428:119 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 12:18:17:429:988 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 12:18:17:432:49 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 12:18:17:529:808 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:18:17:531:999 + Q11-T2 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:18:17:729:563 + Q11 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions errcode: 40001 + Q11 failed at: 2022-4-1 12:18:18:728:807 + +Test Result: Rollback +ERROR: could not serialize access due to read/write dependencies among transactions + diff --git a/install/test_result/centralizend_result/pg/serializable/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/pg/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..b102cd0b --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,88 @@ +#### db_type: pg #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:18:941:403 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 12:18:18:943:211 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:19:42:20 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 12:18:19:44:244 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 12:18:19:46:368 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 12:18:19:141:575 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 12:18:19:143:463 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 12:18:19:145:726 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 12:18:19:242:844 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 12:18:19:244:901 + Q11-T2 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 12:18:19:443:75 + Q11 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions errcode: 40001 + Q11 failed at: 2022-4-1 12:18:20:441:907 + +Test Result: Rollback +ERROR: could not serialize access due to read/write dependencies among transactions + diff --git a/install/test_result/centralizend_result/pg/serializable/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/pg/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..b6cf8f52 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: pg #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 13:3:45:104:502 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 13:3:45:106:498 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 13:3:45:204:607 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 13:3:45:207:41 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 13:3:45:304:858 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 13:3:45:404:961 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 13:3:45:406:637 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 13:3:45:407:336 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/serializable/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/pg/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..cfcee4de --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:3:799:768 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:18:3:801:688 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:3:899:615 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 12:18:3:901:920 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 12:18:4:0:589 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:18:4:99:955 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:18:4:201:92 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 12:18:4:202:765 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:18:4:203:398 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/serializable/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/pg/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..748f79f4 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:4:416:255 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:18:4:418:204 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:4:516:223 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 12:18:4:518:334 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:18:4:519:88 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 12:18:4:617:198 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:18:4:619:100 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 12:18:4:620:860 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:18:4:621:549 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/serializable/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/pg/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..9cfff7e6 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:5:669:28 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:18:5:670:979 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:5:768:830 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 12:18:5:870:282 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 12:18:5:872:480 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-4-1 12:18:6:272:859 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/serializable/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/pg/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..b98214ae --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:3:183:195 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:18:3:185:482 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:3:282:451 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 12:18:3:284:496 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 12:18:3:383:206 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:18:3:485:12 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:18:3:583:89 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 12:18:3:585:268 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:18:3:586:152 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/pg/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..33de4c21 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:4:834:777 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 12:18:4:836:838 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:4:934:829 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 12:18:4:936:893 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:18:4:938:949 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 12:18:5:35:863 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:18:5:36:899 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 12:18:5:39:127 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:18:5:39:820 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/pg/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..b980154e --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:5:252:587 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 12:18:5:254:456 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:5:352:647 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 12:18:5:354:753 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 12:18:5:356:672 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 12:18:5:453:483 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:18:5:454:387 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 12:18:5:456:21 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:18:5:456:638 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/serializable/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/pg/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..ea5e1c4b --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:26:495:625 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:18:26:497:565 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:26:595:559 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 12:18:26:597:501 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 12:18:26:696:544 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:18:26:698:639 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-4-1 12:18:27:198:974 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/serializable/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/pg/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..83799da8 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:57:24:114:715 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:57:24:116:500 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:57:24:214:548 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:57:24:216:502 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q5 failed at: 2022-4-1 12:57:25:820:668 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-1 12:57:44:920:568 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/install/test_result/centralizend_result/pg/serializable/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/pg/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..624563a8 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,34 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:57:45:134:956 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:57:45:136:766 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:57:45:235:116 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:57:45:237:168 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q5 failed at: 2022-4-1 12:57:46:836:208 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-1 12:58:5:936:430 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/install/test_result/centralizend_result/pg/serializable/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/pg/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..07db5dc3 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,34 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:58:6:150:297 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:58:6:152:25 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:58:6:250:345 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:58:6:252:140 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q5 failed at: 2022-4-1 12:58:7:851:746 +Q7 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q7 failed at: 2022-4-1 12:58:27:51:773 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/install/test_result/centralizend_result/pg/serializable/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/pg/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..cb9644f6 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:52:579:381 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:18:52:581:524 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:52:679:335 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:18:52:681:365 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:18:52:682:862 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 12:18:52:881:91 +Q6 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q6 failed at: 2022-4-1 12:18:53:481:668 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/serializable/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/pg/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..b81af9f7 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:53:696:341 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 12:18:53:698:253 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:53:796:329 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:18:53:798:158 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 12:18:53:799:472 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:18:53:997:820 +Q6 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q6 failed at: 2022-4-1 12:18:54:598:97 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/serializable/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/pg/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..1b3de099 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:54:814:157 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:18:54:816:36 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:54:914:178 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:18:54:916:251 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 12:18:55:15:78 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:18:55:17:223 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-4-1 12:18:55:517:497 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/serializable/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/pg/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..81859971 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:55:735:988 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:18:55:737:756 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:55:835:988 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:18:55:837:880 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 12:18:55:940:477 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:18:56:137:595 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-4-1 12:18:56:638:102 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/serializable/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/pg/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..c9cb0b5a --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:56:853:14 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:18:56:854:855 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:56:952:920 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 12:18:56:954:754 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 12:18:57:53:830 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 12:18:57:59:747 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-4-1 12:18:57:560:24 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/serializable/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/pg/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..ad52d9ac --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:58:27:274:890 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:58:27:277:17 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:58:27:371:941 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:58:27:373:948 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 12:58:27:471:960 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 12:58:27:474:121 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q8 failed at: 2022-4-1 12:58:29:276:14 + Q5 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q5 failed at: 2022-4-1 12:58:48:73:265 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-1 12:58:48:473:207 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/install/test_result/centralizend_result/pg/serializable/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/pg/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..fab18761 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:58:48:689:954 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:58:48:691:849 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:58:48:789:791 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 12:58:48:791:675 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 12:58:48:889:780 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 12:58:49:90:900 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q8 failed at: 2022-4-1 12:58:50:892:628 + Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q6 failed at: 2022-4-1 12:59:9:791:304 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-1 12:59:10:91:493 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/install/test_result/centralizend_result/pg/serializable/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/pg/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..b9ff8db4 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: pg #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:20:656:745 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:18:20:658:957 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:20:756:840 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 12:18:20:859:907 + Q4 finished at: 2022-4-1 12:18:20:860:270 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:18:20:957:962 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 12:18:20:959:677 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 12:18:20:961:551 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 12:18:20:963:620 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/pg/serializable/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/pg/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..6cce67d6 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,30 @@ +#### db_type: pg #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:21:178:854 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:18:21:180:759 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:21:278:762 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 12:18:21:383:574 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-4-1 12:18:21:783:892 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/serializable/wat_sda_full_write.txt b/install/test_result/centralizend_result/pg/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..f1fa0e1e --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/wat_sda_full_write.txt @@ -0,0 +1,32 @@ +#### db_type: pg #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:22:1:497 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:18:22:3:331 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:22:101:415 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 12:18:22:202:313 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 12:18:22:204:411 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-4-1 12:18:22:604:681 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/serializable/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/pg/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..f9952420 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,32 @@ +#### db_type: pg #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:22:819:230 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:18:22:820:975 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:22:919:308 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 12:18:23:20:184 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:18:23:22:121 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-4-1 12:18:23:422:482 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/serializable/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/pg/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..7e7f4871 --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:25:676:447 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 12:18:25:678:209 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:25:776:483 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 12:18:25:877:369 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 12:18:25:879:329 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-4-1 12:18:26:279:617 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/serializable/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/pg/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..c845f7ae --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:23:640:864 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 12:18:23:642:988 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:23:741:78 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 12:18:23:743:296 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 12:18:23:942:892 +Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q5 failed at: 2022-4-1 12:18:24:443:168 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/pg/serializable/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/pg/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..16afd40d --- /dev/null +++ b/install/test_result/centralizend_result/pg/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 12:18:24:658:773 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 12:18:24:660:538 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 12:18:24:758:794 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 12:18:24:760:658 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 12:18:24:961:172 +Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q5 failed at: 2022-4-1 12:18:25:461:397 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..dcd30011 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:20:676:897 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:20:719:478 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:20:776:931 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:14:20:816:700 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:14:20:855:348 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:14:20:900:937 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 15:14:20:918:15 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:14:20:959:369 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:20:997:712 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:21:34:624 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..acae42c8 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:21:463:643 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:21:506:299 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:21:563:401 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:14:21:603:475 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:14:21:642:115 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:14:21:688:259 +Q7 finished at: 2022-4-2 15:14:21:704:283 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:14:21:753:956 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:21:792:212 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:21:829:19 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_dda_write_skew.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_dda_write_skew.txt new file mode 100644 index 00000000..0265ff07 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:22:247:950 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:22:290:656 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:22:348:4 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:14:22:386:854 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:14:22:426:529 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:14:22:489:141 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:14:22:539:412 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:14:22:596:573 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:22:635:32 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:14:22:671:794 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..bbff1fa4 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:24:835:511 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:24:878:231 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:24:935:614 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:14:24:974:522 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:14:25:14:645 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:14:25:62:465 +Q7 finished at: 2022-4-2 15:14:25:76:630 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:14:25:128:28 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:25:166:392 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:25:203:309 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..1d14cba4 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:23:179:382 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 15:14:23:232:180 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 15:14:23:273:860 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 15:14:23:279:117 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute opt: 'COMMIT'; + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 15:14:23:425:396 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' +Q8 finished at: 2022-4-2 15:14:23:427:903 + Q6 finished at: 2022-4-2 15:14:23:464:109 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:14:23:510:227 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 15:14:23:548:318 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 15:14:23:585:877 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:14:23:622:816 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..d6bc77f6 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:24:46:73 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 15:14:24:102:464 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:24:146:26 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 15:14:24:185:143 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 15:14:24:225:721 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q6 finished at: 2022-4-2 15:14:24:271:758 +Q7 finished at: 2022-4-2 15:14:24:287:880 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:14:24:340:621 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 15:14:24:378:867 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:24:415:671 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_mda_step_iat.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_mda_step_iat.txt new file mode 100644 index 00000000..779ada60 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:25:665:548 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 15:14:25:708:431 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:25:765:824 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:14:25:805:451 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:14:25:865:579 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 15:14:25:903:475 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 15:14:26:7:711 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 15:14:26:105:636 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 15:14:26:202:261 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:14:26:323:465 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:14:26:411:980 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:14:26:507:832 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 15:14:26:552:766 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:14:26:595:775 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..c86062f1 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:31:741:622 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:31:784:598 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:31:841:606 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:14:31:881:296 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:14:31:934:613 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:14:31:941:875 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 15:14:31:980:2 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 15:14:32:17:351 + Q9-T3 execute opt: 'COMMIT'; +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9 finished at: 2022-4-2 15:14:32:62:607 + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 15:14:32:83:61 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 15:14:32:124:572 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 15:14:32:169:570 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 15:14:32:212:970 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..bab073cd --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:30:692:265 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:30:736:238 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:30:794:947 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:14:30:835:8 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:14:30:892:278 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 15:14:30:930:849 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:14:30:978:894 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 15:14:30:994:708 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 15:14:31:38:519 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:31:92:122 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 15:14:31:134:810 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:14:31:173:97 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 15:14:31:234:264 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 15:14:31:275:817 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 15:14:31:315:561 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 15:14:31:316:482 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..0fc1b1df --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:27:62:270 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 15:14:27:106:355 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:27:162:132 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:14:27:201:35 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:14:27:262:241 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 15:14:27:299:900 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 15:14:27:403:909 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 15:14:27:500:306 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 15:14:27:600:223 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:14:27:708:813 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:14:27:814:468 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:14:27:903:556 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 15:14:27:948:259 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:14:27:991:300 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..d3ab8570 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:28:330:5 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 15:14:28:373:188 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:28:430:112 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 15:14:28:469:566 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:14:28:529:763 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 15:14:28:567:667 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 15:14:28:671:471 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 15:14:28:767:860 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 15:14:28:868:673 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:14:28:978:959 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:14:29:77:949 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:14:29:183:83 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 15:14:29:228:36 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:14:29:271:114 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..9bbb5f83 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:32:636:132 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 15:14:32:679:196 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 15:14:32:721:395 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 15:14:32:735:702 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 15:14:32:774:817 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 15:14:32:814:561 + Q7-T2 execute opt: 'COMMIT'; + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 15:14:32:838:262 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q7 finished at: 2022-4-2 15:14:32:868:59 + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 15:14:32:875:879 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 15:14:32:913:629 + Q11-T3 execute opt: 'COMMIT'; +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q11 finished at: 2022-4-2 15:14:32:950:595 +Q12 finished at: 2022-4-2 15:14:32:977:405 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 15:14:33:33:254 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 15:14:33:71:964 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 15:14:33:108:941 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..fb853aa3 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:29:736:404 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 15:14:29:779:714 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:29:836:302 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 15:14:29:875:813 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:14:29:915:950 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 15:14:29:936:184 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 15:14:29:955:118 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 15:14:29:974:7 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 15:14:29:993:824 + Q8-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:14:30:11:407 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + Q8 finished at: 2022-4-2 15:14:30:50:278 + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 15:14:30:52:411 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 15:14:30:89:696 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:14:30:136:621 + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 15:14:30:138:414 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 15:14:30:179:865 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 15:14:30:225:61 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-2 15:14:30:268:285 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..c378cb0f --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:19:887:367 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 15:14:19:929:929 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:19:987:714 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 15:14:20:27:630 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:14:20:74:554 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 15:14:20:128:455 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:14:20:183:85 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:14:20:221:24 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:14:20:257:786 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..48764b43 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:19:144:782 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:19:187:589 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:19:244:762 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:14:19:284:606 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:14:19:332:225 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 15:14:19:388:484 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:14:19:429:755 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:14:19:467:933 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:14:19:504:823 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:19:505:875 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..e09e1e11 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:23:972:968 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:24:15:900 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:24:72:426 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:24:111:107 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:13:25:310:48 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:13:25:358:783 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 15:13:25:912:665 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..196289b5 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:26:375:904 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:26:419:339 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:26:475:294 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:26:514:209 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:13:27:185:826 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:27:232:178 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 15:13:27:888:55 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..2558f82d --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_double_write_skew2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:28:349:944 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:28:392:660 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:28:449:908 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:28:488:672 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:13:29:60:835 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:13:29:107:566 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 15:13:29:663:695 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_read_skew.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_read_skew.txt new file mode 100644 index 00000000..d17d7188 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:30:142:773 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:13:30:185:447 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:30:242:715 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:30:282:215 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:13:30:320:986 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:13:30:489:84 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 15:13:30:492:0 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:13:30:583:286 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:13:30:621:874 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:13:30:622:638 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_read_skew2.txt new file mode 100644 index 00000000..7daa8f83 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_read_skew2.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:32:452:459 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:32:495:148 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:32:552:225 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:13:32:591:753 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:13:32:693:357 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:13:32:740:69 +Q7 finished at: 2022-4-2 15:13:32:742:429 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:13:32:792:582 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:13:32:830:915 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:13:32:831:708 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..af92d858 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_read_skew2_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:33:251:362 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:33:293:987 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:33:351:369 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:13:33:390:913 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 15:13:33:492:599 +Q8-T1 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:13:33:539:5 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:13:33:541:364 + Q6 finished at: 2022-4-2 15:13:33:577:49 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:13:33:615:486 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:13:33:616:267 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..39865a16 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:31:42:844 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 15:13:31:94:532 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:31:142:890 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:31:182:323 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:13:31:221:75 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 15:13:31:272:127 + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 15:13:31:283:809 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:13:31:324:881 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 15:13:31:363:253 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:13:31:363:957 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..62521231 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:31:699:608 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 15:13:31:742:391 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:31:799:754 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 15:13:31:839:379 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 15:13:31:878:29 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 15:13:31:946:795 + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 15:13:31:949:918 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:13:31:990:987 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 15:13:32:29:264 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:13:32:30:116 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..282bb578 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_write_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:16:897:504 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:16:940:127 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:16:997:550 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:17:36:221 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:13:17:808:886 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:13:17:853:67 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 15:13:18:411:567 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..be8b756a --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:18:874:68 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:18:916:898 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:18:974:62 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:19:12:771 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:13:22:809:517 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:22:854:725 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 15:13:23:512:82 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_mda_step_rat.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_mda_step_rat.txt new file mode 100644 index 00000000..b89edd83 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_mda_step_rat.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:34:78:497 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:34:121:293 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:34:178:580 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:34:217:295 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:13:34:314:630 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 15:13:34:352:209 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:13:34:688:97 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:13:34:737:127 + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 15:13:34:739:386 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:13:34:785:674 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 15:13:35:590:46 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..41521eab --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,207 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 15:13:36:98:382 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 15:13:36:143:783 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 15:13:36:156:290 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 15:13:36:199:134 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:13:36:256:240 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 15:13:36:294:893 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 15:13:36:356:369 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 15:13:36:395:153 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q11-T1 execute opt: 'COMMIT'; + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + *(7) expected_result: + (0,1) + *(8) expected_result: + (0,1) + *(9) expected_result: + (0,1) + (10) expected_result: + (0,0) + (11) expected_result: + (0,0) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + (14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 15:13:36:603:962 +Q11 finished at: 2022-4-2 15:13:36:604:219 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:13:36:701:467 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 15:13:36:706:136 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 15:13:36:792:409 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:13:36:835:619 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 15:13:36:880:796 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 15:13:36:923:820 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..699dcf39 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:37:393:43 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:37:435:812 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:37:492:857 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:37:531:559 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:13:37:592:996 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 15:13:37:630:751 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 15:13:39:688:311 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:13:39:750:832 + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 15:13:39:752:970 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:13:39:800:856 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 15:13:40:590:607 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..9cf20e1b --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,71 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:40:972:289 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 15:13:41:14:882 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:41:71:904 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 15:13:41:111:6 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:13:41:172:488 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 15:13:41:210:44 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 15:13:42:191:603 +Q10-T1 execute opt: 'COMMIT'; + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 15:13:42:236:518 + Q11-T2 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:13:42:238:606 + Q11 finished at: 2022-4-2 15:13:42:287:52 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 15:13:42:990:170 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_sda_dirty_read.txt new file mode 100644 index 00000000..56945a45 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_read #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:11:493:346 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:11:536:92 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:11:592:313 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:13:11:693:564 +Q5 finished at: 2022-4-2 15:13:11:695:997 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:11:790:42 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 15:13:11:827:959 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:13:11:828:703 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..0301308e --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:13:63:718 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:13:106:478 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:13:166:234 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 15:13:13:304:926 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:13:13:518:719 + Q6-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:13:521:114 + Q6 finished at: 2022-4-2 15:13:13:556:672 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 15:13:13:594:961 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:13:595:683 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..86424d49 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:13:979:112 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:14:21:894 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:14:79:151 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 15:13:14:223:141 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:13:14:275:723 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:14:277:983 + Q5 finished at: 2022-4-2 15:13:14:313:730 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 15:13:14:352:187 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:14:352:883 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..d637c167 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:16:95:93 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:16:137:677 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:16:195:95 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 15:13:16:337:280 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 15:13:16:387:550 +Q6 finished at: 2022-4-2 15:13:16:390:58 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:13:16:440:785 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:13:16:478:979 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:16:479:748 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..b99277b4 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_sda_non_repeatable_read.txt @@ -0,0 +1,58 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:12:204:230 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:13:12:247:146 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:12:304:103 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:13:12:343:897 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:12:550:72 + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 15:13:12:553:285 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:12:644:590 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:13:12:682:662 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:12:683:456 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..fe013b6b --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:14:737:544 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 15:13:14:786:168 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:14:837:541 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:13:14:877:119 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:13:14:922:163 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 15:13:14:978:414 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:15:19:675 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 15:13:15:57:681 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:15:58:526 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..e5785a5a --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:15:398:551 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 15:13:15:441:382 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:15:498:631 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 15:13:15:538:247 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:13:15:582:32 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 15:13:15:639:513 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:15:680:573 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 15:13:15:718:689 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:15:719:553 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..675fa8ed --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:49:331:645 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:49:374:618 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:49:431:532 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:49:470:303 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:13:52:814:764 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:52:866:751 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 15:13:53:517:623 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..5155481d --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:53:980:983 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:54:23:613 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:54:81:404 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:54:120:192 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:13:57:815:361 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:13:57:862:821 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 15:13:58:418:287 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..231dbef2 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:58:881:120 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:58:923:857 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:58:981:366 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:59:22:711 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:14:0:315:862 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:14:0:363:356 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 15:14:0:918:769 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..3347e15f --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:1:386:62 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:14:1:429:278 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:1:486:275 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:14:1:525:403 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:14:2:191:581 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:14:2:241:707 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 15:14:2:894:460 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..c148e191 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:3:364:701 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:3:407:397 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:3:464:714 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:14:3:504:649 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:14:3:543:486 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:14:3:711:10 +Q6 finished at: 2022-4-2 15:14:3:713:731 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:14:3:809:696 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:3:847:988 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:3:885:321 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..07fd49a9 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:4:304:695 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:4:347:564 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:4:404:791 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:14:4:444:498 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:14:4:483:223 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:14:4:657:374 +Q6 finished at: 2022-4-2 15:14:4:660:86 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:14:4:761:678 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:4:799:909 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:4:836:663 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..96078af6 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:5:257:27 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:14:5:299:779 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:5:356:717 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:14:5:396:441 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:14:5:497:994 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:14:5:551:434 +Q7 finished at: 2022-4-2 15:14:5:554:253 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:14:5:605:40 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:5:643:292 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:5:680:41 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..dbcd7f40 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:6:107:650 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:14:6:150:415 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:6:207:639 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:14:6:247:165 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:14:6:348:922 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:14:6:551:698 + Q7-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:14:6:554:357 + Q7 finished at: 2022-4-2 15:14:6:601:465 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:6:639:726 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:6:676:719 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..bcefd9d3 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:7:98:307 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:14:7:141:97 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:7:197:983 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:14:7:237:443 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 15:14:7:339:2 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:14:7:382:447 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:14:7:385:230 + Q6 finished at: 2022-4-2 15:14:7:430:866 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:7:469:279 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:7:505:995 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..ac89e359 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c1 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:7:971:615 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:14:8:14:607 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:8:71:448 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:14:8:110:219 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:14:8:171:515 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 15:14:8:208:834 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 15:14:12:818:110 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:14:12:866:813 + Q8 finished at: 2022-4-2 15:14:12:868:470 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:14:12:913:959 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 15:14:13:720:903 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..805f6ebb --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c2 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:14:232:513 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:14:14:275:565 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:14:334:250 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:14:14:373:179 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:14:14:435:569 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 15:14:14:672:650 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 15:14:17:818:755 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:17:869:186 + Q8 finished at: 2022-4-2 15:14:17:871:50 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:14:17:919:858 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 15:14:18:721:655 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..c8d62f2d --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:43:379:403 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:43:422:449 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:43:479:688 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 15:13:43:619:369 +Q5 finished at: 2022-4-2 15:13:43:620:150 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:43:742:579 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 15:13:43:816:298 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 15:13:43:854:314 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:43:911:522 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..d117f5eb --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:44:297:315 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:44:340:132 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:44:399:597 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 15:13:44:545:808 +Q5 finished at: 2022-4-2 15:13:44:548:574 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:44:645:664 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 15:13:44:684:146 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 15:13:44:722:158 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:44:763:816 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_sda_full_write.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_sda_full_write.txt new file mode 100644 index 00000000..23a6a398 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:45:146:139 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:45:188:812 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:45:246:252 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 15:13:45:387:454 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 15:13:45:433:780 +Q6 finished at: 2022-4-2 15:13:45:436:396 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:13:45:491:445 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 15:13:45:529:571 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:45:566:273 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..d1125e4b --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:45:945:270 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:45:987:976 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:46:45:317 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 15:13:46:186:184 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 15:13:46:230:353 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:46:232:997 + Q5 finished at: 2022-4-2 15:13:46:280:188 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 15:13:46:318:198 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:46:355:125 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..9df55a0d --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:48:500:143 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:48:542:947 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:48:600:74 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 15:13:48:741:963 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 15:13:48:787:193 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:48:789:900 + Q5 finished at: 2022-4-2 15:13:48:834:823 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:13:48:872:943 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:48:909:720 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..b4ea4ba8 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c1 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:46:741:164 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 15:13:46:783:564 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:46:841:243 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 15:13:46:880:899 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:13:47:86:576 +Q5 finished at: 2022-4-2 15:13:47:89:318 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 15:13:47:146:262 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:13:47:184:149 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:47:220:896 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..a7e6f24a --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/rcsnapshot/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c2 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:47:596:894 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 15:13:47:639:386 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:47:696:886 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 15:13:47:736:593 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:47:944:838 +Q5 finished at: 2022-4-2 15:13:47:947:520 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:48:48:763 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:13:48:86:855 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:48:123:562 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..60186395 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:5:819:404 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:5:867:700 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:5:919:91 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:5:961:316 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:53:6:2:465 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:53:6:56:562 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 14:53:6:66:87 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:53:6:112:848 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:53:6:153:293 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:6:191:978 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/sqlserver/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..f2872527 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:6:648:835 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:6:699:222 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:6:748:879 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:6:791:298 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:53:6:832:584 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:53:6:887:348 +Q7 finished at: 2022-4-2 14:53:6:895:334 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:53:6:951:699 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:53:6:991:852 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:7:30:641 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/iat_dda_write_skew.txt b/install/test_result/centralizend_result/sqlserver/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..244c97c7 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:7:477:596 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:7:525:715 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:7:577:601 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:53:7:619:325 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:53:7:661:497 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:53:7:726:12 +Q7-T1 execute opt: 'COMMIT'; + Q8-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:7:780:827 + Q8 finished at: 2022-4-2 14:53:7:824:857 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:53:7:864:957 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:53:7:903:512 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..ddab9728 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:10:191:405 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:10:239:573 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:10:291:530 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:53:10:333:72 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:53:10:375:205 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:53:10:429:117 +Q7 finished at: 2022-4-2 14:53:10:441:902 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:53:10:496:865 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:53:10:536:990 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:10:575:667 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/sqlserver/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..a2c8838f --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:8:450:537 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 14:53:8:509:882 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 14:53:8:550:477 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q3 finished at: 2022-4-2 14:53:8:557:86 +Q8-T1 execute opt: 'COMMIT'; + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 14:53:8:701:414 +Q8 finished at: 2022-4-2 14:53:8:702:564 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 14:53:8:742:854 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:53:8:792:712 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 14:53:8:832:591 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 14:53:8:871:904 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:53:8:910:564 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/sqlserver/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..cc40176f --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:9:363:887 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 14:53:9:421:519 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:9:463:857 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 14:53:9:505:517 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 14:53:9:548:563 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q6 finished at: 2022-4-2 14:53:9:597:567 +Q7 finished at: 2022-4-2 14:53:9:611:58 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:53:9:666:738 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 14:53:9:706:791 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:9:745:466 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/iat_mda_step_iat.txt b/install/test_result/centralizend_result/sqlserver/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..c4019c16 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:11:69:238 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:53:11:118:255 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:11:169:150 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:53:11:210:919 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:53:11:269:147 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:53:11:308:833 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 14:53:11:416:614 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:53:11:509:969 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 14:53:11:608:515 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:53:11:728:435 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:53:11:822:513 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:53:11:913:906 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:53:11:958:380 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:53:12:0:902 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/sqlserver/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..1a676b67 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:17:333:489 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:17:381:929 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:17:433:494 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:53:17:475:777 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:53:17:528:248 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:53:17:533:419 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:53:17:572:983 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:53:17:612:134 + Q9-T3 execute opt: 'COMMIT'; +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:53:17:656:519 + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 14:53:17:680:557 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 14:53:17:727:296 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 14:53:17:771:729 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:53:17:814:391 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/sqlserver/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..20607600 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:16:245:240 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:16:294:30 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:16:345:202 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:53:16:387:507 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:53:16:445:258 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 14:53:16:485:495 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:53:16:536:667 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:53:16:545:291 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:53:16:588:332 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:16:636:292 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 14:53:16:686:983 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:53:16:727:894 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 14:53:16:792:856 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 14:53:16:839:733 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 14:53:16:880:995 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 14:53:16:881:997 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/sqlserver/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..b90a7749 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:12:502:371 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 14:53:12:550:914 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:12:602:515 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:53:12:644:298 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:53:12:702:433 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:53:12:742:177 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 14:53:12:849:937 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:53:12:942:849 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 14:53:13:41:189 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:53:13:159:68 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:53:13:254:711 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:53:13:346:664 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 14:53:13:390:765 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:53:13:433:535 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/sqlserver/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..2fce071c --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:13:790:344 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:53:13:838:685 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:13:890:314 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 14:53:13:932:156 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:53:13:990:353 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 14:53:14:30:37 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 14:53:14:137:832 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 14:53:14:231:11 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 14:53:14:329:187 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:53:14:448:232 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:53:14:538:689 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:53:14:634:296 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:53:14:679:189 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:53:14:721:709 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/sqlserver/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..101cccc1 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:18:268:608 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:53:18:317:269 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + Q4-T2 execute opt: 'BEGIN;' + *(1) expected_result: + (1,0) + *(2) expected_result: + Q4 finished at: 2022-4-2 14:53:18:368:814 + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 14:53:18:369:191 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 14:53:18:410:731 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 14:53:18:453:541 + Q7-T2 execute opt: 'COMMIT'; + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:53:18:468:821 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q7 finished at: 2022-4-2 14:53:18:505:955 + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 14:53:18:508:477 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:53:18:548:231 + Q11-T3 execute opt: 'COMMIT'; +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q11 finished at: 2022-4-2 14:53:18:586:959 +Q12 finished at: 2022-4-2 14:53:18:617:399 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 14:53:18:674:353 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 14:53:18:715:148 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 14:53:18:754:125 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/sqlserver/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..3928f330 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:15:224:363 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 14:53:15:272:711 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:15:324:375 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 14:53:15:366:273 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:53:15:408:547 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 14:53:15:424:446 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:53:15:450:235 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 14:53:15:464:255 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:53:15:491:445 + Q8-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:53:15:503:712 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 14:53:15:546:455 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q8 finished at: 2022-4-2 14:53:15:548:145 + Q13 finished at: 2022-4-2 14:53:15:585:911 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:53:15:640:399 + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 14:53:15:644:14 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 14:53:15:690:839 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 14:53:15:735:472 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-2 14:53:15:778:85 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/sqlserver/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..aa447eb5 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:4:981:929 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:53:5:30:163 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:5:82:15 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:53:5:124:682 + Q5-T2 execute opt: 'COMMIT'; +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:53:5:182:657 +Q6 finished at: 2022-4-2 14:53:5:228:441 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:5:294:262 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:53:5:334:453 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:5:373:230 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/sqlserver/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..1cd8c29f --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:4:207:148 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:4:255:372 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:4:307:75 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:53:4:349:311 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:53:4:399:362 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:53:4:453:866 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:4:500:738 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:53:4:540:516 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:4:579:146 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:4:580:104 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..ee8bd493 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:9:41:682 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:9:89:855 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:9:141:747 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:9:182:997 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:52:10:348:958 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:52:10:401:502 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:52:10:950:200 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..57b4d99d --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:11:441:676 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:11:489:877 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:11:541:728 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:11:583:54 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:52:12:224:613 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:52:12:275:261 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:52:12:925:806 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..ee946e14 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:13:428:573 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:13:476:750 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:13:531:19 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:13:572:513 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:52:14:100:12 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:52:14:153:32 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:52:14:701:597 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_read_skew.txt b/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..17239fda --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:15:197:902 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:52:15:245:946 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:15:297:961 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:15:340:276 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:52:15:381:861 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:52:15:549:656 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 14:52:15:551:403 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:52:15:644:31 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:15:684:534 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:15:685:386 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..2eb52222 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:17:613:123 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:17:661:751 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:17:712:710 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:52:17:754:798 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:52:17:859:290 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:52:17:913:307 + Q8-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:52:17:914:357 + Q8 finished at: 2022-4-2 14:52:17:953:889 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:17:994:123 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:17:994:856 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..3dcf78cb --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:18:444:480 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:18:492:584 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:18:544:410 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:52:18:586:458 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:52:18:691:38 +Q8-T1 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:52:18:745:670 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:52:18:746:689 + Q6 finished at: 2022-4-2 14:52:18:786:688 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:18:826:768 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:18:827:608 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..51234636 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:16:136:752 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:52:16:192:414 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:16:236:717 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:16:279:134 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:52:16:320:442 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 14:52:16:367:369 + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:52:16:384:904 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:52:16:431:479 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 14:52:16:472:61 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:16:472:888 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..02396295 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:16:822:748 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:52:16:870:975 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:16:922:658 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 14:52:16:964:781 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 14:52:17:6:70 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 14:52:17:53:936 + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:52:17:69:185 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:52:17:115:707 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 14:52:17:155:804 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:17:156:645 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..46d61d77 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:59:535:437 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:59:583:772 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:59:635:293 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:59:676:411 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:52:2:847:829 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:52:2:905:806 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:52:3:449:147 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..213a05f0 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:3:942:578 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:3:990:737 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:4:42:758 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:4:84:131 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:52:7:848:382 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:52:7:901:220 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:52:8:549:701 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/rat_mda_step_rat.txt b/install/test_result/centralizend_result/sqlserver/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..e17cbf5c --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:19:325:461 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:19:373:728 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:19:425:403 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:19:466:743 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:52:19:563:422 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:52:19:602:772 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:52:19:726:763 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 14:52:19:773:375 + Q11 finished at: 2022-4-2 14:52:19:774:308 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:52:19:884:59 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:52:20:627:788 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/sqlserver/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..3fdc6d15 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,207 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 14:52:21:182:316 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 14:52:21:227:508 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 14:52:21:240:328 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 14:52:21:288:845 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:52:21:340:661 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 14:52:21:381:109 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:52:21:440:559 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:52:21:481:842 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q11-T1 execute opt: 'COMMIT'; + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + *(7) expected_result: + (0,1) + *(8) expected_result: + (0,1) + *(9) expected_result: + (0,1) + (10) expected_result: + (0,0) + (11) expected_result: + (0,0) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + (14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:52:21:691:197 +Q11 finished at: 2022-4-2 14:52:21:692:927 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:52:21:793:587 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:52:21:795:805 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:52:21:878:529 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:52:21:921:209 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 14:52:21:966:227 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 14:52:22:8:690 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/sqlserver/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..51b5f574 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:22:512:317 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:22:560:332 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:22:612:258 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:22:653:535 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:52:22:712:464 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:52:22:751:647 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:52:24:727:428 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 14:52:24:783:445 + Q12-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:52:24:784:340 + Q12 finished at: 2022-4-2 14:52:24:837:127 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:52:25:628:363 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/sqlserver/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..0311c220 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,71 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:26:30:58 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 14:52:26:78:401 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:26:129:930 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 14:52:26:171:137 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:52:26:229:878 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 14:52:26:269:117 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 14:52:27:229:429 +Q10-T1 execute opt: 'COMMIT'; + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:52:27:284:195 + Q11-T2 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:52:27:285:45 + Q11 finished at: 2022-4-2 14:52:27:333:579 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 14:52:28:25:926 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/sqlserver/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..d71052c1 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:53:868:853 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:53:917:411 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:53:962:881 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:51:54:67:973 +Q5 finished at: 2022-4-2 14:51:54:69:122 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:51:54:163:639 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:51:54:203:444 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:51:54:204:121 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/sqlserver/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..0c0df1ce --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:55:513:692 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:55:561:723 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:55:613:707 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 14:51:55:760:464 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:51:55:972:7 + Q6-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:55:973:65 + Q6 finished at: 2022-4-2 14:51:56:12:725 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:51:56:52:777 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:56:53:479 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/sqlserver/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..bf8be142 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:56:458:11 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:56:506:230 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:56:557:977 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 14:51:56:704:632 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:51:56:761:498 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:56:762:499 + Q5 finished at: 2022-4-2 14:51:56:802:95 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:51:56:841:864 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:56:842:574 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/sqlserver/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..206f680e --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:58:691:302 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:58:739:542 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:58:791:324 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:51:58:938:818 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:51:58:997:6 + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:51:58:998:362 + Q7 finished at: 2022-4-2 14:51:59:45:912 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:51:59:85:815 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:59:86:549 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/sqlserver/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..cac68cf9 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,58 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:54:622:767 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:54:671:46 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:54:722:860 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:51:54:765:126 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:51:54:978:922 + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:51:54:980:727 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:55:69:304 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:51:55:109:394 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:55:110:63 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/sqlserver/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..328aa815 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:57:255:218 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:51:57:309:738 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:57:355:97 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:51:57:397:220 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:57:443:454 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:51:57:501:602 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:57:548:159 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 14:51:57:588:98 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:57:588:892 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/sqlserver/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..84c04273 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:57:945:257 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:51:57:993:408 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:58:45:259 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 14:51:58:87:464 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:58:135:149 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:51:58:191:842 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:58:238:380 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 14:51:58:279:492 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:58:280:309 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..66086f21 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:34:597:707 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:34:645:857 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:34:697:787 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:34:738:990 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:52:37:853:798 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:52:37:902:721 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:52:38:555:355 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..24650656 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:39:51:265 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:39:99:243 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:39:151:347 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:39:192:655 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:52:42:855:251 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:52:42:913:954 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:52:43:455:877 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..4b0c00fe --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:43:959:964 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:44:8:144 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:44:60:91 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:44:101:206 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:52:45:354:919 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:52:45:416:204 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:52:45:956:492 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..304dacac --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:46:456:443 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:46:504:847 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:46:558:993 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:46:600:912 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:52:47:230:538 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:52:47:285:247 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:52:47:932:98 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..fc5585c4 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:48:435:875 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:52:48:484:96 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:48:535:901 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:48:578:259 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:52:48:619:529 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:52:48:789:852 +Q6 finished at: 2022-4-2 14:52:48:791:303 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:52:48:849:654 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:48:890:88 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:48:928:840 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..7aff5b5c --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:49:387:969 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:52:49:436:48 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:49:487:935 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:49:530:327 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:52:49:571:707 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:52:49:739:870 +Q6 finished at: 2022-4-2 14:52:49:741:257 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:52:49:848:156 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:49:888:428 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:49:926:995 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..d69818c9 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:50:384:896 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:50:432:981 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:50:484:966 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:52:50:527:84 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:52:50:631:761 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:52:50:682:458 +Q7 finished at: 2022-4-2 14:52:50:683:889 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:52:50:737:487 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:50:777:637 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:50:816:290 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..cfb18a3f --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:51:267:421 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:51:315:560 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:51:367:372 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:52:51:409:552 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:52:51:514:185 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:52:51:718:724 + Q7-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:52:51:720:78 + Q7 finished at: 2022-4-2 14:52:51:771:539 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:51:811:711 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:51:850:241 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..938c8c0a --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:52:304:20 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:52:352:307 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:52:404:19 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:52:52:446:45 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:52:52:550:637 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:52:52:606:6 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:52:52:607:328 + Q6 finished at: 2022-4-2 14:52:52:654:851 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:52:695:91 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:52:733:720 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/sqlserver/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..36976f0c --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:53:232:433 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:53:280:617 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:53:332:446 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:53:373:648 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:52:53:432:516 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:52:53:471:909 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 14:52:57:857:158 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:52:57:908:60 + Q12-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:52:57:909:576 + Q12 finished at: 2022-4-2 14:52:57:955:988 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:52:58:758:742 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/sqlserver/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..1e8f72f8 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:59:300:735 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:59:348:936 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:59:400:908 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:59:442:160 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:52:59:500:713 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:52:59:739:547 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 14:53:2:857:880 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:53:2:908:371 + Q12-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:2:909:772 + Q12 finished at: 2022-4-2 14:53:2:956:464 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:53:3:759:415 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/sqlserver/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..88d476fd --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:28:428:140 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:28:476:350 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:28:530:421 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 14:52:28:672:690 +Q5 finished at: 2022-4-2 14:52:28:674:58 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:52:28:779:109 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:52:28:856:702 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:52:28:896:883 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:52:28:940:734 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/sqlserver/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..14227b70 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:29:343:68 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:29:391:305 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:29:443:275 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:52:29:594:372 +Q5 finished at: 2022-4-2 14:52:29:595:774 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:52:29:693:399 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:52:29:733:637 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:52:29:773:538 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:52:29:817:125 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/wat_sda_full_write.txt b/install/test_result/centralizend_result/sqlserver/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..979f421f --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:30:216:552 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:30:264:891 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:30:316:623 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 14:52:30:466:334 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:52:30:516:891 + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:52:30:518:313 + Q7 finished at: 2022-4-2 14:52:30:564:617 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:52:30:604:816 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:52:30:643:389 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/sqlserver/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..9651d365 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:31:51:517 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:31:100:48 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:31:151:410 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 14:52:31:297:943 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:52:31:353:545 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:52:31:354:893 + Q5 finished at: 2022-4-2 14:52:31:407:53 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:52:31:447:100 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:52:31:485:790 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/sqlserver/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..1d4fc8e1 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:33:720:423 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:33:768:554 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:33:820:614 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:52:33:967:879 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:52:34:20:585 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:52:34:21:896 + Q5 finished at: 2022-4-2 14:52:34:71:259 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:52:34:111:131 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:52:34:149:758 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/sqlserver/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..52840ddd --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:31:890:599 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:52:31:942:697 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:31:997:764 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:52:32:40:293 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:52:32:243:70 +Q5 finished at: 2022-4-2 14:52:32:244:448 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:52:32:304:729 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:52:32:344:974 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:52:32:383:641 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/sqlserver/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..9e3e5bb5 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:32:783:120 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:52:32:831:7 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:32:883:211 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:52:32:925:447 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:52:33:137:0 +Q5 finished at: 2022-4-2 14:52:33:140:443 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:52:33:243:609 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:52:33:283:829 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:52:33:322:449 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..db4e409d --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:39:337:142 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:39:377:994 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:39:439:625 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:39:477:187 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:51:39:513:501 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:51:39:560:405 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 14:51:39:576:365 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:51:39:616:37 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:39:660:647 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:39:703:602 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..805399f9 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:40:116:792 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:40:157:773 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:40:216:725 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:40:254:362 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:51:40:290:627 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:51:40:334:560 +Q7 finished at: 2022-4-2 14:51:40:357:680 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:51:40:407:528 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:40:452:120 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:40:495:282 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_dda_write_skew.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_dda_write_skew.txt new file mode 100644 index 00000000..e4f11e86 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:40:908:589 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:40:949:725 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:41:11:564 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:51:41:48:24 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:51:41:85:718 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:51:41:147:577 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:41:193:150 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:51:41:251:468 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:41:296:193 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:51:41:339:640 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..04545ec3 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:43:406:162 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:43:447:87 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:43:507:144 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:51:43:543:785 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:51:43:581:0 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:51:43:623:998 +Q7 finished at: 2022-4-2 14:51:43:645:324 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:51:43:694:621 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:43:738:841 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:43:781:889 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..3d4c68d7 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:41:831:266 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 14:51:41:880:963 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 14:51:41:920:909 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 14:51:41:931:208 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 14:51:41:967:997 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 14:51:42:4:369 + Q7-T2 execute opt: 'COMMIT'; +Q8-T1 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:51:42:48:706 +Q8 finished at: 2022-4-2 14:51:42:76:537 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 14:51:42:120:493 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 14:51:42:164:307 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:51:42:207:458 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..80292264 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:42:617:970 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 14:51:42:665:614 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:42:718:134 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 14:51:42:754:848 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 14:51:42:792:769 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q6 finished at: 2022-4-2 14:51:42:836:675 +Q7 finished at: 2022-4-2 14:51:42:858:102 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:51:42:903:864 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 14:51:42:948:232 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:42:991:190 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_mda_step_iat.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_mda_step_iat.txt new file mode 100644 index 00000000..00bc936b --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:44:231:571 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:51:44:272:807 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:44:331:885 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:51:44:368:670 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:51:44:431:862 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:51:44:475:713 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 14:51:44:571:909 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:51:44:667:248 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 14:51:44:774:403 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:51:44:877:560 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:51:44:976:2 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:51:45:79:209 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:51:45:121:297 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:51:45:161:513 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..e2d18b41 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:50:227:985 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:50:269:7 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:50:328:40 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:51:50:365:293 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:50:409:543 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:51:50:427:946 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:51:50:471:693 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:51:50:515:55 + Q9-T3 execute opt: 'COMMIT'; +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:51:50:563:853 + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 14:51:50:567:666 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 14:51:50:607:205 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 14:51:50:649:436 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:51:50:689:761 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..c7def312 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:49:182:85 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:49:223:683 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:49:282:478 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:51:49:319:982 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:51:49:382:283 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 14:51:49:426:876 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:51:49:481:692 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:51:49:482:247 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:51:49:523:30 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:49:568:761 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 14:51:49:618:846 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:51:49:654:666 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 14:51:49:722:415 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 14:51:49:762:30 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 14:51:49:804:198 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 14:51:49:805:138 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..ff7d9f92 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:45:615:411 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 14:51:45:656:453 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:45:714:338 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:51:45:750:903 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:51:45:815:154 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:51:45:859:115 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 14:51:45:955:200 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:51:46:50:562 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 14:51:46:162:108 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:51:46:272:768 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:51:46:358:650 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:51:46:463:960 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 14:51:46:505:819 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:51:46:546:140 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..48e5037e --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:46:876:128 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:51:46:917:222 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:46:976:83 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 14:51:47:12:859 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:51:47:76:48 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 14:51:47:119:995 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 14:51:47:216:279 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 14:51:47:311:571 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 14:51:47:418:928 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:51:47:520:257 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:51:47:617:818 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:51:47:724:365 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:51:47:766:558 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:51:47:806:919 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..eabbf415 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:51:101:565 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:51:51:142:637 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 14:51:51:182:902 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 14:51:51:201:514 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 14:51:51:237:976 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 14:51:51:275:326 + Q7-T2 execute opt: 'COMMIT'; + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:51:51:301:584 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q7 finished at: 2022-4-2 14:51:51:322:536 + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 14:51:51:345:484 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:51:51:389:419 + Q11-T3 execute opt: 'COMMIT'; +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q11 finished at: 2022-4-2 14:51:51:432:355 +Q12 finished at: 2022-4-2 14:51:51:440:720 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 14:51:51:488:123 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 14:51:51:533:919 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 14:51:51:577:165 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..f2f70675 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:48:259:990 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 14:51:48:301:437 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:48:359:995 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 14:51:48:396:902 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:51:48:434:349 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 14:51:48:460:2 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:51:48:471:227 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 14:51:48:504:61 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:51:48:507:610 + Q8-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:51:48:547:445 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8 finished at: 2022-4-2 14:51:48:550:410 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 14:51:48:591:417 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 14:51:48:599:490 +Q16-T1 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:51:48:635:33 + Q14-T3 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 14:51:48:638:935 + Q14 finished at: 2022-4-2 14:51:48:684:960 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 14:51:48:727:372 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-2 14:51:48:767:755 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..875d393b --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:38:553:529 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:51:38:594:352 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:38:653:479 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:51:38:690:795 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:38:737:402 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 14:51:38:792:546 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:38:839:780 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:51:38:884:244 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:38:927:217 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..492334e3 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:37:772:635 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:37:813:575 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:37:872:919 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:51:37:910:162 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:37:953:138 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:51:38:12:77 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:38:51:492 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:51:38:137:417 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:38:180:468 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:38:181:543 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..f6b2e831 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_double_write_skew1.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:51:6:438 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:51:47:519 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:51:106:405 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:51:142:750 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:50:51:179:962 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:50:51:350:351 + Q7 finished at: 2022-4-2 14:50:51:350:379 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:51:454:124 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 14:50:51:498:665 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:51:499:495 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..ad7ad9fd --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:51:910:434 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:51:951:436 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:52:10:368 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:52:46:730 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:50:52:83:834 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q6 finished at: 2022-4-2 14:50:52:125:34 +Q7 finished at: 2022-4-2 14:50:52:149:722 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:52:195:827 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 14:50:52:240:265 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:52:241:10 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..e352d511 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_double_write_skew2.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:52:652:26 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:52:692:927 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:52:752:34 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:52:788:228 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 14:50:52:893:819 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:50:52:940:442 + Q5 finished at: 2022-4-2 14:50:52:940:759 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:50:52:995:35 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:50:53:39:456 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:53:40:254 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_read_skew.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_read_skew.txt new file mode 100644 index 00000000..931f9f50 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:53:453:149 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:50:53:494:194 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:53:552:890 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:53:589:989 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:50:53:626:166 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 14:50:53:692:474 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:50:53:795:543 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:53:891:491 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:50:53:935:856 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:53:936:608 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_read_skew2.txt new file mode 100644 index 00000000..ed560591 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_read_skew2.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:55:743:216 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:55:784:213 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:55:843:76 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:50:55:880:352 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:50:55:916:622 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:50:55:982:506 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:50:56:35:620 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:50:56:78:98 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:50:56:122:358 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:56:123:133 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..bd59a4dc --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_read_skew2_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:56:534:917 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:56:575:758 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:56:634:799 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:50:56:671:771 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:50:56:708:261 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:50:56:743:864 +Q7 finished at: 2022-4-2 14:50:56:774:354 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:56:820:594 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:50:56:864:914 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:56:865:686 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..ba47085e --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:54:355:656 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:50:54:403:371 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:54:455:702 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:54:492:953 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:50:54:529:235 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 14:50:54:570:390 + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:50:54:594:999 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:54:634:284 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 14:50:54:678:610 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:54:679:392 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..b06e68ac --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:55:10:10 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:50:55:51:55 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:55:109:888 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 14:50:55:146:965 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 14:50:55:183:308 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 14:50:55:227:873 + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:50:55:249:236 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:55:288:737 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 14:50:55:333:344 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:55:334:83 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..ff8ceabf --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:49:364:157 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:49:405:317 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:49:464:354 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:49:500:693 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:50:49:537:977 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 14:50:49:606:792 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:50:49:705:24 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:49:807:896 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:50:49:852:215 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:49:852:976 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..cb0a1fb1 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:50:265:286 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:50:306:404 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:50:365:265 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:50:401:734 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:50:50:438:871 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:50:50:480:645 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 14:50:50:504:703 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:50:549:198 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:50:50:593:715 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:50:594:513 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_mda_step_rat.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_mda_step_rat.txt new file mode 100644 index 00000000..5d0eddef --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:57:316:429 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:57:357:304 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:57:416:429 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:57:452:782 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + (3) expected_result: + (0,0) + (4) expected_result: + (0,0) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:50:57:490:261 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:50:57:558:400 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:50:57:601:919 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 14:50:57:645:780 + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + *(4) expected_result: + (2,1) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q9 finished at: 2022-4-2 14:50:57:655:902 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:50:57:705:693 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:50:57:755:660 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:50:57:863:989 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:50:57:905:942 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:50:57:906:711 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..8a35dd9c --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,207 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 14:50:58:359:599 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 14:50:58:402:464 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 14:50:58:420:98 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 14:50:58:461:247 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:50:58:520:432 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 14:50:58:565:385 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + *(7) expected_result: + (0,1) + *(8) expected_result: + (0,1) + *(9) expected_result: + (0,1) + (10) expected_result: + (0,0) + (11) expected_result: + (0,0) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + (14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:50:58:610:428 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:50:58:620:245 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:50:58:656:672 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:50:58:761:283 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 14:50:58:871:971 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:50:58:961:238 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:50:59:62:548 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:50:59:103:23 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 14:50:59:145:956 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 14:50:59:186:132 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..b94da1b4 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:59:638:199 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:59:678:948 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:59:738:157 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:59:774:309 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:50:59:812:106 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:50:59:838:449 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:50:59:882:189 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 14:50:59:926:70 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + (3) expected_result: + (1,) + *(4) expected_result: + (,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 14:50:59:978:275 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:51:0:27:89 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:51:0:89:50 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:51:0:185:841 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 14:51:0:227:715 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:51:0:267:860 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..31ef7810 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:0:596:348 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 14:51:0:637:381 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:0:696:415 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 14:51:0:732:752 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:51:0:770:276 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:51:0:796:421 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 14:51:0:839:795 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + (4) expected_result: + (,) + *(5) expected_result: + (1,) + (6) expected_result: + (,) + + Q8 finished at: 2022-4-2 14:51:0:883:866 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-2 14:51:0:936:859 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:51:0:985:50 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:51:1:43:805 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:51:1:144:159 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:51:1:186:596 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:51:1:226:946 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_sda_dirty_read.txt new file mode 100644 index 00000000..e2453a32 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_sda_dirty_read.txt @@ -0,0 +1,45 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:44:82:385 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:44:123:438 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:44:179:2 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:50:44:216:468 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 14:50:44:282:499 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:50:44:379:105 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:50:44:423:206 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:50:44:423:823 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..aecb5f08 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_sda_intermediate_read.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:45:653:620 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:45:694:907 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:45:755:186 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:50:45:792:642 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 14:50:45:892:893 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:50:45:988:452 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:50:46:99:562 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:50:46:143:654 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:50:46:144:469 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..52dfd314 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:46:514:973 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:46:555:890 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:46:614:963 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:50:46:651:980 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:50:46:687:496 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 14:50:46:754:194 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:50:46:798:855 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:50:46:843:34 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:50:46:843:897 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..05b110f7 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:48:559:840 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:48:600:770 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:48:659:785 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:50:48:800:14 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:50:48:847:412 + Q4 finished at: 2022-4-2 14:50:48:847:703 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:50:48:903:400 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:50:48:947:740 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:50:48:948:462 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..8df41be5 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_sda_non_repeatable_read.txt @@ -0,0 +1,58 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:44:794:956 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:50:44:835:789 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:44:894:932 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:50:44:931:973 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:50:45:34:433 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:50:45:142:648 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:50:45:233:626 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:50:45:277:932 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:50:45:278:604 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..20533f31 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:47:214:972 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:50:47:262:328 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:47:314:908 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:50:47:352:6 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:50:47:392:78 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:50:47:454:155 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:50:47:493:434 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 14:50:47:537:754 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:50:47:538:664 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..19cdff1e --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:47:866:791 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:50:47:909:232 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:47:966:946 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 14:50:48:4:470 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:50:48:45:959 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:50:48:106:395 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:50:48:145:649 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 14:50:48:189:967 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:50:48:190:840 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..aadbbdbf --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:7:579:68 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:7:619:951 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:7:679:159 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:7:715:662 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 14:51:7:819:116 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:51:7:866:477 + Q5 finished at: 2022-4-2 14:51:7:866:733 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:51:7:910:957 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:7:955:553 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:7:998:415 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..73b0bda8 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:8:407:714 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:8:448:560 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:8:507:801 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:8:544:266 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:51:13:473:62 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:51:13:522:527 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:51:14:75:383 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..c07cea01 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:14:528:446 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:14:569:357 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:14:628:338 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:14:664:506 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:51:18:466:338 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:51:18:509:762 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:51:19:66:415 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..f8d147d8 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:19:517:988 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:19:558:855 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:19:618:27 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:19:654:567 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:51:20:966:951 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:51:21:9:911 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:51:21:667:43 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..5af3b00c --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:22:115:34 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:22:156:44 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:22:215:100 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:22:252:538 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:51:22:289:236 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:51:22:461:250 + Q8 finished at: 2022-4-2 14:51:22:461:319 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:22:511:19 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:22:555:461 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:22:598:408 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..7083ee46 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:23:8:12 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:23:48:842 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:23:108:42 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:23:145:599 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:51:23:181:939 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:51:23:356:365 + Q7 finished at: 2022-4-2 14:51:23:356:407 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:51:23:464:727 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:23:509:249 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:23:552:575 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..7b79479d --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:23:964:628 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:24:5:772 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:24:64:641 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:51:24:101:976 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:51:24:204:10 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:24:257:141 + Q5 finished at: 2022-4-2 14:51:24:257:345 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:51:24:324:535 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:24:368:918 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:24:411:875 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..90cf32e8 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:24:824:605 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:24:865:604 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:24:924:627 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:51:24:961:924 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:51:25:64:118 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:25:275:230 +Q8 finished at: 2022-4-2 14:51:25:275:96 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:51:25:320:578 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:25:365:85 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:25:408:36 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..444030fa --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:25:816:892 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:25:857:756 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:25:916:949 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:51:25:954:363 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:51:26:56:383 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:51:26:106:641 + Q5 finished at: 2022-4-2 14:51:26:106:851 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:51:26:150:244 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:26:194:779 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:26:237:618 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..819f062d --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:26:687:291 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:26:728:300 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:26:787:244 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:26:823:465 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:51:26:887:477 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:51:26:930:954 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-2 14:51:31:593:312 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:51:31:659:907 + Q5 finished at: 2022-4-2 14:51:31:660:130 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:51:31:711:380 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 14:51:32:397:272 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..628a1220 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:32:857:329 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:32:898:657 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:32:957:269 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:32:993:661 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:51:33:57:306 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:51:33:342:202 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-2 14:51:36:594:149 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 14:51:36:642:813 + Q6 finished at: 2022-4-2 14:51:36:643:260 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:36:690:861 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 14:51:37:398:143 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..4be606f4 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:1:633:531 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:1:674:427 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:1:733:432 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 14:51:1:872:115 + Q4 finished at: 2022-4-2 14:51:1:872:351 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:51:1:973:540 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:51:2:18:6 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:51:2:62:447 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:2:115:994 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..c3120f69 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:2:491:904 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:2:532:848 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:2:591:853 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 14:51:2:747:467 + Q4 finished at: 2022-4-2 14:51:2:747:711 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:51:2:842:923 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:51:2:886:980 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:51:2:931:130 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:2:979:280 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_sda_full_write.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_sda_full_write.txt new file mode 100644 index 00000000..d4aa7806 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:3:352:394 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:3:393:201 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:3:452:387 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 14:51:3:591:924 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:51:3:640:683 + Q4 finished at: 2022-4-2 14:51:3:641:8 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:51:3:706:428 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:51:3:750:867 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:3:793:716 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..b82f6621 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:4:166:527 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:4:207:418 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:4:266:611 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 14:51:4:405:801 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:4:458:762 + Q4 finished at: 2022-4-2 14:51:4:458:993 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:4:502:815 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:51:4:546:961 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:4:589:804 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..e1840fde --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:6:736:774 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:6:777:846 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:6:836:646 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:51:6:976:901 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:7:26:13 + Q4 finished at: 2022-4-2 14:51:7:26:233 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:7:70:972 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:51:7:115:189 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:7:158:251 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..d15a8b6e --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:4:959:35 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:51:4:999:808 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:5:59:228 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:51:5:96:348 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 14:51:5:312:257 + Q7 finished at: 2022-4-2 14:51:5:312:316 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:51:5:362:416 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:51:5:406:631 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:5:449:714 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..dd5f34d4 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/read-uncommitted/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:5:829:643 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:51:5:870:541 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:5:929:481 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:51:5:966:799 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 14:51:6:178:124 + Q6 finished at: 2022-4-2 14:51:6:178:184 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:6:279:37 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:51:6:323:372 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:6:366:254 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..23ed881b --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:31:735:594 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:31:776:670 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:31:835:676 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:31:878:518 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:32:550:233 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:54:32:621:194 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:54:33:248:25 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..2eca52f1 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:33:705:805 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:33:746:682 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:33:805:818 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:33:848:248 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:35:47:21 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:54:35:103:354 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:54:35:744:697 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_dda_write_skew.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..70eb1d93 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,49 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:36:200:445 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:36:241:445 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:36:300:537 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:54:36:342:319 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:36:919:355 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:54:36:975:48 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:54:37:517:210 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..51474bc2 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,49 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:41:199:77 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:41:240:38 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:41:299:1 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:54:41:340:626 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:42:537:76 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:54:42:596:836 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:54:43:234:962 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..8516e6c6 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:38:50:977 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 14:54:38:102:936 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 14:54:38:143:8 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 14:54:38:150:873 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:54:38:295:886 + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 14:54:38:298:455 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 14:54:38:339:873 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:54:38:389:467 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 14:54:38:426:108 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 14:54:38:462:382 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:54:38:497:913 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..535b0bb9 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,49 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:38:914:613 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 14:54:38:965:226 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:39:14:557 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 14:54:39:56:453 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q5 finished at: 2022-4-2 14:54:40:40:467 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:54:40:91:653 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:54:40:738:281 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_mda_step_iat.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..89058e45 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,89 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:43:728:45 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:54:43:769:366 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:43:828:441 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:54:43:870:502 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:54:43:928:64 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:54:43:964:725 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 finished at: 2022-4-2 14:54:44:409:787 + Q11-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:54:44:476:63 +Q10-T1 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:54:44:478:366 +Q10 finished at: 2022-4-2 14:54:44:524:785 + Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q9 failed at: 2022-4-2 14:54:45:307:676 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..079301e1 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:56:772:878 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:56:814:152 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:56:872:673 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:54:56:972:907 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 14:54:57:112:802 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 14:54:57:152:512 + Q4 finished at: 2022-4-2 14:54:57:154:850 + Q5-T2 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:54:57:210:852 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:57:212:438 + Q8 finished at: 2022-4-2 14:54:57:246:955 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:54:57:292:350 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 14:54:57:334:213 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:54:57:374:104 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..38082465 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,140 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:53:231:55 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:53:272:885 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:53:330:713 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:54:53:373:445 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:54:53:430:707 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:54:53:530:937 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:54:55:18:718 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:54:55:67:295 + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 14:54:55:70:706 + Q12-T2 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:54:55:110:936 + Q12 finished at: 2022-4-2 14:54:55:111:600 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:54:55:160:473 +Q13 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q13 failed at: 2022-4-2 14:54:56:318:815 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..262142d7 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,89 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:45:761:120 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 14:54:45:802:541 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:45:861:312 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:54:45:903:414 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:54:45:961:378 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:54:46:32:248 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q8 finished at: 2022-4-2 14:54:47:530:853 + Q11-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:54:47:581:477 +Q10-T1 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:54:47:583:888 +Q10 finished at: 2022-4-2 14:54:47:629:629 + Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q9 failed at: 2022-4-2 14:54:48:428:795 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..1ee15601 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:48:761:386 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:54:48:802:624 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:48:861:366 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 14:54:48:903:660 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:54:48:961:777 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 14:54:49:32:631 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 14:54:49:101:489 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 14:54:49:202:250 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 14:54:49:296:949 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:54:49:415:243 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:54:49:513:628 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:54:49:607:440 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:54:49:649:427 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:54:49:689:436 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..909d0019 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,120 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:57:789:622 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:54:57:830:946 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 14:54:57:871:542 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 14:54:57:889:615 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 14:54:57:931:503 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:54:57:989:693 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 14:54:58:26:295 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q6 finished at: 2022-4-2 14:54:58:761:494 + Q7-T2 execute opt: 'COMMIT'; + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:54:58:809:957 + Q11-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:54:58:811:427 + Q11 finished at: 2022-4-2 14:54:58:845:653 +Q12 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q12 failed at: 2022-4-2 14:54:59:959:303 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..386186b8 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,127 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:50:140:861 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 14:54:50:182:215 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:50:240:788 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 14:54:50:282:738 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:54:50:325:14 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 14:54:50:340:929 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:54:50:366:990 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 14:54:50:377:361 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-2 14:54:50:413:312 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:54:51:275:733 + Q8-T2 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 14:54:51:327:762 + Q8 finished at: 2022-4-2 14:54:51:328:932 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 14:54:51:364:93 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:54:51:409:376 +Q15 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q15 failed at: 2022-4-2 14:54:52:773:569 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..ea7d0326 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:30:897:423 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:54:30:938:379 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:30:997:399 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 14:54:31:136:825 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:54:31:191:335 + Q4 finished at: 2022-4-2 14:54:31:193:633 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:54:31:246:591 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:54:31:283:364 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:54:31:318:801 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..73008b53 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:30:119:421 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:30:160:479 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:30:219:441 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:54:30:358:649 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:54:30:398:158 + Q4 finished at: 2022-4-2 14:54:30:400:451 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:54:30:451:22 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:54:30:488:39 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:54:30:523:541 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:54:30:524:330 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..207959a0 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:35:263:907 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:35:305:43 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:35:363:872 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:35:405:366 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:53:36:611:508 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:53:36:658:47 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:53:37:209:128 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..d1cba120 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:37:663:703 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:37:704:782 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:37:763:668 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:37:805:161 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:53:38:488:797 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:38:537:558 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:53:39:186:382 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..f1409b52 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:39:643:330 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:39:684:418 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:39:743:379 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:39:784:800 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:53:40:364:94 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:53:40:419:491 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:53:40:961:983 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_read_skew.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..4f32c719 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:41:427:458 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:41:468:386 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:41:527:615 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:41:570:22 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:53:42:239:666 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:53:42:289:259 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:53:42:837:591 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..c7dd489d --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:44:767:546 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:44:808:689 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:44:867:469 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:53:44:909:972 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:53:45:363:340 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:45:411:390 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:53:45:865:766 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..1e259a12 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:46:279:20 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:46:319:869 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:46:379:22 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:53:46:461:97 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:53:47:864:2 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:53:47:911:514 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:53:48:366:432 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..2d709e2d --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:43:302:124 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:53:43:351:97 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:43:392:630 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:53:43:532:207 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:53:43:571:707 + Q4 finished at: 2022-4-2 14:53:43:574:179 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:53:43:615:555 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:43:665:800 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 14:53:43:702:813 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:43:703:628 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..2367d6fb --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:44:34:931 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:53:44:75:956 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:44:134:708 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 14:53:44:179:406 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 14:53:44:220:963 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 14:53:44:272:549 + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:53:44:273:885 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:53:44:313:243 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 14:53:44:350:161 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:44:350:959 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..5a425957 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:26:348:594 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:26:389:466 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:26:448:458 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:26:490:13 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:53:29:110:446 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:53:29:164:378 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:53:29:708:37 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..07d75a35 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:30:160:727 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:30:202:31 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:30:260:622 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:30:301:931 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:53:34:110:916 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:34:167:303 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:53:34:808:494 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_mda_step_rat.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..2ba49290 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:48:816:911 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:48:857:910 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:48:916:919 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:48:998:119 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:53:49:51:650 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:53:49:88:27 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:53:49:742:396 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 14:53:49:791:263 + Q12-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:53:49:792:629 + Q12 finished at: 2022-4-2 14:53:49:835:854 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:53:50:639:789 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..07f12f92 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,169 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 14:53:51:131:598 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 14:53:51:174:108 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 14:53:51:192:476 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:53:51:292:486 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 14:53:51:329:753 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:53:51:392:643 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:53:51:616:380 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:53:51:827:532 + Q9 finished at: 2022-4-2 14:53:51:829:866 + Q12-T2 execute opt: 'COMMIT'; + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + Q12 finished at: 2022-4-2 14:53:51:892:633 + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:53:51:893:304 +Q4 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q4 failed at: 2022-4-2 14:53:52:15:421 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..0912df3e --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:52:570:623 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:52:611:546 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:52:666:811 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:52:708:507 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:53:52:766:571 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:53:52:802:740 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:53:53:494:463 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 14:53:53:545:773 + Q12-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:53:53:547:211 + Q12 finished at: 2022-4-2 14:53:53:589:159 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:53:54:391:284 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..46e5e086 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,71 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:54:767:186 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 14:53:54:808:550 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:54:863:677 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 14:53:54:905:392 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:53:54:965:297 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 14:53:55:1:489 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 14:53:55:367:495 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:53:55:412:220 + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:53:55:415:53 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:53:55:469:587 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 14:53:56:167:193 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..2451c9d2 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:20:855:564 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:20:896:622 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:20:957:107 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 14:53:21:55:788 + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:53:21:58:413 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:21:156:965 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:53:21:193:856 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:53:21:194:834 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..557d70fe --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:22:466:39 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:22:507:190 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:22:566:41 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 14:53:22:705:701 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:22:921:165 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:53:22:923:802 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:22:964:666 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:53:23:4:372 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:23:5:48 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..6f162d01 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:23:395:31 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:23:436:40 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:23:494:967 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 14:53:23:634:530 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:23:688:800 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:53:23:691:505 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:53:23:732:255 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:53:23:768:857 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:23:769:613 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..da59c8a8 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:25:546:639 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:25:587:709 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:25:646:711 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:53:25:786:975 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:53:25:844:858 + Q4 finished at: 2022-4-2 14:53:25:847:329 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:53:25:900:472 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:53:25:937:133 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:25:937:789 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..3e366d08 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:21:565:363 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:21:606:571 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:21:665:525 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:53:21:806:918 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:22:4:244 + Q4 finished at: 2022-4-2 14:53:22:6:696 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:22:54:46 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:53:22:92:261 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:22:92:984 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..f4c96ce6 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:24:143:974 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:53:24:202:565 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:24:243:904 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:53:24:383:393 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:24:422:747 + Q4 finished at: 2022-4-2 14:53:24:425:120 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:53:24:477:636 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 14:53:24:514:370 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:24:515:69 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..cb75541c --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:24:852:163 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:53:24:893:210 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:24:952:132 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 14:53:24:994:512 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:53:25:45:673 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:53:25:91:433 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:25:130:854 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 14:53:25:167:578 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:25:168:283 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..0cf25576 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:2:484:879 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:2:525:938 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:2:584:871 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:2:626:297 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:5:995:684 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:54:6:53:593 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:54:6:693:631 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..2aa5deab --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:7:169:727 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:7:210:886 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:7:269:920 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:7:311:515 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:10:996:240 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:54:11:47:452 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:54:11:594:57 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..2b6233ba --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:12:51:164 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:12:92:704 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:12:151:57 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:12:192:569 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:13:496:808 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:54:13:558:537 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:54:14:94:636 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..b12a3009 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:14:554:370 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:14:595:565 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:14:654:309 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:14:695:945 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:15:372:324 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:54:15:426:128 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:54:16:70:133 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..ec5308e5 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:16:523:501 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:16:564:653 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:16:623:645 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:16:666:342 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:17:247:871 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:54:17:296:261 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:54:17:845:781 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..1756b4c0 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:18:310:965 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:18:351:897 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:18:410:948 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:18:453:377 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:19:123:467 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:54:19:180:966 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:54:19:721:316 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..b6b4d81a --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:20:172:365 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:20:213:302 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:20:272:331 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:54:20:314:876 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:54:20:997:239 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:54:21:42:820 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:54:21:499:678 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..213cc50b --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:21:912:376 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:21:953:443 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:22:12:276 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:54:22:94:565 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:54:22:247:402 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:54:22:358:760 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:54:22:749:882 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..2b344c39 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:23:162:737 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:23:203:596 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:23:262:769 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:54:23:344:899 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:54:23:809:306 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:54:23:856:404 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:54:24:311:673 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..7020c418 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:24:767:142 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:24:808:228 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:24:866:997 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:24:948:363 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:54:24:967:60 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:54:25:3:177 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 14:54:25:684:474 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:54:25:731:895 + Q12-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:54:25:733:972 + Q12 finished at: 2022-4-2 14:54:25:782:514 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:54:26:582:317 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..6bc0f237 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:27:78:919 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:27:120:70 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:27:178:872 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:27:220:456 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:54:27:279:253 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:54:27:514:517 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 14:54:28:805:564 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:54:28:859:419 + Q12-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:54:28:861:425 + Q12 finished at: 2022-4-2 14:54:28:908:412 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:54:29:703:423 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..d095fc9b --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:56:546:795 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:56:587:928 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:56:646:802 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 14:53:56:785:676 + Q4 finished at: 2022-4-2 14:53:56:788:1 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:56:895:376 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:53:56:966:602 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:53:57:3:488 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:57:50:883 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..1a74e848 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:57:428:78 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:57:469:59 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:57:528:307 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 14:53:57:675:374 + Q4 finished at: 2022-4-2 14:53:57:677:732 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:57:777:776 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:53:57:814:696 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:53:57:851:616 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:57:896:73 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_sda_full_write.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..df6841fb --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:58:283:807 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:58:324:822 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:58:383:389 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 14:53:58:523:178 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:53:58:568:622 + Q4 finished at: 2022-4-2 14:53:58:570:958 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:53:58:637:468 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:53:58:674:296 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:58:709:812 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..c8f2f8b2 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:59:88:843 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:59:130:93 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:59:189:62 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 14:53:59:328:193 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:59:376:181 + Q4 finished at: 2022-4-2 14:53:59:378:477 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:53:59:435:508 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:53:59:472:462 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:59:507:800 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..1de6b24f --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:1:638:442 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:1:679:569 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:1:738:405 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:54:1:878:632 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:54:1:925:865 + Q4 finished at: 2022-4-2 14:54:1:928:180 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:54:1:977:681 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:54:2:21:926 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:54:2:57:427 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..c1c1ba4f --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:59:888:641 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:53:59:929:491 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:59:988:666 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-2 14:54:0:128:97 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:54:0:178:114 + Q4 finished at: 2022-4-2 14:54:0:180:430 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:54:0:242:472 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:54:0:279:445 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:54:0:314:960 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..64fe5e49 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:0:687:337 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:54:0:728:368 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:0:787:351 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-2 14:54:0:926:825 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:54:1:136:344 + Q4 finished at: 2022-4-2 14:54:1:138:526 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:54:1:191:309 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:54:1:228:149 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:54:1:263:574 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/result_summary/rcsnapshot_total-result.txt b/install/test_result/centralizend_result/sqlserver/result_summary/rcsnapshot_total-result.txt new file mode 100644 index 00000000..45f42a10 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/result_summary/rcsnapshot_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Anomaly + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Anomaly + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Anomaly + +rat_dda_read_skew2_committed: Anomaly + +rat_mda_step_rat: Rollback + +rat_mda_step_rat_long_fork: Anomaly + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Rollback + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/sqlserver/result_summary/read-committed_total-result.txt b/install/test_result/centralizend_result/sqlserver/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..45f42a10 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Anomaly + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Anomaly + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Anomaly + +rat_dda_read_skew2_committed: Anomaly + +rat_mda_step_rat: Rollback + +rat_mda_step_rat_long_fork: Anomaly + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Rollback + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/sqlserver/result_summary/read-uncommitted_total-result.txt b/install/test_result/centralizend_result/sqlserver/result_summary/read-uncommitted_total-result.txt new file mode 100644 index 00000000..f709ccda --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/result_summary/read-uncommitted_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Anomaly + +rat_sda_non_repeatable_read: Anomaly + +rat_sda_intermediate_read: Anomaly + +rat_sda_intermediate_read_committed: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Anomaly + +rat_dda_double_write_skew1_committed: Anomaly + +rat_dda_double_write_skew2: Anomaly + +rat_dda_read_skew: Anomaly + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Anomaly + +rat_dda_read_skew2_committed: Anomaly + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Anomaly + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Anomaly + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/sqlserver/result_summary/repeatable-read_total-result.txt b/install/test_result/centralizend_result/sqlserver/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..f872970f --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Rollback + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Rollback + +rat_dda_read_skew2_committed: Rollback + +rat_mda_step_rat: Rollback + +rat_mda_step_rat_long_fork: Rollback + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Rollback + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Avoid + +wat_sda_lost_update_c2: Avoid + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Avoid + +iat_dda_read_skew_committed: Rollback + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +iat_mda_step_iat_predicate_based_delete: Rollback + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Rollback + +iat_mda_step_iat_cross_phenomenon: Rollback + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Rollback + diff --git a/install/test_result/centralizend_result/sqlserver/result_summary/serializable_total-result.txt b/install/test_result/centralizend_result/sqlserver/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..db50cb37 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/result_summary/serializable_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Rollback + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Rollback + +rat_dda_read_skew2_committed: Rollback + +rat_mda_step_rat: Rollback + +rat_mda_step_rat_long_fork: Rollback + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Rollback + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Avoid + +wat_sda_lost_update_c2: Avoid + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Avoid + +iat_dda_read_skew_committed: Rollback + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +iat_mda_step_iat_predicate_based_delete: Rollback + +iat_mda_step_iat_predicate_based_insert: Rollback + +iat_mda_step_iat_uname_anomaly: Rollback + +iat_mda_step_iat_cross_phenomenon: Rollback + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Rollback + diff --git a/install/test_result/centralizend_result/sqlserver/result_summary/snapshot_total-result.txt b/install/test_result/centralizend_result/sqlserver/result_summary/snapshot_total-result.txt new file mode 100644 index 00000000..554aa7a2 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/result_summary/snapshot_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Rollback + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..0cb31fa1 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:40:131:36 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:56:40:173:852 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:40:231:576 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:40:273:658 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:40:935:311 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:40:984:412 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:56:41:633:924 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/sqlserver/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..0386255a --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:42:84:828 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:56:42:125:654 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:42:184:846 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:42:227:12 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:43:431:648 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:43:488:967 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:56:44:130:286 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/iat_dda_write_skew.txt b/install/test_result/centralizend_result/sqlserver/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..9d78878b --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/iat_dda_write_skew.txt @@ -0,0 +1,49 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:44:582:841 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:56:44:623:584 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:44:682:792 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:56:44:723:724 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:45:304:370 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:56:45:355:608 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:56:45:903:16 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..0eeb6543 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,49 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:49:576:5 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:56:49:616:630 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:49:675:967 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:56:49:716:941 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:50:921:931 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:50:970:603 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:56:51:620:589 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/sqlserver/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..5f840c80 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:46:439:311 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 14:56:46:487:540 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 14:56:46:527:558 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 14:56:46:539:276 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:56:46:689:917 + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 14:56:46:691:759 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 14:56:46:732:745 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:56:46:780:457 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 14:56:46:821:656 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 14:56:46:862:428 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:56:46:902:447 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/sqlserver/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..4ec3332e --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,49 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:47:316:574 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 14:56:47:364:670 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:47:416:587 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 14:56:47:457:969 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q5 finished at: 2022-4-2 14:56:48:425:246 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:48:473:721 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:56:49:123:832 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/iat_mda_step_iat.txt b/install/test_result/centralizend_result/sqlserver/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..e1117103 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/iat_mda_step_iat.txt @@ -0,0 +1,89 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:52:117:921 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:56:52:159:238 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:52:219:581 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:56:52:260:953 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:56:52:317:917 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:56:52:358:866 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 finished at: 2022-4-2 14:56:52:794:456 + Q11-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:52:868:759 +Q10-T1 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:56:52:870:393 +Q10 finished at: 2022-4-2 14:56:52:918:863 + Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q9 failed at: 2022-4-2 14:56:53:693:578 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/sqlserver/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..e9dead33 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:57:4:924:323 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:57:4:965:334 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:57:5:24:163 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:57:5:124:102 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 14:57:5:264:21 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 14:57:5:303:600 + Q4 finished at: 2022-4-2 14:57:5:305:178 + Q5-T2 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:57:5:359:310 + Q5 finished at: 2022-4-2 14:57:5:359:794 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:57:5:399:936 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:57:5:452:562 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 14:57:5:494:517 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:57:5:534:725 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/sqlserver/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..e9f1e37e --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,140 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:57:2:244:246 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:57:2:285:853 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:57:2:344:338 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:57:2:386:741 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:57:2:444:285 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:57:2:544:287 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:57:3:407:245 + Q10-T4 execute opt: 'COMMIT'; + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 14:57:3:456:576 +Q14-T1 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:57:3:458:157 +Q14 finished at: 2022-4-2 14:57:3:496:179 + Q6 finished at: 2022-4-2 14:57:3:496:789 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:57:3:552:802 + Q11 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q11 failed at: 2022-4-2 14:57:4:506:301 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/sqlserver/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..196fae42 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,89 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:54:145:100 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 14:56:54:186:234 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:54:245:105 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:56:54:286:945 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:56:54:345:129 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:56:54:425:174 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q8 finished at: 2022-4-2 14:56:55:915:701 + Q11-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:55:967:356 +Q10-T1 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:56:55:968:856 +Q10 finished at: 2022-4-2 14:56:56:19:45 + Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q9 failed at: 2022-4-2 14:56:56:814:938 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/sqlserver/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..f58982da --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,85 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:57:144:514 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:56:57:185:664 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:57:244:779 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 14:56:57:286:403 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:56:57:344:669 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 14:56:57:424:796 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q7 finished at: 2022-4-2 14:56:58:411:111 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:56:58:457:611 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 14:56:59:212:576 + Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q9 failed at: 2022-4-2 14:56:59:311:750 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/sqlserver/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..55c27f8a --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,120 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:57:5:952:208 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:57:5:993:588 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 14:57:6:34:310 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 14:57:6:51:688 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 14:57:6:93:15 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:57:6:151:857 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 14:57:6:193:65 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q6 finished at: 2022-4-2 14:57:7:150:832 + Q7-T2 execute opt: 'COMMIT'; + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:57:7:201:693 + Q7 finished at: 2022-4-2 14:57:7:201:876 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:57:7:241:736 +Q12 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q12 failed at: 2022-4-2 14:57:8:349:417 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/sqlserver/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..c74c21e5 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,127 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:59:763:702 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 14:56:59:804:802 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:59:863:651 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 14:56:59:944:380 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 14:56:59:963:643 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + Q5 finished at: 2022-4-2 14:56:59:986:257 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:57:0:27:774 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 14:57:0:43:957 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + Q11 finished at: 2022-4-2 14:57:0:84:629 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q7 finished at: 2022-4-2 14:57:0:284:940 + Q8-T2 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 14:57:0:334:263 + Q8 finished at: 2022-4-2 14:57:0:334:505 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 14:57:0:374:763 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:57:0:422:769 +Q15 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q15 failed at: 2022-4-2 14:57:1:783:575 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/sqlserver/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..f892f940 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:39:289:234 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:56:39:330:347 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:39:391:466 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 14:56:39:528:308 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:39:578:941 + Q4 finished at: 2022-4-2 14:56:39:580:528 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:56:39:628:369 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:56:39:670:874 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:39:710:917 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/sqlserver/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..d4049826 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:38:501:533 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:56:38:542:568 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:38:603:568 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:56:38:743:57 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:38:782:557 + Q4 finished at: 2022-4-2 14:56:38:784:53 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:56:38:832:956 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:56:38:874:534 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:38:914:774 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:56:38:915:624 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..6dbf6abf --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:16:146:787 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:16:187:755 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:16:251:509 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:16:292:495 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:55:17:495:457 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:55:17:542:201 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:55:18:93:795 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..d931383c --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:18:546:585 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:18:587:443 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:18:646:476 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:18:687:190 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:55:19:371:3 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:55:19:422:717 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:55:20:69:322 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..5c938e61 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:20:519:455 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:20:560:249 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:20:619:684 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:20:660:549 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:55:21:246:445 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:55:21:300:358 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:55:21:844:943 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_read_skew.txt b/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..09268b81 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:22:308:385 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:55:22:349:263 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:22:408:513 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:22:450:519 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:55:23:121:991 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:55:23:175:658 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:55:23:720:561 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..7cb14060 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:25:745:536 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:25:786:258 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:25:845:539 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:55:25:887:128 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:55:26:246:390 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:55:26:297:191 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:55:26:748:71 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..2b9cfee0 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:27:158:358 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:27:199:336 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:27:258:421 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:55:27:339:398 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:55:28:747:82 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:55:28:797:826 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:55:29:248:753 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..b3f3a52f --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:24:180:375 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:55:24:234:680 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:24:280:418 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:55:24:419:689 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:55:24:458:967 + Q4 finished at: 2022-4-2 14:55:24:460:641 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:55:24:501:337 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:55:24:550:468 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 14:55:24:592:55 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:55:24:592:804 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..41e5e3a4 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:24:920:997 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:55:24:961:725 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:25:21:11 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:55:25:160:272 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:55:25:199:549 + Q4 finished at: 2022-4-2 14:55:25:201:264 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 14:55:25:242:20 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:55:25:290:785 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 14:55:25:332:281 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:55:25:333:11 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..3872e2e9 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:7:689:45 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:7:729:958 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:7:789:262 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:7:830:126 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:55:9:994:505 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:55:10:54:121 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:55:10:592:770 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..ef3f3a87 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:11:46:653 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:11:87:599 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:11:146:599 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:11:187:466 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:55:14:994:795 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:55:15:47:414 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:55:15:693:137 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/rat_mda_step_rat.txt b/install/test_result/centralizend_result/sqlserver/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..fe41b529 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/rat_mda_step_rat.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:29:698:124 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:29:738:934 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:29:798:75 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:29:877:996 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:55:29:937:451 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:55:29:977:880 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:55:30:625:59 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 14:55:30:673:709 + Q11 finished at: 2022-4-2 14:55:30:674:196 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:55:30:728:861 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:55:31:523:31 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/sqlserver/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..9b9e85da --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,167 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 14:55:32:21:740 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 14:55:32:65:182 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 14:55:32:80:374 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:55:32:183:726 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 14:55:32:225:679 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:55:32:283:664 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:55:32:502:723 + Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q9 failed at: 2022-4-2 14:55:33:400:286 + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:55:52:124:43 +Q4 failed reason: errcode: 00000 +Q4 failed at: 2022-4-2 14:55:52:522:583 +Q4 finished at: 2022-4-2 14:55:52:522:710 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/sqlserver/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..94f070b1 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:52:978:520 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:53:19:288 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:53:78:719 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:53:158:643 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:55:53:178:526 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:55:53:219:1 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:55:58:128:626 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 14:55:58:184:832 + Q11 finished at: 2022-4-2 14:55:58:185:7 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:55:58:233:993 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:55:59:26:748 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/sqlserver/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..01d1ba51 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,71 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:59:401:906 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 14:55:59:442:605 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:59:501:871 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 14:55:59:542:658 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:55:59:602:196 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 14:55:59:642:877 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 14:56:3:127:797 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:56:3:188:635 + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:56:3:190:922 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:56:3:242:704 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 14:56:3:928:32 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/sqlserver/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..5deae19b --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:2:149:777 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:2:190:654 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:2:250:383 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 14:55:2:349:603 + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:55:2:351:501 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:55:2:450:458 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:55:2:491:785 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:55:2:492:635 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/sqlserver/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..1039b521 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:3:770:404 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:3:811:469 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:3:870:382 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 14:55:4:9:834 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:55:4:237:790 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:55:4:239:710 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:55:4:279:885 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:55:4:321:219 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:55:4:321:943 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/sqlserver/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..f1961064 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:4:698:934 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:4:739:610 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:4:798:870 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 14:55:4:938:219 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:55:4:989:678 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:55:4:991:486 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:55:5:31:505 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:55:5:72:660 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:55:5:73:370 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/sqlserver/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..ebfa11d2 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:6:888:685 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:6:929:817 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:6:988:758 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:55:7:128:901 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:55:7:185:662 + Q4 finished at: 2022-4-2 14:55:7:187:423 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:55:7:238:252 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:55:7:279:610 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:55:7:280:383 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/sqlserver/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..9baa5bb1 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:2:863:946 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:55:2:904:848 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:2:964:315 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:55:3:103:339 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:55:3:302:708 + Q4 finished at: 2022-4-2 14:55:3:304:351 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:55:3:349:947 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:55:3:391:158 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:55:3:391:841 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/sqlserver/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..4c7d1a44 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:5:450:143 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:55:5:501:166 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:5:549:984 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:55:5:689:246 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:55:5:728:356 + Q4 finished at: 2022-4-2 14:55:5:730:138 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:55:5:775:379 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 14:55:5:816:666 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:55:5:817:386 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/sqlserver/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..03c81edb --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:6:148:128 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:55:6:189:124 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:6:248:31 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:55:6:387:336 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:55:6:426:465 + Q4 finished at: 2022-4-2 14:55:6:428:199 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:55:6:477:909 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 14:55:6:519:498 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:55:6:520:240 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..c35d88f3 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:10:284:850 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:10:325:905 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:10:384:693 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:10:425:547 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:14:380:102 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:14:434:590 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:56:15:78:699 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..350e1769 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:15:530:588 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:15:571:533 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:15:630:286 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:15:671:175 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:19:380:753 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:56:19:431:844 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:56:19:979:396 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..718506ea --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:20:441:132 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:20:482:149 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:20:540:926 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:20:581:786 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:21:881:419 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:56:21:932:989 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:56:22:480:346 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..70bc6fc2 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:22:937:643 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:22:978:634 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:23:37:710 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:23:78:914 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:23:757:59 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:23:818:488 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:56:24:455:624 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..82fe2386 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:24:910:887 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:56:24:951:545 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:25:10:944 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:25:52:836 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:25:632:512 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:56:25:684:516 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:56:26:231:87 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..11d7eedc --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:26:685:785 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:56:26:726:782 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:26:785:667 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:26:827:484 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:27:508:676 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:56:27:560:145 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:56:28:107:303 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..54924ddf --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:28:558:760 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:28:599:596 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:28:658:778 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:56:28:700:602 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:56:29:382:632 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:29:431:236 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:56:29:884:391 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..f65bb713 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:30:296:181 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:30:337:291 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:30:396:97 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:56:30:476:968 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:56:30:633:105 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:56:30:745:255 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:56:31:134:782 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..91365b1c --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:31:548:494 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:31:589:298 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:31:648:356 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:56:31:729:531 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:56:32:195:65 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:56:32:243:391 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:56:32:696:788 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/sqlserver/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..47b77edf --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:33:150:271 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:33:191:405 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:33:250:266 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:33:330:468 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:56:33:350:205 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:56:33:390:986 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 14:56:34:69:635 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:56:34:123:912 + Q12-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:56:34:124:741 + Q12 finished at: 2022-4-2 14:56:34:183:684 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:56:34:968:227 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/sqlserver/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..f834d0f1 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:35:461:402 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:35:502:227 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:35:561:377 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:35:602:191 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:56:35:661:371 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:56:35:901:771 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 14:56:37:191:359 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:56:37:239:593 + Q12-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:56:37:240:409 + Q12 finished at: 2022-4-2 14:56:37:287:850 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:56:38:89:124 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/sqlserver/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..79ad9662 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:4:308:566 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:4:349:496 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:4:408:530 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 14:56:4:547:58 + Q4 finished at: 2022-4-2 14:56:4:548:664 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:4:661:970 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:56:4:742:428 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:56:4:783:778 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:4:828:598 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/sqlserver/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..3788f9d8 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:5:204:284 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:5:245:397 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:5:304:161 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 14:56:5:450:722 + Q4 finished at: 2022-4-2 14:56:5:452:287 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:5:552:118 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:56:5:593:469 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:56:5:634:664 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:5:679:927 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/wat_sda_full_write.txt b/install/test_result/centralizend_result/sqlserver/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..4ebc03fa --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:6:49:671 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:6:90:783 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:6:149:649 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 14:56:6:289:389 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:56:6:337:583 + Q4 finished at: 2022-4-2 14:56:6:339:204 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:56:6:399:318 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:56:6:441:623 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:6:481:779 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/sqlserver/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..170e1dd9 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:6:858:894 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:6:899:806 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:6:959:553 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 14:56:7:99:913 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:7:144:223 + Q4 finished at: 2022-4-2 14:56:7:145:794 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:56:7:194:787 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:56:7:239:649 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:7:279:717 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/sqlserver/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..14c91b40 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:9:444:200 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:9:485:228 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:9:543:298 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:56:9:683:324 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:9:729:636 + Q4 finished at: 2022-4-2 14:56:9:731:219 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:56:9:780:476 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:56:9:821:695 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:9:861:794 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/sqlserver/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..a2792eed --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:7:671:11 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:56:7:711:825 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:7:771:29 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-2 14:56:7:911:68 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:56:7:955:68 + Q4 finished at: 2022-4-2 14:56:7:956:644 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:56:8:23:227 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:56:8:71:515 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:8:111:631 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/serializable/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/sqlserver/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..acb7837e --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:8:482:849 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:56:8:523:430 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:8:582:842 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-2 14:56:8:721:951 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:8:927:47 + Q4 finished at: 2022-4-2 14:56:8:928:571 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:8:978:900 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:56:9:23:677 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:9:63:651 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/snapshot/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..a8edadcf --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:54:844:373 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:54:888:288 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:54:944:267 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:54:983:504 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:55:21:789 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:10:55:76:701 + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 15:10:55:86:561 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:55:129:55 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:55:169:164 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:55:207:585 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/sqlserver/snapshot/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..97e1e93b --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:55:639:345 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:55:683:138 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:55:739:310 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:55:778:723 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:55:817:59 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:10:55:870:479 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q7 failed at: 2022-4-2 15:10:56:582:607 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/iat_dda_write_skew.txt b/install/test_result/centralizend_result/sqlserver/snapshot/iat_dda_write_skew.txt new file mode 100644 index 00000000..254129a7 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:57:63:989 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:57:108:135 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:57:164:595 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:10:57:203:276 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:57:242:630 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:10:57:306:266 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:57:358:260 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:10:57:411:834 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:57:451:666 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:10:57:490:241 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/snapshot/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..3db68a8b --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:59:626:332 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:59:670:478 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:59:726:260 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:10:59:764:750 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:59:803:961 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:10:59:849:969 +Q7 finished at: 2022-4-2 15:10:59:868:428 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:59:922:273 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:59:961:999 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:11:0:0:546 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/sqlserver/snapshot/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..cbf23179 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:58:7:793 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 15:10:58:58:880 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 15:10:58:102:420 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 15:10:58:107:998 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 15:10:58:152:398 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 15:10:58:191:80 + Q7-T2 execute opt: 'COMMIT'; +Q8-T1 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:10:58:239:286 +Q8 finished at: 2022-4-2 15:10:58:263:169 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 15:10:58:302:619 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 15:10:58:341:917 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:10:58:380:477 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/sqlserver/snapshot/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..efccc514 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:58:825:37 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 15:10:58:876:789 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:58:924:945 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 15:10:58:963:706 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 15:10:59:3:931 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q6 finished at: 2022-4-2 15:10:59:58:351 +Q7 finished at: 2022-4-2 15:10:59:68:128 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:59:120:945 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 15:10:59:160:542 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:59:199:22 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/iat_mda_step_iat.txt b/install/test_result/centralizend_result/sqlserver/snapshot/iat_mda_step_iat.txt new file mode 100644 index 00000000..1d72a779 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:11:0:475:210 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 15:11:0:519:543 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:11:0:575:685 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:11:0:614:468 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:11:0:675:158 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 15:11:0:714:590 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 15:11:0:818:415 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 15:11:0:912:626 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 15:11:1:13:469 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:11:1:139:663 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:11:1:222:484 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:11:1:319:496 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 15:11:1:359:999 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:11:1:398:739 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/sqlserver/snapshot/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..f45c6b9a --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:11:7:671:948 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:11:7:715:880 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:11:7:772:70 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:11:7:811:217 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:11:7:861:272 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:11:7:871:961 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 15:11:7:911:173 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 15:11:7:950:132 + Q9-T3 execute opt: 'COMMIT'; +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9 finished at: 2022-4-2 15:11:7:998:922 + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 15:11:8:14:588 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 15:11:8:57:177 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 15:11:8:97:740 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 15:11:8:136:462 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/sqlserver/snapshot/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..f640590c --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:11:6:618:347 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:11:6:663:659 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:11:6:718:277 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:11:6:757:616 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:11:6:818:462 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 15:11:6:895:795 + Q7-T3 execute opt: 'COMMIT'; + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 15:11:6:918:291 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-2 15:11:6:948:728 + Q9 finished at: 2022-4-2 15:11:6:957:528 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:11:7:2:562 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 15:11:7:56:692 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:11:7:94:387 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 15:11:7:161:339 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 15:11:7:203:949 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 15:11:7:242:202 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 15:11:7:243:91 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/sqlserver/snapshot/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..bf846cb9 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:11:1:872:964 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 15:11:1:916:808 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:11:1:972:947 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:11:2:11:612 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:11:2:73:95 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 15:11:2:112:397 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 15:11:2:216:335 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 15:11:2:310:543 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 15:11:2:411:563 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:11:2:522:452 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:11:2:626:19 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:11:2:716:115 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 15:11:2:756:437 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:11:2:795:237 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/sqlserver/snapshot/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..824b2ced --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:11:3:135:439 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 15:11:3:179:736 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:11:3:235:332 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 15:11:3:273:945 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:11:3:335:349 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 15:11:3:374:702 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 15:11:3:478:357 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 15:11:3:572:787 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 15:11:3:673:634 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:11:3:785:187 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:11:3:885:944 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:11:3:978:231 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 15:11:4:18:986 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:11:4:57:700 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/sqlserver/snapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..7989fb25 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:11:8:566:962 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 15:11:8:611:93 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 15:11:8:654:736 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 15:11:8:666:985 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 15:11:8:705:599 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 15:11:8:744:844 + Q7-T2 execute opt: 'COMMIT'; + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 15:11:8:766:963 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q7 finished at: 2022-4-2 15:11:8:793:768 + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 15:11:8:806:410 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 15:11:8:845:728 + Q11-T3 execute opt: 'COMMIT'; +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q11 finished at: 2022-4-2 15:11:8:884:288 +Q12 finished at: 2022-4-2 15:11:8:909:346 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 15:11:8:962:494 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 15:11:9:2:724 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 15:11:9:41:168 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/sqlserver/snapshot/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..653afee1 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,142 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:11:4:532:278 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 15:11:4:576:738 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:11:4:632:232 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 15:11:4:670:950 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:11:4:710:142 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 15:11:4:732:383 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 15:11:4:748:576 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 15:11:4:771:712 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 15:11:4:786:568 + Q8-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:11:4:810:637 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8 finished at: 2022-4-2 15:11:4:834:374 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 15:11:4:849:970 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 15:11:4:878:258 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 15:11:4:920:993 + Q13 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q13 failed at: 2022-4-2 15:11:6:189:277 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/sqlserver/snapshot/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..3a1a6167 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:53:523:638 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 15:10:53:567:808 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:53:623:647 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 15:10:53:662:888 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:10:53:710:816 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q6 failed at: 2022-4-2 15:10:54:366:205 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/sqlserver/snapshot/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..5160c7af --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:52:740:575 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:52:784:751 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:52:836:952 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:10:52:912:690 + Q5-T2 execute opt: 'COMMIT'; +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:52:958:147 + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 15:10:52:979:104 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:53:21:675 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:10:53:98:573 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:10:53:136:988 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:53:137:707 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..0c6d0ef8 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:4:459:73 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:4:502:849 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:4:559:68 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:4:597:298 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:10:4:636:322 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:10:4:804:683 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q6 failed at: 2022-4-2 15:10:5:408:848 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..4be1bfa1 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:5:878:767 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:5:923:206 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:5:978:668 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:6:17:150 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:10:6:56:452 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q6 finished at: 2022-4-2 15:10:6:101:746 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q7 failed at: 2022-4-2 15:10:6:821:697 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..8e7ff5b4 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_double_write_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:7:293:294 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:7:337:279 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:7:393:199 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:7:431:321 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 15:10:7:536:610 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:7:586:894 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q5 failed at: 2022-4-2 15:10:8:83:849 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_read_skew.txt b/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_read_skew.txt new file mode 100644 index 00000000..e3c70822 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:8:511:426 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:8:555:173 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:8:611:431 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:8:687:386 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:10:8:725:714 + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 15:10:8:753:772 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:10:8:855:206 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:8:953:116 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:8:993:279 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:8:994:35 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_read_skew2.txt new file mode 100644 index 00000000..980640f3 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:10:840:563 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:10:884:525 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:10:940:474 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:10:10:979:579 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:10:11:18:297 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:10:11:82:840 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:11:132:948 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:10:11:178:628 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:11:218:605 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:11:219:569 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..23024a81 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:11:645:912 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:11:689:827 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:11:745:875 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:10:11:784:993 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:10:11:823:187 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:10:11:860:667 +Q7 finished at: 2022-4-2 15:10:11:888:451 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:11:936:525 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:11:976:427 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:11:977:240 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..7d338fd6 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:9:425:495 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 15:10:9:481:999 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:9:526:15 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:9:564:969 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:9:603:17 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 15:10:9:646:33 + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 15:10:9:668:511 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:9:710:872 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 15:10:9:750:637 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:9:751:402 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..e3d29eb7 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:10:89:109 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 15:10:10:132:947 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:10:189:148 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 15:10:10:228:317 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 15:10:10:266:411 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 15:10:10:311:724 + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 15:10:10:331:665 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:10:374:245 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 15:10:10:414:101 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:10:414:873 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..847c7999 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:2:780:2 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:2:823:926 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:2:879:935 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:2:954:608 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:10:2:993:572 + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 15:10:3:22:705 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:10:3:122:354 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:3:227:555 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:3:267:276 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:3:268:25 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..b1884297 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:3:691:857 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:3:735:869 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:3:791:731 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:3:829:812 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:10:3:868:834 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:10:3:918:783 + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 15:10:3:933:993 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:3:987:56 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:4:26:760 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:4:27:450 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/rat_mda_step_rat.txt b/install/test_result/centralizend_result/sqlserver/snapshot/rat_mda_step_rat.txt new file mode 100644 index 00000000..58be1c74 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:12:445:15 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:12:489:40 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:12:544:994 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:12:583:27 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:10:12:622:516 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:10:12:682:683 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 15:10:12:725:246 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 15:10:12:764:724 + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-2 15:10:12:789:927 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:10:12:846:887 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:10:12:891:531 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:10:12:988:91 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 15:10:13:29:35 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:10:13:29:839 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/sqlserver/snapshot/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..1f3924b2 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 15:10:13:493:886 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 15:10:13:535:120 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 15:10:13:556:325 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 15:10:13:600:170 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:10:13:655:995 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 15:10:13:696:182 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 15:10:13:736:254 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 15:10:13:756:66 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 15:10:13:794:371 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 15:10:13:895:628 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 15:10:14:9:897 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:10:14:107:356 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 15:10:14:193:923 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:10:14:232:811 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 15:10:14:274:99 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 15:10:14:312:719 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/sqlserver/snapshot/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..e9f7f591 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:14:783:490 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:14:827:101 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:14:883:153 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:14:921:341 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 15:10:14:960:825 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:10:14:983:301 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 15:10:15:22:136 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 15:10:15:61:884 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-2 15:10:15:126:183 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:10:15:180:433 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:10:15:235:2 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:10:15:332:518 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 15:10:15:372:939 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:10:15:411:665 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/sqlserver/snapshot/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..1e4ce153 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:15:752:584 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 15:10:15:796:343 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:15:852:336 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 15:10:15:890:370 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 15:10:15:930:42 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:10:15:952:448 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 15:10:15:991:259 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-2 15:10:16:30:759 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 15:10:16:95:91 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:10:16:147:162 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:10:16:198:518 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:10:16:311:211 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 15:10:16:352:558 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:10:16:391:129 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/sqlserver/snapshot/rat_sda_dirty_read.txt new file mode 100644 index 00000000..417b28c4 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_read #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:9:57:71:725 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:9:57:115:528 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:9:57:167:35 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:9:57:206:126 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 15:9:57:271:960 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:9:57:367:64 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 15:9:57:406:564 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:9:57:407:272 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/sqlserver/snapshot/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..2f580eab --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:9:58:665:47 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:9:58:709:7 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:9:58:765:27 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:9:58:803:941 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 15:9:58:907:331 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:9:59:1:957 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:9:59:130:303 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 15:9:59:169:919 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:9:59:170:685 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/sqlserver/snapshot/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..040b732d --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:9:59:555:526 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:9:59:599:883 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:9:59:655:323 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:9:59:694:519 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:9:59:731:904 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 15:9:59:801:749 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:9:59:849:671 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 15:9:59:889:374 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:9:59:890:73 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/sqlserver/snapshot/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..dc7f81bb --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/rat_sda_lost_self_update.txt @@ -0,0 +1,39 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:1:647:425 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:1:691:648 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:1:745:924 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 15:10:1:888:910 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 15:10:1:953:238 + Q4 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q4 failed at: 2022-4-2 15:10:2:350:232 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/sqlserver/snapshot/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..e881ba50 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:9:57:788:580 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:9:57:832:445 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:9:57:888:655 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:9:57:927:669 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 15:9:58:31:209 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:9:58:141:320 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:9:58:236:409 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:9:58:275:889 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:9:58:276:702 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/sqlserver/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..56b252e4 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:0:275:757 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 15:10:0:327:647 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:0:375:639 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:10:0:414:551 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:10:0:457:730 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 15:10:0:517:960 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:0:560:338 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 15:10:0:599:977 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:10:0:600:707 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/sqlserver/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..21c291c2 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:0:937:523 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 15:10:0:981:240 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:1:37:550 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 15:10:1:76:277 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:10:1:127:189 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 15:10:1:179:728 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:1:222:71 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 15:10:1:261:954 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:10:1:262:956 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..3b7adebe --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:24:551:59 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:24:595:361 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:24:651:54 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:24:725:934 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 15:10:24:794:895 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:24:844:809 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q5 failed at: 2022-4-2 15:10:25:341:902 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..7c2bbffe --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:25:772:221 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:25:817:158 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:25:872:364 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:25:947:10 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:10:28:422:459 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:10:28:469:100 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 15:10:29:26:165 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..d7724aa3 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:29:495:570 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:29:539:346 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:29:595:718 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:29:634:175 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:10:33:423:35 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:10:33:485:796 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 15:10:34:26:694 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..f2940d12 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:34:503:411 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:34:547:349 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:34:603:462 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:34:641:702 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:10:35:923:502 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:10:35:969:285 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 15:10:36:627:217 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..23651f4e --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:37:93:838 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:37:137:714 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:37:193:811 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:37:233:129 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:37:271:564 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:10:37:442:940 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q6 failed at: 2022-4-2 15:10:38:47:27 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..4e8e23a3 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:38:523:388 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:38:567:456 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:38:623:570 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:38:662:836 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:38:701:67 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:10:38:876:469 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q6 failed at: 2022-4-2 15:10:39:480:599 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..cba25d2d --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:39:952:183 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:39:996:301 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:40:52:109 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:10:40:91:445 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:10:40:201:234 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:40:255:55 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q5 failed at: 2022-4-2 15:10:40:751:942 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..5c10895c --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:41:182:841 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:41:226:971 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:41:282:637 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:10:41:358:467 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:10:41:425:594 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:41:633:197 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q5 failed at: 2022-4-2 15:10:42:130:75 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..681c81b6 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:42:558:652 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:42:602:549 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:42:658:664 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:10:42:734:488 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 15:10:42:800:880 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:42:858:240 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q5 failed at: 2022-4-2 15:10:43:358:405 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/sqlserver/snapshot/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..b4263d86 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/wat_mda_step_wat_c1.txt @@ -0,0 +1,43 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:43:832:781 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:43:876:996 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:43:932:948 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:44:7:694 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:10:44:32:869 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 15:10:44:72:329 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-2 15:10:46:553:844 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:10:46:607:907 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q5 failed at: 2022-4-2 15:10:47:104:887 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 15:10:47:350:363 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/sqlserver/snapshot/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..bb1062a3 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/wat_mda_step_wat_c2.txt @@ -0,0 +1,43 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:47:819:404 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:47:863:228 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:47:919:426 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:47:994:22 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:10:48:19:491 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 15:10:48:295:239 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-2 15:10:51:554:132 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 15:10:51:610:89 + Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q6 failed at: 2022-4-2 15:10:52:207:90 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 15:10:52:350:757 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/sqlserver/snapshot/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..80c59d67 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:16:775:581 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:16:819:504 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:16:875:500 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 15:10:17:17:5 +Q5 finished at: 2022-4-2 15:10:17:17:409 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:10:17:127:707 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 15:10:17:167:283 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 15:10:17:206:932 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:10:17:251:280 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/sqlserver/snapshot/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..fa49b5aa --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,30 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:17:632:221 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:17:676:406 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:17:732:399 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 15:10:17:882:260 + Q4 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q4 failed at: 2022-4-2 15:10:18:279:187 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/wat_sda_full_write.txt b/install/test_result/centralizend_result/sqlserver/snapshot/wat_sda_full_write.txt new file mode 100644 index 00000000..1ae0a561 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/wat_sda_full_write.txt @@ -0,0 +1,32 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:18:666:204 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:18:710:218 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:18:766:310 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 15:10:18:908:618 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 15:10:18:958:521 + Q4 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q4 failed at: 2022-4-2 15:10:19:355:510 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/sqlserver/snapshot/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..d82e312a --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/wat_sda_full_write_committed.txt @@ -0,0 +1,32 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:19:753:984 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:19:798:250 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:19:853:845 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 15:10:19:997:516 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:20:53:361 + Q4 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q4 failed at: 2022-4-2 15:10:20:450:355 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/sqlserver/snapshot/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..63b87de3 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:23:425:74 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:23:469:126 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:23:526:379 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 15:10:23:670:640 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:23:726:104 + Q4 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q4 failed at: 2022-4-2 15:10:24:123:79 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/sqlserver/snapshot/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..2b7fbe4b --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:20:855:508 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 15:10:20:899:548 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:20:955:445 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 15:10:21:31:202 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:10:21:206:775 +Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q5 failed at: 2022-4-2 15:10:21:710:728 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/install/test_result/centralizend_result/sqlserver/snapshot/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/sqlserver/snapshot/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..2b2cc732 --- /dev/null +++ b/install/test_result/centralizend_result/sqlserver/snapshot/wat_sda_lost_update_c2.txt @@ -0,0 +1,39 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:22:142:650 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 15:10:22:186:656 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:22:242:621 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 15:10:22:281:747 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:10:22:490:902 +Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q5 failed at: 2022-4-2 15:10:22:994:953 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/tdsql/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..eccb91ba --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:15:17:391:717 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:15:17:427:134 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:15:20:401:617 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 15:15:20:441:859 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:15:20:481:587 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:15:20:523:643 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-18 15:15:23:396:21 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:15:23:447:383 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:15:53:399:241 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:15:53:439:438 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/tdsql/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..b46a33bb --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:16:1:671:282 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:16:1:705:318 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:16:4:677:75 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:16:4:716:996 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:16:4:756:830 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:16:4:796:475 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-18 15:16:7:671:601 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:16:7:705:558 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:16:37:678:636 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:16:37:718:691 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/iat_dda_write_skew.txt b/install/test_result/centralizend_result/tdsql/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..6cb0ad30 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:16:45:953:334 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:16:45:987:543 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:16:48:959:115 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:16:48:999:529 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:16:49:39:142 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-18 15:16:51:954:19 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:16:51:988:132 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:16:54:959:660 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:17:24:960:821 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:17:25:1:26 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/tdsql/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..662ef40b --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:19:2:41:502 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:19:2:75:636 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:19:5:47:232 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:19:5:87:156 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:19:5:126:947 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:19:5:166:932 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-18 15:19:8:42:5 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:19:8:76:97 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:19:38:48:663 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:19:38:88:879 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/tdsql/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..8152674c --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL PRIMARY KEY);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 20:48:7:328:957 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-23 20:48:7:364:543 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-23 20:48:7:399:719 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-23 20:48:8:330:210 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-23 20:48:8:403:496 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-23 20:48:8:440:555 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 20:48:8:478:136 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 20:48:9:329:760 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-23 20:48:29:367:67 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-23 20:48:29:403:231 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 20:48:29:438:865 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/tdsql/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..51139b15 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:18:17:761:965 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-18 15:18:17:796:249 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:18:20:728:244 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-18 15:18:20:769:6 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-18 15:18:20:808:999 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:18:20:849:778 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-18 15:18:23:762:560 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:18:23:796:655 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-18 15:18:53:769:126 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:18:53:809:232 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/iat_mda_step_iat.txt b/install/test_result/centralizend_result/tdsql/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..62a3372c --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:19:46:360:118 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-18 15:19:46:394:380 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:19:49:366:72 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-18 15:19:49:405:834 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 15:19:52:377:413 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-18 15:19:52:418:582 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-18 15:19:55:360:731 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-18 15:19:58:366:475 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-18 15:20:1:367:176 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 15:20:4:361:19 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 15:20:7:366:912 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:20:10:368:334 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-18 15:20:40:367:138 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:20:40:407:411 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/tdsql/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..87e2ee39 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:24:33:810:836 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:24:33:845:129 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:24:36:816:56 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-18 15:24:36:855:950 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:24:36:895:695 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 15:24:39:817:2 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-18 15:24:39:857:907 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-18 15:24:39:898:278 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:24:39:938:953 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-18 15:24:42:810:777 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-18 15:24:42:844:500 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-18 15:25:12:817:326 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-18 15:25:12:857:300 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/tdsql/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..c39b88d9 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:23:40:499:987 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:23:40:534:825 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:23:43:506:65 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:23:43:546:324 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 15:23:46:506:762 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-18 15:23:46:547:516 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:23:46:588:189 + Q8-T4 execute opt: 'BEGIN' + Q8 finished at: 2022-4-18 15:23:49:506:148 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-18 15:23:49:546:600 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:23:49:586:864 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-18 15:23:52:506:575 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:23:52:546:512 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-18 15:23:55:500:837 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-18 15:23:55:534:754 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-18 15:24:25:540:387 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-18 15:24:25:576:375 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/tdsql/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..f1a37275 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:20:48:676:936 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-18 15:20:48:711:103 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:20:51:682:656 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-18 15:20:51:723:69 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 15:20:54:683:791 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-18 15:20:54:724:596 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-18 15:20:57:677:433 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-18 15:21:0:683:232 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-18 15:21:3:684:251 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 15:21:6:677:569 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 15:21:9:683:489 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:21:12:684:339 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-18 15:21:42:685:639 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:21:42:742:259 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/tdsql/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..2928622b --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:21:50:870:799 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-18 15:21:50:906:231 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:21:53:909:664 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-18 15:21:53:949:760 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 15:21:56:910:525 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-18 15:21:56:951:685 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-18 15:21:59:904:830 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-18 15:22:2:910:145 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-18 15:22:5:911:215 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 15:22:8:905:99 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 15:22:11:910:960 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:22:14:911:445 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-18 15:22:44:911:540 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:22:44:951:204 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/tdsql/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..f289c970 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:25:21:89:672 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-18 15:25:21:123:663 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-18 15:25:21:160:114 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-18 15:25:24:94:583 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-18 15:25:24:134:468 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-18 15:25:24:174:149 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:25:24:213:969 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-18 15:25:27:95:483 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-18 15:25:27:136:386 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-18 15:25:27:177:66 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 15:25:27:217:409 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-18 15:25:30:89:331 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-18 15:25:30:123:645 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-18 15:26:0:97:637 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-18 15:26:0:138:240 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/tdsql/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..d7a6c712 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:22:53:220:840 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-18 15:22:53:266:405 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:22:56:226:576 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-18 15:22:56:266:885 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:22:56:307:242 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-18 15:22:56:347:543 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-18 15:22:56:387:67 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:22:56:427:238 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-18 15:22:59:227:830 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-18 15:22:59:269:11 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-18 15:22:59:309:620 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-18 15:22:59:350:232 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-18 15:22:59:390:808 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:22:59:431:465 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-18 15:23:2:221:462 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-18 15:23:2:267:280 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-18 15:23:32:228:65 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-18 15:23:32:269:261 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/tdsql/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..970f0a90 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:14:33:106:757 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-18 15:14:33:140:820 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:14:36:111:849 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-18 15:14:36:152:208 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:14:36:192:852 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-18 15:14:39:107:572 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:14:39:143:57 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-18 15:15:9:118:814 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:15:9:159:42 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/tdsql/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..af3f964b --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:13:48:817:780 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:13:48:851:985 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:13:51:784:465 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-18 15:13:51:824:621 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:13:51:864:809 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-18 15:13:54:818:406 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:13:54:852:79 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-18 15:14:24:825:217 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:14:24:865:695 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:14:24:906:497 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..f3a93e04 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 20:48:33:681:580 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 20:48:33:716:863 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 20:48:34:682:864 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 20:48:34:719:566 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-23 20:48:34:756:530 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 20:48:36:683:669 +Q6 finished at: 2022-4-23 20:48:36:685:371 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 20:48:37:681:978 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-23 20:48:57:683:237 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 20:48:57:718:849 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..76b0cf6b --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:50:17:952:991 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:50:17:987:209 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:50:20:958:986 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 14:50:20:999:601 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 14:50:21:43:893 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 14:50:21:83:932 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-18 14:50:23:953:767 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 14:50:23:987:540 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-18 14:50:53:960:564 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 14:50:54:0:460 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..50bca9e1 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:51:2:233:702 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:51:2:267:654 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:51:5:239:481 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 14:51:5:279:522 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-18 14:51:8:234:307 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 14:51:8:268:89 + Q5 finished at: 2022-4-18 14:51:8:271:328 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 14:51:11:239:773 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 14:51:41:251:970 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 14:51:41:292:675 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_read_skew.txt b/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..9edce572 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:51:49:526:931 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 14:51:49:560:970 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:51:52:532:530 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 14:51:52:572:399 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 14:51:52:611:820 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-18 14:51:55:529:106 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 14:51:58:533:496 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 14:52:1:527:429 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 14:52:31:534:641 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 14:52:31:574:524 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..cf81889a --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:54:8:306:447 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:54:8:341:75 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:54:11:312:88 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 14:54:11:352:304 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 14:54:11:391:874 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-18 14:54:14:306:985 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 14:54:14:340:765 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 14:54:17:401:934 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 14:54:47:314:77 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 14:54:47:354:253 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..fc33f859 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:54:55:589:148 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:54:55:623:138 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:54:58:594:975 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 14:54:58:635:381 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 14:54:58:674:926 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 14:54:58:714:160 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-18 14:55:1:590:12 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 14:55:1:624:639 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 14:55:31:596:801 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 14:55:31:636:747 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..de8405ce --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:52:39:808:424 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-18 14:52:39:842:651 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:52:42:814:170 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-18 14:52:42:855:24 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-18 14:52:42:894:710 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 14:52:42:934:637 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-18 14:52:45:808:948 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 14:52:45:842:473 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-18 14:53:15:815:793 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 14:53:15:855:696 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..7ba1c0b9 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:53:23:984:175 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-18 14:53:24:19:358 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:53:27:27:435 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-18 14:53:27:67:88 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-18 14:53:27:108:573 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 14:53:27:148:473 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-18 14:53:30:18:180 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 14:53:30:51:611 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-18 14:54:0:24:863 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 14:54:0:64:728 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..c29e97a8 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:47:53:112:989 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:47:53:150:541 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:47:56:118:294 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 14:47:56:158:215 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 14:47:56:198:334 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-18 14:47:59:113:306 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 14:48:2:198:833 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 14:48:5:113:211 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 14:48:35:120:89 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 14:48:35:160:29 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..ecd63f83 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:48:43:395:933 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:48:43:429:935 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:48:46:401:616 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 14:48:46:441:474 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 14:48:46:481:307 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 14:48:46:520:662 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-18 14:48:49:396:508 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 14:48:49:430:286 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 14:49:19:403:316 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 14:49:19:443:482 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/rat_mda_step_rat.txt b/install/test_result/centralizend_result/tdsql/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..0dd9262a --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:55:39:902:589 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:55:39:936:737 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:55:42:908:401 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 14:55:42:948:303 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 14:55:42:988:784 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 14:55:45:909:449 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-18 14:55:45:950:558 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-18 14:55:45:991:68 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-18 14:55:48:903:415 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 14:55:48:937:506 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 14:55:51:909:398 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 14:55:54:910:182 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-18 14:56:24:949:534 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 14:56:24:988:937 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/tdsql/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..5d80be7e --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN' + Q1 finished at: 2022-4-18 14:56:33:228:606 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-18 14:56:33:269:487 +Q3-T1 execute opt: 'BEGIN' +Q3 finished at: 2022-4-18 14:56:36:222:301 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-18 14:56:36:256:594 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 14:56:39:229:34 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-18 14:56:39:270:424 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-18 14:56:39:311:222 + Q8-T2 execute opt: 'BEGIN' + Q8 finished at: 2022-4-18 14:56:42:228:93 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-18 14:56:42:267:958 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-18 14:56:45:229:648 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-18 14:56:48:222:780 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 14:56:51:228:973 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-18 14:56:54:229:651 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 14:57:24:228:965 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-18 14:57:24:270:535 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-18 14:57:24:311:285 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/tdsql/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..2ec15f59 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:57:32:576:60 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:57:32:609:998 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:57:35:581:748 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-18 14:57:35:621:711 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-18 14:57:35:661:482 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 14:57:38:586:149 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-18 14:57:38:627:911 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-18 14:57:38:669:317 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-18 14:57:41:576:867 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 14:57:41:611:120 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 14:57:44:582:405 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 14:57:47:583:981 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-18 14:58:17:583:297 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 14:58:17:622:798 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/tdsql/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..38b0b3a9 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:58:25:754:376 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-18 14:58:25:789:385 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:58:28:793:634 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-18 14:58:28:833:968 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-18 14:58:28:873:882 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 14:58:31:794:285 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-18 14:58:31:837:190 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-18 14:58:31:877:930 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-18 14:58:34:791:90 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 14:58:34:825:174 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 14:58:37:794:63 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 14:58:40:795:95 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-18 14:59:10:794:948 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 14:59:10:836:247 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/tdsql/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..c9f759b5 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:42:25:329:647 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:42:25:367:350 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:42:28:338:202 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-18 14:42:28:417:951 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-18 14:42:31:329:662 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 14:42:34:336:85 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-18 14:43:4:376:745 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 14:43:4:417:82 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/tdsql/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..be50eb4e --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:44:2:863:843 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:44:2:897:684 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:44:5:867:300 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-18 14:44:5:907:946 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-18 14:44:8:861:613 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 14:44:11:867:57 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 14:44:14:861:592 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-18 14:44:44:868:705 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 14:44:44:908:925 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/tdsql/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..f3b6f135 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:44:53:107:861 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:44:53:143:759 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:44:56:113:591 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-18 14:44:56:153:556 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 14:44:56:193:747 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-18 14:44:59:108:653 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 14:44:59:143:188 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-18 14:45:29:115:663 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 14:45:29:155:622 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/tdsql/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..36bb4c28 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:47:5:817:242 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:47:5:851:212 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:47:8:822:866 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-18 14:47:11:817:829 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-18 14:47:11:851:535 + Q4 finished at: 2022-4-18 14:47:11:855:51 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 14:47:14:823:696 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-18 14:47:44:824:494 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 14:47:44:864:411 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/tdsql/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..7954b328 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:43:12:614:644 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 14:43:12:649:188 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:43:15:620:548 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-18 14:43:15:660:442 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-18 14:43:18:615:494 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 14:43:21:621:17 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 14:43:24:614:884 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-18 14:43:54:622:39 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 14:43:54:662:17 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/tdsql/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..4778fa8c --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:45:37:351:867 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-18 14:45:37:386:232 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:45:40:357:133 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-18 14:45:40:398:697 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 14:45:40:438:395 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-18 14:45:43:352:239 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 14:45:43:385:955 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-18 14:46:13:358:942 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 14:46:13:400:860 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/tdsql/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..291e0b0a --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:46:21:534:85 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-18 14:46:21:569:383 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:46:24:572:930 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-18 14:46:24:612:705 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 14:46:24:652:598 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-18 14:46:27:567:736 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 14:46:27:601:108 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-18 14:46:57:574:641 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 14:46:57:614:620 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..21e0db23 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:4:46:937:125 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:4:46:971:154 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:4:49:942:963 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 15:4:49:982:987 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-18 15:4:52:937:933 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:4:52:971:706 + Q5 finished at: 2022-4-18 15:4:52:974:952 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:4:53:15:127 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:5:22:944:649 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:5:22:984:956 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..504f2e5f --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:5:31:217:63 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:5:31:251:36 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:5:34:222:866 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:5:34:262:976 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-18 15:5:37:221:315 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-e5-3c-625d0dbb-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-18 15:5:37:818:624 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-e5-3c-625d0dbb-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..6c7115d9 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,33 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:6:18:642:90 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:6:18:676:380 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:6:21:608:637 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:6:21:648:709 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-18 15:6:24:646:644 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-e5-41-625d0dea-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-18 15:6:25:243:498 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-e5-41-625d0dea-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..6d15cfc9 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:7:9:85:633 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:7:9:119:770 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:7:12:52:469 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:7:12:97:971 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-18 15:7:15:97:784 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:7:15:137:896 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-e5-46-625d0e1d-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-18 15:7:15:787:384 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-e5-46-625d0e1d-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..1f3877b8 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 20:49:1:958:380 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 20:49:1:993:904 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 20:49:2:959:777 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-23 20:49:2:998:453 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-23 20:49:3:35:173 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-23 20:49:4:960:156 +Q6 finished at: 2022-4-23 20:49:4:961:669 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 20:49:4:997:38 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-23 20:49:24:960:158 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 20:49:24:995:709 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..c393a0e0 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 20:49:29:236:396 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 20:49:29:271:838 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 20:49:30:237:696 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-23 20:49:30:276:528 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-23 20:49:30:312:997 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 20:49:32:238:222 +Q6 finished at: 2022-4-23 20:49:32:240:7 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 20:49:33:236:881 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-23 20:49:53:238:214 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 20:49:53:273:863 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..07a39ebd --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:9:31:92:426 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:9:31:126:574 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:9:34:99:509 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:9:34:147:241 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-18 15:9:37:93:211 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:9:37:127:396 + Q5 finished at: 2022-4-18 15:9:37:130:598 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:9:40:107:237 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:10:10:99:723 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:10:10:139:759 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..df3fe717 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:10:18:372:289 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:10:18:406:219 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:10:21:378:67 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:10:21:418:529 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-18 15:10:24:373:147 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:10:30:373:213 + Q5 finished at: 2022-4-18 15:10:30:376:121 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:10:30:416:710 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:11:0:379:838 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:11:0:420:795 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..cda73ace --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:11:8:652:296 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:11:8:686:98 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:11:11:658:268 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:11:11:697:925 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-18 15:11:14:653:77 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:11:14:687:197 + Q5 finished at: 2022-4-18 15:11:14:690:262 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:11:14:730:80 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:11:44:659:975 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:11:44:700:882 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/tdsql/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..0c14f0d9 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:11:52:967:902 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:11:53:1:985 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:11:55:973:459 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:11:56:13:682 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 15:11:58:975:376 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 15:11:59:16:365 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-18 15:12:1:971:972 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-e5-54-625d0f38-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-18 15:12:2:869:558 + Q8 finished at: 2022-4-18 15:12:2:945:925 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-e5-54-625d0f38-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/tdsql/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..4037cdf0 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:12:46:428:155 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:12:46:462:168 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:12:49:394:761 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:12:49:434:818 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 15:12:52:394:768 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 15:12:58:439:739 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-18 15:13:1:432:535 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-e5-5a-625d0f6e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-18 15:13:2:329:704 + Q8 finished at: 2022-4-18 15:13:4:467:579 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-e5-5a-625d0f6e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/tdsql/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..d318473f --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:59:19:61:270 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:59:19:97:151 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:59:22:68:408 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-18 14:59:25:61:799 + Q4 finished at: 2022-4-18 14:59:25:67:826 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 14:59:28:68:198 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-18 14:59:58:68:828 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-18 14:59:58:124:918 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 14:59:58:165:148 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/tdsql/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..32a0f8df --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:0:6:364:302 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:0:6:398:669 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:0:9:370:295 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-18 15:0:12:365:135 + Q4 finished at: 2022-4-18 15:0:12:368:336 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:0:15:370:896 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-18 15:0:45:371:971 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-18 15:0:45:427:511 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:0:45:467:517 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/wat_sda_full_write.txt b/install/test_result/centralizend_result/tdsql/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..6468e30c --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:0:53:666:194 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:0:53:700:244 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:0:56:672:40 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-18 15:0:59:666:436 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-18 15:0:59:701:165 + Q4 finished at: 2022-4-18 15:0:59:703:444 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:1:2:673:74 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-18 15:1:32:673:475 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:1:32:713:698 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/tdsql/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..8425c099 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:1:40:914:644 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:1:40:948:992 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:1:43:920:777 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-18 15:1:46:915:179 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:1:46:949:309 + Q4 finished at: 2022-4-18 15:1:46:952:502 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:1:46:992:292 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-18 15:2:16:923:975 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:2:16:964:942 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/tdsql/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..b2ca35a6 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:4:2:656:456 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:4:2:690:321 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:4:5:662:272 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-18 15:4:8:657:49 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:4:8:691:41 + Q4 finished at: 2022-4-18 15:4:8:694:118 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:4:8:733:763 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-18 15:4:38:664:425 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:4:38:704:874 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/tdsql/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..b560cfc8 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 20:49:57:479:233 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-23 20:49:57:514:659 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 20:49:58:481:719 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-23 20:49:58:520:918 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 20:50:0:481:456 +Q5 finished at: 2022-4-23 20:50:0:483:211 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-23 20:50:0:518:609 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-23 20:50:20:481:34 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 20:50:20:519:63 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/tdsql/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..9319700f --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 20:50:24:726:989 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-23 20:50:24:763:466 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 20:50:25:728:286 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-23 20:50:25:765:27 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 20:50:27:729:32 +Q5 finished at: 2022-4-23 20:50:27:730:794 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 20:50:28:727:661 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-23 20:50:48:728:730 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 20:50:48:764:315 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..cb713a4a --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:41:42:503:147 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:41:42:535:828 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:41:43:503:318 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 15:41:43:536:624 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:41:43:569:303 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:41:43:602:157 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-18 15:41:44:504:230 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:41:44:536:575 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:41:54:507:703 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:41:54:543:599 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..1d57c3f9 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:41:58:770:750 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:41:58:804:38 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:41:59:772:232 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:41:59:805:544 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:41:59:838:390 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:41:59:871:278 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-18 15:42:0:771:234 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:42:0:803:707 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:42:10:775:592 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:42:10:811:632 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/iat_dda_write_skew.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..54a43dfe --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:42:15:43:528 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:42:15:111:407 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:42:16:43:648 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:42:16:76:829 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:42:16:109:549 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-18 15:42:17:43:902 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:42:17:81:34 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:42:18:44:114 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:42:28:47:615 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:42:28:83:552 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..c2e4b535 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:43:5:186:275 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:43:5:219:0 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:43:6:191:698 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:43:6:225:772 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:43:6:258:480 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:43:6:291:496 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-18 15:43:7:187:103 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:43:7:219:603 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:43:17:190:681 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:43:17:226:425 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..e05579c4 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL PRIMARY KEY);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 20:52:34:444:395 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-23 20:52:34:486:718 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-23 20:52:34:525:613 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-23 20:52:35:443:334 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-23 20:52:35:517:933 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-23 20:52:35:555:85 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 20:52:35:592:364 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 20:52:36:444:982 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-23 20:52:56:479:560 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-23 20:52:56:516:90 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 20:52:56:551:794 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..c1db5233 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:42:48:918:38 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-18 15:42:48:950:638 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:42:49:886:179 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-18 15:42:49:919:732 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-18 15:42:49:952:957 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:42:49:985:978 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-18 15:42:50:939:456 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:42:50:972:251 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-18 15:43:0:922:528 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:43:0:958:471 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/iat_mda_step_iat.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..76a39fc2 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:43:21:486:548 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-18 15:43:21:519:365 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:43:22:487:448 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-18 15:43:22:520:776 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 15:43:23:490:601 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-18 15:43:23:527:110 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-18 15:43:24:487:98 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-18 15:43:25:487:368 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-18 15:43:26:490:929 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 15:43:27:486:918 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 15:43:28:488:84 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:43:29:490:910 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-18 15:43:39:498:612 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:43:39:537:664 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..6b86a05f --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:45:4:907:138 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:45:4:940:67 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:45:5:907:603 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-18 15:45:5:940:761 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:45:5:974:3 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 15:45:6:911:187 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-18 15:45:6:947:667 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-18 15:45:6:983:867 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:45:7:20:321 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-18 15:45:7:908:111 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-18 15:45:7:940:996 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-18 15:45:17:914:699 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-18 15:45:17:953:720 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..9b5df999 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:44:45:592:531 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:44:45:627:679 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:44:46:591:988 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:44:46:625:291 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 15:44:47:595:884 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-18 15:44:47:632:397 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:44:47:668:703 + Q8-T4 execute opt: 'BEGIN' + Q8 finished at: 2022-4-18 15:44:48:599:57 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-18 15:44:48:639:8 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:44:48:678:444 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-18 15:44:49:592:998 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:44:49:626:54 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-18 15:44:50:592:840 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-18 15:44:50:625:103 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-18 15:45:0:640:113 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-18 15:45:0:680:241 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..bc238946 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:43:43:796:182 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-18 15:43:43:829:24 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:43:44:796:121 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-18 15:43:44:829:649 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 15:43:45:799:665 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-18 15:43:45:835:966 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-18 15:43:46:796:876 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-18 15:43:47:796:910 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-18 15:43:48:800:63 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 15:43:49:796:670 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 15:43:50:796:783 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:43:51:800:145 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-18 15:44:1:808:289 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:44:1:848:132 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..e52d527d --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:44:5:976:315 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-18 15:44:6:9:821 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:44:7:8:306 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-18 15:44:7:41:457 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 15:44:8:11:878 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-18 15:44:8:48:312 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-18 15:44:9:9:542 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-18 15:44:10:9:19 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-18 15:44:11:12:264 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 15:44:12:8:958 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 15:44:13:9:279 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:44:14:12:579 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-18 15:44:24:16:442 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:44:24:55:566 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..b61161b0 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:45:22:181:589 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-18 15:45:22:214:460 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-18 15:45:22:247:289 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-18 15:45:23:183:201 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-18 15:45:23:216:217 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-18 15:45:23:248:810 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:45:23:282:61 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-18 15:45:24:184:513 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-18 15:45:24:221:764 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-18 15:45:24:257:976 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 15:45:24:294:324 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-18 15:45:25:181:400 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-18 15:45:25:214:195 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-18 15:45:35:185:328 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-18 15:45:35:222:134 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..2e1ff714 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:44:28:317:196 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-18 15:44:28:349:845 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:44:29:324:585 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-18 15:44:29:357:807 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:44:29:391:618 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-18 15:44:29:424:717 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-18 15:44:29:457:395 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:44:29:490:445 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-18 15:44:30:320:712 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-18 15:44:30:359:933 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-18 15:44:30:396:251 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-18 15:44:30:432:490 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-18 15:44:30:468:801 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:44:30:505:164 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-18 15:44:31:324:325 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-18 15:44:31:356:468 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-18 15:44:41:324:744 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-18 15:44:41:363:970 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..7536ff22 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:41:26:235:443 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-18 15:41:26:268:102 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:41:27:235:580 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-18 15:41:27:268:920 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:41:27:301:787 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-18 15:41:28:238:656 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:41:28:271:415 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-18 15:41:38:239:976 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:41:38:275:804 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..99abff34 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:41:9:951:482 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:41:9:984:828 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:41:10:918:709 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-18 15:41:10:951:859 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:41:10:984:546 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-18 15:41:11:951:166 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:41:11:984:962 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-18 15:41:21:957:389 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:41:21:993:134 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:41:22:29:3 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..581ab111 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 20:53:0:809:710 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 20:53:0:848:420 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 20:53:1:808:760 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 20:53:1:846:502 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-23 20:53:1:883:914 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-23 20:53:3:806:834 + Q7 finished at: 2022-4-23 20:53:3:809:936 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 20:53:4:810:446 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-23 20:53:24:808:607 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 20:53:24:844:204 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..fc2f295b --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:32:35:191:9 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:32:35:223:638 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:32:36:191:121 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 15:32:36:224:531 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 15:32:36:257:343 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:32:36:295:408 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-18 15:32:37:191:680 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:32:37:224:165 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-18 15:32:47:195:409 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:32:47:230:986 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..1a3f6b7a --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:32:51:473:702 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:32:51:506:272 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:32:52:473:942 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 15:32:52:506:897 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-18 15:32:53:474:222 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:32:53:507:505 + Q5 finished at: 2022-4-18 15:32:53:508:502 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:32:54:474:556 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:33:4:478:280 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:33:4:513:910 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_read_skew.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..bb5a9809 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:33:8:741:873 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:33:8:774:486 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:33:9:741:921 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 15:33:9:776:97 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:33:9:809:74 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-18 15:33:10:744:265 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:33:11:746:307 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:33:12:742:249 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:33:22:746:921 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:33:22:782:661 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..08d121ec --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:33:59:480:793 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:33:59:513:333 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:34:0:481:11 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:34:0:514:150 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 15:34:0:547:112 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-18 15:34:1:482:216 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:34:1:514:826 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:34:2:481:437 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:34:12:485:571 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:34:12:521:162 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..39bdc507 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:34:16:747:495 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:34:16:780:197 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:34:17:748:60 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:34:17:781:467 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 15:34:17:814:403 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:34:17:846:716 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-18 15:34:18:748:307 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:34:18:781:214 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:34:28:752:86 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:34:28:787:811 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..ac9c646c --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:33:27:8:914 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-18 15:33:27:41:470 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:33:28:9:312 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-18 15:33:28:42:267 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:33:28:74:770 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:33:28:107:682 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-18 15:33:29:9:580 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:33:29:41:382 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-18 15:33:39:13:226 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:33:39:50:151 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..5ebb0989 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:33:43:178:584 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-18 15:33:43:212:230 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:33:44:210:667 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-18 15:33:44:243:769 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-18 15:33:44:276:563 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:33:44:309:432 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-18 15:33:45:211:461 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:33:45:243:579 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-18 15:33:55:214:990 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:33:55:250:523 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..5a6df7ba --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:31:42:388:115 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:31:42:420:691 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:31:43:388:319 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 15:31:43:421:737 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 15:31:43:454:577 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-18 15:31:44:388:698 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:31:45:388:964 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:31:46:388:563 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:31:56:392:337 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:31:56:427:895 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..1189597e --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:32:0:654:190 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:32:0:687:468 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:32:1:654:418 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 15:32:1:687:508 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 15:32:1:721:417 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:32:1:754:248 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-18 15:32:2:654:804 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:32:2:687:185 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:32:12:658:649 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:32:12:694:91 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/rat_mda_step_rat.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..9e2464a5 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:34:33:56:258 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:34:33:88:925 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:34:34:56:596 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 15:34:34:89:610 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 15:34:34:122:604 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 15:34:35:60:178 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-18 15:34:35:96:693 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-18 15:34:35:133:314 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-18 15:34:36:57:369 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 15:34:36:91:288 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 15:34:37:57:438 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:34:38:60:607 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-18 15:34:48:102:969 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:34:48:142:43 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..25542689 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN' + Q1 finished at: 2022-4-18 15:34:52:378:962 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-18 15:34:52:419:417 +Q3-T1 execute opt: 'BEGIN' +Q3 finished at: 2022-4-18 15:34:53:371:775 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-18 15:34:53:404:324 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 15:34:54:375:267 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-18 15:34:54:411:762 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-18 15:34:54:448:38 + Q8-T2 execute opt: 'BEGIN' + Q8 finished at: 2022-4-18 15:34:55:372:244 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-18 15:34:55:405:70 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-18 15:34:56:379:815 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-18 15:34:57:378:664 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:34:58:372:688 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-18 15:34:59:375:722 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:35:9:379:67 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-18 15:35:9:418:904 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-18 15:35:9:457:994 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..31b814bc --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:35:13:720:180 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:35:13:752:744 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:35:14:720:892 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-18 15:35:14:753:984 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-18 15:35:14:786:754 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 15:35:15:724:61 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-18 15:35:15:760:291 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-18 15:35:15:796:609 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-18 15:35:16:721:4 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 15:35:16:753:533 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 15:35:17:721:481 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:35:18:724:500 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-18 15:35:28:728:40 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:35:28:766:952 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..25d8f7f2 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:35:32:898:5 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-18 15:35:32:931:710 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:35:33:930:119 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-18 15:35:33:963:273 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-18 15:35:33:996:350 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 15:35:34:933:794 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-18 15:35:34:970:138 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-18 15:35:35:6:603 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-18 15:35:35:931:9 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 15:35:35:963:589 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 15:35:36:931:15 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:35:37:934:240 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-18 15:35:47:937:760 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:35:47:976:647 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..08bf1251 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:29:42:702:59 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:29:42:734:684 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:29:43:701:861 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-18 15:29:43:767:438 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-18 15:29:44:702:25 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:29:45:702:159 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-18 15:29:55:741:497 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:29:55:776:948 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..b68cf440 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:30:18:208:850 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:30:18:241:309 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:30:19:208:486 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-18 15:30:19:241:706 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-18 15:30:20:208:784 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:30:21:209:261 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:30:22:209:569 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-18 15:30:32:212:765 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:30:32:248:232 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..16eb2a2c --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:30:36:442:245 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:30:36:474:912 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:30:37:442:684 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-18 15:30:37:477:613 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:30:37:511:550 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-18 15:30:38:442:847 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:30:38:475:369 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-18 15:30:48:447:578 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:30:48:483:388 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..6eff50b3 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:31:25:117:112 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:31:25:150:728 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:31:26:116:285 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-18 15:31:27:116:906 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-18 15:31:27:149:268 + Q4 finished at: 2022-4-18 15:31:27:149:697 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:31:28:117:140 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-18 15:31:38:120:538 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:31:38:156:212 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..ae7a3812 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:29:59:971:224 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:30:0:6:742 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:30:0:971:15 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-18 15:30:1:4:112 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-18 15:30:1:973:150 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:30:2:971:826 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:30:3:971:345 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-18 15:30:13:975:541 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:30:14:11:11 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..fedb6911 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:30:52:677:914 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-18 15:30:52:710:553 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:30:53:678:111 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-18 15:30:53:711:28 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:30:53:743:666 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-18 15:30:54:678:654 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:30:54:711:95 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-18 15:31:4:683:585 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:31:4:720:69 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..b0c575ac --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:31:8:848:995 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-18 15:31:8:882:541 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:31:9:881:189 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-18 15:31:9:914:245 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:31:9:946:941 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-18 15:31:10:881:345 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:31:10:913:334 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-18 15:31:20:885:412 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:31:20:922:726 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..5dc2dacc --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 20:53:29:104:260 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 20:53:29:143:888 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 20:53:30:104:611 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 20:53:30:143:522 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-23 20:53:31:105:410 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 20:53:31:150:626 + Q5 finished at: 2022-4-23 20:53:31:153:680 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 20:53:31:191:237 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-23 20:53:51:102:653 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 20:53:51:138:347 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..e88fd420 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:38:8:255:63 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:38:8:288:881 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:38:9:255:199 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:38:9:288:502 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-18 15:38:10:257:327 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-74-58-625d1560-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-18 15:38:10:857:476 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-74-58-625d1560-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..22c51306 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,33 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:38:25:748:398 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:38:25:781:326 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:38:26:708:801 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:38:26:742:493 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-18 15:38:27:741:867 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-74-5d-625d1571-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-18 15:38:28:343:51 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-74-5d-625d1571-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..cd0327ce --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:38:44:162:396 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:38:44:195:16 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:38:45:130:142 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:38:45:163:396 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-18 15:38:46:163:499 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:38:46:196:538 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-74-62-625d1584-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-18 15:38:46:863:642 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-74-62-625d1584-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..3a051dcb --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:39:0:620:344 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:39:0:652:938 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:39:1:586:472 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:39:1:619:813 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:39:1:652:398 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:39:3:619:382 +Q6 finished at: 2022-4-18 15:39:3:620:240 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:39:3:656:252 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:39:13:622:773 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:39:13:658:609 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..e3e3f2fd --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:39:17:921:422 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:39:17:954:141 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:39:18:886:588 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:39:18:919:740 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:39:18:954:40 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:39:20:887:874 +Q6 finished at: 2022-4-18 15:39:20:888:700 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:39:21:887:491 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:39:31:892:38 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:39:31:927:859 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..9679f888 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:39:36:208:856 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:39:36:242:900 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:39:37:207:699 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:39:37:241:320 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-18 15:39:38:207:896 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:39:38:241:263 + Q5 finished at: 2022-4-18 15:39:38:241:778 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:39:39:208:259 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:39:49:211:745 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:39:49:248:375 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..11261695 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:39:53:476:591 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:39:53:515:580 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:39:54:476:762 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:39:54:510:3 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-18 15:39:55:482:961 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:39:57:477:603 + Q5 finished at: 2022-4-18 15:39:57:478:602 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:39:57:511:478 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:40:7:485:163 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:40:7:521:147 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..a954df96 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 20:53:55:401:230 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 20:53:55:440:239 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 20:53:56:400:152 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-23 20:53:56:440:602 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-23 20:53:57:403:955 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 20:53:57:442:480 + Q5 finished at: 2022-4-23 20:53:57:445:438 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 20:53:57:482:833 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-23 20:54:17:400:9 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 20:54:17:435:982 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..8505987b --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:40:28:66:634 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:40:28:99:327 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:40:29:67:485 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:40:29:100:504 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 15:40:30:70:65 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 15:40:30:107:10 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-18 15:40:31:68:216 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-74-70-625d15ec-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-18 15:40:31:968:349 + Q8 finished at: 2022-4-18 15:40:32:37:223 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-74-70-625d15ec-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..eab33a57 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:40:47:562:721 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:40:47:595:263 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:40:48:530:736 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:40:48:563:863 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 15:40:49:530:738 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 15:40:51:567:663 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-18 15:40:52:564:273 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-74-76-625d15ff-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-18 15:40:53:464:405 + Q8 finished at: 2022-4-18 15:40:53:598:596 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-74-76-625d15ff-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..c326781e --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:35:52:175:2 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:35:52:207:421 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:35:53:175:224 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-18 15:35:54:175:611 + Q4 finished at: 2022-4-18 15:35:54:175:906 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:35:55:176:673 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-18 15:36:5:179:750 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-18 15:36:5:232:914 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:36:5:268:602 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..03555579 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:36:9:468:469 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:36:9:502:399 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:36:10:469:357 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-18 15:36:11:468:187 + Q4 finished at: 2022-4-18 15:36:11:468:502 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:36:12:468:540 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-18 15:36:22:471:834 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-18 15:36:22:524:49 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:36:22:559:527 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/wat_sda_full_write.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..ea4f4df2 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:36:26:762:755 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:36:26:795:330 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:36:27:762:958 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-18 15:36:28:763:312 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-18 15:36:28:796:284 + Q4 finished at: 2022-4-18 15:36:28:796:633 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:36:29:763:657 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-18 15:36:39:767:743 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:36:39:804:45 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..6798de5e --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:36:43:998:163 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:36:44:33:978 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:36:44:998:769 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-18 15:36:45:998:973 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:36:46:31:449 + Q4 finished at: 2022-4-18 15:36:46:31:804 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:36:46:64:624 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-18 15:36:56:2:589 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:36:56:38:224 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..640bfdf4 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:37:35:714:993 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:37:35:747:473 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:37:36:731:225 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-18 15:37:37:716:82 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:37:37:749:566 + Q4 finished at: 2022-4-18 15:37:37:751:461 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:37:37:785:912 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-18 15:37:47:719:563 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:37:47:755:527 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..8515e2a6 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 20:54:21:659:361 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-23 20:54:21:698:431 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 20:54:22:658:243 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-23 20:54:22:697:789 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-23 20:54:24:656:112 +Q6-T1 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 20:54:24:658:821 +Q6 finished at: 2022-4-23 20:54:24:694:817 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-23 20:54:44:657:889 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 20:54:44:693:623 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/repeatable-read/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..2b455816 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:37:17:472:38 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-18 15:37:17:504:623 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:37:18:472:337 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-18 15:37:18:505:413 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:37:20:472:946 +Q5 finished at: 2022-4-18 15:37:20:473:652 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:37:21:474:879 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-18 15:37:31:484:98 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:37:31:520:53 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tdsql/result_summary/read-committed_total-result.txt b/install/test_result/centralizend_result/tdsql/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..38745346 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/tdsql/result_summary/repeatable-read_total-result.txt b/install/test_result/centralizend_result/tdsql/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..ef182286 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/tdsql/result_summary/serializable_total-result.txt b/install/test_result/centralizend_result/tdsql/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..b5b686cf --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/result_summary/serializable_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Rollback + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Rollback + +rat_dda_read_skew2_committed: Rollback + +rat_mda_step_rat: Rollback + +rat_mda_step_rat_long_fork: Rollback + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Rollback + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Rollback + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +iat_mda_step_iat_predicate_based_delete: Rollback + +iat_mda_step_iat_predicate_based_insert: Rollback + +iat_mda_step_iat_uname_anomaly: Rollback + +iat_mda_step_iat_cross_phenomenon: Rollback + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Rollback + diff --git a/install/test_result/centralizend_result/tdsql/serializable/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/tdsql/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..ed9314ee --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:23:55:649:6 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 21:23:55:683:111 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:23:56:615:509 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 21:23:56:655:683 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:23:57:654:414 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:23:57:693:262 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-99-6263fdeb-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-23 21:23:58:350:6 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-99-6263fdeb-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/tdsql/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..8a79473b --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:24:22:74:447 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 21:24:22:109:490 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:24:23:29:810 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-23 21:24:23:69:169 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:24:24:68:968 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:24:24:107:661 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-a0-6263fe06-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-23 21:24:24:775:449 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-a0-6263fe06-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/iat_dda_write_skew.txt b/install/test_result/centralizend_result/tdsql/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..b9dcf586 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/iat_dda_write_skew.txt @@ -0,0 +1,47 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:24:48:488:80 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 21:24:48:522:156 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:24:49:454:536 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-23 21:24:49:493:665 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:24:50:493:547 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-a7-6263fe20-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-23 21:24:51:89:337 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-a7-6263fe20-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/tdsql/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..09aae02d --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,49 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:26:8:699:307 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 21:26:8:734:564 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:26:9:665:879 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-23 21:26:9:705:680 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:26:10:704:891 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:26:10:743:456 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-b9-6263fe70-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-23 21:26:11:400:883 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-b9-6263fe70-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/tdsql/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..0d192f0b --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL PRIMARY KEY);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:25:15:968:256 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-23 21:25:16:2:367 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-23 21:25:16:36:275 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-23 21:25:16:934:793 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 21:25:17:968:681 + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-23 21:25:17:973:644 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-23 21:25:18:12:292 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 21:25:18:51:74 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-23 21:25:37:970:562 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-23 21:25:38:6:22 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 21:25:38:40:887 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/tdsql/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..5c38d3c6 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,49 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:25:42:272:969 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-23 21:25:42:307:782 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:25:43:277:568 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-23 21:25:43:317:621 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q5 finished at: 2022-4-23 21:25:44:278:959 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:25:44:317:748 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-b2-6263fe56-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-23 21:25:44:974:595 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-b2-6263fe56-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/iat_mda_step_iat.txt b/install/test_result/centralizend_result/tdsql/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..a203da36 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/iat_mda_step_iat.txt @@ -0,0 +1,86 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:21:28:7:132 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-24 12:21:28:44:30 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:21:28:970:0 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 12:21:29:7:199 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-24 12:21:29:970:13 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 12:21:30:4:790 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 finished at: 2022-4-24 12:21:33:8:364 + Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-157-6264d049-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q9 failed at: 2022-4-24 12:21:33:904:522 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]set_1650716943_1:Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-24 12:21:52:709:607 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-157-6264d049-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/tdsql/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..2c1658b8 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:29:9:223:885 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 21:29:9:258:237 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:29:10:190:386 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-23 21:29:11:190:408 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-23 21:29:12:224:901 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-23 21:29:12:258:791 + Q4 finished at: 2022-4-23 21:29:12:263:517 + Q5-T2 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-23 21:29:12:298:983 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:29:12:302:324 + Q8 finished at: 2022-4-23 21:29:12:334:487 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:29:12:369:975 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-23 21:29:32:223:152 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-23 21:29:32:255:149 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/serializable/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/tdsql/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..83f30d91 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,171 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:20:21:906:223 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 12:20:21:943:337 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:20:22:905:735 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 12:20:22:979:246 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-24 12:20:23:902:219 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T4 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 12:20:24:906:45 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-24 12:20:26:908:95 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 12:20:26:945:454 + Q9 finished at: 2022-4-24 12:20:26:945:830 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 12:20:26:982:432 + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-24 12:20:26:982:731 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-24 12:20:27:19:39 + Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-14c-6264d007-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q6 failed at: 2022-4-24 12:20:27:504:275 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-14c-6264d007-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/tdsql/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..843fc799 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,86 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:20:41:367:839 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-24 12:20:41:404:536 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:20:42:331:569 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 12:20:42:368:578 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-24 12:20:43:331:621 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 12:20:43:367:50 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q8 finished at: 2022-4-24 12:20:46:369:581 + Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-14f-6264d01b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q9 failed at: 2022-4-24 12:20:47:265:789 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]set_1650716943_1:Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-24 12:21:6:71:47 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-14f-6264d01b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/tdsql/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..e878d4a8 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,81 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:27:39:902:9 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-23 21:27:39:937:101 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:27:40:901:992 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-23 21:27:40:941:185 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-23 21:27:41:901:984 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-23 21:27:41:938:715 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-d3-6263fecc-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q8 failed at: 2022-4-23 21:27:44:741:390 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]set_1650716943_1:Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-23 21:28:4:638:982 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-d3-6263fecc-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/tdsql/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..dd59de9c --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,120 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:21:10:533:651 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 12:21:10:570:426 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-24 12:21:10:607:10 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-24 12:21:11:497:374 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-24 12:21:11:535:777 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 12:21:12:497:400 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-24 12:21:12:533:554 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q6 finished at: 2022-4-24 12:21:13:536:18 + Q7-T2 execute opt: 'COMMIT'; + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-24 12:21:13:569:7 + Q11-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 12:21:13:572:975 + Q11 finished at: 2022-4-24 12:21:13:602:2 +Q12 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-168-6264d036-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q12 failed at: 2022-4-24 12:21:14:735:866 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-168-6264d036-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/tdsql/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..58ad193c --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,127 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:28:12:381:50 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-23 21:28:12:415:314 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:28:13:347:668 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-23 21:28:13:388:208 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-23 21:28:13:432:630 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-23 21:28:13:471:305 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-23 21:28:14:347:665 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-23 21:28:14:383:666 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-23 21:28:14:431:981 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-23 21:28:15:386:970 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-23 21:28:15:425:795 + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-23 21:28:15:431:774 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-23 21:28:15:467:372 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-23 21:28:15:503:176 +Q15 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-de-6263feec-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q15 failed at: 2022-4-23 21:28:16:882:722 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-de-6263feec-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/tdsql/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..0046ee13 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:23:29:218:876 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-23 21:23:29:252:817 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:23:30:223:370 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-23 21:23:31:219:728 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 21:23:31:253:629 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-93-6263fdd2-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q4 failed at: 2022-4-23 21:23:31:624:832 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-93-6263fdd2-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/tdsql/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..1112ca71 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:23:2:902:855 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 21:23:2:937:12 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:23:3:906:866 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-23 21:23:4:902:782 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 21:23:4:936:336 + Q4 finished at: 2022-4-23 21:23:4:941:187 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-23 21:23:4:979:961 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-23 21:23:24:939:639 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:23:24:974:486 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 21:23:25:9:325 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/serializable/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/tdsql/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..e37c27be --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:5:6:259:733 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:5:6:295:417 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:5:7:224:975 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 21:5:7:263:576 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-23 21:5:8:264:771 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-19-6263f982-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-23 21:5:8:865:144 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-19-6263f982-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/tdsql/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..bc978167 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:5:34:679:937 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:5:34:715:292 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:5:35:645:237 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 21:5:35:683:945 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-23 21:5:36:684:831 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:5:36:723:688 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-1e-6263f99e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-23 21:5:37:381:533 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-1e-6263f99e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/tdsql/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..d43aa058 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,33 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:6:1:133:757 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:6:1:169:57 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:6:2:99:229 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 21:6:2:138:153 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:6:3:138:754 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-22-6263f9b9-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-23 21:6:3:735:442 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-22-6263f9b9-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/rat_dda_read_skew.txt b/install/test_result/centralizend_result/tdsql/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..5167cd5b --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/rat_dda_read_skew.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:6:28:555:531 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 21:6:28:590:720 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:6:29:520:909 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 21:6:29:559:765 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:6:30:560:114 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-27-6263f9d4-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-23 21:6:31:156:890 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-27-6263f9d4-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/tdsql/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..84bbe279 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:7:49:453:427 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:7:49:488:734 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:7:50:457:634 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-23 21:7:50:497:539 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-23 21:7:51:454:397 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 21:7:51:489:711 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-26-6263fa26-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-23 21:7:51:958:437 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-26-6263fa26-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/tdsql/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..dc982e69 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:8:16:882:872 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:8:16:918:172 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:8:17:844:956 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-23 21:8:17:884:959 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-23 21:8:18:880:613 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 21:8:18:915:947 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-29-6263fa41-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-23 21:8:19:384:775 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-29-6263fa41-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/tdsql/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..7f73f850 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:6:56:975:211 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-23 21:6:57:10:525 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:6:57:940:661 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-23 21:6:58:975:772 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 21:6:59:10:604 + Q4 finished at: 2022-4-23 21:6:59:14:431 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-23 21:6:59:52:831 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:6:59:91:149 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-23 21:7:18:976:531 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 21:7:19:11:604 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/serializable/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/tdsql/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..1b441532 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:7:23:144:21 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-23 21:7:23:180:333 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:7:24:181:749 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-23 21:7:25:179:176 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 21:7:25:214:53 + Q4 finished at: 2022-4-23 21:7:25:217:843 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-23 21:7:25:256:255 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:7:25:294:613 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-23 21:7:45:179:818 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 21:7:45:215:193 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/serializable/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/tdsql/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..a0a7067e --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:4:11:407:474 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:4:11:442:588 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:4:12:410:694 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 21:4:12:454:807 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-23 21:4:13:412:705 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-10-6263f94b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-23 21:4:14:9:332 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-10-6263f94b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/tdsql/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..71ba70ab --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:4:39:829:953 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:4:39:865:329 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:4:40:794:867 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 21:4:40:833:998 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-23 21:4:41:836:960 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:4:41:875:264 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-15-6263f967-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-23 21:4:42:533:750 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-15-6263f967-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/rat_mda_step_rat.txt b/install/test_result/centralizend_result/tdsql/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..f6be0c64 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/rat_mda_step_rat.txt @@ -0,0 +1,70 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:8:43:338:753 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:8:43:374:5 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:8:44:304:142 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 21:8:44:343:826 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-23 21:8:45:339:232 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-23 21:8:45:375:296 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-23 21:8:46:343:983 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-38-6263fa5b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-23 21:8:47:240:544 + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-23 21:8:47:312:162 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-38-6263fa5b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/tdsql/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..c0a2eaa0 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,166 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN' + Q1 finished at: 2022-4-23 21:9:12:760:640 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-23 21:9:12:835:441 +Q3-T1 execute opt: 'BEGIN' +Q3 finished at: 2022-4-23 21:9:13:759:71 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-23 21:9:14:724:513 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-23 21:9:14:761:179 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute opt: 'BEGIN' + Q8 finished at: 2022-4-23 21:9:15:724:545 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-23 21:9:16:766:460 +Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-42-6263fa79-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q4 failed at: 2022-4-23 21:9:17:164:652 + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-23 21:9:36:765:137 + Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]set_1650716943_1:Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q9 failed at: 2022-4-23 21:9:37:669:929 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-42-6263fa79-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/tdsql/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..078e00c4 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,70 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:9:44:216:510 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:9:44:251:834 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:9:45:181:951 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-23 21:9:45:220:819 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-23 21:9:46:181:947 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-23 21:9:46:221:343 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-23 21:9:47:221:528 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-4c-6263fa98-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-23 21:9:48:118:301 + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-23 21:9:48:189:819 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-4c-6263fa98-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/tdsql/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..1e0f80fd --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,67 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:10:13:531:113 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-23 21:10:13:567:618 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:10:14:531:106 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-23 21:10:14:569:933 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-23 21:10:15:531:102 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-23 21:10:15:567:279 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-23 21:10:16:570:892 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-56-6263fab5-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-23 21:10:17:467:517 + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-23 21:10:17:539:32 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-56-6263fab5-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/tdsql/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..51ed9b31 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:1:1:674:100 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:1:1:713:609 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:1:2:677:288 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-23 21:1:3:674:682 + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-23 21:1:3:678:335 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:1:4:677:466 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-23 21:1:24:710:918 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-23 21:1:24:745:980 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/serializable/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/tdsql/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..0424a315 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:1:57:194:109 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:1:57:229:409 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:1:58:197:550 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-23 21:1:59:195:159 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 21:2:1:194:989 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-23 21:2:1:198:820 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:2:1:237:28 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-23 21:2:21:195:609 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:2:21:230:587 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/serializable/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/tdsql/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..1ca86551 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:2:25:437:120 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:2:25:472:467 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:2:26:440:447 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-23 21:2:27:437:581 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 21:2:27:472:773 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-23 21:2:27:476:613 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-23 21:2:27:514:707 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-23 21:2:47:438:459 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:2:47:473:445 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/serializable/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/tdsql/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..1b87a0e4 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:3:44:129:351 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:3:44:164:425 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:3:45:132:579 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-23 21:3:46:129:832 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-23 21:3:46:165:157 + Q4 finished at: 2022-4-23 21:3:46:168:771 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 21:3:47:133:225 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-23 21:4:7:130:793 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:4:7:166:391 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/serializable/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/tdsql/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..79213e34 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:1:28:949:843 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 21:1:28:985:241 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:1:29:953:131 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-23 21:1:30:950:579 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 21:1:32:950:136 + Q4 finished at: 2022-4-23 21:1:32:954:36 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:1:32:992:550 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-23 21:1:52:951:67 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:1:52:986:42 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/tdsql/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..998e13f1 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:2:51:686:191 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-23 21:2:51:721:411 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:2:52:688:572 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-23 21:2:53:686:132 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 21:2:53:720:909 + Q4 finished at: 2022-4-23 21:2:53:724:671 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-23 21:2:53:763:7 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-23 21:3:13:686:775 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:3:13:721:763 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/tdsql/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..f7815365 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:3:17:854:448 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-23 21:3:17:890:670 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:3:18:892:326 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-23 21:3:19:889:624 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 21:3:19:924:534 + Q4 finished at: 2022-4-23 21:3:19:928:294 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-23 21:3:19:966:726 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-23 21:3:39:890:625 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:3:39:926:177 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/serializable/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/tdsql/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..b6c41c1d --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:16:34:13:569 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:16:34:52:516 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:16:35:16:819 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 21:16:35:57:787 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:16:36:18:364 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:16:36:58:239 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-4e-6263fc32-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-23 21:16:36:715:254 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-4e-6263fc32-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/tdsql/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..37a46f64 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:17:0:446:485 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:17:0:483:540 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:17:1:410:126 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-23 21:17:1:450:518 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:17:2:451:0 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-52-6263fc4c-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-23 21:17:3:47:730 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-52-6263fc4c-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/tdsql/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..378176e1 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,33 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:17:27:877:89 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:17:27:913:861 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:17:28:840:946 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-23 21:17:28:884:493 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:17:29:881:876 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-57-6263fc67-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-23 21:17:30:478:940 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-57-6263fc67-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/tdsql/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..19fd387e --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:17:56:307:471 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:17:56:344:300 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:17:57:271:400 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-23 21:17:57:311:373 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:17:58:312:281 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:17:58:352:90 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-5c-6263fc84-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-23 21:17:59:9:103 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-5c-6263fc84-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/tdsql/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..eea7a9f0 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:18:22:740:399 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 21:18:22:777:399 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:18:23:704:326 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-23 21:18:23:744:461 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:18:24:745:136 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-60-6263fc9e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-23 21:18:25:341:791 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-60-6263fc9e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/tdsql/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..1b00fa9a --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:18:50:172:600 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 21:18:50:209:543 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:18:51:136:562 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-23 21:18:51:179:218 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:18:52:177:411 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-65-6263fcba-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-23 21:18:52:774:105 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-65-6263fcba-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/tdsql/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..3abac102 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:19:18:603:104 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:19:18:639:782 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:19:19:567:54 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-23 21:19:19:607:243 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-23 21:19:20:604:377 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 21:19:20:641:144 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-7d-6263fcd7-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-23 21:19:21:108:353 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-7d-6263fcd7-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/tdsql/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..7edfbd95 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:19:46:39:105 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:19:46:75:891 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:19:47:2:611 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-23 21:19:47:44:69 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-23 21:19:48:39:886 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-80-6263fcf3-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-23 21:19:48:543:790 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-80-6263fcf3-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/tdsql/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..939b0344 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:20:14:468:93 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:20:14:505:267 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:20:15:431:223 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-23 21:20:15:472:742 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-23 21:20:16:468:356 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 21:20:16:505:94 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-84-6263fd0f-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-23 21:20:16:972:512 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-84-6263fd0f-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/tdsql/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..f2b32d0b --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:20:40:931:362 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:20:40:968:539 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:20:41:895:130 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-23 21:20:41:936:937 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-23 21:20:42:931:769 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-23 21:20:42:969:150 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-23 21:20:43:936:195 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-76-6263fd28-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-23 21:20:44:834:507 + Q8 finished at: 2022-4-23 21:20:44:911:158 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-76-6263fd28-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/tdsql/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..cd55af75 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:21:10:398:167 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:21:10:434:935 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:21:11:362:99 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-23 21:21:11:402:515 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-23 21:21:12:362:108 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-23 21:21:14:399:190 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-23 21:21:15:403:259 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-7c-6263fd46-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-23 21:21:16:300:98 + Q8 finished at: 2022-4-23 21:21:16:438:277 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-7c-6263fd46-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/tdsql/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..02cd9270 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:13:23:782:21 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:13:23:818:703 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:13:24:785:427 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-23 21:13:25:782:625 + Q4 finished at: 2022-4-23 21:13:25:786:244 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:13:26:787:659 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-23 21:13:46:820:391 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-23 21:13:46:872:980 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:13:46:909:834 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/serializable/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/tdsql/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..6226c96b --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:13:51:123:939 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:13:51:160:734 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:13:52:126:303 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-23 21:13:53:123:739 + Q4 finished at: 2022-4-23 21:13:53:127:409 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:13:54:127:91 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-23 21:14:14:124:381 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-23 21:14:14:178:350 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:14:14:214:975 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/serializable/wat_sda_full_write.txt b/install/test_result/centralizend_result/tdsql/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..f8444b76 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:14:18:429:816 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:14:18:466:745 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:14:19:432:883 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-23 21:14:20:430:586 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-23 21:14:20:467:441 + Q4 finished at: 2022-4-23 21:14:20:471:132 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 21:14:21:433:978 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-23 21:14:41:431:96 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:14:41:467:661 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/serializable/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/tdsql/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..d81dda48 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:14:45:679:620 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:14:45:716:422 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:14:46:682:522 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-23 21:14:47:680:52 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 21:14:47:716:696 + Q4 finished at: 2022-4-23 21:14:47:720:462 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-23 21:14:47:760:388 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-23 21:15:7:680:811 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:15:7:718:510 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/serializable/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/tdsql/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..2bafe1e6 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:16:7:728:800 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:16:7:765:956 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:16:8:692:446 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-23 21:16:9:729:164 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 21:16:9:765:805 + Q4 finished at: 2022-4-23 21:16:9:769:659 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-23 21:16:9:809:420 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-23 21:16:29:729:725 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:16:29:766:186 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tdsql/serializable/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/tdsql/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..a0444e85 --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:15:11:929:604 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-23 21:15:11:966:563 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:15:12:937:284 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-23 21:15:13:930:843 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-23 21:15:13:967:597 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-63-6263fbe0-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q4 failed at: 2022-4-23 21:15:14:334:750 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-63-6263fbe0-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tdsql/serializable/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/tdsql/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..12a4f38b --- /dev/null +++ b/install/test_result/centralizend_result/tdsql/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,37 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:15:39:330:622 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-23 21:15:39:367:735 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:15:40:294:369 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-23 21:15:41:331:560 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-66-6263fbfc-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q4 failed at: 2022-4-23 21:15:41:735:685 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-66-6263fbfc-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..03d8ec55 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:14:599:440 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:14:601:339 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:14:700:260 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:26:14:702:231 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:14:703:981 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:26:14:705:754 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:26:14:811:770 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:26:14:813:11 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:26:14:815:631 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:26:14:816:746 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..f91a52bb --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:15:60:303 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:15:64:659 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:15:160:235 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:26:15:162:165 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:15:164:119 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:26:15:165:615 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:26:15:264:519 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224383810928640, conflictStartTS=432224383837143040, conflictCommitTS=432224383838453760, key={tableID=2670, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:26:16:66:803 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224383810928640, conflictStartTS=432224383837143040, conflictCommitTS=432224383838453760, key={tableID=2670, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/iat_dda_write_skew.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..c6a07684 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:16:313:314 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:16:315:258 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:16:415:564 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:26:16:417:679 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:16:419:640 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:26:16:514:462 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:26:16:516:136 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:26:16:613:796 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:26:16:616:585 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:26:16:617:699 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..76b2127c --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:17:788:658 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:17:790:394 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:17:888:615 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:26:17:890:280 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:17:891:932 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:26:17:893:404 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:26:17:989:123 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:26:17:990:488 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:26:17:992:670 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:26:17:993:667 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..ce0b370b --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:16:868:522 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 17:26:16:871:730 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 17:26:16:873:604 + Q4-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q4 finished at: 2022-4-1 17:26:16:968:300 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 17:26:16:971:212 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 17:26:16:972:886 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:26:16:974:159 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:26:17:68:856 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 17:26:17:72:28 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 17:26:17:75:236 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:26:17:76:541 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..1d8a71a9 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:17:325:246 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 17:26:17:328:237 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:17:425:871 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + (2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 17:26:17:428:939 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 17:26:17:431:407 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:26:17:432:676 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 17:26:17:529:625 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:26:17:531:50 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 17:26:17:533:695 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:26:17:534:852 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/iat_mda_step_iat.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..d18b1444 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:18:237:943 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:26:18:240:267 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:18:337:883 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:26:18:340:5 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-1 17:26:18:437:919 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:26:18:440:104 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:26:18:538:589 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:26:18:638:731 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:26:18:738:547 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:26:18:838:278 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:26:18:938:588 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:26:19:38:462 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:26:19:41:276 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:26:19:42:234 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..bca19063 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:22:686:57 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:22:688:176 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:22:786:71 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:26:22:787:846 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:26:22:789:429 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-1 17:26:22:886:192 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:26:22:888:295 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:26:22:889:872 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:26:22:891:146 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 17:26:22:986:934 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:26:22:988:107 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 17:26:22:990:728 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:26:22:991:759 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..a1d91353 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:21:930:6 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:21:932:675 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:22:29:898 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:26:22:32:726 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-1 17:26:22:129:918 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 17:26:22:131:599 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:26:22:132:855 + Q8-T4 execute sql: 'BEGIN OPTIMISTIC;' + Q8 finished at: 2022-4-1 17:26:22:231:964 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:26:22:233:839 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:26:22:235:241 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 17:26:22:333:828 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:26:22:335:249 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 17:26:22:431:523 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 17:26:22:432:784 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:26:22:436:630 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:26:22:437:592 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..3fc812ef --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:19:285:322 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 17:26:19:287:226 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:19:384:851 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:26:19:386:829 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-1 17:26:19:488:5 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:26:19:490:114 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:26:19:585:354 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:26:19:685:530 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:26:19:785:536 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:26:19:885:449 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:26:19:985:415 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:26:20:85:532 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:26:20:88:77 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:26:20:89:166 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..7cc7df23 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:20:326:913 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:26:20:331:344 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:20:428:67 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 17:26:20:430:230 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-1 17:26:20:529:331 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 17:26:20:531:444 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 17:26:20:627:662 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 17:26:20:732:840 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 17:26:20:827:512 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:26:20:927:474 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:26:21:27:561 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:26:21:127:667 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:26:21:130:322 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:26:21:131:269 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..c02257e6 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:23:235:893 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:26:23:237:812 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 17:26:23:239:841 + Q4-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q4 finished at: 2022-4-1 17:26:23:335:613 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 17:26:23:337:644 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 17:26:23:339:244 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:26:23:340:475 + Q8-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q8 finished at: 2022-4-1 17:26:23:435:572 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 17:26:23:437:555 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:26:23:439:468 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:26:23:440:602 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 17:26:23:536:165 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 17:26:23:537:589 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 17:26:23:540:389 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 17:26:23:541:729 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..cc600077 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:21:377:352 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 17:26:21:379:602 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:21:477:300 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 17:26:21:479:444 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:21:481:124 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:26:21:483:31 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 17:26:21:484:537 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:26:21:485:870 + Q9-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q9 finished at: 2022-4-1 17:26:21:577:382 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 17:26:21:579:682 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 17:26:21:581:246 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 17:26:21:583:156 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 17:26:21:584:764 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:26:21:586:126 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 17:26:21:680:985 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 17:26:21:682:129 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 17:26:21:684:965 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 17:26:21:686:74 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..7f60c5bd --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:13:442:818 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:26:13:447:179 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:13:544:92 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:26:13:545:840 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:26:13:547:183 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 17:26:13:644:109 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224383386779648, conflictStartTS=432224383413256192, conflictCommitTS=432224383414042624, key={tableID=2664, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-1 17:26:14:345:998 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224383386779648, conflictStartTS=432224383413256192, conflictCommitTS=432224383414042624, key={tableID=2664, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..5bc8b91a --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:12:960:836 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:12:962:564 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:13:75:102 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:26:13:76:772 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:26:13:77:974 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:26:13:176:601 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:26:13:177:751 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:26:13:180:29 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:26:13:181:63 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:26:13:182:89 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..61704a56 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:39:234:302 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:39:236:269 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:39:334:847 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:39:336:734 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:25:39:338:504 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q6 finished at: 2022-4-1 17:25:39:441:520 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:25:39:536:409 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224374419357696, conflictStartTS=432224374445572096, conflictCommitTS=432224374498525184, key={tableID=2571, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:25:40:440:915 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224374419357696, conflictStartTS=432224374445572096, conflictCommitTS=432224374498525184, key={tableID=2571, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..18156228 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:40:678:74 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:40:680:90 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:40:778:258 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:40:780:381 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:25:40:782:204 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:40:783:572 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 17:25:40:880:749 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224374797631488, conflictStartTS=432224374824108032, conflictCommitTS=432224374825418752, key={tableID=2574, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:25:41:682:584 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224374797631488, conflictStartTS=432224374824108032, conflictCommitTS=432224374825418752, key={tableID=2574, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..9debebeb --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:41:917:791 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:41:919:761 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:42:18:48 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:42:20:193 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:25:42:22:16 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:25:42:120:829 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:42:122:262 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224375148904448, conflictStartTS=432224375122690048, conflictCommitTS=432224375176429568, key={tableID=2577, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-1 17:25:43:19:587 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224375148904448, conflictStartTS=432224375122690048, conflictCommitTS=432224375176429568, key={tableID=2577, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_read_skew.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..793fdddd --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:43:250:886 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:25:43:252:739 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:43:350:735 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:43:352:461 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:25:43:354:27 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:25:43:451:884 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:25:43:551:162 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:25:43:651:16 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:25:43:654:948 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:25:43:656:18 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..6ecd261a --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:44:792:829 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:44:794:615 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:44:892:770 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:25:44:894:411 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:25:44:895:952 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:25:44:993:465 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:44:994:781 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:25:45:92:693 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:25:45:95:208 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:25:45:96:271 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..cf8736f8 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:45:327:837 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:45:329:586 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:45:427:915 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:25:45:430:70 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:25:45:432:141 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:45:433:101 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:25:45:528:732 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:25:45:529:975 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:25:45:532:179 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:25:45:533:100 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..b933b0a8 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:43:919:793 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:25:43:922:894 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:44:20:100 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:44:21:788 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:25:44:31:550 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:44:33:426 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:25:44:121:358 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:25:44:122:543 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 17:25:44:124:786 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:25:44:125:721 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..89133cb7 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:44:353:712 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:25:44:358:408 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:44:455:540 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 17:25:44:457:121 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 17:25:44:458:601 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:44:459:794 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:25:44:557:111 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:25:44:558:29 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 17:25:44:560:186 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:25:44:561:21 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..aca2e633 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:38:139:615 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:38:141:251 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:38:239:656 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:38:241:323 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:25:38:243:27 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:25:38:344:667 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:25:38:439:673 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:25:38:544:135 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:25:38:546:446 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:25:38:547:386 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..76aee8ac --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:38:795:853 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:38:797:789 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:38:895:783 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:38:897:446 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:25:38:899:201 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:38:900:577 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:25:38:996:353 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:25:38:997:514 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:25:39:0:103 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:25:39:1:92 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/rat_mda_step_rat.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..98b3ae84 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:45:766:975 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:45:768:700 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:45:866:951 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:45:868:660 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:25:45:870:565 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-1 17:25:45:967:81 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:25:45:968:763 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 17:25:45:970:741 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 17:25:46:68:76 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:25:46:69:299 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:25:46:167:187 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:25:46:267:262 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:25:46:271:22 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:25:46:271:920 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..23b8a8ec --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN OPTIMISTIC;' + Q1 finished at: 2022-4-1 17:25:46:505:882 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 17:25:46:508:568 +Q3-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q3 finished at: 2022-4-1 17:25:46:605:917 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 17:25:46:607:667 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-1 17:25:46:705:832 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 17:25:46:708:508 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:25:46:710:981 + Q8-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q8 finished at: 2022-4-1 17:25:46:808:176 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:25:46:809:895 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:25:46:908:40 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:25:47:6:153 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:25:47:106:241 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:25:47:206:4 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:25:47:207:192 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:25:47:210:218 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:25:47:211:104 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..368b43cf --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:47:446:623 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:47:448:497 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:47:546:935 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:47:548:620 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:25:47:551:187 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-1 17:25:47:646:648 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:25:47:648:237 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 17:25:47:650:545 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:25:47:750:571 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:25:47:752:4 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:25:47:847:114 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:25:47:947:25 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:25:47:949:365 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:25:47:950:315 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..9b20828e --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:48:180:63 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 17:25:48:182:102 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:48:279:745 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 17:25:48:281:413 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:25:48:286:405 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-1 17:25:48:380:89 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 17:25:48:382:104 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 17:25:48:384:945 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:25:48:481:444 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:25:48:482:830 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:25:48:580:202 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:25:48:680:213 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:25:48:682:920 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:25:48:683:832 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..2e1b32d0 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:33:630:992 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:33:632:746 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:33:731:962 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:25:33:733:707 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:25:33:831:974 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:33:931:834 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:25:33:934:466 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:25:33:935:332 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..bc851245 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:34:848:123 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:34:849:876 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:34:948:133 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:25:34:949:950 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 17:25:35:52:562 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:35:148:201 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:35:248:426 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:25:35:250:644 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:25:35:251:768 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..0ffda640 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:35:511:840 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:35:513:438 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:35:611:885 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:25:35:613:654 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:25:35:614:569 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 17:25:35:712:348 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:35:713:507 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:25:35:715:461 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:25:35:716:324 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..6ee6cbb3 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:36:907:809 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:36:909:457 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:37:7:937 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:37:9:828 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:25:37:108:337 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:25:37:109:812 + Q7-T2 execute opt: 'COMMIT'; + Q7 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224373835563008, conflictStartTS=432224373809348608, conflictCommitTS=432224373862301696, key={tableID=2562, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q7 failed at: 2022-4-1 17:25:37:908:601 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224373835563008, conflictStartTS=432224373809348608, conflictCommitTS=432224373862301696, key={tableID=2562, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..679a6997 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:34:190:649 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:25:34:192:594 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:34:290:610 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:34:292:321 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:25:34:391:560 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:34:490:921 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:34:590:592 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:25:34:592:751 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:25:34:593:663 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..76214967 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:35:984:170 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:25:35:986:792 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:36:71:464 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:36:73:245 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:25:36:74:437 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:25:36:172:571 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:36:173:586 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 17:25:36:175:570 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:25:36:176:504 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..05e53a0a --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:36:429:867 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:25:36:434:637 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:36:529:865 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 17:25:36:531:496 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:25:36:532:618 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:25:36:631:88 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:36:632:155 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 17:25:36:634:492 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:25:36:637:814 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..a598a18e --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:56:689:319 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:56:691:50 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:56:789:891 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:56:791:677 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:25:56:793:288 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:56:794:495 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:25:56:892:683 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378995081216, conflictStartTS=432224379021295616, conflictCommitTS=432224379022606336, key={tableID=2628, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:25:57:694:255 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378995081216, conflictStartTS=432224379021295616, conflictCommitTS=432224379022606336, key={tableID=2628, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..439ee212 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,37 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:57:932:315 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:57:934:46 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:58:33:404 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:58:35:58 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:25:58:36:662 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:25:58:132:767 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:58:134:20 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224379347402752, conflictStartTS=432224379320926208, conflictCommitTS=432224379373617152, key={tableID=2631, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-1 17:25:59:35:979 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224379347402752, conflictStartTS=432224379320926208, conflictCommitTS=432224379373617152, key={tableID=2631, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..a5446bcf --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,37 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:59:276:488 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:59:278:138 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:59:376:492 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:59:378:83 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:25:59:379:785 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:25:59:477:587 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:25:59:576:900 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224379673247744, conflictStartTS=432224379699462144, conflictCommitTS=432224379751890944, key={tableID=2634, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:26:0:477:327 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224379673247744, conflictStartTS=432224379699462144, conflictCommitTS=432224379751890944, key={tableID=2634, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..6bd3d3d4 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,37 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:0:717:160 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:26:0:719:164 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:0:817:209 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:26:0:819:102 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:0:820:650 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:26:0:821:880 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:26:0:917:598 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224380050735104, conflictStartTS=432224380076949504, conflictCommitTS=432224380078260224, key={tableID=2637, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:26:1:719:437 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224380050735104, conflictStartTS=432224380076949504, conflictCommitTS=432224380078260224, key={tableID=2637, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..b5e4aabc --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:1:958:635 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:1:960:429 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:2:59:440 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:26:2:61:951 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:2:63:695 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:26:2:161:99 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:26:2:162:630 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224380402794496, conflictStartTS=432224380376317952, conflictCommitTS=432224380429795328, key={tableID=2640, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-1 17:26:3:59:510 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224380402794496, conflictStartTS=432224380376317952, conflictCommitTS=432224380429795328, key={tableID=2640, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..e1ac6532 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:3:299:448 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:3:301:212 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:3:399:491 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:26:3:401:59 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:3:402:511 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:26:3:500:141 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:26:3:599:677 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224380727853056, conflictStartTS=432224380754067456, conflictCommitTS=432224380806496256, key={tableID=2643, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:26:4:500:121 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224380727853056, conflictStartTS=432224380754067456, conflictCommitTS=432224380806496256, key={tableID=2643, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..b800534c --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:4:739:809 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:26:4:741:470 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:4:839:795 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:26:4:841:453 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:4:842:953 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:26:4:940:402 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:26:4:941:752 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224381131554816, conflictStartTS=432224381105340416, conflictCommitTS=432224381158293504, key={tableID=2646, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-1 17:26:5:840:390 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224381131554816, conflictStartTS=432224381105340416, conflictCommitTS=432224381158293504, key={tableID=2646, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..9f8074b2 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:6:79:629 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:26:6:81:307 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:6:179:517 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:26:6:181:178 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:6:182:728 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:26:6:280:72 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:26:6:379:899 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224381456613376, conflictStartTS=432224381482827776, conflictCommitTS=432224381535256576, key={tableID=2649, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:26:7:280:225 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224381456613376, conflictStartTS=432224381482827776, conflictCommitTS=432224381535256576, key={tableID=2649, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..f949704b --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:7:522:136 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:26:7:524:95 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:7:622:82 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:26:7:623:804 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:7:625:569 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:26:7:627:44 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:26:7:722:575 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224381834625024, conflictStartTS=432224381860839424, conflictCommitTS=432224381862150144, key={tableID=2652, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:26:8:524:319 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224381834625024, conflictStartTS=432224381860839424, conflictCommitTS=432224381862150144, key={tableID=2652, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..8225bb49 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:8:766:639 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:26:8:768:770 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:8:866:356 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:26:8:868:96 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:8:871:606 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-1 17:26:8:966:494 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:26:8:968:202 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' + Q8 finished at: 2022-4-1 17:26:8:969:719 +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-1 17:26:9:68:781 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:26:9:70:425 + Q11-T2 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; + Q11 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224382187208704, conflictStartTS=432224382160994304, conflictCommitTS=432224382240686080, key={tableID=2655, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q11 failed at: 2022-4-1 17:26:10:268:732 + Q12 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224382213423104, conflictStartTS=432224382160994304, conflictCommitTS=432224382240686080, key={tableID=2655, handle=2} primary=[]byte(nil) [try again later] errcode: HY000 + Q12 failed at: 2022-4-1 17:26:10:467:631 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224382187208704, conflictStartTS=432224382160994304, conflictCommitTS=432224382240686080, key={tableID=2655, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..47b785fb --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:10:712:173 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:26:10:714:284 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:10:811:918 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:26:10:813:584 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-1 17:26:10:911:931 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6 finished at: 2022-4-1 17:26:11:12:973 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:26:11:112:836 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' + Q8 finished at: 2022-4-1 17:26:11:114:429 +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-1 17:26:11:212:758 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:26:11:312:586 +Q11-T1 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; +Q11 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224382670864384, conflictStartTS=432224382697078784, conflictCommitTS=432224382828412928, key={tableID=2658, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q11 failed at: 2022-4-1 17:26:12:517:725 + Q12 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224382723293184, conflictStartTS=432224382697078784, conflictCommitTS=432224382828412928, key={tableID=2658, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q12 failed at: 2022-4-1 17:26:12:712:980 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224382670864384, conflictStartTS=432224382697078784, conflictCommitTS=432224382828412928, key={tableID=2658, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..6e6db82a --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:48:917:62 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:48:918:649 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:49:17:81 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:49:18:779 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:25:49:116:969 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:49:220:436 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:25:49:222:788 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:25:49:238:123 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:25:49:239:295 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..93929313 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,32 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:49:456:757 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:49:458:596 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:49:556:694 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:49:558:374 +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:25:49:656:932 + Q6-T2 execute opt: 'COMMIT'; + Q6 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224377125208064, conflictStartTS=432224377098993664, conflictCommitTS=432224377151422464, key={tableID=2610, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q6 failed at: 2022-4-1 17:25:50:357:539 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224377125208064, conflictStartTS=432224377098993664, conflictCommitTS=432224377151422464, key={tableID=2610, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/wat_sda_full_write.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..56aa410e --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_sda_full_write.txt @@ -0,0 +1,34 @@ +#### db_type: tidb #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:50:592:926 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:50:594:629 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:50:693:157 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:50:695:188 +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 17:25:50:793:607 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:25:50:795:52 + Q7-T2 execute opt: 'COMMIT'; + Q7 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224377423265792, conflictStartTS=432224377396789248, conflictCommitTS=432224377449742336, key={tableID=2613, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q7 failed at: 2022-4-1 17:25:51:596:568 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224377423265792, conflictStartTS=432224377396789248, conflictCommitTS=432224377449742336, key={tableID=2613, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..9d1026d9 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,34 @@ +#### db_type: tidb #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:51:833:44 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:51:834:798 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:51:931:959 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:51:933:739 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:25:51:935:2 +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 17:25:52:32:384 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224377721847808, conflictStartTS=432224377747800064, conflictCommitTS=432224377748586496, key={tableID=2616, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-1 17:25:52:734:517 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224377721847808, conflictStartTS=432224377747800064, conflictCommitTS=432224377748586496, key={tableID=2616, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..398127af --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:55:550:641 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:55:552:710 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:55:651:180 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:55:653:91 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:25:55:654:504 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:25:55:750:224 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378696499200, conflictStartTS=432224378722713600, conflictCommitTS=432224378723762176, key={tableID=2625, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-1 17:25:56:452:235 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378696499200, conflictStartTS=432224378722713600, conflictCommitTS=432224378723762176, key={tableID=2625, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..536ed4cb --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:52:976:770 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:25:52:978:377 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:53:76:711 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:53:78:529 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-1 17:25:53:177:323 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:25:53:178:645 + Q7-T2 execute opt: 'COMMIT'; + Q7 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378047954944, conflictStartTS=432224378021740544, conflictCommitTS=432224378074693632, key={tableID=2619, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q7 failed at: 2022-4-1 17:25:53:977:408 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378047954944, conflictStartTS=432224378021740544, conflictCommitTS=432224378074693632, key={tableID=2619, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..c7841396 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:54:213:51 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:25:54:214:849 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:54:312:901 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:54:314:707 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-1 17:25:54:416:620 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:54:516:256 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378345750528, conflictStartTS=432224378371964928, conflictCommitTS=432224378425180160, key={tableID=2622, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-1 17:25:55:313:751 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378345750528, conflictStartTS=432224378371964928, conflictCommitTS=432224378425180160, key={tableID=2622, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/centralizend_result/tidb_opt/result_summary/read-committed_total-result.txt b/install/test_result/centralizend_result/tidb_opt/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..45e2cffc --- /dev/null +++ b/install/test_result/centralizend_result/tidb_opt/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/tidb_per/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..8c7f8b21 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:14:759:122 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:14:761:81 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:14:860:233 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:14:862:445 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:14:864:294 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:14:865:934 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:18:14:962:429 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:14:963:598 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:14:966:154 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:14:967:167 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/tidb_per/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..112ec1f7 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:15:204:606 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:15:206:319 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:15:304:901 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:15:306:846 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:15:308:477 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:15:309:977 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:15:405:431 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:15:406:951 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:15:424:219 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:15:425:427 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/iat_dda_write_skew.txt b/install/test_result/centralizend_result/tidb_per/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..b634c160 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:15:662:808 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:15:664:591 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:15:762:711 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:15:764:557 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:15:766:137 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:18:15:863:308 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:15:864:735 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:15:964:385 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:15:966:764 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:15:967:867 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/tidb_per/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..d8486cc1 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:17:233:579 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:17:235:356 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:17:336:358 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:17:338:323 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:17:340:234 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:17:341:774 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:17:434:266 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:17:435:719 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:17:438:158 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:17:439:436 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/tidb_per/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..f85b2866 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:16:227:229 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 17:18:16:249:442 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 17:18:16:251:304 + Q4-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q4 finished at: 2022-4-1 17:18:16:327:513 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 17:18:16:330:423 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 17:18:16:332:151 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:16:333:628 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:16:428:438 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 17:18:16:431:422 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 17:18:16:434:5 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:16:435:57 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/tidb_per/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..fe67e21f --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:16:771:733 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 17:18:16:775:200 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:16:871:520 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + (2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 17:18:16:874:356 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 17:18:16:877:982 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:16:879:402 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 17:18:16:984:345 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:16:985:832 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 17:18:16:988:571 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:16:989:724 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/iat_mda_step_iat.txt b/install/test_result/centralizend_result/tidb_per/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..f2ea1158 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:17:696:585 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:18:17:698:635 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:17:800:203 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:18:17:802:545 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:17:898:214 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:18:17:900:337 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:18:17:997:556 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:18:18:97:429 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:18:18:197:552 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:18:297:75 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:18:397:201 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:18:497:390 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:18:18:500:379 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:18:501:585 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/tidb_per/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..2600a199 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:22:140:966 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:22:142:998 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:22:241:76 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:22:242:985 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:22:244:361 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:18:22:341:273 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:18:22:343:484 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:18:22:345:240 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:22:346:749 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 17:18:22:441:970 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:18:22:443:185 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 17:18:22:445:716 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:18:22:446:695 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/tidb_per/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..7cf85e90 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:21:370:783 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:21:374:385 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:21:470:483 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:21:473:153 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:21:571:434 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 17:18:21:573:365 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:21:574:853 + Q8-T4 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-1 17:18:21:673:481 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:18:21:676:49 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:21:677:554 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 17:18:21:772:226 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:21:773:422 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 17:18:21:873:804 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 17:18:21:875:178 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:18:21:879:468 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:18:21:880:639 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/tidb_per/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..27eaa1eb --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:18:742:179 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 17:18:18:744:238 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:18:842:117 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:18:18:844:184 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:18:942:159 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:18:18:944:128 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:18:19:42:806 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:18:19:144:627 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:18:19:242:904 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:19:342:830 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:19:442:702 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:19:542:756 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:18:19:545:271 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:19:546:410 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/tidb_per/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..00bb4379 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:19:779:86 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:18:19:783:351 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:19:879:9 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 17:18:19:880:986 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:19:979:293 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 17:18:19:981:567 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 17:18:20:79:807 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 17:18:20:179:847 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 17:18:20:280:55 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:20:379:600 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:20:479:608 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:20:579:819 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:18:20:582:483 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:20:583:625 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/tidb_per/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..5a580e12 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:22:685:674 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:18:22:687:804 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 17:18:22:689:749 + Q4-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q4 finished at: 2022-4-1 17:18:22:785:692 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 17:18:22:787:860 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 17:18:22:789:673 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:22:791:696 + Q8-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-1 17:18:22:885:725 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 17:18:22:887:955 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:18:22:890:38 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:22:891:184 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 17:18:22:988:972 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 17:18:22:990:574 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 17:18:22:993:524 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 17:18:22:994:532 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/tidb_per/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..4a66559f --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:20:825:498 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 17:18:20:827:553 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:20:928:71 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 17:18:20:930:268 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:20:932:96 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:18:20:934:38 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 17:18:20:935:785 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:20:937:198 + Q9-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q9 finished at: 2022-4-1 17:18:21:25:522 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 17:18:21:27:683 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 17:18:21:29:370 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 17:18:21:31:394 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 17:18:21:33:53 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:21:34:420 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 17:18:21:126:537 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 17:18:21:127:772 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 17:18:21:130:713 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 17:18:21:131:796 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/tidb_per/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..26427bda --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:14:316:260 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:18:14:320:587 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:14:416:134 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:14:417:805 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:14:419:89 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 17:18:14:518:242 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:14:519:677 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:14:521:743 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:14:522:794 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/tidb_per/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..40a6a7d2 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:13:871:278 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:13:873:269 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:13:972:99 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:13:973:945 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:13:975:889 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:18:14:72:735 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:14:73:804 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:14:75:985 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:14:77:198 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:14:78:270 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..6fcc1918 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:52:447:732 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:52:449:688 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:52:547:640 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:52:549:412 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:17:52:551:84 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:17:52:762:853 +Q6 finished at: 2022-4-1 17:17:52:795:218 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:52:848:184 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:17:52:850:988 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:52:852:116 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..c4b2dc4a --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:53:108:887 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:53:110:741 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:53:208:892 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:53:211:256 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:17:53:213:400 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:53:214:824 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 17:17:53:312:761 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:53:314:76 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:17:53:316:427 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:53:317:359 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..4bfd525a --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:53:567:987 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:53:569:879 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:53:668:191 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:53:670:229 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:17:53:770:884 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:17:53:776:131 + Q5 finished at: 2022-4-1 17:17:53:776:671 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:17:53:868:202 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:17:53:870:447 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:53:871:363 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_read_skew.txt b/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..531d1e18 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:54:121:952 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:17:54:123:764 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:54:221:897 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:54:223:779 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:17:54:225:297 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:17:54:322:754 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:17:54:422:152 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:54:521:894 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:17:54:524:235 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:54:525:118 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..25c1a1f0 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:55:706:739 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:55:708:619 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:55:808:192 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:17:55:822:53 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:17:55:824:12 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:17:55:914:420 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:17:55:920:788 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:17:56:12:262 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:17:56:15:209 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:56:16:423 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..f0f86f41 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:56:318:757 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:56:320:771 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:56:420:141 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:17:56:421:969 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:17:56:423:939 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:56:424:986 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:17:56:523:175 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:56:524:506 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:17:56:526:952 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:56:528:23 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..e001425a --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:54:780:204 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:17:54:782:844 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:54:879:991 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:54:881:691 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:17:54:883:280 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:54:884:456 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:17:54:983:360 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:54:984:334 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 17:17:54:986:273 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:54:987:205 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..c1386b3e --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:55:238:688 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:17:55:243:763 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:55:338:894 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 17:17:55:340:885 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 17:17:55:342:784 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:55:344:173 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:17:55:440:5 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:55:441:40 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 17:17:55:443:280 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:55:444:375 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..fc6fc91a --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:51:337:450 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:51:339:206 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:51:437:597 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:51:439:597 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:17:51:441:348 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:17:51:538:245 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:17:51:640:184 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:51:737:630 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:17:51:739:960 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:51:740:990 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..1b93be75 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:51:994:273 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:51:996:263 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:52:94:438 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:52:96:799 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:17:52:98:573 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:52:99:856 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:17:52:194:745 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:52:195:927 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:17:52:198:207 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:52:199:180 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/rat_mda_step_rat.txt b/install/test_result/centralizend_result/tidb_per/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..f04c3125 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:56:809:848 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:56:811:741 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:56:912:94 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:56:913:947 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:17:56:915:933 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:17:57:12:133 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:17:57:14:13 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 17:17:57:16:85 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 17:17:57:111:109 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:17:57:112:495 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:17:57:212:393 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:17:57:310:775 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:17:57:314:467 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:17:57:315:572 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/tidb_per/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..cbf4a886 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN PESSIMISTIC;' + Q1 finished at: 2022-4-1 17:17:57:600:213 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 17:17:57:602:929 +Q3-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q3 finished at: 2022-4-1 17:17:57:713:470 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 17:17:57:719:499 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:17:57:801:574 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 17:17:57:804:339 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:17:57:807:19 + Q8-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-1 17:17:57:900:578 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:17:57:902:544 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:17:58:4:206 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:17:58:102:450 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:17:58:200:738 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:17:58:300:550 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:17:58:301:784 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:17:58:305:178 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:17:58:306:106 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/tidb_per/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..2053927e --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:58:567:406 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:58:570:480 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:58:674:990 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:58:677:25 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:17:58:711:868 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:17:58:767:639 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:17:58:769:467 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 17:17:58:771:909 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:17:58:869:771 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:17:58:871:396 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:17:58:968:277 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:17:59:68:68 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:17:59:70:578 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:17:59:71:491 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/tidb_per/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..7dabf720 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:59:324:782 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 17:17:59:329:51 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:59:432:425 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 17:17:59:434:200 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:17:59:436:814 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:17:59:527:998 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 17:17:59:529:803 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 17:17:59:532:125 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:17:59:626:206 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:17:59:627:517 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:17:59:724:986 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:17:59:828:267 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:17:59:831:155 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:17:59:832:201 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/tidb_per/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..4dac8098 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:47:518:552 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:47:520:345 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:47:620:909 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:17:47:622:572 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:17:47:718:531 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:47:818:469 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:17:47:821:287 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:17:47:822:342 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/tidb_per/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..da7fb7e6 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:48:746:422 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:48:748:247 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:48:846:447 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:17:48:848:227 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 17:17:48:948:557 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:49:46:282 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:17:49:148:77 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:17:49:150:248 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:17:49:151:139 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/tidb_per/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..b4c89394 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:49:409:445 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:49:411:456 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:49:509:666 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:17:49:511:952 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:17:49:513:109 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 17:17:49:609:833 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:17:49:611:82 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:17:49:613:305 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:17:49:614:307 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/tidb_per/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..b0627806 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:50:769:928 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:50:771:783 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:50:869:976 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:17:50:970:571 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:17:50:990:655 + Q4 finished at: 2022-4-1 17:17:51:63:993 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:17:51:82:538 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:17:51:84:783 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:17:51:85:586 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/tidb_per/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..939a8782 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:48:88:955 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:17:48:90:969 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:48:188:708 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:17:48:190:399 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:17:48:289:444 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:48:389:5 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:17:48:491:897 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:17:48:494:232 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:17:48:495:153 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/tidb_per/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..c68a3c71 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:49:864:265 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:17:49:866:605 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:49:964:282 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:17:49:966:126 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:17:49:967:473 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:17:50:65:406 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:17:50:66:655 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 17:17:50:68:565 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:17:50:69:544 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/tidb_per/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..6f8fb380 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:50:314:454 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:17:50:368:164 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:50:414:458 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 17:17:50:416:321 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:17:50:417:440 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:17:50:516:228 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:17:50:517:162 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 17:17:50:519:391 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:17:50:520:204 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..a196f58c --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:4:23:316 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:4:25:168 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:4:124:124 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:4:125:966 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:18:4:227:633 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:4:248:652 + Q5 finished at: 2022-4-1 17:18:4:280:195 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:4:281:510 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:4:284:410 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:4:285:511 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..67f3bd0b --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:4:520:498 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:4:522:376 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:4:620:415 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:4:622:299 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:18:4:766:889 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:4:820:814 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:18:5:431:565 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..38757763 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:5:667:766 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:5:670:834 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:5:767:333 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:5:769:168 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:18:5:880:677 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:5:967:859 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:18:6:480:823 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..cccc0977 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:6:716:61 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:6:717:811 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:6:816:158 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:6:817:967 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:18:6:941:872 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:6:943:309 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:18:7:639:788 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..f358b76c --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:7:874:757 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:7:876:649 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:7:974:225 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:7:975:963 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:7:977:610 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:8:179:388 +Q6 finished at: 2022-4-1 17:18:8:180:107 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:8:181:467 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:8:183:940 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:8:184:962 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..7ad20233 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:8:417:932 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:8:419:702 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:8:518:86 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:8:520:2 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:8:521:679 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:8:733:253 +Q6 finished at: 2022-4-1 17:18:8:761:750 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:8:818:352 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:8:820:737 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:8:821:762 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..c4163b6c --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:9:54:136 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:9:55:998 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:9:154:265 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:9:156:201 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:18:9:267:207 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:9:283:201 + Q5 finished at: 2022-4-1 17:18:9:283:528 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:9:354:429 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:9:356:769 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:9:357:790 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..43309280 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:9:591:549 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:9:593:205 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:9:691:512 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:9:693:496 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:18:9:804:511 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:10:6:819 + Q5 finished at: 2022-4-1 17:18:10:47:740 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:10:49:249 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:10:51:587 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:10:52:570 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..f76ea842 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:10:285:560 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:10:287:509 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:10:385:645 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:10:387:422 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:10:493:354 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:10:504:9 + Q5 finished at: 2022-4-1 17:18:10:504:298 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:10:505:615 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:10:508:2 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:10:508:883 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/tidb_per/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..1f4869d4 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:10:744:702 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:10:746:856 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:10:844:530 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:10:846:363 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:18:10:944:594 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:18:10:958:782 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-1 17:18:11:75:920 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:11:148:827 + Q8 finished at: 2022-4-1 17:18:11:149:214 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:11:245:82 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:18:11:965:622 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/tidb_per/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..6bb05d14 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:12:206:698 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:12:208:725 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:12:306:711 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:12:308:681 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:12:406:733 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:18:12:612:997 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-1 17:18:12:729:424 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:12:823:166 + Q8 finished at: 2022-4-1 17:18:12:855:286 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:13:9:13 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:18:13:624:444 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/tidb_per/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..367b0a52 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:0:202:793 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:0:204:534 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:0:335:899 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:18:0:406:215 + Q4 finished at: 2022-4-1 17:18:0:432:437 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:0:503:132 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:18:0:505:288 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:18:0:539:222 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:0:543:729 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/tidb_per/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..67b4dbdb --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:0:776:525 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:0:778:220 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:0:876:400 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:18:0:987:415 + Q4 finished at: 2022-4-1 17:18:0:987:859 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:1:80:378 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:18:1:82:640 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:18:1:96:629 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:1:98:626 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/wat_sda_full_write.txt b/install/test_result/centralizend_result/tidb_per/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..1b576a5a --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:1:315:447 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:1:317:227 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:1:415:479 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 17:18:1:515:943 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:18:1:527:907 + Q4 finished at: 2022-4-1 17:18:1:587:730 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:1:615:689 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:18:1:618:691 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:1:619:525 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/tidb_per/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..d5e87209 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:1:847:239 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:1:849:47 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:1:947:256 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 17:18:2:47:820 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:2:59:888 + Q4 finished at: 2022-4-1 17:18:2:88:449 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:2:89:864 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:18:2:91:982 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:2:93:51 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/tidb_per/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..f651510c --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:3:530:183 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:3:532:23 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:3:630:70 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:18:3:730:652 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:3:751:632 + Q4 finished at: 2022-4-1 17:18:3:787:408 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:3:788:812 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:3:790:994 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:3:791:947 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/tidb_per/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..54215405 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:2:322:116 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:18:2:323:794 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:2:422:101 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:2:423:966 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:2:632:394 +Q5 finished at: 2022-4-1 17:18:2:660:990 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:18:2:662:645 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:2:664:865 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:2:665:805 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/tidb_per/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..70f63738 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:2:897:458 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:18:2:899:241 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:2:997:478 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:2:999:484 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:3:212:643 +Q5 finished at: 2022-4-1 17:18:3:244:885 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:3:297:618 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:3:299:723 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:3:300:744 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_dda_read_skew_committed.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..14e114fe --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:50:282:523 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:50:284:223 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:50:384:50 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:50:386:80 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:50:387:732 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:50:389:120 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:18:50:483:43 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:50:484:126 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:50:486:192 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:50:487:270 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_dda_read_write_skew1_committed.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..11751c74 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:50:741:146 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:50:743:10 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:50:841:29 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:50:843:64 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:50:845:10 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:50:846:433 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:50:941:996 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:50:943:422 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:50:945:989 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:50:947:119 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_dda_write_skew.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..2494bef8 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:51:204:505 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:51:206:151 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:51:304:528 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:51:306:222 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:51:307:968 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:18:51:408:875 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:51:410:317 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:51:504:986 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:51:507:613 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:51:508:643 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_dda_write_skew_committed.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..f86954bb --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:52:729:190 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:52:730:948 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:52:829:266 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:52:831:86 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:52:832:867 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:52:834:304 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:52:929:979 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:52:931:517 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:52:933:811 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:52:934:869 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..d0484c17 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:51:792:93 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 17:18:51:794:887 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 17:18:51:796:703 + Q4-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q4 finished at: 2022-4-1 17:18:51:892:38 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 17:18:51:894:878 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 17:18:51:896:667 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:51:898:19 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:51:992:459 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 17:18:51:995:395 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 17:18:52:17:11 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:52:18:320 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..97915f9e --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:52:272:338 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 17:18:52:275:353 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:52:372:473 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + (2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 17:18:52:376:201 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 17:18:52:379:43 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:52:380:507 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 17:18:52:474:286 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:52:475:571 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 17:18:52:477:746 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:52:478:777 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_mda_step_iat.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..a005a361 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:53:190:390 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:18:53:192:537 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:53:290:310 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:18:53:292:443 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:53:392:212 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:18:53:394:298 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:18:53:491:82 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:18:53:591:371 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:18:53:691:347 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:53:791:19 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:53:891:58 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:53:991:89 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:18:53:993:927 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:53:997:549 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..ce54079c --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:57:701:203 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:57:703:186 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:57:802:14 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:57:804:2 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:57:805:397 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:18:57:901:199 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:18:57:903:797 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:18:57:905:480 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:57:906:818 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 17:18:58:2:354 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:18:58:3:548 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 17:18:58:6:281 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:18:58:7:454 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..5930da18 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:56:931:108 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:56:933:786 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:57:31:145 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:57:33:835 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:57:131:140 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 17:18:57:133:44 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:57:134:436 + Q8-T4 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-1 17:18:57:232:93 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:18:57:234:91 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:57:235:518 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 17:18:57:332:848 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:57:334:21 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 17:18:57:433:728 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 17:18:57:435:1 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:18:57:439:101 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:18:57:440:182 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..bef0d401 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:54:256:184 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 17:18:54:258:397 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:54:356:97 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:18:54:358:122 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:54:456:88 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:18:54:457:959 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:18:54:556:826 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:18:54:656:712 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:18:54:760:759 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:54:856:628 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:54:956:695 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:55:57:24 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:18:55:59:491 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:55:60:539 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..954fe524 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:55:307:587 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:18:55:311:953 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:55:407:651 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 17:18:55:409:755 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:55:507:558 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 17:18:55:509:581 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 17:18:55:608:352 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 17:18:55:708:614 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 17:18:55:808:578 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:55:908:46 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:56:8:412 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:56:108:35 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:18:56:110:722 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:56:111:752 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..25319fe8 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:58:265:658 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:18:58:267:749 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 17:18:58:269:824 + Q4-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q4 finished at: 2022-4-1 17:18:58:365:700 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 17:18:58:367:995 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 17:18:58:370:1 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:58:371:356 + Q8-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-1 17:18:58:465:628 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 17:18:58:467:815 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:18:58:469:876 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:58:471:10 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 17:18:58:566:403 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 17:18:58:567:913 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 17:18:58:570:640 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 17:18:58:571:805 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..8ad969aa --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:56:366:289 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 17:18:56:368:417 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:56:466:234 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 17:18:56:468:499 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:56:470:188 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:18:56:472:319 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 17:18:56:474:129 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:56:475:578 + Q9-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q9 finished at: 2022-4-1 17:18:56:566:275 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 17:18:56:568:376 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 17:18:56:570:21 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 17:18:56:571:981 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 17:18:56:573:596 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:56:574:963 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 17:18:56:667:487 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 17:18:56:668:701 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 17:18:56:671:432 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 17:18:56:672:415 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_sda_lost_update_committed.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..c7d0b286 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:49:812:969 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:18:49:814:851 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:49:916:341 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:49:918:346 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:49:919:885 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 17:18:50:14:70 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:50:15:517 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:50:17:873 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:50:18:977 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..94cae838 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:49:351:711 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:49:353:431 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:49:451:816 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:49:453:678 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:49:454:952 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:18:49:552:238 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:49:553:497 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:49:555:579 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:49:556:577 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:49:557:448 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_double_write_skew1.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..aca8bdff --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:28:138:748 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:28:140:648 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:28:239:473 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:28:241:395 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:18:28:243:160 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:28:441:732 +Q6 finished at: 2022-4-1 17:18:28:442:240 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:28:539:148 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:18:28:541:816 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:28:542:945 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_double_write_skew1_committed.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..70a229b1 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:28:788:384 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:28:790:351 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:28:888:319 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:28:890:393 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:18:28:892:374 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:28:893:595 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:28:989:292 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:28:990:668 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:18:28:993:224 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:28:994:272 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_double_write_skew2.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..cbd6eeb1 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:29:244:577 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:29:246:796 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:29:344:454 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:29:345:987 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:18:29:451:966 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:29:462:756 + Q5 finished at: 2022-4-1 17:18:29:463:476 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:29:545:854 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:29:548:441 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:29:549:500 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_read_skew.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..48ffd56d --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:29:804:940 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:29:806:847 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:29:908:199 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:29:911:129 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:29:913:132 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:18:30:8:805 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:30:106:512 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:30:205:139 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:30:207:970 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:30:209:37 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_read_skew2.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..89330ca0 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:31:389:299 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:31:391:502 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:31:488:264 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:31:490:480 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:18:31:492:406 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:18:31:588:997 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:31:590:309 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:31:687:923 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:31:690:578 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:31:692:60 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_read_skew2_committed.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..c8593962 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:31:956:142 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:31:957:945 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:32:57:522 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:32:59:404 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:18:32:61:352 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:32:62:346 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:32:161:33 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:32:162:475 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:32:165:488 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:32:166:585 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..a943b74a --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:30:478:821 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:18:30:481:599 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:30:580:254 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:30:582:245 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:30:584:42 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:30:585:586 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:18:30:680:414 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:30:681:659 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 17:18:30:683:809 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:30:684:794 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..aee32930 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:30:932:928 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:18:30:941:337 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:31:32:161 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 17:18:31:34:288 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 17:18:31:36:75 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:31:37:441 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:18:31:133:687 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:31:134:768 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 17:18:31:137:277 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:31:138:399 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_write_read_skew.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..35ab3b08 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:27:42:324 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:27:44:53 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:27:142:591 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:27:144:598 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:18:27:146:611 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:18:27:242:964 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:27:342:758 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:27:442:580 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:27:444:919 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:27:445:844 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_write_read_skew_committed.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..2cda2b7b --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:27:688:525 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:27:690:229 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:27:788:397 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:27:790:120 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:18:27:791:784 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:27:792:952 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:18:27:889:167 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:27:890:325 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:27:892:528 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:27:893:466 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_mda_step_rat.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..25612b58 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:32:421:217 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:32:441:957 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:32:524:124 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:32:525:995 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:18:32:527:868 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:18:32:621:211 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:18:32:623:57 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 17:18:32:625:121 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 17:18:32:722:306 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:32:723:685 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:32:821:546 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:32:921:503 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:18:32:925:124 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:32:926:239 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_mda_step_rat_long_fork.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..d655be63 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN PESSIMISTIC;' + Q1 finished at: 2022-4-1 17:18:33:175:349 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 17:18:33:178:48 +Q3-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q3 finished at: 2022-4-1 17:18:33:275:332 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 17:18:33:277:24 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:33:376:151 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 17:18:33:379:154 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:18:33:382:46 + Q8-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-1 17:18:33:476:92 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:18:33:478:21 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:18:33:577:317 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:18:33:675:683 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:33:775:786 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:18:33:875:531 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:33:876:755 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:18:33:880:56 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:18:33:880:967 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..cebe2755 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:34:126:580 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:34:128:346 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:34:226:456 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:34:228:73 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:18:34:230:716 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:18:34:326:558 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:18:34:328:327 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 17:18:34:330:967 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:18:34:433:684 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:34:435:312 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:34:526:767 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:34:626:835 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:18:34:628:946 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:34:629:912 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..91a9724b --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:34:868:785 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 17:18:34:872:877 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:34:968:938 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 17:18:34:970:802 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:18:34:973:126 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:18:35:68:941 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 17:18:35:70:663 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 17:18:35:73:89 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:18:35:170:447 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:35:171:726 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:35:269:112 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:35:372:213 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:18:35:375:42 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:35:376:80 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_sda_dirty_read.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..f2f8c6df --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:23:340:585 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:23:342:483 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:23:441:152 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:18:23:442:965 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:18:23:543:99 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:23:640:304 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:18:23:642:911 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:23:643:834 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_sda_intermediate_read.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..e54303fd --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:24:524:952 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:24:526:999 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:24:624:877 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:18:24:626:601 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 17:18:24:728:575 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:24:824:939 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:24:926:390 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:18:24:928:728 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:24:929:876 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_sda_intermediate_read_committed.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..06b3e66d --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:25:169:701 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:25:171:733 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:25:269:676 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:18:25:271:819 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:25:273:581 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 17:18:25:370:474 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:25:371:815 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:18:25:373:932 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:25:374:912 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_sda_lost_self_update.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..95584d5f --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:26:496:957 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:26:498:608 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:26:597:25 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:18:26:697:678 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:18:26:713:125 + Q4 finished at: 2022-4-1 17:18:26:747:442 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:26:797:191 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:26:799:257 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:26:800:94 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_sda_non_repeatable_read.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..5d195ed9 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:23:881:129 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:23:882:814 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:23:981:190 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:23:982:928 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:18:24:81:768 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:24:181:367 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:24:281:132 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:24:283:324 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:24:284:186 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..d6b6c4a7 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:25:613:427 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:18:25:615:709 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:25:713:446 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:25:715:99 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:25:716:215 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:18:25:814:728 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:25:815:707 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 17:18:25:817:454 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:25:818:300 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..42195cfc --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:26:53:8 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:18:26:57:856 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:26:153:74 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 17:18:26:155:17 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:26:156:234 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:18:26:254:22 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:26:255:10 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 17:18:26:256:875 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:26:257:770 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/tidb_half-predicate-read-skew_repeatable-read.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/tidb_half-predicate-read-skew_repeatable-read.txt new file mode 100644 index 00000000..9392d87b --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/tidb_half-predicate-read-skew_repeatable-read.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: half-predicate-read-skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------tidb_half-predicate-read-skew test prepare---------- +T1 execute sql: 'DROP TABLE IF EXISTS t1;' +T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + +----------tidb_half-predicate-read-skew test run---------- +T1 execute sql: 'select * from t1 where v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + + T2 execute sql: 'update t1 set v=2 where k=1;' + T2 execute sql: 'insert into t1 values(0,0);' +T1 execute sql: 'select * from t1 where k=1;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,2) + + T3 execute sql: 'select * from t1;' + current_result: + (0,0) (1,2) + *(1) expected_result: + (0,0) (1,2) + *(2) expected_result: + (0,0) (1,2) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/tidb_half-predicate-write-skew_repeatable-read.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/tidb_half-predicate-write-skew_repeatable-read.txt new file mode 100644 index 00000000..ef528ad4 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/tidb_half-predicate-write-skew_repeatable-read.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: half-predicate-write-skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------tidb_half-predicate-write-skew test prepare---------- +T1 execute sql: 'DROP TABLE IF EXISTS t1;' +T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + +----------tidb_half-predicate-write-skew test run---------- +T1 execute sql: 'select * from t1 where v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + + T2 execute sql: 'select * from t1 where k=1;' + current_result: + (1,1) + (1) expected_result: + (1,2) + *(2) expected_result: + (1,1) + +T1 execute sql: 'update t1 set v=2 where k=1;' + T2 execute sql: 'insert into t1 values(0,0);' + T3 execute sql: 'select * from t1;' + current_result: + (0,0) (1,2) + *(1) expected_result: + (0,0) (1,2) + *(2) expected_result: + (0,0) (1,2) + + +Test Result: Exception +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_double_write_skew2_committed.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..b5987602 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:39:456:404 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:39:458:134 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:39:556:527 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:39:558:289 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:18:39:664:20 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:39:669:237 + Q5 finished at: 2022-4-1 17:18:39:669:533 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:39:670:828 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:39:673:157 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:39:674:42 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_full_write_skew_c1.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..ff5b2b98 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:39:919:549 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:39:921:293 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:40:19:806 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:40:21:628 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:18:40:140:366 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:40:219:938 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:18:40:738:250 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_full_write_skew_c2.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..a5bc1ae6 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:40:992:612 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:40:994:500 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:41:92:591 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:41:94:573 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:18:41:217:550 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:41:294:149 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:18:41:815:491 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_full_write_skew_committed.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..2d318df2 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:42:64:173 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:42:65:861 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:42:164:117 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:42:165:846 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:18:42:284:635 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:42:285:986 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:18:42:982:480 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_read_write_skew1_c1.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..5642a1f3 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:43:233:215 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:43:234:834 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:43:333:235 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:43:335:173 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:43:336:759 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:43:543:321 +Q6 finished at: 2022-4-1 17:18:43:543:771 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:43:545:119 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:43:547:365 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:43:548:404 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_read_write_skew1_c2.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..9aee3526 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:43:800:846 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:43:802:505 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:43:904:125 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:43:906:337 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:43:908:331 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:44:121:557 +Q6 finished at: 2022-4-1 17:18:44:121:880 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:44:201:368 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:44:203:758 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:44:204:741 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_read_write_skew2_c1.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..55275f9c --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:44:464:798 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:44:466:616 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:44:567:1 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:44:569:647 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:18:44:670:231 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:44:685:987 + Q5 finished at: 2022-4-1 17:18:44:718:311 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:44:765:234 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:44:767:659 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:44:768:716 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_read_write_skew2_c2.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..c38774ba --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:45:23:698 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:45:25:469 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:45:123:609 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:45:125:363 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:18:45:232:662 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:45:430:631 + Q5 finished at: 2022-4-1 17:18:45:477:930 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:45:479:338 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:45:482:74 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:45:483:163 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_read_write_skew2_committed.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..8b8510dd --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:45:733:818 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:45:735:590 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:45:833:625 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:45:835:455 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:45:941:569 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:45:957:453 + Q5 finished at: 2022-4-1 17:18:45:957:842 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:45:959:216 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:45:964:820 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:45:965:963 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_mda_step_wat_c1.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..e59c9f71 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:46:221:206 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:46:223:106 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:46:321:192 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:46:323:25 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:18:46:424:27 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:18:46:434:556 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-1 17:18:46:534:511 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:46:628:209 + Q8 finished at: 2022-4-1 17:18:46:628:520 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:46:721:954 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:18:47:434:504 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_mda_step_wat_c2.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..2bd1da08 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:47:689:987 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:47:691:750 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:47:790:686 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:47:792:661 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:47:892:71 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:18:48:95:309 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-1 17:18:48:200:495 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:48:302:211 + Q8 finished at: 2022-4-1 17:18:48:342:272 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:48:491:37 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:18:49:100:688 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_sda_dirty_write_1abort.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..c2ae16f5 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:35:621:612 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:35:623:482 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:35:721:575 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:18:35:822:416 + Q4 finished at: 2022-4-1 17:18:35:822:549 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:35:921:778 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:18:35:923:951 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:18:35:948:426 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:35:949:734 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_sda_dirty_write_2commit.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..f62b8419 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:36:171:816 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:36:173:508 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:36:271:738 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:18:36:378:337 + Q4 finished at: 2022-4-1 17:18:36:378:621 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:36:472:270 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:18:36:474:591 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:18:36:496:216 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:36:497:395 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_sda_full_write.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..79754370 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:36:726:925 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:36:728:791 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:36:826:967 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 17:18:36:927:342 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:18:36:932:775 + Q4 finished at: 2022-4-1 17:18:36:933:137 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:37:27:145 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:18:37:29:486 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:37:30:425 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_sda_full_write_committed.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..c6cb147c --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:37:277:443 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:37:279:91 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:37:377:292 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 17:18:37:477:773 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:37:488:445 + Q4 finished at: 2022-4-1 17:18:37:488:738 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:37:489:903 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:18:37:491:986 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:37:492:963 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_sda_lost_self_update_committed.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..74875ee6 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:38:953:266 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:38:955:48 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:39:53:300 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:18:39:153:833 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:39:169:936 + Q4 finished at: 2022-4-1 17:18:39:203:317 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:39:204:807 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:39:207:130 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:39:208:236 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_sda_lost_update_c1.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..78524700 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:37:735:732 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:18:37:737:319 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:37:835:664 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:37:837:558 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:38:50:696 +Q5 finished at: 2022-4-1 17:18:38:51:106 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:18:38:52:418 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:38:54:550 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:38:55:608 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_sda_lost_update_c2.txt b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..047ebb94 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:38:302:254 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:18:38:304:184 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:38:402:343 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:38:404:211 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:38:612:120 +Q5 finished at: 2022-4-1 17:18:38:612:440 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:38:702:519 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:38:704:894 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:38:706:128 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/centralizend_result/tidb_per/result_summary/read-committed_total-result.txt b/install/test_result/centralizend_result/tidb_per/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..38745346 --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/centralizend_result/tidb_per/result_summary/repeatable-read_total-result.txt b/install/test_result/centralizend_result/tidb_per/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..42d5fc7b --- /dev/null +++ b/install/test_result/centralizend_result/tidb_per/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/result_summary/serializable_total-result.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..af5c58de --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/result_summary/serializable_total-result.txt @@ -0,0 +1,107 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Avoid + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Avoid + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Avoid + +rat_mda_step_rat_predicate_based_insert: Avoid + +wat_sda_dirty_write_1abort: Timeout + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +iat_mda_step_iat_predicate_based_delete: Rollback + +iat_mda_step_iat_predicate_based_insert: Rollback + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Rollback diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..2410e404 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,75 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:36:26:203:890 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-11 0:36:26:922:251 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:36:27:203:961 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-11 0:36:27:267:657 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-11 0:36:27:331:236 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-11 0:36:27:395:316 +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q7 finished at: 2022-4-11 0:36:28:857:273 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-11 0:36:28:915:31 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-11 0:36:38:201:272 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-11 0:36:38:888:167 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-11 0:36:39:685:667 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-11 0:36:39:743:568 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..17202cb7 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,43 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:36:44:617:572 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-11 0:36:45:324:834 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:36:45:620:156 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-11 0:36:45:684:269 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-11 0:36:45:748:124 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-11 0:36:45:811:124 +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_write_too_old: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_W errcode: HY000 +Q7 failed at: 2022-4-11 0:36:47:324:860 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_write_too_old: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_W + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_dda_write_skew.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..23f7b920 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_dda_write_skew.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:37:1:529:759 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-11 0:37:2:236:706 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:37:2:535:373 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-11 0:37:3:309:651 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-11 0:37:3:374:792 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-11 0:37:3:536:355 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE errcode: HY000 +Q7 failed at: 2022-4-11 0:37:4:299:120 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..016328cf --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,52 @@ +#### db_type: crdb #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-13 14:44:9:858:657 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-13 14:44:10:523:515 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-13 14:44:14:864:101 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-13 14:44:15:509:851 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-13 14:44:15:565:930 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-13 14:44:15:618:832 +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-4-13 14:44:19:863:24 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE errcode: HY000 +Q8 failed at: 2022-4-13 14:44:20:725:7 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..36ab62dc --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,77 @@ +#### db_type: crdb #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:37:19:331:595 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-11 0:37:19:391:411 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-11 0:37:19:451:712 + Q4-T2 execute sql: 'BEGIN TRANSACTION;' + Q4 finished at: 2022-4-11 0:37:20:341:445 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-11 0:37:21:343:356 + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-11 0:37:21:347:330 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-11 0:37:21:401:151 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-11 0:37:21:461:435 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-11 0:37:31:341:360 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-11 0:37:31:403:706 + Q11-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q11 finished at: 2022-4-11 0:37:31:465:385 + Q12-T3 execute sql: 'DROP TABLE mytab;' + Q12 finished at: 2022-4-11 0:37:31:532:686 + Q13-T3 execute sql: 'COMMIT TRANSACTION;' + Q13 finished at: 2022-4-11 0:37:31:680:174 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..c8b7c1d5 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:37:36:66:298 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-11 0:37:36:999:691 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:37:37:60:110 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-11 0:37:38:38:234 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' +Q7 finished at: 2022-4-11 0:37:38:66:948 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-11 0:37:38:363:474 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-11 0:37:38:419:723 +Q8 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE errcode: HY000 +Q8 failed at: 2022-4-11 0:37:38:924:428 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_mda_step_iat.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..50166211 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_mda_step_iat.txt @@ -0,0 +1,88 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-13 14:45:54:623:580 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + (2,0,2,1) + (5) expected_result: + (2,0,2,1) + (6) expected_result: + (2,0,2,1) + +Q2 finished at: 2022-4-13 14:45:55:397:283 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-13 14:45:59:621:940 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,,3) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + + Q4 finished at: 2022-4-13 14:46:0:298:816 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-13 14:46:4:625:888 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-4-13 14:46:5:260:710 +Q7-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q7 finished at: 2022-4-13 14:46:9:629:210 + Q8-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q8 finished at: 2022-4-13 14:46:14:626:62 + Q9-T3 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q9 finished at: 2022-4-13 14:46:19:635:811 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE errcode: HY000 +Q10 failed at: 2022-4-13 14:46:25:638:495 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..5d59ff27 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,128 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:40:0:959:422 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-11 0:40:1:651:966 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:40:1:961:748 + Q4-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q4 finished at: 2022-4-11 0:40:2:22:240 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-11 0:40:2:79:519 + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-11 0:40:2:961:927 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,0) + + Q7 finished at: 2022-4-11 0:40:3:636:653 + Q8-T3 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q8 finished at: 2022-4-11 0:40:3:699:437 + Q9-T3 execute sql: 'COMMIT TRANSACTION;' + Q9 finished at: 2022-4-11 0:40:3:765:984 +Q10-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,0) + (5) expected_result: + (1,3,1,1) + (6) expected_result: + (1,3,1,1) + +Q10 finished at: 2022-4-11 0:40:4:902:26 +Q11-T1 execute sql: 'COMMIT TRANSACTION;' +Q11 finished at: 2022-4-11 0:40:4:960:318 + Q12-T4 execute sql: 'BEGIN TRANSACTION;' + Q12 finished at: 2022-4-11 0:40:13:963:330 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + + Q13 finished at: 2022-4-11 0:40:15:203:270 + Q14-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q14 finished at: 2022-4-11 0:40:15:907:992 + Q15-T4 execute sql: 'COMMIT TRANSACTION;' + Q15 finished at: 2022-4-11 0:40:15:967:910 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..2049b939 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,245 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-13 14:44:37:691:800 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + *(5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,3) + (7) expected_result: + (0,1,0,3) + *(8) expected_result: + (0,1,0,0) + (9) expected_result: + (0,1,0,3) + (10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,0) + (12) expected_result: + (0,1,0,3) + (13) expected_result: + (0,1,0,3) + (14) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-13 14:44:38:310:514 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-13 14:44:42:688:796 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + *(7) expected_result: + (1,3,1,0) + (8) expected_result: + (1,3,1,1) + *(9) expected_result: + (1,3,1,0) + (10) expected_result: + (1,3,1,1) + (11) expected_result: + (1,3,1,1) + (12) expected_result: + (1,3,1,1) + (13) expected_result: + (1,3,1,1) + *(14) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-13 14:44:43:336:732 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-13 14:44:47:694:692 + Q6-T3 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q6 finished at: 2022-4-13 14:44:47:753:904 + Q7-T3 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-13 14:44:47:810:406 + Q8-T4 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-13 14:44:52:686:253 + Q9-T4 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q9 finished at: 2022-4-13 14:44:52:743:987 + Q10-T4 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-13 14:44:52:794:342 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,0) + *(6) expected_result: + (0,1,0,0) + *(7) expected_result: + (0,1,0,0) + *(8) expected_result: + (0,1,0,0) + (9) expected_result: + (0,1,0,3) + (10) expected_result: + (0,1,0,3) + (11) expected_result: + (0,1,0,3) + *(12) expected_result: + (0,1,0,0) + (13) expected_result: + (0,1,0,3) + (14) expected_result: + (0,1,0,3) + + Q11 finished at: 2022-4-13 14:44:58:320:197 + Q12-T2 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-13 14:44:58:370:605 +Q13-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,0) + *(4) expected_result: + (1,3,1,0) + (5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,0) + (7) expected_result: + (1,3,1,1) + (8) expected_result: + (1,3,1,1) + *(9) expected_result: + (1,3,1,0) + (10) expected_result: + (1,3,1,1) + (11) expected_result: + (1,3,1,1) + (12) expected_result: + (1,3,1,1) + *(13) expected_result: + (1,3,1,0) + (14) expected_result: + (1,3,1,1) + +Q13 finished at: 2022-4-13 14:45:3:267:17 +Q14-T1 execute sql: 'COMMIT TRANSACTION;' +Q14 finished at: 2022-4-13 14:45:3:316:265 + Q15-T5 execute sql: 'BEGIN TRANSACTION;' + Q15 finished at: 2022-4-13 14:45:7:689:392 + Q16-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + *(7) expected_result: + (0,1,0,3) + *(8) expected_result: + (0,1,0,3) + *(9) expected_result: + (0,1,0,3) + *(10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,3) + *(12) expected_result: + (0,1,0,3) + *(13) expected_result: + (0,1,0,3) + *(14) expected_result: + (0,1,0,3) + + Q16 finished at: 2022-4-13 14:45:8:418:998 + Q17-T5 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + *(7) expected_result: + (1,3,1,1) + *(8) expected_result: + (1,3,1,1) + *(9) expected_result: + (1,3,1,1) + *(10) expected_result: + (1,3,1,1) + *(11) expected_result: + (1,3,1,1) + *(12) expected_result: + (1,3,1,1) + *(13) expected_result: + (1,3,1,1) + *(14) expected_result: + (1,3,1,1) + + Q17 finished at: 2022-4-13 14:45:9:76:482 + Q18-T5 execute sql: 'COMMIT TRANSACTION;' + Q18 finished at: 2022-4-13 14:45:9:125:854 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..32e5f921 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,92 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:38:33:306:179 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-11 0:38:34:47:850 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:38:34:308:824 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + null + *(6) expected_result: + (0,1,0,0) + + Q4 finished at: 2022-4-11 0:38:35:188:491 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-11 0:38:35:301:986 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + null + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + null + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-4-11 0:38:36:42:449 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE value1=0;' +Q7 finished at: 2022-4-11 0:38:36:576:295 + Q8-T2 execute sql: 'DELETE FROM t2 WHERE value1=1;' + Q8 finished at: 2022-4-11 0:38:37:312:170 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE value1=2;' +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-11 0:38:39:311:98 + Q9 finished at: 2022-4-11 0:38:39:319:241 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q11 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE errcode: HY000 + Q11 failed at: 2022-4-11 0:38:41:414:690 + Q12 finished at: 2022-4-11 0:38:41:577:581 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..3c96efda --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,89 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:38:56:464:222 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,0,2,0) + (5) expected_result: + (2,0,2,0) + (6) expected_result: + (2,0,2,0) + +Q2 finished at: 2022-4-11 0:38:57:194:95 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:38:57:458:728 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + null + (1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,0) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1,0,0) + *(6) expected_result: + null + + Q4 finished at: 2022-4-11 0:38:58:137:833 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-11 0:38:58:459:275 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' + current_result: + null + (1) expected_result: + (1,3,1,0) + *(2) expected_result: + null + (3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,0) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-11 0:38:59:417:241 +Q7 finished at: 2022-4-11 0:38:59:465:998 + Q8-T2 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + Q8 finished at: 2022-4-11 0:39:0:460:236 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + Q9 finished at: 2022-4-11 0:39:1:465:176 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-11 0:39:2:469:918 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q11 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE errcode: HY000 + Q11 failed at: 2022-4-11 0:39:4:573:15 + Q12 finished at: 2022-4-11 0:39:4:644:557 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..7526ba89 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,123 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-13 14:45:21:712:81 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + *(5) expected_result: + (0,1,0,0) + *(6) expected_result: + (0,1,0,0) + +Q2 finished at: 2022-4-13 14:45:22:380:988 +Q3-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + +Q3 finished at: 2022-4-13 14:45:23:35:581 + Q4-T2 execute sql: 'BEGIN TRANSACTION;' + Q4 finished at: 2022-4-13 14:45:26:713:838 + Q5-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,0) + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q5 finished at: 2022-4-13 14:45:27:363:840 + Q6-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q6 finished at: 2022-4-13 14:45:27:417:996 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-13 14:45:27:471:30 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-13 14:45:31:726:955 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + (4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,0) + *(6) expected_result: + (0,1,0,0) + + Q9 finished at: 2022-4-13 14:45:32:347:447 + Q10-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + (2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + (5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,0) + + Q10 finished at: 2022-4-13 14:45:33:35:269 + Q11-T3 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-13 14:45:33:89:804 +Q12-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q12 finished at: 2022-4-13 14:45:36:716:196 +Q13-T1 execute sql: 'COMMIT TRANSACTION;' +Q13 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE errcode: HY000 +Q13 failed at: 2022-4-13 14:45:38:72:419 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..b5a51c77 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,184 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 1:4:30:562:799 +Q2-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,2) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + +Q2 finished at: 2022-4-11 1:4:31:279:356 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 1:4:31:552:630 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,2) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + (0,1,0,2) + (6) expected_result: + (0,1,0,2) + + Q4 finished at: 2022-4-11 1:4:32:229:873 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-11 1:4:32:287:496 + Q6-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-11 1:4:32:548:424 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,0) + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-4-11 1:4:33:328:709 + Q7-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q7 finished at: 2022-4-11 1:4:33:389:999 + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-11 1:4:33:453:639 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + *(4) expected_result: + (2,0,2,0) + *(5) expected_result: + (2,0,2,0) + *(6) expected_result: + (2,0,2,0) + + Q10 finished at: 2022-4-11 1:4:34:107:784 + Q11-T3 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q11 finished at: 2022-4-11 1:4:34:164:395 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + (2,0,2,2) + (5) expected_result: + (2,0,2,1) + (6) expected_result: + (2,0,2,1) + +Q15 finished at: 2022-4-11 1:4:34:170:607 +Q16-T1 execute sql: 'COMMIT TRANSACTION;' +Q16 finished at: 2022-4-11 1:4:34:234:390 + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,0) + + Q12 finished at: 2022-4-11 1:4:34:812:614 + Q13-T3 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q13 finished at: 2022-4-11 1:4:34:864:352 + Q14-T3 execute sql: 'COMMIT TRANSACTION;' + Q14 finished at: 2022-4-11 1:4:34:915:353 + Q17-T4 execute sql: 'BEGIN TRANSACTION;' + Q17 finished at: 2022-4-11 1:4:43:560:977 + Q18-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,2) (2,0,2,1) + *(1) expected_result: + (0,1,0,2) (2,0,2,1) + *(2) expected_result: + (0,1,0,2) (2,0,2,1) + *(3) expected_result: + (0,1,0,2) (2,0,2,1) + *(4) expected_result: + (0,1,0,2) (2,0,2,1) + *(5) expected_result: + (0,1,0,2) (2,0,2,1) + *(6) expected_result: + (0,1,0,2) (2,0,2,1) + + Q18 finished at: 2022-4-11 1:4:44:516:50 + Q19-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q19 finished at: 2022-4-11 1:4:45:200:297 + Q20-T4 execute sql: 'COMMIT TRANSACTION;' + Q20 finished at: 2022-4-11 1:4:45:260:365 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..8dfb100f --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: crdb #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-13 14:46:52:210:42 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-13 14:46:52:872:832 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-13 14:46:57:210:908 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-13 14:46:57:264:718 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-13 14:46:57:317:347 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649832412.183854643,0 t errcode: HY000 +Q6 failed at: 2022-4-13 14:47:2:822:108 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649832412.183854643,0 t + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..d379608a --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,61 @@ +#### db_type: crdb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:35:51:539:255 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 0:35:52:205:81 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:35:52:275:179 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 0:35:52:332:963 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-11 0:35:52:389:428 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-11 0:35:53:901:791 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-11 0:35:53:952:885 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-11 0:36:3:277:907 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 0:36:4:553:212 + Q10-T3 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-11 0:36:4:613:927 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..9317a999 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,34 @@ +#### db_type: crdb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:23:41:336:651 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-11 0:23:41:389:392 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:23:42:345:813 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-11 0:23:42:404:637 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' +Q6 finished at: 2022-4-11 0:23:43:406:560 + Q5 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA errcode: HY000 + Q5 failed at: 2022-4-11 0:23:44:515:518 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..81e88f72 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,36 @@ +#### db_type: crdb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:24:0:218:7 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-11 0:24:0:278:449 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:24:1:217:865 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-11 0:24:1:278:157 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' +Q7 finished at: 2022-4-11 0:24:2:273:31 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-11 0:24:2:334:9 + Q5 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA errcode: HY000 + Q5 failed at: 2022-4-11 0:24:4:98:640 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..33a50693 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,68 @@ +#### db_type: crdb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:24:17:135:564 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-11 0:24:17:188:202 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:24:18:143:523 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-11 0:24:18:204:658 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q6 finished at: 2022-4-11 0:24:19:808:3 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-11 0:24:19:867:841 + Q5 finished at: 2022-4-11 0:24:19:876:733 + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-11 0:24:20:146:705 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-11 0:24:30:149:717 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,2) + *(1) expected_result: + (0,1,0,2) + *(2) expected_result: + (0,1,0,2) + + Q10 finished at: 2022-4-11 0:24:30:894:441 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-11 0:24:31:581:984 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-11 0:24:31:645:315 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_read_skew.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..512c1ec4 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_read_skew.txt @@ -0,0 +1,75 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:24:36:242:119 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-11 0:24:36:926:576 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:24:37:250:386 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-11 0:24:37:574:9 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-11 0:24:37:635:103 +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q6 finished at: 2022-4-11 0:24:38:922:993 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-11 0:24:39:248:845 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-11 0:24:40:250:227 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-11 0:24:50:255:38 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-11 0:24:50:973:240 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-11 0:24:51:708:150 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-11 0:24:51:771:348 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_read_skew2.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..ea6834d6 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,75 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-13 11:31:45:309:13 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-13 11:31:45:363:655 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-13 11:31:55:316:700 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-13 11:31:55:975:995 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-13 11:32:5:312:942 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-13 11:32:5:368:597 + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-4-13 11:32:6:5:528 + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-13 11:32:15:311:121 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-13 11:32:25:315:346 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-13 11:32:26:11:947 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-13 11:32:26:645:924 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-13 11:32:26:696:277 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..a7737eaf --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,75 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-13 11:30:26:235:807 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-13 11:30:26:290:607 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-13 11:30:36:236:16 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-13 11:30:36:893:813 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-4-13 11:30:46:244:942 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-13 11:30:46:297:395 + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-4-13 11:30:46:905:362 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-13 11:30:46:954:509 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-13 11:30:56:236:151 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-13 11:30:56:853:44 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-13 11:30:57:495:301 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-13 11:30:57:544:933 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..1f40d2ca --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,75 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:53:13:888:75 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value2=0;' + current_result: + (0,1,0,0) + (1) expected_result: + null + *(2) expected_result: + (0,1,0,0) + +Q2 finished at: 2022-4-11 0:53:14:551:933 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:53:14:611:317 + Q4-T2 execute sql: 'DELETE FROM t2 WHERE value1=1;' + Q4 finished at: 2022-4-11 0:53:14:674:204 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE value1=0;' + Q5 finished at: 2022-4-11 0:53:14:735:113 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-11 0:53:14:795:75 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE value2=0;' + current_result: + (0,1,0,0) + (1) expected_result: + null + *(2) expected_result: + (0,1,0,0) + +Q7 finished at: 2022-4-11 0:53:16:239:234 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-11 0:53:16:303:77 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-11 0:53:25:601:652 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q10 finished at: 2022-4-11 0:53:26:321:270 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q11 finished at: 2022-4-11 0:53:27:36:812 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-11 0:53:27:90:523 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..4541d615 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,62 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:25:14:93:27 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-11 0:25:14:826:643 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:25:15:93:555 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-11 0:25:15:153:722 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-11 0:25:15:212:973 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-11 0:25:15:273:459 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-11 0:25:17:24:741 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-11 0:25:17:79:801 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-11 0:25:26:96:474 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q10 finished at: 2022-4-11 0:25:26:779:803 + Q11-T3 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-11 0:25:26:842:15 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..5f630d4c --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,75 @@ +#### db_type: crdb #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:23:2:342:542 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-11 0:23:2:399:840 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:23:3:350:35 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-11 0:23:3:411:498 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1; ' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q6 finished at: 2022-4-11 0:23:5:266:568 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-11 0:23:6:366:102 + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-4-11 0:23:6:998:634 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-11 0:23:7:51:731 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-11 0:23:16:346:876 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-11 0:23:17:144:896 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-11 0:23:18:129:181 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-11 0:23:18:188:752 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..8a5c4042 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,75 @@ +#### db_type: crdb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:23:23:31:244 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-11 0:23:23:123:11 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:23:24:31:850 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-11 0:23:24:84:242 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q7 finished at: 2022-4-11 0:23:25:662:872 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-11 0:23:25:726:630 + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-4-11 0:23:26:492:863 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-11 0:23:26:550:382 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-11 0:23:35:37:328 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-11 0:23:35:751:772 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-11 0:23:36:713:180 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-11 0:23:36:774:914 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_mda_step_rat.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..313c6151 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_mda_step_rat.txt @@ -0,0 +1,131 @@ +#### db_type: crdb #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:26:6:950:808 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-11 0:26:7:5:934 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:26:7:958:482 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-11 0:26:8:24:756 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-11 0:26:8:958:201 + Q7-T3 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + (2,0,2,1) + (5) expected_result: + (2,0,2,1) + (6) expected_result: + (2,0,2,1) + +Q9 finished at: 2022-4-11 0:26:10:585:53 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-11 0:26:10:645:925 + Q7 finished at: 2022-4-11 0:26:10:652:455 + Q8-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + (3) expected_result: + (0,1,0,0) + (4) expected_result: + (0,1,0,0) + *(5) expected_result: + (0,1,0,3) + (6) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-4-11 0:26:11:519:440 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-11 0:26:11:580:534 + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + (2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + (5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,0) + + Q8 finished at: 2022-4-11 0:26:12:205:369 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-11 0:26:12:264:995 + Q13-T4 execute sql: 'BEGIN TRANSACTION;' + Q13 finished at: 2022-4-11 0:26:21:953:291 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) (2,0,2,1) + *(1) expected_result: + (0,1,0,3) (2,0,2,1) + *(2) expected_result: + (0,1,0,3) (2,0,2,1) + *(3) expected_result: + (0,1,0,3) (2,0,2,1) + *(4) expected_result: + (0,1,0,3) (2,0,2,1) + *(5) expected_result: + (0,1,0,3) (2,0,2,1) + *(6) expected_result: + (0,1,0,3) (2,0,2,1) + + Q14 finished at: 2022-4-11 0:26:22:777:690 + Q15-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q15 finished at: 2022-4-11 0:26:23:469:758 + Q16-T4 execute sql: 'COMMIT TRANSACTION;' + Q16 finished at: 2022-4-11 0:26:23:527:604 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..dcac0b75 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,245 @@ +#### db_type: crdb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN TRANSACTION;' + Q1 finished at: 2022-4-11 0:26:28:93:96 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + (4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + (7) expected_result: + (0,1,0,3) + (8) expected_result: + (0,1,0,3) + *(9) expected_result: + (0,1,0,0) + (10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,0) + (12) expected_result: + (0,1,0,3) + *(13) expected_result: + (0,1,0,0) + *(14) expected_result: + (0,1,0,0) + + Q2 finished at: 2022-4-11 0:26:28:810:50 +Q3-T1 execute sql: 'BEGIN TRANSACTION;' +Q3 finished at: 2022-4-11 0:26:29:88:12 +Q4-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q4 finished at: 2022-4-11 0:26:29:141:174 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-11 0:26:30:93:321 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + (7) expected_result: + (1,3,1,1) + *(8) expected_result: + (1,3,1,0) + (9) expected_result: + (1,3,1,1) + (10) expected_result: + (1,3,1,1) + *(11) expected_result: + (1,3,1,0) + *(12) expected_result: + (1,3,1,0) + *(13) expected_result: + (1,3,1,0) + (14) expected_result: + (1,3,1,1) + + Q6 finished at: 2022-4-11 0:26:30:820:568 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + Q8-T2 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-11 0:26:31:101:492 + Q9-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q9 finished at: 2022-4-11 0:26:31:168:35 + Q10-T4 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + *(7) expected_result: + (1,3,1,0) + (8) expected_result: + (1,3,1,1) + (9) expected_result: + (1,3,1,1) + (10) expected_result: + (1,3,1,1) + (11) expected_result: + (1,3,1,1) + *(12) expected_result: + (1,3,1,0) + *(13) expected_result: + (1,3,1,0) + *(14) expected_result: + (1,3,1,0) + + Q10 finished at: 2022-4-11 0:26:32:949:584 +Q11-T1 execute sql: 'COMMIT TRANSACTION;' +Q11 finished at: 2022-4-11 0:26:33:98:350 + current_result: + (0,1,0,3) + (1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + (6) expected_result: + (0,1,0,0) + *(7) expected_result: + (0,1,0,3) + *(8) expected_result: + (0,1,0,3) + *(9) expected_result: + (0,1,0,3) + (10) expected_result: + (0,1,0,0) + (11) expected_result: + (0,1,0,0) + (12) expected_result: + (0,1,0,0) + *(13) expected_result: + (0,1,0,3) + *(14) expected_result: + (0,1,0,3) + + Q7 finished at: 2022-4-11 0:26:33:765:995 + Q12-T2 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-11 0:26:34:99:219 + Q13-T3 execute sql: 'COMMIT TRANSACTION;' + Q13 finished at: 2022-4-11 0:26:35:101:650 + Q14-T4 execute sql: 'COMMIT TRANSACTION;' + Q14 finished at: 2022-4-11 0:26:36:98:767 + Q15-T5 execute sql: 'BEGIN TRANSACTION;' + Q15 finished at: 2022-4-11 0:26:46:98:658 + Q16-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + *(7) expected_result: + (0,1,0,3) + *(8) expected_result: + (0,1,0,3) + *(9) expected_result: + (0,1,0,3) + *(10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,3) + *(12) expected_result: + (0,1,0,3) + *(13) expected_result: + (0,1,0,3) + *(14) expected_result: + (0,1,0,3) + + Q16 finished at: 2022-4-11 0:26:47:299:352 + Q17-T5 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + *(7) expected_result: + (1,3,1,1) + *(8) expected_result: + (1,3,1,1) + *(9) expected_result: + (1,3,1,1) + *(10) expected_result: + (1,3,1,1) + *(11) expected_result: + (1,3,1,1) + *(12) expected_result: + (1,3,1,1) + *(13) expected_result: + (1,3,1,1) + *(14) expected_result: + (1,3,1,1) + + Q17 finished at: 2022-4-11 0:26:47:963:256 + Q18-T5 execute sql: 'COMMIT TRANSACTION;' + Q18 finished at: 2022-4-11 0:26:48:109:915 + +The current result is consistent with the [(13) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..ce98c643 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,112 @@ +#### db_type: crdb #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:26:52:557:816 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-11 0:26:52:634:185 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:26:53:835:600 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-11 0:26:53:903:408 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-11 0:26:54:563:265 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-11 0:26:54:629:465 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-11 0:26:55:561:904 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-11 0:26:55:622:208 + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-11 0:26:55:634:334 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-11 0:26:56:561:806 + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-11 0:26:56:566:668 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-11 0:26:57:566:536 + Q13-T4 execute sql: 'BEGIN TRANSACTION;' + Q13 finished at: 2022-4-11 0:27:7:558:508 + Q14-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q14 finished at: 2022-4-11 0:27:8:560:456 + Q15-T4 execute sql: 'COMMIT TRANSACTION;' + Q15 finished at: 2022-4-11 0:27:8:618:290 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..e7680903 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,109 @@ +#### db_type: crdb #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:27:12:873:412 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-11 0:27:12:940:973 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:27:13:880:441 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-11 0:27:13:945:534 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-11 0:27:14:866:3 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-11 0:27:14:920:25 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-11 0:27:15:876:359 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-11 0:27:15:936:178 + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-11 0:27:15:949:258 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + (4) expected_result: + (,) + *(5) expected_result: + (1,) + (6) expected_result: + (,) + + Q8 finished at: 2022-4-11 0:27:16:886:473 + Q11 finished at: 2022-4-11 0:27:17:155:576 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-11 0:27:17:875:971 + Q13-T4 execute sql: 'BEGIN TRANSACTION;' + Q13 finished at: 2022-4-11 0:27:28:142:514 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q14 finished at: 2022-4-11 0:27:29:435:488 + Q15-T4 execute sql: 'COMMIT TRANSACTION;' + Q15 finished at: 2022-4-11 0:27:29:533:501 + +The current result is consistent with the [(5) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_sda_dirty_read.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..bba31edc --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,48 @@ +#### db_type: crdb #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:20:48:270:975 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 0:20:48:326:205 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:20:49:278:82 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-11 0:20:50:282:269 + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 0:20:59:5:514 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-11 0:20:59:59:863 + Q7-T3 execute sql: 'BEGIN TRANSACTION;' + Q7 finished at: 2022-4-11 0:21:1:272:675 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q8 finished at: 2022-4-11 0:21:9:88:63 + Q9-T3 execute sql: 'COMMIT TRANSACTION;' + Q9 finished at: 2022-4-11 0:21:9:417:80 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..44110c89 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,54 @@ +#### db_type: crdb #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:21:32:495:361 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 0:21:32:548:499 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:21:33:767:527 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-11 0:21:34:506:786 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-11 0:21:36:515:359 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 0:21:37:189:652 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-11 0:21:37:248:833 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-11 0:21:46:508:806 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q9 finished at: 2022-4-11 0:21:47:231:810 + Q10-T3 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-11 0:21:47:294:186 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..399cdd11 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,54 @@ +#### db_type: crdb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:21:51:618:577 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 0:21:51:680:321 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:21:52:620:459 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-11 0:21:53:612:546 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-11 0:21:53:667:920 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 0:21:54:331:694 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-11 0:21:54:394:872 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-11 0:22:3:615:511 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q9 finished at: 2022-4-11 0:22:4:613:548 + Q10-T3 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-11 0:22:4:668:432 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..5ca8554d --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,54 @@ +#### db_type: crdb #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:22:43:701:99 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 0:22:43:761:443 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:22:44:703:170 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-11 0:22:47:932:877 +Q6-T1 execute sql: 'COMMIT TRANSACTION;' +Q6 finished at: 2022-4-11 0:22:47:986:155 + Q4 finished at: 2022-4-11 0:22:48:1:541 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-11 0:22:48:62:911 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-11 0:22:56:700:495 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 0:22:57:706:484 + Q10-T3 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-11 0:22:57:769:481 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..168b91c5 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,61 @@ +#### db_type: crdb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-13 14:47:19:796:350 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-13 14:47:20:442:636 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-13 14:47:24:797:347 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-13 14:47:24:851:499 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-13 14:47:30:440:779 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-13 14:47:34:803:772 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-13 14:47:39:796:692 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-13 14:47:44:804:568 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-13 14:47:45:498:389 + Q10-T3 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-13 14:47:45:557:789 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..091a1480 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,61 @@ +#### db_type: crdb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:22:8:997:980 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 0:22:9:929:554 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:22:10:262:111 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-11 0:22:10:325:595 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-11 0:22:10:395:495 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-11 0:22:12:615:962 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-11 0:22:12:672:994 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-11 0:22:20:994:781 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q9 finished at: 2022-4-11 0:22:21:991:882 + Q10-T3 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-11 0:22:22:55:381 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..52fc86e0 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:22:26:567:430 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 0:22:27:283:384 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:22:27:566:956 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-11 0:22:27:627:332 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-11 0:22:27:688:15 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-11 0:22:29:216:396 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-11 0:22:29:265:760 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-11 0:22:38:563:850 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q9 finished at: 2022-4-11 0:22:39:318:374 + Q10-T3 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-11 0:22:39:374:393 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..3f7482dd --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,68 @@ +#### db_type: crdb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:31:12:54:331 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-11 0:31:12:112:680 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:31:13:53:56 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-11 0:31:13:107:457 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q7 finished at: 2022-4-11 0:31:14:728:114 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-11 0:31:14:789:218 + Q5 finished at: 2022-4-11 0:31:14:799:674 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-11 0:31:14:862:280 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-11 0:31:24:61:589 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,2) + *(1) expected_result: + (0,1,0,2) + (2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-11 0:31:25:779:222 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-11 0:31:26:443:694 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-11 0:31:26:503:668 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..0a88ef14 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: crdb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:31:31:87:477 +Q2-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q2 finished at: 2022-4-11 0:31:31:143:529 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:31:32:82:34 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-11 0:31:32:136:704 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q5 finished at: 2022-4-11 0:31:33:156:372 +Q6 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA errcode: HY000 +Q6 failed at: 2022-4-11 0:31:33:748:878 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..7a0c0f91 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,34 @@ +#### db_type: crdb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:31:48:920:389 +Q2-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q2 finished at: 2022-4-11 0:31:48:975:501 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:31:49:927:209 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-11 0:31:49:989:62 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-11 0:31:50:984:890 + Q5 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA errcode: HY000 + Q5 failed at: 2022-4-11 0:31:51:479:113 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..f1a01fa1 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,36 @@ +#### db_type: crdb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:32:7:779:790 +Q2-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q2 finished at: 2022-4-11 0:32:7:834:129 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:32:8:787:448 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-11 0:32:8:848:318 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-4-11 0:32:9:844:826 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-11 0:32:9:899:510 + Q5 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA errcode: HY000 + Q5 failed at: 2022-4-11 0:32:10:337:529 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..ce323135 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,43 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:32:24:679:264 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-11 0:32:25:407:197 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:32:25:671:486 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-11 0:32:25:735:380 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-11 0:32:25:797:246 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-11 0:32:27:681:264 +Q6 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_write_too_old: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_W errcode: HY000 +Q6 failed at: 2022-4-11 0:32:28:295:392 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_write_too_old: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_W + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..a0570940 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,43 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:32:42:561:224 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-11 0:32:43:272:75 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:32:43:570:309 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-11 0:32:43:625:548 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-11 0:32:43:680:27 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-11 0:32:45:575:177 +Q6 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_write_too_old: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_W errcode: HY000 +Q6 failed at: 2022-4-11 0:32:46:189:636 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_write_too_old: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_W + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..07a69147 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,43 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-13 11:33:19:639:637 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-13 11:33:19:695:232 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-13 11:33:29:636:693 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-13 11:33:30:339:943 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-13 11:33:39:643:173 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-13 11:33:39:698:394 + Q5 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_write_too_old: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_W errcode: HY000 + Q5 failed at: 2022-4-13 11:33:40:212:427 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_write_too_old: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_W + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..0fca67b7 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,43 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-13 11:39:44:888:265 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-13 11:39:44:943:813 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-13 11:39:49:884:600 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-13 11:39:50:525:712 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-13 11:39:54:891:503 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-13 11:40:4:899:304 + Q5 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_write_too_old: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_W errcode: HY000 + Q5 failed at: 2022-4-13 11:40:5:412:236 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_write_too_old: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_W + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..b35f2ceb --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,43 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-13 11:40:58:124:336 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-13 11:40:58:179:417 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-13 11:41:3:123:835 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-13 11:41:3:849:88 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-4-13 11:41:8:128:576 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-13 11:41:8:183:974 + Q5 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_write_too_old: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_W errcode: HY000 + Q5 failed at: 2022-4-13 11:41:8:704:889 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_write_too_old: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_W + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..72298ce9 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,47 @@ +#### db_type: crdb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:33:55:435:879 +Q2-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q2 finished at: 2022-4-11 0:33:55:490:466 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:33:56:440:111 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-11 0:33:56:510:85 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-11 0:33:57:440:759 + Q7-T3 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=2;' +Q9-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' +Q9 finished at: 2022-4-11 0:33:58:442:344 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-11 0:33:58:500:497 + Q5 finished at: 2022-4-11 0:33:58:509:400 + Q7 finished at: 2022-4-11 0:33:58:515:186 + Q8-T3 execute sql: 'UPDATE t2 SET value2=3 WHERE value1=1;' + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-11 0:33:59:449:133 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-11 0:34:0:436:607 + Q11 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE errcode: HY000 + Q11 failed at: 2022-4-11 0:34:0:726:252 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..5bb3375b --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,47 @@ +#### db_type: crdb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES FROM (MINVALUE) TO (2), PARTITION p1 VALUES FROM (2) TO (MAXVALUE));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:34:15:374:226 +Q2-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q2 finished at: 2022-4-11 0:34:15:434:413 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:34:16:372:193 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-11 0:34:16:429:44 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-11 0:34:17:377:889 + Q7-T3 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=2;' +Q9-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' +Q9 finished at: 2022-4-11 0:34:18:376:681 +Q11-T1 execute sql: 'COMMIT TRANSACTION;' +Q11 finished at: 2022-4-11 0:34:20:376:663 + Q5 finished at: 2022-4-11 0:34:20:385:75 + Q10-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-11 0:34:20:392:982 + Q8-T3 execute sql: 'UPDATE t2 SET value2=3 WHERE value1=1;' + Q8 finished at: 2022-4-11 0:34:20:453:225 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-11 0:34:21:384:282 + Q10 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE errcode: HY000 + Q10 failed at: 2022-4-11 0:34:21:439:625 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..0d3e0d99 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,42 @@ +#### db_type: crdb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:28:18:634:500 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 0:28:18:700:933 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:28:19:597:715 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-11 0:28:20:602:823 + Q7-T3 execute sql: 'BEGIN TRANSACTION;' + Q7 finished at: 2022-4-11 0:28:31:587:42 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,2) + + Q8 finished at: 2022-4-11 0:28:40:426:477 + Q9-T3 execute sql: 'COMMIT TRANSACTION;' + Q9 finished at: 2022-4-11 0:28:40:482:999 + Q4 failed reason: Timeout has been expired. Connection will be closed., [1] errcode: HY000 + Q4 failed at: 2022-4-11 0:28:50:6:409 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..357be636 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,45 @@ +#### db_type: crdb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:29:24:696:241 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 0:29:24:757:802 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:29:25:690:361 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'COMMIT TRANSACTION;' +Q5 finished at: 2022-4-11 0:29:26:698:829 + Q4 finished at: 2022-4-11 0:29:26:706:675 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-11 0:29:27:689:488 + Q7-T3 execute sql: 'BEGIN TRANSACTION;' + Q7 finished at: 2022-4-11 0:29:37:694:602 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-11 0:29:38:472:287 + Q9-T3 execute sql: 'COMMIT TRANSACTION;' + Q9 finished at: 2022-4-11 0:29:38:532:271 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_sda_full_write.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..97dc0b95 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_sda_full_write.txt @@ -0,0 +1,47 @@ +#### db_type: crdb #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:29:43:127:759 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 0:29:43:191:594 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:29:44:120:152 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-11 0:29:45:122:211 +Q6-T1 execute sql: 'COMMIT TRANSACTION;' +Q6 finished at: 2022-4-11 0:29:45:180:224 + Q4 finished at: 2022-4-11 0:29:45:191:206 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-11 0:29:46:391:80 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-11 0:29:56:126:326 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q9 finished at: 2022-4-11 0:29:56:835:204 + Q10-T3 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-11 0:29:56:895:509 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..99f076bd --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,47 @@ +#### db_type: crdb #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:30:1:212:624 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 0:30:1:275:714 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:30:2:204:263 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-11 0:30:3:213:958 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-11 0:30:3:269:604 + Q4 finished at: 2022-4-11 0:30:3:545:477 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-11 0:30:3:601:639 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-11 0:30:13:212:455 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q9 finished at: 2022-4-11 0:30:14:126:639 + Q10-T3 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-11 0:30:14:184:459 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..8b808b8c --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,54 @@ +#### db_type: crdb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:30:54:753:221 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 0:30:54:815:940 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:30:55:744:775 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-11 0:30:57:369:122 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-11 0:30:57:425:340 + Q4 finished at: 2022-4-11 0:30:57:435:601 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-11 0:30:57:763:731 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-11 0:31:6:753:376 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 0:31:7:436:495 + Q10-T3 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-11 0:31:7:496:121 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..e9b41dd8 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,38 @@ +#### db_type: crdb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:30:18:522:626 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 0:30:19:263:84 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:30:19:513:263 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 0:30:19:569:665 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-11 0:30:21:523:568 +Q5 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649608218.488774953,0 t errcode: HY000 +Q5 failed at: 2022-4-11 0:30:22:42:837 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649608218.488774953,0 t + diff --git a/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..23d6dda4 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_dist/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,38 @@ +#### db_type: crdb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-11 0:30:36:114:449 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 0:30:36:816:469 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-11 0:30:37:108:971 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 0:30:37:168:186 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-11 0:30:39:109:716 +Q5 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649608236.079703279,0 t errcode: HY000 +Q5 failed at: 2022-4-11 0:30:39:621:962 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649608236.079703279,0 t + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/result_summary/serializable_total-result.txt b/install/test_result/distributed_result/crdb_test/crdb_single/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..af5c58de --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/result_summary/serializable_total-result.txt @@ -0,0 +1,107 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Avoid + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Avoid + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Avoid + +rat_mda_step_rat_predicate_based_insert: Avoid + +wat_sda_dirty_write_1abort: Timeout + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +iat_mda_step_iat_predicate_based_delete: Rollback + +iat_mda_step_iat_predicate_based_insert: Rollback + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Rollback diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..ad9e5892 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,64 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:41:45:44:847 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,3) + +Q2 finished at: 2022-4-10 23:41:45:758:993 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:41:46:51:124 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-10 23:41:46:115:505 + Q5-T2 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' + Q5 finished at: 2022-4-10 23:41:46:179:772 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-10 23:41:46:241:917 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,3) + *(1) expected_result: + (1,3) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-10 23:41:47:696:271 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-10 23:41:47:753:959 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-10 23:41:57:50:650 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,3) (1,1) + *(1) expected_result: + (0,3) (1,1) + *(2) expected_result: + (0,3) (1,1) + + Q10 finished at: 2022-4-10 23:41:57:745:386 + Q11-T3 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-10 23:41:57:803:646 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..bef47cd2 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:42:2:176:881 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,3) + +Q2 finished at: 2022-4-10 23:42:2:843:630 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:42:3:175:592 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-10 23:42:3:239:24 + Q5-T2 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' + Q5 finished at: 2022-4-10 23:42:3:301:256 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-10 23:42:3:364:368 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649605322.144604879,0 t errcode: HY000 +Q7 failed at: 2022-4-10 23:42:4:879:570 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649605322.144604879,0 t + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_dda_write_skew.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..8e06f7b0 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_dda_write_skew.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:42:18:864:150 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,3) + +Q2 finished at: 2022-4-10 23:42:19:627:278 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:42:19:865:667 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-10 23:42:20:859:478 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' + current_result: + (1,3) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,3) + + Q4 finished at: 2022-4-10 23:42:20:894:444 + Q5-T2 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q7 finished at: 2022-4-10 23:42:20:912:456 + Q5 finished at: 2022-4-10 23:42:20:956:780 + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE errcode: HY000 + Q8 failed at: 2022-4-10 23:42:22:672:657 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..13c7f124 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:43:10:243:975 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,3) + +Q2 finished at: 2022-4-10 23:43:10:993:430 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:43:11:245:827 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-10 23:43:12:239:260 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-10 23:43:12:292:14 + current_result: + (1,3) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,3) + + Q4 finished at: 2022-4-10 23:43:12:959:995 + Q5-T2 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' + Q5 finished at: 2022-4-10 23:43:13:22:264 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE errcode: HY000 + Q6 failed at: 2022-4-10 23:43:13:686:108 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..2fe90481 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,77 @@ +#### db_type: crdb #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:42:36:590:296 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-10 23:42:36:652:717 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-10 23:42:36:712:702 + Q4-T2 execute sql: 'BEGIN TRANSACTION;' + Q4 finished at: 2022-4-10 23:42:37:591:732 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-10 23:42:38:585:287 + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-10 23:42:38:604:641 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-10 23:42:38:665:671 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-10 23:42:38:727:530 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-10 23:42:48:583:375 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-10 23:42:48:638:836 + Q11-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q11 finished at: 2022-4-10 23:42:48:693:965 + Q12-T3 execute sql: 'DROP TABLE mytab;' + Q12 finished at: 2022-4-10 23:42:48:758:38 + Q13-T3 execute sql: 'COMMIT TRANSACTION;' + Q13 finished at: 2022-4-10 23:42:49:144:840 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..24c6f665 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-13 14:54:32:839:78 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-13 14:54:33:560:708 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-13 14:54:37:839:230 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-13 14:54:38:529:5 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-13 14:54:38:614:834 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-13 14:54:38:672:816 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-13 14:54:42:838:551 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE errcode: HY000 +Q8 failed at: 2022-4-13 14:54:43:699:944 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_mda_step_iat.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..3aa927c5 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_mda_step_iat.txt @@ -0,0 +1,86 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-13 14:55:33:155:956 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-13 14:55:33:785:711 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-13 14:55:38:159:312 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,3) + (2) expected_result: + (0,3) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,3) + *(6) expected_result: + (0,1) + + Q4 finished at: 2022-4-13 14:55:38:940:604 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-13 14:55:43:157:302 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,3) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,3) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,3) + *(6) expected_result: + (1,3) + + Q6 finished at: 2022-4-13 14:55:43:852:293 +Q7-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q7 finished at: 2022-4-13 14:55:48:159:856 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-13 14:55:53:162:831 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-13 14:55:58:154:519 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE errcode: HY000 +Q10 failed at: 2022-4-13 14:56:4:168:709 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..f9e063a1 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,109 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:52:52:536:729 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + (3) expected_result: + (0,3) + (4) expected_result: + (0,3) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,3) + +Q2 finished at: 2022-4-10 23:52:53:298:866 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:52:53:542:457 + Q4-T2 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' + Q4 finished at: 2022-4-10 23:52:53:602:723 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-10 23:52:53:661:112 + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-10 23:52:54:807:195 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,3) + *(1) expected_result: + (0,3) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,3) + *(4) expected_result: + (0,3) + (5) expected_result: + (0,1) + (6) expected_result: + (0,1) + + Q7 finished at: 2022-4-10 23:52:55:699:439 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-10 23:52:55:761:176 + Q9-T3 execute sql: 'COMMIT TRANSACTION;' + Q9 finished at: 2022-4-10 23:52:55:822:142 + current_result: + (1,3) + *(1) expected_result: + (1,3) + *(2) expected_result: + (1,3) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,3) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-10 23:52:56:184:944 +Q11-T1 execute sql: 'COMMIT TRANSACTION;' +Q11 finished at: 2022-4-10 23:52:56:241:826 + Q12-T4 execute sql: 'BEGIN TRANSACTION;' + Q12 finished at: 2022-4-10 23:53:5:544:552 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,3) (1,1) + *(1) expected_result: + (0,3) (1,1) + *(2) expected_result: + (0,3) (1,1) + *(3) expected_result: + (0,3) (1,1) + *(4) expected_result: + (0,3) (1,1) + *(5) expected_result: + (0,3) (1,1) + *(6) expected_result: + (0,3) (1,1) + + Q13 finished at: 2022-4-10 23:53:6:258:78 + Q14-T4 execute sql: 'COMMIT TRANSACTION;' + Q14 finished at: 2022-4-10 23:53:6:317:187 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..15528bee --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,210 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:52:32:130:120 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,3) + (7) expected_result: + (0,3) + *(8) expected_result: + (0,1) + (9) expected_result: + (0,3) + (10) expected_result: + (0,3) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,3) + (13) expected_result: + (0,3) + (14) expected_result: + (0,3) + +Q2 finished at: 2022-4-10 23:52:32:831:983 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:52:33:126:724 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,3) + *(1) expected_result: + (1,3) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,3) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,3) + *(6) expected_result: + (1,3) + *(7) expected_result: + (1,3) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,3) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,3) + + Q4 finished at: 2022-4-10 23:52:33:882:112 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-10 23:52:34:133:866 + Q6-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' + Q6 finished at: 2022-4-10 23:52:34:196:807 + Q7-T3 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-10 23:52:34:519:64 + Q8-T4 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-10 23:52:35:134:725 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-10 23:52:35:198:934 + Q10-T4 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-10 23:52:35:259:652 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + (3) expected_result: + (0,3) + (4) expected_result: + (0,3) + *(5) expected_result: + (0,1) + *(6) expected_result: + (0,1) + *(7) expected_result: + (0,1) + *(8) expected_result: + (0,1) + (9) expected_result: + (0,3) + (10) expected_result: + (0,3) + (11) expected_result: + (0,3) + *(12) expected_result: + (0,1) + (13) expected_result: + (0,3) + (14) expected_result: + (0,3) + + Q11 finished at: 2022-4-10 23:52:36:963:327 + Q12-T2 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-10 23:52:37:16:970 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,3) + *(1) expected_result: + (1,3) + *(2) expected_result: + (1,3) + *(3) expected_result: + (1,3) + *(4) expected_result: + (1,3) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,3) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,3) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,3) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-10 23:52:37:733:279 +Q14-T1 execute sql: 'COMMIT TRANSACTION;' +Q14 finished at: 2022-4-10 23:52:37:788:118 + Q15-T5 execute sql: 'BEGIN TRANSACTION;' + Q15 finished at: 2022-4-10 23:52:47:132:671 + Q16-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,3) (1,1) + *(1) expected_result: + (0,3) (1,1) + *(2) expected_result: + (0,3) (1,1) + *(3) expected_result: + (0,3) (1,1) + *(4) expected_result: + (0,3) (1,1) + *(5) expected_result: + (0,3) (1,1) + *(6) expected_result: + (0,3) (1,1) + *(7) expected_result: + (0,3) (1,1) + *(8) expected_result: + (0,3) (1,1) + *(9) expected_result: + (0,3) (1,1) + *(10) expected_result: + (0,3) (1,1) + *(11) expected_result: + (0,3) (1,1) + *(12) expected_result: + (0,3) (1,1) + *(13) expected_result: + (0,3) (1,1) + *(14) expected_result: + (0,3) (1,1) + + Q16 finished at: 2022-4-10 23:52:48:88:134 + Q17-T5 execute sql: 'COMMIT TRANSACTION;' + Q17 finished at: 2022-4-10 23:52:48:145:382 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..d5bf2e04 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,90 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:45:8:435:405 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-10 23:45:9:111:873 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:45:9:436:105 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + null + *(6) expected_result: + (0,1) + + Q4 finished at: 2022-4-10 23:45:10:159:766 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-10 23:45:10:439:914 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' + current_result: + (1,3) + (1) expected_result: + null + *(2) expected_result: + (1,3) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,3) + *(6) expected_result: + (1,3) + + Q6 finished at: 2022-4-10 23:45:11:390:649 +Q7 finished at: 2022-4-10 23:45:11:710:950 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-10 23:45:12:439:388 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-10 23:45:13:717:125 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-10 23:45:14:436:71 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-10 23:45:16:444:961 + Q11 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE errcode: HY000 + Q11 failed at: 2022-4-10 23:45:16:541:819 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..ab94beea --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,87 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:45:30:976:29 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,0) + (5) expected_result: + (2,0) + (6) expected_result: + (2,0) + +Q2 finished at: 2022-4-10 23:45:31:773:917 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:45:31:975:689 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-10 23:45:32:980:456 + Q5 finished at: 2022-4-10 23:45:33:252:918 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q7 finished at: 2022-4-10 23:45:33:984:539 + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + (3) expected_result: + (1,3) + (4) expected_result: + (1,3) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-10 23:45:34:52:358 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + Q8 finished at: 2022-4-10 23:45:34:977:604 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-10 23:45:35:981:729 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-10 23:45:36:980:497 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-10 23:45:38:982:784 + Q11 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE errcode: HY000 + Q11 failed at: 2022-4-10 23:45:39:81:284 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..0cc8a346 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,121 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-13 14:55:0:461:108 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + *(6) expected_result: + (0,1) + +Q2 finished at: 2022-4-13 14:55:1:107:506 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,3) + *(1) expected_result: + (1,3) + *(2) expected_result: + (1,3) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,3) + (6) expected_result: + (1,1) + +Q3 finished at: 2022-4-13 14:55:1:758:154 + Q4-T2 execute sql: 'BEGIN TRANSACTION;' + Q4 finished at: 2022-4-13 14:55:5:472:765 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,3) + *(1) expected_result: + (1,3) + *(2) expected_result: + (1,3) + *(3) expected_result: + (1,3) + *(4) expected_result: + (1,3) + *(5) expected_result: + (1,3) + *(6) expected_result: + (1,3) + + Q5 finished at: 2022-4-13 14:55:6:81:838 + Q6-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-13 14:55:6:142:984 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-13 14:55:6:204:333 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-13 14:55:10:456:699 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,3) + (2) expected_result: + (0,3) + *(3) expected_result: + (0,1) + (4) expected_result: + (0,3) + *(5) expected_result: + (0,1) + *(6) expected_result: + (0,1) + + Q9 finished at: 2022-4-13 14:55:11:127:581 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,3) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,3) + (6) expected_result: + (1,3) + + Q10 finished at: 2022-4-13 14:55:11:753:842 + Q11-T3 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-13 14:55:11:803:243 +Q12-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q12 finished at: 2022-4-13 14:55:15:465:462 +Q13-T1 execute sql: 'COMMIT TRANSACTION;' +Q13 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE errcode: HY000 +Q13 failed at: 2022-4-13 14:55:16:821:790 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#retry_serializable: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SE + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..2c78b1d3 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,165 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:51:35:103:489 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-10 23:51:35:914:460 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:51:36:97:56 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-10 23:51:36:779:935 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-10 23:51:36:843:156 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-10 23:51:37:100:117 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-10 23:51:37:861:890 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-10 23:51:37:927:158 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-10 23:51:38:170:814 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-10 23:51:38:233:14 + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-10 23:51:38:293:877 + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-10 23:51:38:960:730 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-10 23:51:39:25:957 + Q14-T3 execute sql: 'COMMIT TRANSACTION;' + Q14 finished at: 2022-4-10 23:51:39:84:440 + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-10 23:51:41:163:121 +Q16-T1 execute sql: 'COMMIT TRANSACTION;' +Q16 finished at: 2022-4-10 23:51:41:217:677 + Q17-T4 execute sql: 'BEGIN TRANSACTION;' + Q17 finished at: 2022-4-10 23:51:48:90:222 + Q18-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q18 finished at: 2022-4-10 23:51:48:791:416 + Q19-T4 execute sql: 'COMMIT TRANSACTION;' + Q19 finished at: 2022-4-10 23:51:48:842:725 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..84e46402 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: crdb #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:41:8:1:24 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-10 23:41:8:708:146 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:41:9:0:757 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-10 23:41:9:63:196 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-10 23:41:9:124:901 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649605267.968943689,0 t errcode: HY000 +Q6 failed at: 2022-4-10 23:41:10:609:789 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649605267.968943689,0 t + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..ba166c72 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,61 @@ +#### db_type: crdb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:40:50:859:611 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-10 23:40:51:566:551 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:40:51:849:650 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-10 23:40:51:905:358 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-10 23:40:51:961:177 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-10 23:40:53:741:718 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-10 23:40:53:799:394 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-10 23:41:2:855:91 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-10 23:41:3:618:103 + Q10-T3 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-10 23:41:3:674:833 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..fff57753 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,39 @@ +#### db_type: crdb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:4:44:873:336 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-10 23:4:45:207:282 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:4:45:878:520 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-10 23:4:45:942:68 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q6 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA errcode: HY000 +Q6 failed at: 2022-4-10 23:4:47:534:326 + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-10 23:4:47:578:416 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..f9f68dee --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,39 @@ +#### db_type: crdb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:5:3:549:545 +Q2-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q2 finished at: 2022-4-10 23:5:3:609:115 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:5:4:548:331 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-10 23:5:4:604:168 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA errcode: HY000 +Q7 failed at: 2022-4-10 23:5:6:314:501 + current_result: + (0,1) + (1) expected_result: + (0,3) + *(2) expected_result: + (0,1) + + Q5 finished at: 2022-4-10 23:5:7:301:815 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..5330a88b --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,57 @@ +#### db_type: crdb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:5:20:246:174 +Q2-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q2 finished at: 2022-4-10 23:5:20:573:492 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:5:21:243:418 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-10 23:5:21:299:82 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,3) + *(1) expected_result: + (1,3) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-10 23:5:22:848:930 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-10 23:5:22:910:238 + Q5 finished at: 2022-4-10 23:5:22:913:989 + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-10 23:5:23:252:207 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-10 23:5:33:246:360 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,3) (1,1) + + Q10 finished at: 2022-4-10 23:5:33:944:918 + Q11-T3 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-10 23:5:34:4:5 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_read_skew.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..cc22f443 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_read_skew.txt @@ -0,0 +1,64 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:5:38:414:279 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,3) + +Q2 finished at: 2022-4-10 23:5:39:178:90 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:5:39:419:698 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-10 23:5:39:477:282 + Q5-T2 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' + Q5 finished at: 2022-4-10 23:5:39:532:77 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,3) + *(1) expected_result: + (1,3) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-10 23:5:41:52:641 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-10 23:5:41:425:851 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-10 23:5:42:416:857 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-10 23:5:52:422:43 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,3) (1,1) + *(1) expected_result: + (0,3) (1,1) + *(2) expected_result: + (0,3) (1,1) + + Q10 finished at: 2022-4-10 23:5:53:107:998 + Q11-T3 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-10 23:5:53:166:808 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_read_skew2.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..b3782c77 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,64 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-13 11:25:1:477:337 +Q2-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q2 finished at: 2022-4-13 11:25:1:532:769 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-13 11:25:11:475:917 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,3) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,3) + + Q4 finished at: 2022-4-13 11:25:12:131:351 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-13 11:25:21:479:90 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-13 11:25:21:531:960 + current_result: + (0,1) + (1) expected_result: + (0,3) + *(2) expected_result: + (0,1) + + Q5 finished at: 2022-4-13 11:25:22:132:550 + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-13 11:25:31:478:736 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-13 11:27:11:482:156 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,3) (1,1) + *(1) expected_result: + (0,3) (1,1) + *(2) expected_result: + (0,3) (1,1) + + Q10 finished at: 2022-4-13 11:27:12:105:119 + Q11-T3 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-13 11:27:12:160:411 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..696b9784 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,64 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-13 11:28:3:484:676 +Q2-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q2 finished at: 2022-4-13 11:28:3:541:244 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-13 11:28:13:481:72 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,3) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,3) + + Q4 finished at: 2022-4-13 11:28:14:204:527 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-13 11:28:23:486:319 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-13 11:28:23:541:85 + current_result: + (0,1) + (1) expected_result: + (0,3) + *(2) expected_result: + (0,1) + + Q5 finished at: 2022-4-13 11:28:24:123:34 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-13 11:28:24:176:33 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-13 11:28:33:483:28 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,3) (1,1) + *(1) expected_result: + (0,3) (1,1) + *(2) expected_result: + (0,3) (1,1) + + Q10 finished at: 2022-4-13 11:28:34:143:58 + Q11-T3 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-13 11:28:34:192:669 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..dde2c4c0 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,64 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:5:57:570:281 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-10 23:5:58:305:773 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:5:58:579:168 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-10 23:5:58:643:519 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-10 23:5:58:705:220 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-10 23:5:58:763:188 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-10 23:6:0:280:876 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-10 23:6:0:340:7 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-10 23:6:9:578:831 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q10 finished at: 2022-4-10 23:6:10:287:309 + Q11-T3 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-10 23:6:10:344:914 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..49a02b26 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,62 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:6:14:598:695 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-10 23:6:15:282:957 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:6:15:606:535 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-10 23:6:15:668:983 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-10 23:6:15:730:305 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-10 23:6:15:794:667 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-10 23:6:17:290:74 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-10 23:6:17:349:467 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-10 23:6:26:605:855 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q10 finished at: 2022-4-10 23:6:27:244:501 + Q11-T3 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-10 23:6:27:304:406 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..6017c7ed --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,64 @@ +#### db_type: crdb #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:4:7:210:843 +Q2-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q2 finished at: 2022-4-10 23:4:7:275:661 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:4:8:201:99 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-10 23:4:8:260:951 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,3) + *(1) expected_result: + (1,3) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-10 23:4:9:839:720 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-10 23:4:11:213:226 + current_result: + (0,3) + *(1) expected_result: + (0,3) + (2) expected_result: + (0,1) + + Q5 finished at: 2022-4-10 23:4:12:118:674 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-10 23:4:12:175:714 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-10 23:4:21:208:806 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,3) (1,1) + *(1) expected_result: + (0,3) (1,1) + *(2) expected_result: + (0,3) (1,1) + + Q10 finished at: 2022-4-10 23:4:23:243:982 + Q11-T3 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-10 23:4:23:303:658 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..fcc037ef --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,64 @@ +#### db_type: crdb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:4:27:706:71 +Q2-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q2 finished at: 2022-4-10 23:4:27:770:203 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:4:28:673:130 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-10 23:4:28:729:113 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,3) + *(1) expected_result: + (1,3) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-10 23:4:30:353:441 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-10 23:4:30:409:296 + current_result: + (0,3) + *(1) expected_result: + (0,3) + (2) expected_result: + (0,1) + + Q5 finished at: 2022-4-10 23:4:31:400:810 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-10 23:4:31:462:92 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-10 23:4:39:680:628 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,3) (1,1) + *(1) expected_result: + (0,3) (1,1) + *(2) expected_result: + (0,3) (1,1) + + Q10 finished at: 2022-4-10 23:4:40:418:798 + Q11-T3 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-10 23:4:40:478:600 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_mda_step_rat.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..679c7aa6 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_mda_step_rat.txt @@ -0,0 +1,112 @@ +#### db_type: crdb #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:9:38:119:687 +Q2-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q2 finished at: 2022-4-10 23:9:38:184:238 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:9:39:117:108 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-10 23:9:39:180:256 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-10 23:9:40:116:400 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-10 23:9:40:179:530 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-10 23:9:41:793:948 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-10 23:9:41:849:890 + current_result: + (0,3) + *(1) expected_result: + (0,3) + *(2) expected_result: + (0,3) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,3) + (6) expected_result: + (0,1) + + Q5 finished at: 2022-4-10 23:9:42:728:469 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-10 23:9:42:792:299 + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,3) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,3) + (6) expected_result: + (1,3) + + Q8 finished at: 2022-4-10 23:9:43:452:945 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-10 23:9:43:515:870 + Q13-T4 execute sql: 'BEGIN TRANSACTION;' + Q13 finished at: 2022-4-10 23:9:53:115:362 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,3) (1,1) (2,1) + *(1) expected_result: + (0,3) (1,1) (2,1) + *(2) expected_result: + (0,3) (1,1) (2,1) + *(3) expected_result: + (0,3) (1,1) (2,1) + *(4) expected_result: + (0,3) (1,1) (2,1) + *(5) expected_result: + (0,3) (1,1) (2,1) + *(6) expected_result: + (0,3) (1,1) (2,1) + + Q14 finished at: 2022-4-10 23:9:54:95:534 + Q15-T4 execute sql: 'COMMIT TRANSACTION;' + Q15 finished at: 2022-4-10 23:9:54:146:570 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..aafd7ab3 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,210 @@ +#### db_type: crdb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN TRANSACTION;' + Q1 finished at: 2022-4-10 23:9:58:523:358 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,3) + *(3) expected_result: + (0,1) + (4) expected_result: + (0,3) + (5) expected_result: + (0,3) + *(6) expected_result: + (0,1) + (7) expected_result: + (0,3) + (8) expected_result: + (0,3) + *(9) expected_result: + (0,1) + (10) expected_result: + (0,3) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,3) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q2 finished at: 2022-4-10 23:9:59:239:564 +Q3-T1 execute sql: 'BEGIN TRANSACTION;' +Q3 finished at: 2022-4-10 23:9:59:522:529 +Q4-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q4 finished at: 2022-4-10 23:9:59:580:174 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-10 23:10:0:519:813 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,3) + *(1) expected_result: + (1,3) + *(2) expected_result: + (1,3) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,3) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,3) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,3) + *(12) expected_result: + (1,3) + *(13) expected_result: + (1,3) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-10 23:10:1:293:13 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-10 23:10:1:527:401 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-10 23:10:1:590:756 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,3) + *(1) expected_result: + (1,3) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,3) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,3) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,3) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,3) + *(13) expected_result: + (1,3) + *(14) expected_result: + (1,3) + + Q10 finished at: 2022-4-10 23:10:3:164:683 +Q11-T1 execute sql: 'COMMIT TRANSACTION;' +Q11 finished at: 2022-4-10 23:10:3:525:64 + current_result: + (0,3) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,3) + *(4) expected_result: + (0,3) + *(5) expected_result: + (0,3) + (6) expected_result: + (0,1) + *(7) expected_result: + (0,3) + *(8) expected_result: + (0,3) + *(9) expected_result: + (0,3) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,3) + *(14) expected_result: + (0,3) + + Q7 finished at: 2022-4-10 23:10:4:188:691 + Q12-T2 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-10 23:10:4:525:429 + Q13-T3 execute sql: 'COMMIT TRANSACTION;' + Q13 finished at: 2022-4-10 23:10:5:526:4 + Q14-T4 execute sql: 'COMMIT TRANSACTION;' + Q14 finished at: 2022-4-10 23:10:6:525:131 + Q15-T5 execute sql: 'BEGIN TRANSACTION;' + Q15 finished at: 2022-4-10 23:10:16:523:708 + Q16-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,3) (1,1) + *(1) expected_result: + (0,3) (1,1) + *(2) expected_result: + (0,3) (1,1) + *(3) expected_result: + (0,3) (1,1) + *(4) expected_result: + (0,3) (1,1) + *(5) expected_result: + (0,3) (1,1) + *(6) expected_result: + (0,3) (1,1) + *(7) expected_result: + (0,3) (1,1) + *(8) expected_result: + (0,3) (1,1) + *(9) expected_result: + (0,3) (1,1) + *(10) expected_result: + (0,3) (1,1) + *(11) expected_result: + (0,3) (1,1) + *(12) expected_result: + (0,3) (1,1) + *(13) expected_result: + (0,3) (1,1) + *(14) expected_result: + (0,3) (1,1) + + Q16 finished at: 2022-4-10 23:10:17:239:194 + Q17-T5 execute sql: 'COMMIT TRANSACTION;' + Q17 finished at: 2022-4-10 23:10:17:302:353 + +The current result is consistent with the [(13) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..e4594135 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,112 @@ +#### db_type: crdb #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:10:21:767:62 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-10 23:10:21:832:403 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:10:22:768:589 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-10 23:10:22:832:591 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-10 23:10:23:767:86 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-10 23:10:23:832:307 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-10 23:10:24:764:602 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-10 23:10:24:824:406 + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-10 23:10:24:834:567 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-10 23:10:25:771:147 + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-10 23:10:25:776:173 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-10 23:10:26:770:326 + Q13-T4 execute sql: 'BEGIN TRANSACTION;' + Q13 finished at: 2022-4-10 23:10:36:766:872 + Q14-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q14 finished at: 2022-4-10 23:10:37:515:412 + Q15-T4 execute sql: 'COMMIT TRANSACTION;' + Q15 finished at: 2022-4-10 23:10:37:573:573 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..54eac4cf --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,109 @@ +#### db_type: crdb #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:10:41:850:440 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-10 23:10:41:921:774 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:10:42:844:42 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-10 23:10:42:906:453 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-10 23:10:43:843:474 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-10 23:10:43:904:669 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-10 23:10:44:846:113 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-10 23:10:44:908:513 + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-10 23:10:44:916:156 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-10 23:10:45:847:790 + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + (4) expected_result: + (,) + *(5) expected_result: + (1,) + (6) expected_result: + (,) + + Q8 finished at: 2022-4-10 23:10:45:854:904 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-10 23:10:46:846:336 + Q13-T4 execute sql: 'BEGIN TRANSACTION;' + Q13 finished at: 2022-4-10 23:10:56:837:277 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q14 finished at: 2022-4-10 23:10:57:555:965 + Q15-T4 execute sql: 'COMMIT TRANSACTION;' + Q15 finished at: 2022-4-10 23:10:57:605:846 + +The current result is consistent with the [(5) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_sda_dirty_read.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..17b1f73e --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,48 @@ +#### db_type: crdb #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 22:59:35:79:313 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-10 22:59:35:136:214 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 22:59:36:74:646 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-10 22:59:37:202:611 + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-10 22:59:46:16:43 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-10 22:59:46:68:717 + Q7-T3 execute sql: 'BEGIN TRANSACTION;' + Q7 finished at: 2022-4-10 22:59:48:70:485 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q8 finished at: 2022-4-10 22:59:56:264:153 + Q9-T3 execute sql: 'COMMIT TRANSACTION;' + Q9 finished at: 2022-4-10 22:59:56:321:756 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..f5b30b75 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,54 @@ +#### db_type: crdb #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:0:19:399:26 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-10 23:0:19:719:602 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:0:20:391:282 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-10 23:0:21:394:81 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-10 23:0:23:399:567 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-10 23:0:24:15:977 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-10 23:0:24:68:289 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-10 23:0:33:396:467 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q9 finished at: 2022-4-10 23:0:34:76:113 + Q10-T3 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-10 23:0:34:133:725 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..bd251c3e --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,54 @@ +#### db_type: crdb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:0:38:729:882 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-10 23:0:38:786:233 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:0:39:732:268 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-10 23:0:40:739:560 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-10 23:0:40:801:726 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-10 23:0:41:699:423 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-10 23:0:41:751:677 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-10 23:0:50:844:227 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q9 finished at: 2022-4-10 23:0:52:90:857 + Q10-T3 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-10 23:0:52:145:803 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..e939808b --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,54 @@ +#### db_type: crdb #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:1:30:983:655 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-10 23:1:31:46:790 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:1:31:978:102 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-10 23:1:33:696:961 +Q6-T1 execute sql: 'COMMIT TRANSACTION;' +Q6 finished at: 2022-4-10 23:1:33:760:685 + Q4 finished at: 2022-4-10 23:1:33:766:662 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-10 23:1:33:978:831 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-10 23:1:43:980:792 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q9 finished at: 2022-4-10 23:1:44:704:179 + Q10-T3 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-10 23:1:44:758:813 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..c69c9b9b --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,61 @@ +#### db_type: crdb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-13 14:56:30:728:381 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-13 14:56:31:370:910 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-13 14:56:35:732:762 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-13 14:56:35:795:595 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-13 14:56:41:335:407 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-13 14:56:45:735:673 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-13 14:56:50:732:814 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-13 14:56:55:723:420 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-13 14:56:56:389:146 + Q10-T3 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-13 14:56:56:436:166 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..1a833f4a --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,61 @@ +#### db_type: crdb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:0:56:449:14 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-10 23:0:57:193:645 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:0:57:451:441 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-10 23:0:57:511:366 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-10 23:0:57:575:205 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-10 23:0:59:157:281 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-10 23:0:59:218:64 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-10 23:1:8:453:831 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q9 finished at: 2022-4-10 23:1:9:120:525 + Q10-T3 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-10 23:1:9:192:832 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..17e641b6 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:1:13:552:689 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-10 23:1:14:303:655 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:1:14:544:379 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-10 23:1:14:599:840 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-10 23:1:14:656:890 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-10 23:1:16:305:97 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-10 23:1:16:360:310 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-10 23:1:25:548:549 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q9 finished at: 2022-4-10 23:1:26:331:900 + Q10-T3 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-10 23:1:26:383:270 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..2975fbde --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,57 @@ +#### db_type: crdb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:26:0:656:361 +Q2-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q2 finished at: 2022-4-10 23:26:0:722:999 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:26:1:653:545 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-10 23:26:1:717:900 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,3) + *(1) expected_result: + (1,3) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-10 23:26:3:306:511 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-10 23:26:3:363:896 + Q5 finished at: 2022-4-10 23:26:3:378:617 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-10 23:26:3:434:258 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-10 23:26:12:652:128 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,3) (1,1) + + Q10 finished at: 2022-4-10 23:26:13:628:354 + Q11-T3 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-10 23:26:13:679:545 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..a4406be0 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: crdb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:26:18:96:99 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-10 23:26:18:435:368 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:26:19:87:206 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-10 23:26:19:144:42 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-10 23:26:20:156:817 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-10 23:26:20:220:842 + Q5 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA errcode: HY000 + Q5 failed at: 2022-4-10 23:26:20:657:61 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..8dc9ea07 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,32 @@ +#### db_type: crdb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:26:36:544:514 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-10 23:26:36:609:276 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:26:37:536:160 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-10 23:26:37:592:693 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-10 23:26:38:607:70 +Q6 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA errcode: HY000 +Q6 failed at: 2022-4-10 23:26:39:202:582 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..546e0129 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,34 @@ +#### db_type: crdb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:26:56:111:969 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-10 23:26:56:175:981 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:26:57:111:835 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-10 23:26:57:172:478 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-10 23:26:58:167:422 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-10 23:26:58:224:149 +Q7 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA errcode: HY000 +Q7 failed at: 2022-4-10 23:26:58:870:286 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..2ef87672 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-13 14:57:8:812:823 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,3) + +Q2 finished at: 2022-4-13 14:57:9:517:120 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-13 14:57:13:816:323 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-13 14:57:13:875:205 + Q5-T2 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' + Q5 finished at: 2022-4-13 14:57:13:933:636 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-13 14:57:23:819:604 +Q6 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649833028.786071639,0 t errcode: HY000 +Q6 failed at: 2022-4-13 14:57:24:431:97 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649833028.786071639,0 t + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..c4fe7c80 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-13 14:57:41:430:156 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,3) + +Q2 finished at: 2022-4-13 14:57:42:77:12 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-13 14:57:46:433:657 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-13 14:57:46:494:126 + Q5-T2 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' + Q5 finished at: 2022-4-13 14:57:46:557:131 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-13 14:57:56:435:887 +Q6 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649833061.403802746,0 t errcode: HY000 +Q6 failed at: 2022-4-13 14:57:57:46:131 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649833061.403802746,0 t + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..45cf1874 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:27:49:433:195 +Q2-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q2 finished at: 2022-4-10 23:27:49:496:181 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:27:50:428:392 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,3) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,3) + + Q4 finished at: 2022-4-10 23:27:51:161:516 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-10 23:27:51:436:865 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-10 23:27:51:499:990 + Q5 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649604470.398056723,0 t errcode: HY000 + Q5 failed at: 2022-4-10 23:27:52:10:200 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649604470.398056723,0 t + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..491873ab --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:28:7:120:184 +Q2-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q2 finished at: 2022-4-10 23:28:7:185:32 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:28:8:118:784 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,3) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,3) + + Q4 finished at: 2022-4-10 23:28:8:814:717 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-10 23:28:9:123:65 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-10 23:28:11:123:822 + Q5 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649604488.084931377,0 t errcode: HY000 + Q5 failed at: 2022-4-10 23:28:11:820:214 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649604488.084931377,0 t + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..6a48c564 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:28:26:67:418 +Q2-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q2 finished at: 2022-4-10 23:28:26:131:135 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:28:26:790:762 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,3) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,3) + + Q4 finished at: 2022-4-10 23:28:27:459:335 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-10 23:28:27:797:714 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-10 23:28:27:861:182 + Q5 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649604506.760633062,0 t errcode: HY000 + Q5 failed at: 2022-4-10 23:28:28:372:348 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649604506.760633062,0 t + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..3e321810 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:32:7:897:423 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-10 23:32:7:954:15 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:32:8:901:813 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-10 23:32:8:964:269 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-10 23:32:9:891:403 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-10 23:32:9:943:715 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-10 23:32:10:954:712 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-10 23:32:11:8:709 + Q5 finished at: 2022-4-10 23:32:11:30:241 + Q8 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA errcode: HY000 + Q8 failed at: 2022-4-10 23:32:11:831:931 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..4127cefd --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:32:27:617:153 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-10 23:32:27:671:194 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:32:28:620:177 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-10 23:32:28:682:215 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-10 23:32:29:613:25 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-10 23:32:29:664:700 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-10 23:32:30:685:660 + Q10-T2 execute sql: 'COMMIT TRANSACTION;' +Q9 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA errcode: HY000 +Q9 failed at: 2022-4-10 23:32:31:570:525 + Q10 finished at: 2022-4-10 23:32:31:628:115 + Q8 finished at: 2022-4-10 23:32:31:634:699 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html#abort_reason_pusher_aborted: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REA + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..6901a30a --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,42 @@ +#### db_type: crdb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:18:22:352:872 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-10 23:18:22:415:888 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:18:23:76:950 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-10 23:18:24:86:388 + Q7-T3 execute sql: 'BEGIN TRANSACTION;' + Q7 finished at: 2022-4-10 23:18:35:81:285 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,2) + + Q8 finished at: 2022-4-10 23:18:43:53:311 + Q9-T3 execute sql: 'COMMIT TRANSACTION;' + Q9 finished at: 2022-4-10 23:18:43:382:778 + Q4 failed reason: Timeout has been expired. Connection will be closed., [1] errcode: HY000 + Q4 failed at: 2022-4-10 23:18:53:485:619 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..1cb4689a --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,45 @@ +#### db_type: crdb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:22:15:0:316 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-10 23:22:15:62:851 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:22:15:993:940 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'COMMIT TRANSACTION;' +Q5 finished at: 2022-4-10 23:22:17:1:966 + Q4 finished at: 2022-4-10 23:22:17:9:837 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-10 23:22:18:6:520 + Q7-T3 execute sql: 'BEGIN TRANSACTION;' + Q7 finished at: 2022-4-10 23:22:28:2:467 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-10 23:22:28:993:585 + Q9-T3 execute sql: 'COMMIT TRANSACTION;' + Q9 finished at: 2022-4-10 23:22:29:57:949 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_sda_full_write.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..ba043475 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_sda_full_write.txt @@ -0,0 +1,47 @@ +#### db_type: crdb #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:22:33:389:154 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-10 23:22:33:450:823 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:22:34:399:525 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-10 23:22:35:399:719 +Q6-T1 execute sql: 'COMMIT TRANSACTION;' +Q6 finished at: 2022-4-10 23:22:35:457:357 + Q4 finished at: 2022-4-10 23:22:35:479:684 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-10 23:22:36:395:41 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-10 23:22:46:397:324 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q9 finished at: 2022-4-10 23:22:48:133:995 + Q10-T3 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-10 23:22:48:197:186 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..1ea74b7b --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,47 @@ +#### db_type: crdb #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:22:52:537:64 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-10 23:22:52:600:429 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:22:53:536:169 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-10 23:22:54:537:136 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-10 23:22:54:590:997 + Q4 finished at: 2022-4-10 23:22:54:606:17 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-10 23:22:54:664:35 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-10 23:23:4:542:354 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q9 finished at: 2022-4-10 23:23:5:551:960 + Q10-T3 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-10 23:23:5:608:705 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..87f4c7dc --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,54 @@ +#### db_type: crdb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:23:46:181:809 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-10 23:23:46:507:193 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:23:47:186:8 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-10 23:23:49:86:703 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-10 23:23:49:147:991 + Q4 finished at: 2022-4-10 23:23:49:153:491 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-10 23:23:49:216:432 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-10 23:23:58:179:55 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q9 finished at: 2022-4-10 23:23:58:869:472 + Q10-T3 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-10 23:23:58:926:495 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..f3a73537 --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,38 @@ +#### db_type: crdb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-13 14:58:19:7:992 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-13 14:58:19:724:603 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-13 14:58:24:16:813 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-13 14:58:24:81:529 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-13 14:58:34:19:348 +Q5 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649833098.981855541,0 t errcode: HY000 +Q5 failed at: 2022-4-13 14:58:34:525:884 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649833098.981855541,0 t + diff --git a/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..7a41b4fd --- /dev/null +++ b/install/test_result/distributed_result/crdb_test/crdb_single/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,38 @@ +#### db_type: crdb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-10 23:23:27:555:87 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-10 23:23:28:323:100 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-10 23:23:28:559:476 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-10 23:23:28:619:530 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-10 23:23:30:564:210 +Q5 failed reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649604207.528359096,0 t errcode: HY000 +Q5 failed at: 2022-4-10 23:23:31:79:894 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]. Server's hint: See: https://www.cockroachlabs.com/docs/v21.2/transaction-retry-error-reference.html: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1649604207.528359096,0 t + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..b0278d33 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:28:28:243:109 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:28:28:256:41 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:28:29:243:106 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 13:28:29:262:81 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 13:28:29:268:545 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:28:29:291:688 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 13:28:30:250:568 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:28:30:252:196 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 13:28:40:252:505 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:28:40:252:691 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..81a9c03b --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:28:44:330:175 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:28:44:343:561 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:28:45:330:185 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 13:28:45:343:817 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 13:28:45:350:455 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:28:45:365:891 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 13:28:46:337:33 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:28:46:372:110 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 13:28:56:338:995 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:28:56:339:184 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_dda_write_skew.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..8f2cb44f --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:29:0:410:248 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:29:0:423:54 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:29:1:410:263 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 13:29:1:424:714 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 13:29:1:432:142 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 13:29:3:429:986 +Q6 finished at: 2022-4-11 13:29:3:435:394 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:29:3:453:378 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 13:29:13:419:24 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 13:29:13:419:211 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..884a9c91 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:29:49:634:863 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:29:49:648:78 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:29:50:634:856 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 13:29:50:651:176 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 13:29:50:658:538 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:29:50:677:868 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 13:29:51:641:747 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:29:51:657:373 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 13:30:1:643:571 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:30:1:643:786 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..3411b53b --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:29:17:485:628 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-11 13:29:17:498:315 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-11 13:29:17:504:700 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-11 13:29:18:485:650 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-11 13:29:18:502:877 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-11 13:29:18:508:361 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:29:18:532:783 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:29:19:500:245 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-11 13:29:29:493:931 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-11 13:29:29:499:593 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 13:29:29:499:793 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..d8fa33d6 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:29:33:568:391 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-11 13:29:33:585:74 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:29:34:568:371 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-11 13:29:34:585:115 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-11 13:29:34:594:236 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:29:34:607:888 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-11 13:29:35:577:847 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:29:35:592:234 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-11 13:29:45:578:339 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:29:45:578:551 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_mda_step_iat.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..468b5b2e --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: gp #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:30:5:709:312 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-11 13:30:5:722:296 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:30:6:709:314 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 13:30:6:724:300 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 13:30:7:709:312 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 13:30:7:722:646 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-11 13:30:8:716:535 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 13:30:11:739:686 + Q8 finished at: 2022-4-11 13:30:11:744:941 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:30:12:722:803 + Q9 finished at: 2022-4-11 13:30:12:728:7 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 13:30:13:727:225 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 13:30:23:726:885 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 13:30:23:727:92 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..53c6f291 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:31:48:104:567 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:31:48:117:642 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:31:49:104:570 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 13:31:49:118:428 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 13:31:49:131:438 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 13:31:50:104:546 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 13:31:50:117:483 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-11 13:31:50:124:16 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:31:50:141:450 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-11 13:31:51:112:108 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-11 13:31:51:113:753 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-11 13:32:1:113:193 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-11 13:32:1:114:837 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..c7112e90 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:31:29:11:26 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:31:29:24:160 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:31:30:11:7 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 13:31:30:25:551 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 13:31:31:11:15 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-11 13:31:31:23:400 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:31:31:36:918 + Q8-T4 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 13:31:32:11:38 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-11 13:31:32:23:762 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:31:32:36:582 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-11 13:31:33:19:257 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 13:31:33:20:923 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-11 13:31:34:18:795 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-11 13:31:34:20:497 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-11 13:31:44:28:445 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 13:31:44:28:714 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..752fe7f8 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:30:27:792:799 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-11 13:30:27:806:849 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:30:28:792:792 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 13:30:28:807:91 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 13:30:29:792:791 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 13:30:29:805:790 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-11 13:30:30:799:460 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 13:30:33:807:568 + Q8 finished at: 2022-4-11 13:30:33:812:731 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:30:34:805:309 + Q9 finished at: 2022-4-11 13:30:34:810:378 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 13:30:35:805:341 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-11 13:30:45:800:887 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 13:30:45:801:93 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..9cdb9a18 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:30:49:838:513 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-11 13:30:49:851:716 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:30:50:838:509 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-11 13:30:50:852:382 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 13:30:51:838:522 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-11 13:30:51:851:639 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-11 13:30:52:847:449 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-11 13:30:53:852:597 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-11 13:30:54:852:731 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 13:30:55:859:56 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:30:56:850:623 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 13:30:57:851:402 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 13:31:7:848:108 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 13:31:7:848:311 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..0e27281b --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (100) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:32:5:175:885 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 13:32:5:187:156 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-11 13:32:5:192:290 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-11 13:32:6:175:890 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-11 13:32:6:187:194 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-11 13:32:6:194:36 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:32:6:212:583 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 13:32:7:175:897 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-11 13:32:7:186:987 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-11 13:32:7:192:121 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:32:7:193:789 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-11 13:32:8:182:924 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-11 13:32:8:209:478 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-11 13:32:18:181:586 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-11 13:32:18:183:253 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..70dc0acc --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:31:11:921:554 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-11 13:31:11:934:529 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:31:12:921:569 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-11 13:31:12:935:673 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 13:31:12:942:408 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 13:31:12:949:713 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-11 13:31:12:956:321 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 13:31:12:968:810 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-11 13:31:13:921:649 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-11 13:31:13:935:288 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-11 13:31:13:943:266 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-11 13:31:13:951:443 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-11 13:31:13:958:686 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 13:31:13:974:776 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-11 13:31:14:929:122 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-11 13:31:14:930:771 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-11 13:31:24:930:268 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-11 13:31:24:930:487 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..b29f9875 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:28:12:174:972 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 13:28:12:186:132 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:28:13:174:959 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 13:28:13:188:982 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 13:28:13:200:521 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-11 13:28:14:182:162 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:28:14:224:895 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 13:28:24:182:843 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:28:24:183:46 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..10795041 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:27:56:101:345 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:27:56:112:951 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:27:57:101:318 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 13:27:57:122:74 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 13:27:57:138:650 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-11 13:27:58:107:82 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:27:58:108:737 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 13:28:8:116:447 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:28:8:116:646 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:28:8:116:859 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..292af6d3 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,67 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:17:0:864:906 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:17:0:877:359 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:17:1:864:894 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 13:17:1:877:397 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 13:17:1:885:731 +Q6-T1 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:17:3:892:190 +Q6 finished at: 2022-4-11 13:17:3:898:787 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:17:4:879:336 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 13:17:14:873:597 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,2) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,2) + + Q10 finished at: 2022-4-11 13:17:14:878:946 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:17:14:879:142 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..53a9800d --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,67 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:17:18:964:120 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:17:18:976:547 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:17:19:964:114 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 13:17:19:977:583 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 13:17:19:985:940 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:17:19:998:284 +Q7-T1 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-11 13:17:20:972:300 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:17:20:991:901 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 13:17:30:972:644 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,2) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,2) + + Q10 finished at: 2022-4-11 13:17:30:978:56 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:17:30:978:345 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..41339a08 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,67 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 14:13:45:942:612 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 14:13:45:952:492 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 14:13:46:942:598 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 14:13:46:963:335 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 14:13:47:950:923 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 14:13:47:970:912 + Q5 finished at: 2022-4-11 14:13:47:977:518 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 14:13:48:958:146 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 14:13:58:959:554 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 14:13:58:965:17 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 14:13:58:965:192 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_read_skew.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..97753cdb --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:17:52:116:320 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:17:52:129:716 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:17:53:116:325 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 13:17:53:128:493 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 13:17:53:134:920 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 13:17:54:123:929 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:17:55:138:163 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:17:56:118:30 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 13:18:6:124:863 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:18:6:125:66 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_read_skew2.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..c239f8a6 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:18:42:309:712 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:18:42:322:87 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:18:43:309:726 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 13:18:43:323:786 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 13:18:43:330:885 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 13:18:44:316:649 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:18:44:341:271 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 13:18:45:311:367 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 13:18:55:318:323 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:18:55:318:533 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..d35fba94 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:18:59:381:988 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:18:59:394:269 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:19:0:381:985 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 13:19:0:396:514 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 13:19:0:403:455 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:19:0:405:71 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 13:19:1:389:8 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:19:1:405:312 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 13:19:11:390:361 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:19:11:390:602 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..d5fa94e7 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:18:10:192:574 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-11 13:18:10:205:743 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:18:11:192:411 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-11 13:18:11:207:67 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-11 13:18:11:214:35 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:18:11:226:632 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-11 13:18:12:200:87 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:18:12:201:789 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-11 13:18:22:201:135 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:18:22:201:339 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..f03096d5 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:18:26:242:464 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-11 13:18:26:255:717 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:18:27:242:471 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-11 13:18:27:260:464 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-11 13:18:27:268:980 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:18:27:285:775 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (1,0) (0,0) + (1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-11 13:18:28:250:299 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:18:28:252:151 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-11 13:18:38:250:989 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:18:38:251:192 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..be51af82 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,72 @@ +#### db_type: gp #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:16:26:646:386 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:16:26:658:893 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:16:27:646:386 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 13:16:27:658:827 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 13:16:27:667:383 +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 13:16:28:655:457 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:16:29:659:274 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:16:30:659:707 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 13:16:40:655:804 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 13:16:40:661:128 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:16:40:661:324 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..048da071 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,74 @@ +#### db_type: gp #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:16:44:770:87 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:16:44:782:534 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:16:45:770:83 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 13:16:45:782:287 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 13:16:45:790:511 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:16:45:807:603 +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 13:16:46:779:36 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:16:46:792:89 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 13:16:56:778:790 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 13:16:56:784:114 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:16:56:784:290 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_mda_step_rat.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..3acd03b9 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,147 @@ +#### db_type: gp #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:19:15:502:523 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:19:15:515:78 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:19:16:502:515 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 13:19:16:515:785 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 13:19:16:524:70 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 13:19:17:502:526 + Q7-T3 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-11 13:19:17:515:243 + Q8-T3 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-11 13:19:17:523:768 +Q9-T1 execute sql: 'SELECT * FROM t3 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,113-0,1) + (5) expected_result: + (2,113-0,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-11 13:19:18:511:671 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 13:19:18:523:749 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:19:19:521:445 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 13:19:20:515:387 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + *(3) expected_result: + (0,1) + (4) expected_result: + + (5) expected_result: + + *(6) expected_result: + (0,1) + + Q13 finished at: 2022-4-11 13:19:30:520:177 + Q14-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + + Q14 finished at: 2022-4-11 13:19:30:526:548 + Q15-T4 execute sql: 'SELECT * FROM t3 ORDER BY k;' + current_result: + (2,1) + *(1) expected_result: + (2,1) + *(2) expected_result: + (2,1) + *(3) expected_result: + (2,1) + *(4) expected_result: + (2,1) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + + Q15 finished at: 2022-4-11 13:19:30:532:66 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 13:19:30:532:279 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..1cbccd46 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN' + Q1 finished at: 2022-4-11 13:19:34:599:125 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-11 13:19:34:612:809 +Q3-T1 execute opt: 'BEGIN' +Q3 finished at: 2022-4-11 13:19:35:599:129 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-11 13:19:35:613:728 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 13:19:36:599:117 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-11 13:19:36:612:388 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 13:19:36:619:930 + Q8-T2 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 13:19:37:599:135 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-11 13:19:38:607:154 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-11 13:19:39:612:666 + Q9 finished at: 2022-4-11 13:19:39:621:536 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 13:19:40:613:921 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-11 13:19:41:600:913 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 13:19:51:600:938 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-11 13:19:51:606:565 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 13:19:51:608:206 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..ad3cd39c --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,147 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:19:55:722:138 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:19:55:734:477 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:19:56:722:142 + Q4-T2 execute sql: 'DELETE FROM t2 WHERE k=1;' + Q4 finished at: 2022-4-11 13:19:56:735:572 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-11 13:19:56:745:853 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 13:19:57:722:162 + Q7-T3 execute sql: 'DELETE FROM t3 WHERE k=2;' + Q7 finished at: 2022-4-11 13:19:57:734:303 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t2 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-11 13:19:57:749:78 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t3 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-11 13:19:58:733:11 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 13:19:58:743:969 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:19:59:739:709 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 13:20:0:749:123 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-11 13:20:10:729:965 + Q14-T4 execute sql: 'SELECT * FROM t2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q14 finished at: 2022-4-11 13:20:10:737:945 + Q15-T4 execute sql: 'SELECT * FROM t3;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q15 finished at: 2022-4-11 13:20:10:745:887 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 13:20:10:747:558 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..9299ecef --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:20:14:789:553 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-11 13:20:14:803:270 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:20:15:789:549 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-11 13:20:15:808:310 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-11 13:20:15:817:946 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 13:20:16:789:596 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-11 13:20:16:808:933 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-11 13:20:16:821:345 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-11 13:20:17:799:761 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 13:20:17:829:946 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:20:18:806:158 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 13:20:19:802:742 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 13:20:29:798:261 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 13:20:29:799:959 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_sda_dirty_read.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..a19873f1 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: gp #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:14:28:151:230 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:14:28:164:344 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:14:29:151:232 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 13:14:29:169:681 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-11 13:14:30:153:18 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:14:31:152:864 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 13:14:41:166:834 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 13:14:41:167:18 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..9421f313 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:15:3:286:140 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:15:3:299:30 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:15:4:286:130 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 13:15:4:297:417 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-11 13:15:5:293:604 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:15:6:287:758 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:15:7:306:113 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-11 13:15:17:293:831 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:15:17:294:28 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..9a80b4bf --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:15:21:349:635 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:15:21:362:313 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:15:22:349:451 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 13:15:22:360:210 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 13:15:22:361:763 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-11 13:15:23:356:514 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:15:23:371:993 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-11 13:15:33:356:962 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:15:33:357:142 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..deea38f6 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:16:9:519:499 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:16:9:532:194 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:16:10:519:487 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-11 13:16:11:525:43 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-11 13:16:11:539:210 + Q4 finished at: 2022-4-11 13:16:11:548:153 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:16:12:535:39 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 13:16:22:527:251 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:16:22:527:539 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..14ea3650 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:14:45:218:408 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:14:45:229:771 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:14:46:218:394 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 13:14:46:234:597 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-11 13:14:47:224:998 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:14:48:231:779 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:14:49:220:102 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 13:14:59:226:62 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:14:59:226:268 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..f1383500 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:15:37:416:880 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 13:15:37:430:276 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:15:38:416:821 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-11 13:15:38:430:991 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 13:15:38:450:952 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-11 13:15:39:424:371 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:15:39:426:11 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-11 13:15:49:424:466 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:15:49:424:697 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..012c9126 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:15:53:465:400 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 13:15:53:478:720 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:15:54:465:410 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-11 13:15:54:481:264 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 13:15:54:495:94 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-11 13:15:55:472:962 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:15:55:474:611 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-11 13:16:5:473:387 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:16:5:473:628 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..fd0f02ac --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:23:34:300:947 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:23:34:313:969 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:23:35:300:945 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 13:23:36:308:739 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:23:36:324:811 + Q4 finished at: 2022-4-11 13:23:36:333:955 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-11 13:23:36:340:532 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:23:36:363:606 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 13:23:46:310:138 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:23:46:310:349 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..5c42321e --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 14:30:26:321:153 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 14:30:26:331:20 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 14:30:27:321:164 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 14:30:27:344:822 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 14:30:28:849:711 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-11 14:30:48:926:164 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..a96174fd --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 14:29:49:429:200 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 14:29:49:438:780 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 14:29:50:429:184 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 14:29:50:451:423 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 14:29:51:956:233 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-11 14:30:12:33:960 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..e37a44d9 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 14:29:11:943:237 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 14:29:11:953:44 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 14:29:12:943:197 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 14:29:12:963:453 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 14:29:14:468:97 +Q7 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q7 failed at: 2022-4-11 14:29:34:648:142 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..5f0c2fdf --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:24:41:676:204 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:24:41:689:463 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:24:42:676:194 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 13:24:42:689:644 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 13:24:42:696:0 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 13:24:44:694:873 +Q6 finished at: 2022-4-11 13:24:44:700:107 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:24:44:724:550 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 13:24:54:684:950 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:24:54:685:251 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..aeaeec4e --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:24:58:737:766 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:24:58:750:754 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:24:59:737:755 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 13:24:59:751:70 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 13:24:59:757:495 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:25:1:752:161 +Q6 finished at: 2022-4-11 13:25:1:757:356 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:25:2:756:56 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 13:25:12:746:384 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:25:12:746:594 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..d549f64c --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:25:16:801:23 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:25:16:813:258 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:25:17:801:18 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 13:25:17:815:6 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 13:25:18:807:728 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:25:18:819:541 + Q5 finished at: 2022-4-11 13:25:18:825:18 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 13:25:19:822:869 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 13:25:29:809:554 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:25:29:809:767 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..342a0c92 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:25:33:864:185 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:25:33:876:425 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:25:34:864:192 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 13:25:34:877:60 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 13:25:35:871:105 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:25:37:887:285 + Q5 finished at: 2022-4-11 13:25:37:892:450 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:25:37:910:921 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 13:25:47:872:813 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:25:47:873:42 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..069d55e2 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:25:51:943:76 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:25:51:955:482 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:25:52:943:78 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 13:25:52:957:758 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 13:25:53:950:16 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:25:53:965:830 + Q5 finished at: 2022-4-11 13:25:53:970:948 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:25:53:991:369 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 13:26:3:951:610 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:26:3:951:928 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..8c8571f1 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 10:27:15:66:491 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 10:27:15:77:63 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 10:27:16:66:583 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 10:27:16:88:477 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 10:27:17:66:543 + Q7-T3 execute sql: 'UPDATE t3 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 10:27:17:88:845 + Q8-T3 execute sql: 'UPDATE t2 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected errcode: 40P01 + Q8 failed at: 2022-4-18 10:27:18:893:920 + Q5 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q5 failed at: 2022-4-18 10:27:36:593:549 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-18 10:27:38:971:702 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..85d7daa4 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 10:28:16:924:365 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 10:28:16:934:866 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 10:28:17:924:318 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 10:28:17:946:639 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 10:28:18:924:399 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t3 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 10:28:20:938:598 + Q8-T3 execute sql: 'UPDATE t2 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected errcode: 40P01 + Q8 failed at: 2022-4-18 10:28:22:743:804 + Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q6 failed at: 2022-4-18 10:28:40:529:723 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-18 10:28:42:829:829 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..0ad55b45 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:21:35:805:367 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:21:35:818:372 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:21:36:805:370 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-11 13:21:37:807:92 + Q4 finished at: 2022-4-11 13:21:37:816:867 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:21:38:819:506 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-11 13:21:48:821:135 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-11 13:21:48:839:330 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:21:48:839:547 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..8d8912d3 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:21:52:889:392 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:21:52:901:889 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:21:53:889:256 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-11 13:21:54:902:380 + Q4 finished at: 2022-4-11 13:21:54:911:740 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:21:55:902:296 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-11 13:22:5:897:52 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-11 13:22:5:920:977 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:22:5:921:161 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_sda_full_write.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..890ba4b6 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:22:9:975:542 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:22:9:987:982 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:22:10:975:538 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-11 13:22:11:982:482 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-11 13:22:12:7:636 + Q4 finished at: 2022-4-11 13:22:12:16:850 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:22:12:989:283 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-11 13:22:22:983:206 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:22:22:983:423 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..8435ab06 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:22:27:37:164 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:22:27:49:662 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:22:28:37:161 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-11 13:22:29:44:111 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:22:29:59:384 + Q4 finished at: 2022-4-11 13:22:29:68:337 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 13:22:29:80:922 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-11 13:22:39:44:728 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:22:39:44:941 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..d4619b50 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:23:18:230:757 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:23:18:243:349 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:23:19:230:738 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-11 13:23:20:236:160 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:23:20:250:693 + Q4 finished at: 2022-4-11 13:23:20:260:309 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 13:23:20:279:986 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 13:23:30:238:225 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:23:30:238:429 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..7b11e073 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:22:43:102:64 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 13:22:43:113:152 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:22:44:102:76 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 13:22:44:115:741 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:22:46:116:849 +Q5 finished at: 2022-4-11 13:22:46:122:427 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-11 13:22:46:137:26 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 13:22:56:109:787 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:22:56:109:987 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..ccfbbfbf --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:23:0:160:695 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 13:23:0:171:578 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:23:1:160:686 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 13:23:1:174:211 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:23:3:179:339 +Q5 finished at: 2022-4-11 13:23:3:184:679 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:23:4:174:489 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 13:23:14:168:551 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:23:14:168:739 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/result_summary/read-committed_total-result.txt b/install/test_result/distributed_result/gp_test/gp_dist/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..18ad6ce8 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Avoid + +wat_mda_step_wat_c2: Avoid + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/result_summary/serializable_total-result.txt b/install/test_result/distributed_result/gp_test/gp_dist/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..1ba5280a --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/result_summary/serializable_total-result.txt @@ -0,0 +1,107 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..4a01c038 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:55:10:100:907 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:55:10:114:341 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:55:11:100:904 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 13:55:11:113:623 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 13:55:11:120:6 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:55:11:136:736 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 13:55:12:108:598 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:55:12:110:214 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 13:55:22:110:554 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:55:22:110:850 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..08accb28 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:55:26:170:724 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:55:26:185:99 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:55:27:170:706 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 13:55:27:183:926 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 13:55:27:190:768 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:55:27:203:120 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to concurrent update (seg3 9.134.190.63:6001 pid=28565); errcode: 40001 +Q7 failed at: 2022-4-11 13:55:28:879:340 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg3 9.134.190.63:6001 pid=28565); + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_dda_write_skew.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..90661229 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:55:42:237:124 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:55:42:251:614 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:55:43:237:118 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 13:55:43:250:233 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 13:55:43:257:418 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 13:55:45:263:319 +Q6 finished at: 2022-4-11 13:55:45:268:585 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:55:45:292:395 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 13:55:55:246:120 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 13:55:55:246:311 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..168e6f9c --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:56:31:498:775 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:56:31:512:72 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:56:32:498:754 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 13:56:32:512:861 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 13:56:32:520:134 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:56:32:537:893 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 13:56:33:505:865 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:56:33:523:923 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 13:56:43:507:302 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:56:43:507:503 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..acc0dbf7 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:55:59:316:494 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-11 13:55:59:328:904 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-11 13:55:59:335:256 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-11 13:56:0:316:498 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-11 13:56:0:332:411 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-11 13:56:0:337:787 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:56:0:358:298 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:56:1:333:446 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-11 13:56:11:324:997 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-11 13:56:11:330:587 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 13:56:11:330:804 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..67b2321a --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:56:15:404:237 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-11 13:56:15:420:829 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:56:16:404:229 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-11 13:56:16:421:931 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-11 13:56:16:431:710 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:56:16:449:883 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-11 13:56:17:413:696 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:56:17:428:680 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-11 13:56:27:413:881 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:56:27:414:97 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_mda_step_iat.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..4291b00d --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: gp #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:56:47:591:170 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-11 13:56:47:604:777 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:56:48:591:152 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 13:56:48:605:846 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 13:56:49:591:161 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 13:56:49:604:240 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-11 13:56:50:598:202 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 13:56:53:606:145 + Q8 finished at: 2022-4-11 13:56:53:611:386 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:56:54:605:709 + Q9 finished at: 2022-4-11 13:56:54:611:103 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 13:56:55:614:25 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 13:57:5:602:752 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 13:57:5:602:966 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..37be143f --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:58:29:958:204 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:58:29:971:662 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:58:30:958:185 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 13:58:30:970:994 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 13:58:30:982:91 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 13:58:31:958:193 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 13:58:31:971:931 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-11 13:58:31:978:615 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:58:31:995:707 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-11 13:58:32:965:979 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-11 13:58:32:967:682 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-11 13:58:42:967:386 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-11 13:58:42:969:68 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..d609349e --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:58:10:875:450 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:58:10:888:902 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:58:11:875:456 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 13:58:11:888:621 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 13:58:12:875:465 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-11 13:58:12:888:55 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:58:12:904:134 + Q8-T4 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 13:58:13:875:502 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-11 13:58:13:889:279 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:58:13:904:170 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-11 13:58:14:883:195 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 13:58:14:884:960 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-11 13:58:15:883:684 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-11 13:58:15:885:503 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-11 13:58:25:886:706 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 13:58:25:886:969 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..f9df15df --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:57:9:672:840 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-11 13:57:9:686:116 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:57:10:672:818 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 13:57:10:685:674 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 13:57:11:672:843 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 13:57:11:685:803 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-11 13:57:12:679:764 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 13:57:15:690:454 + Q8 finished at: 2022-4-11 13:57:15:695:449 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:57:16:690:253 + Q9 finished at: 2022-4-11 13:57:16:695:377 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 13:57:17:688:6 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-11 13:57:27:680:950 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 13:57:27:681:152 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..8ce3ccc7 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:57:31:721:617 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-11 13:57:31:735:169 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:57:32:721:613 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-11 13:57:32:736:43 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 13:57:33:721:637 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-11 13:57:33:734:728 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-11 13:57:34:729:980 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-11 13:57:35:735:111 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-11 13:57:36:735:146 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 13:57:37:732:923 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:57:38:735:515 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 13:57:39:736:889 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 13:57:49:731:164 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 13:57:49:731:375 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..84ccc00d --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (100) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:58:47:30:663 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 13:58:47:42:294 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-11 13:58:47:48:472 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-11 13:58:48:30:725 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-11 13:58:48:44:804 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-11 13:58:48:51:652 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:58:48:68:370 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 13:58:49:30:681 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-11 13:58:49:41:747 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-11 13:58:49:46:972 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:58:49:48:592 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-11 13:58:50:37:838 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-11 13:58:50:52:923 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-11 13:59:0:36:335 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-11 13:59:0:38:28 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..678737df --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:57:53:806:540 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-11 13:57:53:819:782 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:57:54:806:531 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-11 13:57:54:820:755 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 13:57:54:827:608 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 13:57:54:834:631 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-11 13:57:54:841:193 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 13:57:54:853:940 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-11 13:57:55:806:532 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-11 13:57:55:823:451 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-11 13:57:55:830:201 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-11 13:57:55:837:461 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-11 13:57:55:844:349 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 13:57:55:856:448 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-11 13:57:56:814:423 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-11 13:57:56:816:159 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-11 13:58:6:815:422 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-11 13:58:6:815:734 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..179bb34d --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:54:54:37:631 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 13:54:54:48:987 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:54:55:37:633 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 13:54:55:51:36 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 13:54:55:70:355 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=4086); errcode: 40001 +Q6 failed at: 2022-4-11 13:54:56:646:994 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=4086); + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..23d6681f --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:54:37:966:724 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:54:37:978:448 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:54:38:966:685 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 13:54:38:981:915 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 13:54:38:998:251 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-11 13:54:39:972:251 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:54:39:974:25 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 13:54:49:976:368 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:54:49:976:552 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:54:49:976:698 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..9cb7115e --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,44 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:36:14:861:461 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:36:14:873:579 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:36:15:861:464 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 13:36:15:873:744 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 13:36:15:882:348 +Q6-T1 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:36:17:878:738 +Q6 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=27958); errcode: 40001 +Q6 failed at: 2022-4-11 13:36:18:486:587 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=27958); + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..35322115 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,44 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:36:33:0:717 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:36:33:13:113 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:36:34:0:734 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 13:36:34:13:204 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 13:36:34:21:859 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:36:34:94:239 +Q7-T1 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to concurrent update (seg2 9.134.190.63:6000 pid=24868); errcode: 40001 +Q7 failed at: 2022-4-11 13:36:35:715:366 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg2 9.134.190.63:6000 pid=24868); + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..cf27b81f --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,44 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 14:12:1:617:368 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 14:12:1:627:243 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 14:12:2:617:371 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 14:12:2:633:33 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 14:12:3:625:636 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 14:12:3:639:580 + Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg0 9.135.218.12:6000 pid=12112); errcode: 40001 + Q5 failed at: 2022-4-11 14:12:4:147:403 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg0 9.135.218.12:6000 pid=12112); + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_read_skew.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..7fdaafbb --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:37:6:175:411 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:37:6:188:330 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:37:7:175:412 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 13:37:7:189:219 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 13:37:7:195:737 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 13:37:8:182:589 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:37:9:191:663 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:37:10:177:41 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 13:37:20:183:874 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:37:20:184:80 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_read_skew2.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..d7dccc49 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:37:56:363:978 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:37:56:376:248 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:37:57:363:962 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 13:37:57:378:425 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 13:37:57:385:571 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 13:37:58:370:640 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:37:58:382:387 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 13:37:59:365:635 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 13:38:9:372:550 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:38:9:372:782 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..586958e8 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:38:13:428:469 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:38:13:440:561 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:38:14:428:477 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 13:38:14:442:823 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 13:38:14:450:242 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:38:14:451:915 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 13:38:15:435:186 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:38:15:450:522 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 13:38:25:436:905 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:38:25:437:134 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..2dba7941 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 14:42:20:744:911 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0 ORDER BY k;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-11 14:42:20:758:738 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 14:42:21:744:890 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-11 14:42:21:759:309 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-11 14:42:21:765:607 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 14:42:21:780:428 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0 ORDER BY k;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-11 14:42:22:753:19 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 14:42:22:754:609 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-11 14:42:32:756:73 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 14:42:32:756:273 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..3863c875 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:37:40:298:714 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-11 13:37:40:311:359 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:37:41:298:703 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-11 13:37:41:317:114 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-11 13:37:41:325:724 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:37:41:340:700 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-11 13:37:42:306:108 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:37:42:307:696 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-11 13:37:52:307:40 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:37:52:307:265 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..09c16bda --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,72 @@ +#### db_type: gp #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:35:40:664:552 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:35:40:676:719 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:35:41:664:546 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 13:35:41:677:297 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 13:35:41:686:15 +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 13:35:42:673:102 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:35:43:682:505 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:35:44:678:857 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 13:35:54:673:650 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 13:35:54:678:743 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:35:54:678:948 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..ed3ab7fd --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,72 @@ +#### db_type: gp #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:35:58:766:72 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:35:58:778:313 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:35:59:766:61 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 13:35:59:778:437 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 13:35:59:787:22 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:35:59:802:426 +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 13:36:0:774:754 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:36:0:792:958 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 13:36:10:774:488 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 13:36:10:779:522 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:36:10:779:698 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_mda_step_rat.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..de69b286 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_mda_step_rat.txt @@ -0,0 +1,147 @@ +#### db_type: gp #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:38:29:557:146 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:38:29:569:632 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:38:30:555:31 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 13:38:30:567:599 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 13:38:30:576:271 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 13:38:31:555:18 + Q7-T3 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-11 13:38:31:567:136 + Q8-T3 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-11 13:38:31:575:271 +Q9-T1 execute sql: 'SELECT * FROM t3 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,113-0,1) + (5) expected_result: + (2,113-0,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-11 13:38:32:563:705 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 13:38:32:580:902 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:38:33:572:320 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 13:38:34:573:645 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + *(3) expected_result: + (0,1) + (4) expected_result: + + (5) expected_result: + + *(6) expected_result: + (0,1) + + Q13 finished at: 2022-4-11 13:38:44:566:250 + Q14-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + + Q14 finished at: 2022-4-11 13:38:44:571:886 + Q15-T4 execute sql: 'SELECT * FROM t3 ORDER BY k;' + current_result: + (2,1) + *(1) expected_result: + (2,1) + *(2) expected_result: + (2,1) + *(3) expected_result: + (2,1) + *(4) expected_result: + (2,1) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + + Q15 finished at: 2022-4-11 13:38:44:577:361 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 13:38:44:577:589 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..c0eea391 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN' + Q1 finished at: 2022-4-11 13:38:48:639:888 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-11 13:38:48:653:581 +Q3-T1 execute opt: 'BEGIN' +Q3 finished at: 2022-4-11 13:38:49:639:884 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-11 13:38:49:651:940 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 13:38:50:639:891 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-11 13:38:50:652:638 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 13:38:50:659:438 + Q8-T2 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 13:38:51:639:915 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-11 13:38:52:647:830 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-11 13:38:53:660:350 + Q9 finished at: 2022-4-11 13:38:53:669:392 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 13:38:54:669:607 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-11 13:38:55:641:599 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 13:39:5:641:675 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-11 13:39:5:647:381 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 13:39:5:649:67 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..28310e71 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,147 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:39:9:760:662 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:39:9:772:763 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:39:10:760:673 + Q4-T2 execute sql: 'DELETE FROM t2 WHERE k=1;' + Q4 finished at: 2022-4-11 13:39:10:773:77 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-11 13:39:10:783:420 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 13:39:11:760:656 + Q7-T3 execute sql: 'DELETE FROM t3 WHERE k=2;' + Q7 finished at: 2022-4-11 13:39:11:772:310 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t2 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-11 13:39:11:781:941 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t3 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-11 13:39:12:771:128 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 13:39:12:783:957 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:39:13:772:754 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 13:39:14:778:651 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-11 13:39:24:768:746 + Q14-T4 execute sql: 'SELECT * FROM t2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q14 finished at: 2022-4-11 13:39:24:776:753 + Q15-T4 execute sql: 'SELECT * FROM t3;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q15 finished at: 2022-4-11 13:39:24:784:539 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 13:39:24:786:203 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..e6c8dde7 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:39:28:826:993 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-11 13:39:28:840:354 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:39:29:826:987 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-11 13:39:29:846:263 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-11 13:39:29:856:195 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 13:39:30:827:3 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-11 13:39:30:845:157 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-11 13:39:30:854:475 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-11 13:39:31:836:855 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 13:39:31:863:835 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:39:32:843:901 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 13:39:33:843:914 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 13:39:43:835:679 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 13:39:43:837:446 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_sda_dirty_read.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..477c731d --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: gp #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:33:42:185:77 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:33:42:197:932 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:33:43:185:49 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 13:33:43:198:324 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-11 13:33:44:186:649 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:33:45:186:841 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 13:33:55:194:449 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 13:33:55:194:633 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..cc7c946f --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:34:17:339:390 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:34:17:351:659 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:34:18:339:385 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 13:34:18:352:316 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-11 13:34:19:346:261 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:34:20:341:79 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:34:21:354:415 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-11 13:34:31:346:917 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:34:31:347:113 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..0082d2e3 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:34:35:406:692 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:34:35:418:948 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:34:36:406:728 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 13:34:36:421:68 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 13:34:36:422:777 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-11 13:34:37:413:665 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:34:37:444:974 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-11 13:34:47:414:79 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:34:47:414:257 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..3963a3a3 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,39 @@ +#### db_type: gp #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:35:23:575:612 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:35:23:588:64 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:35:24:575:630 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-11 13:35:25:580:983 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-11 13:35:25:595:890 + Q4 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=27962); errcode: 40001 + Q4 failed at: 2022-4-11 13:35:26:6:847 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=27962); + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..6ddb2204 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:33:59:262:927 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:33:59:273:777 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:34:0:262:933 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 13:34:0:277:803 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-11 13:34:1:268:595 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:34:2:287:518 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:34:3:264:579 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 13:34:13:270:872 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:34:13:271:50 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..94d6f239 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:34:51:462:992 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 13:34:51:475:855 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:34:52:462:993 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-11 13:34:52:476:583 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 13:34:52:493:428 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-11 13:34:53:470:262 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:34:53:471:850 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-11 13:35:3:470:399 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:35:3:470:586 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..618f55bf --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:35:7:513:381 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 13:35:7:526:344 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:35:8:513:378 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-11 13:35:8:528:544 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 13:35:8:545:717 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-11 13:35:9:520:856 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:35:9:522:396 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-11 13:35:19:521:127 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:35:19:521:342 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..794a5a3e --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:45:38:663:23 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:45:38:675:514 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:45:39:663:18 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 13:45:40:670:568 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:45:40:682:4 + Q4 finished at: 2022-4-11 13:45:40:691:133 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg3 9.134.190.63:6001 pid=26712); errcode: 40001 + Q5 failed at: 2022-4-11 13:45:41:199:429 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg3 9.134.190.63:6001 pid=26712); + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..a2a94a4f --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 14:26:34:941:476 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 14:26:34:951:230 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 14:26:35:941:428 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 14:26:35:955:681 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 14:26:37:460:618 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-11 14:26:57:546:426 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..3bb5ff04 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 14:27:24:434:872 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 14:27:24:444:489 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 14:27:25:434:850 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 14:27:25:450:870 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 14:27:26:955:571 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-11 14:27:47:39:825 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..3ec5761f --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 14:28:3:351:512 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 14:28:3:361:393 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 14:28:4:351:486 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 14:28:4:367:576 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 14:28:5:872:516 +Q7 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q7 failed at: 2022-4-11 14:28:26:56:516 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..4e5df3ed --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:46:46:23:38 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:46:46:35:950 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:46:47:23:22 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 13:46:47:35:477 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 13:46:47:42:28 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 13:46:49:36:308 +Q6 failed reason: ERROR: could not serialize access due to concurrent update (seg0 9.135.218.12:6000 pid=32037); errcode: 40001 +Q6 failed at: 2022-4-11 13:46:49:643:18 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg0 9.135.218.12:6000 pid=32037); + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..ef6ba9e2 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:47:3:83:78 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:47:3:96:111 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:47:4:83:66 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 13:47:4:95:456 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 13:47:4:102:256 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:47:6:96:798 +Q6 failed reason: ERROR: could not serialize access due to concurrent update (seg0 9.135.218.12:6000 pid=32037); errcode: 40001 +Q6 failed at: 2022-4-11 13:47:6:703:542 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg0 9.135.218.12:6000 pid=32037); + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..bcd4ae31 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:47:21:139:395 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:47:21:152:273 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:47:22:139:382 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 13:47:22:152:619 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 13:47:23:146:171 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:47:23:164:674 + Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg2 9.134.190.63:6000 pid=26711); errcode: 40001 + Q5 failed at: 2022-4-11 13:47:23:672:173 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg2 9.134.190.63:6000 pid=26711); + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..aedf408e --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:47:38:201:792 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:47:38:214:227 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:47:39:201:783 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 13:47:39:215:85 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 13:47:40:208:857 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:47:42:214:908 + Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg2 9.134.190.63:6000 pid=26711); errcode: 40001 + Q5 failed at: 2022-4-11 13:47:42:721:854 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg2 9.134.190.63:6000 pid=26711); + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..7aa1d324 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:47:56:256:35 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:47:56:268:679 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:47:57:256:25 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 13:47:57:269:408 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 13:47:58:262:862 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 13:47:58:275:74 + Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg2 9.134.190.63:6000 pid=26711); errcode: 40001 + Q5 failed at: 2022-4-11 13:47:58:781:950 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg2 9.134.190.63:6000 pid=26711); + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..bab01714 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 10:26:24:666:112 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 10:26:24:676:649 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 10:26:25:666:125 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 10:26:25:683:297 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 10:26:26:666:100 + Q7-T3 execute sql: 'UPDATE t3 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 10:26:26:681:333 + Q8-T3 execute sql: 'UPDATE t2 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected errcode: 40P01 + Q8 failed at: 2022-4-18 10:26:28:486:341 + Q5 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q5 failed at: 2022-4-18 10:26:46:188:337 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-18 10:26:48:571:363 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..79f8ec2a --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT, v INT) DISTRIBUTED RANDOMLY PARTITION BY RANGE(v) (PARTITION p0 START (0) INCLUSIVE END (2) EXCLUSIVE, PARTITION p1 START (2) INCLUSIVE END (4) EXCLUSIVE);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 10:25:42:110:483 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 10:25:42:120:885 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 10:25:43:110:489 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 10:25:43:125:810 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 10:25:44:110:572 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t3 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 10:25:46:124:223 + Q8-T3 execute sql: 'UPDATE t2 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected errcode: 40P01 + Q8 failed at: 2022-4-18 10:25:47:929:71 + Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q6 failed at: 2022-4-18 10:26:5:715:812 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-18 10:26:8:15:745 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..06ac2eb2 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:43:40:235:706 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:43:40:248:753 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:43:41:235:715 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-11 13:43:42:237:502 + Q4 finished at: 2022-4-11 13:43:42:247:738 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:43:43:256:487 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-11 13:43:53:245:434 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-11 13:43:53:261:748 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:43:53:261:950 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..cee85466 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,30 @@ +#### db_type: gp #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:43:57:320:807 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:43:57:333:280 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:43:58:320:795 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-11 13:43:59:332:508 + Q4 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=32041); errcode: 40001 + Q4 failed at: 2022-4-11 13:43:59:744:424 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=32041); + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_sda_full_write.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..4b624eb1 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_sda_full_write.txt @@ -0,0 +1,32 @@ +#### db_type: gp #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:44:14:372:696 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:44:14:385:206 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:44:15:372:681 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-11 13:44:16:379:609 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-11 13:44:16:399:418 + Q4 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=32041); errcode: 40001 + Q4 failed at: 2022-4-11 13:44:16:810:102 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=32041); + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..bc49a41e --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,32 @@ +#### db_type: gp #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:44:31:428:514 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:44:31:441:29 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:44:32:428:501 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-11 13:44:33:435:446 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:44:33:448:873 + Q4 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=32041); errcode: 40001 + Q4 failed at: 2022-4-11 13:44:33:859:726 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=32041); + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..1c77877e --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: gp #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:45:22:598:789 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 13:45:22:611:278 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:45:23:598:783 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-11 13:45:24:604:451 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 13:45:24:624:510 + Q4 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=32041); errcode: 40001 + Q4 failed at: 2022-4-11 13:45:25:35:153 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=32041); + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..3ea46809 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:44:47:481:207 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 13:44:47:492:382 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:44:48:481:183 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 13:44:48:494:59 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:44:50:498:358 +Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=32038); errcode: 40001 +Q5 failed at: 2022-4-11 13:44:51:5:422 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=32038); + diff --git a/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..be06cafd --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_dist/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,39 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:45:4:545:87 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 13:45:4:556:254 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:45:5:545:212 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 13:45:5:558:65 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 13:45:7:560:662 +Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=32038); errcode: 40001 +Q5 failed at: 2022-4-11 13:45:8:67:826 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=32038); + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..b6985d44 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:57:12:824:612 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:57:12:836:415 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:57:13:824:601 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:57:13:838:35 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:57:13:844:653 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:57:13:861:813 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 12:57:14:830:225 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:57:14:831:814 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:57:24:833:421 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:57:24:833:635 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..64be99f9 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:57:28:891:725 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:57:28:902:737 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:57:29:891:689 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:57:29:905:956 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:57:29:913:3 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:57:29:934:634 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 12:57:30:898:664 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:57:30:912:990 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:57:40:900:16 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:57:40:900:220 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_dda_write_skew.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..92de881c --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:57:44:954:218 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:57:44:965:161 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:57:45:954:211 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:57:45:966:381 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:57:45:973:199 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:57:47:971:687 +Q6 finished at: 2022-4-11 12:57:47:976:856 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:57:47:987:530 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:57:57:962:623 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:57:57:962:815 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..0eb68f98 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:58:34:214:936 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:58:34:226:988 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:58:35:214:931 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:58:35:229:13 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:58:35:235:678 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:58:35:253:244 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 12:58:36:221:808 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:58:36:239:644 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:58:46:223:202 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:58:46:223:390 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..ee29034a --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:58:2:27:841 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-11 12:58:2:40:668 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-11 12:58:2:47:702 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-11 12:58:3:27:832 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-11 12:58:3:43:541 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-11 12:58:3:49:83 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:58:3:60:256 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:58:4:38:820 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-11 12:58:14:36:252 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-11 12:58:14:41:574 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:58:14:41:767 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..00fa66da --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:58:18:132:300 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-11 12:58:18:152:908 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:58:19:132:287 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-11 12:58:19:151:431 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-11 12:58:19:160:654 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:58:19:180:65 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-11 12:58:20:141:752 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:58:20:155:678 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-11 12:58:30:141:896 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:58:30:142:205 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_mda_step_iat.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..703e462b --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: gp #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:58:50:295:955 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-11 12:58:50:309:8 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:58:51:295:964 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:58:51:308:413 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:58:52:295:957 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 12:58:52:307:56 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-11 12:58:53:303:46 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:58:56:308:676 + Q8 finished at: 2022-4-11 12:58:56:314:21 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:58:57:318:846 + Q9 finished at: 2022-4-11 12:58:57:324:197 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:58:58:317:573 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 12:59:8:313:72 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:59:8:313:297 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..f8111cf1 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:0:32:676:97 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:0:32:687:336 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:0:33:676:115 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 13:0:33:688:652 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 13:0:33:705:569 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 13:0:34:676:103 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 13:0:34:687:346 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-11 13:0:34:694:145 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:0:34:708:150 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-11 13:0:35:681:898 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-11 13:0:35:683:602 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-11 13:0:45:684:686 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-11 13:0:45:686:324 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..9c5d4d22 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:0:13:587:775 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:0:13:599:304 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:0:14:587:773 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 13:0:14:600:200 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 13:0:15:587:790 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-11 13:0:15:600:92 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:0:15:614:753 + Q8-T4 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 13:0:16:587:806 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-11 13:0:16:601:195 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:0:16:621:377 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-11 13:0:17:593:523 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 13:0:17:595:211 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-11 13:0:18:593:442 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-11 13:0:18:595:73 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-11 13:0:28:604:844 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 13:0:28:605:94 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..940d1826 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:59:12:391:894 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-11 12:59:12:405:321 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:59:13:391:881 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:59:13:403:845 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:59:14:391:879 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 12:59:14:402:767 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-11 12:59:15:399:318 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:59:18:408:286 + Q8 finished at: 2022-4-11 12:59:18:413:359 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:59:19:410:954 + Q9 finished at: 2022-4-11 12:59:19:415:820 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:59:20:407:94 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-11 12:59:30:399:762 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:59:30:399:982 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..bab370fb --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:59:34:442:817 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-11 12:59:34:455:886 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:59:35:442:810 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-11 12:59:35:454:769 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:59:36:442:825 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-11 12:59:36:454:141 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-11 12:59:37:452:621 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:59:40:454:709 + Q8 finished at: 2022-4-11 12:59:40:460:817 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:59:41:459:30 + Q9 finished at: 2022-4-11 12:59:41:464:939 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:59:42:459:789 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 12:59:52:451:683 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:59:52:451:913 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..1f35803c --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:0:49:745:803 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 13:0:49:756:794 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-11 13:0:49:762:113 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-11 13:0:50:745:818 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-11 13:0:50:757:8 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-11 13:0:50:764:51 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:0:50:784:126 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 13:0:51:745:834 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-11 13:0:51:756:937 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-11 13:0:51:762:302 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:0:51:763:961 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-11 13:0:52:752:819 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-11 13:0:52:779:326 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-11 13:1:2:751:335 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-11 13:1:2:752:897 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..aaba9d81 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:59:56:520:289 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-11 12:59:56:532:261 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:59:57:520:310 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-11 12:59:57:532:451 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:59:57:539:348 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 12:59:57:544:663 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-11 12:59:57:551:283 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:59:57:564:423 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-11 12:59:58:520:304 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-11 12:59:58:533:161 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-11 12:59:58:539:707 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-11 12:59:58:544:765 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-11 12:59:58:551:89 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:59:58:562:80 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-11 12:59:59:527:889 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-11 12:59:59:529:518 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-11 13:0:9:528:928 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-11 13:0:9:529:148 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..b53235ef --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:56:56:760:790 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 12:56:56:771:607 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:56:57:760:786 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 12:56:57:774:778 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:56:57:790:899 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-11 12:56:58:767:808 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:56:58:780:903 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:57:8:768:445 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:57:8:768:629 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..00313de2 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:56:40:695:132 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:56:40:706:456 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:56:41:695:147 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 12:56:41:715:677 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:56:41:727:347 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-11 12:56:42:701:59 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:56:42:702:672 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:56:52:710:383 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:56:52:710:592 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:56:52:710:762 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..9f06ada5 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,67 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:27:22:891:679 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:27:22:904:191 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:27:23:891:667 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:27:23:905:272 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:27:23:913:682 +Q6-T1 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:27:25:910:859 +Q6 finished at: 2022-4-11 12:27:25:917:647 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:27:26:909:471 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:27:36:900:27 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,2) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,2) + + Q10 finished at: 2022-4-11 12:27:36:905:218 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:27:36:905:412 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..67c508fa --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,67 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:27:40:986:935 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:27:40:999:448 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:27:41:986:896 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:27:42:6:552 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:27:42:12:749 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:27:42:29:768 +Q7-T1 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-11 12:27:42:995:398 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:27:43:19:82 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:27:52:995:249 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,2) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,2) + + Q10 finished at: 2022-4-11 12:27:53:0:336 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:27:53:0:541 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..17f1165a --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,67 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:27:57:124:301 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:27:57:136:830 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:27:58:124:285 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:27:58:138:424 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 12:27:59:131:141 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:27:59:150:438 + Q5 finished at: 2022-4-11 12:27:59:156:776 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:28:0:174:342 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:28:10:132:716 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 12:28:10:137:842 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:28:10:138:37 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_read_skew.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..ae56cb79 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:28:14:209:141 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:28:14:220:192 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:28:15:209:145 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:28:15:223:42 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:28:15:229:202 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 12:28:16:214:668 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:28:17:229:82 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:28:18:210:853 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:28:28:217:417 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:28:28:217:636 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_read_skew2.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..6007c42f --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:29:4:416:265 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:29:4:428:685 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:29:5:416:273 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:29:5:432:430 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:29:5:437:250 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 12:29:6:423:165 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:29:6:439:77 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:29:7:417:821 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:29:17:424:729 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:29:17:424:951 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..469436d7 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:29:21:481:608 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:29:21:493:978 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:29:22:481:594 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:29:22:494:30 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:29:22:498:786 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:29:22:500:516 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 12:29:23:488:522 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:29:23:513:26 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:29:33:490:41 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:29:33:490:277 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..91d11a13 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:28:32:276:152 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-11 12:28:32:289:396 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:28:33:276:168 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:28:33:287:901 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:28:33:293:696 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:28:33:317:498 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-11 12:28:34:283:500 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:28:34:285:109 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-11 12:28:44:284:608 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:28:44:284:818 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..5b0a7b5c --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:28:48:332:127 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-11 12:28:48:345:381 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:28:49:332:137 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-11 12:28:49:347:26 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-11 12:28:49:359:723 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:28:49:377:865 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (1,0) (0,0) + (1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-11 12:28:50:339:522 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:28:50:341:300 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-11 12:29:0:340:613 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:29:0:340:825 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..15f720fb --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,72 @@ +#### db_type: gp #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:26:48:619:914 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:26:48:632:521 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:26:49:619:905 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:26:49:632:16 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:26:49:638:334 +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 12:26:50:626:913 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:26:51:634:706 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:26:52:639:176 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:27:2:629:0 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 12:27:2:634:428 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:27:2:634:648 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..e4e305aa --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,74 @@ +#### db_type: gp #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:27:6:782:146 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:27:6:794:893 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:27:7:782:184 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:27:7:795:507 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:27:7:801:792 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:27:7:815:66 +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 12:27:8:789:99 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:27:8:807:443 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:27:18:790:633 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 12:27:18:796:196 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:27:18:796:423 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_mda_step_rat.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..3a3e1153 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,147 @@ +#### db_type: gp #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:29:37:624:541 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:29:37:637:247 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:29:38:624:552 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:29:38:636:695 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:29:38:642:930 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 12:29:39:624:553 + Q7-T3 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-11 12:29:39:637:370 + Q8-T3 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-11 12:29:39:644:47 +Q9-T1 execute sql: 'SELECT * FROM t3 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-11 12:29:40:633:658 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:29:40:651:684 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:29:41:635:472 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:29:42:638:795 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + *(6) expected_result: + (0,1) + + Q13 finished at: 2022-4-11 12:29:52:642:211 + Q14-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + + Q14 finished at: 2022-4-11 12:29:52:647:726 + Q15-T4 execute sql: 'SELECT * FROM t3 ORDER BY k;' + current_result: + (2,1) + *(1) expected_result: + (2,1) + *(2) expected_result: + (2,1) + *(3) expected_result: + (2,1) + *(4) expected_result: + (2,1) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + + Q15 finished at: 2022-4-11 12:29:52:653:273 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 12:29:52:653:624 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..31fd4b13 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN' + Q1 finished at: 2022-4-11 12:29:56:716:583 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-11 12:29:56:728:78 +Q3-T1 execute opt: 'BEGIN' +Q3 finished at: 2022-4-11 12:29:57:716:572 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-11 12:29:57:730:595 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:29:58:716:574 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-11 12:29:58:727:790 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 12:29:58:733:578 + Q8-T2 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 12:29:59:716:602 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-11 12:30:0:722:308 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-11 12:30:1:731:342 + Q9 finished at: 2022-4-11 12:30:1:740:282 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:30:2:734:326 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-11 12:30:3:718:331 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:30:13:718:302 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-11 12:30:13:724:159 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 12:30:13:725:890 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..c6fdda55 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,147 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:30:17:849:106 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:30:17:861:243 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:30:18:849:89 + Q4-T2 execute sql: 'DELETE FROM t2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:30:18:860:686 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-11 12:30:18:868:872 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 12:30:19:849:103 + Q7-T3 execute sql: 'DELETE FROM t3 WHERE k=2;' + Q7 finished at: 2022-4-11 12:30:19:861:17 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t2 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-11 12:30:19:870:547 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t3 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-11 12:30:20:859:958 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:30:20:874:557 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:30:21:862:557 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:30:22:866:921 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-11 12:30:32:856:984 + Q14-T4 execute sql: 'SELECT * FROM t2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q14 finished at: 2022-4-11 12:30:32:864:698 + Q15-T4 execute sql: 'SELECT * FROM t3;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q15 finished at: 2022-4-11 12:30:32:872:245 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 12:30:32:873:820 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..47c93493 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:30:36:910:79 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-11 12:30:36:924:326 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:30:37:910:54 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-11 12:30:37:920:583 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-11 12:30:37:928:228 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 12:30:38:910:66 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-11 12:30:38:921:47 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-11 12:30:38:929:41 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-11 12:30:39:923:369 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:30:39:936:799 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:30:40:921:702 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:30:41:921:472 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 12:30:51:918:607 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:30:51:920:192 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_sda_dirty_read.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..7d20b6e2 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: gp #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:24:50:95:376 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:24:50:108:195 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:24:51:95:357 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:24:51:114:278 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-11 12:24:52:97:77 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:24:53:96:940 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 12:25:3:110:845 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:25:3:111:27 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..e3cf2923 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:25:25:241:31 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:25:25:253:513 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:25:26:241:12 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:25:26:251:576 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-11 12:25:27:247:909 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:25:28:242:588 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:25:29:259:82 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-11 12:25:39:248:524 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:25:39:248:706 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..df059c11 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:25:43:309:658 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:25:43:322:103 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:25:44:309:659 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:25:44:320:175 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:25:44:321:665 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-11 12:25:45:316:573 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:25:45:332:82 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-11 12:25:55:317:153 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:25:55:317:334 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..adc2ebce --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:26:31:496:312 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:26:31:508:775 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:26:32:496:289 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-11 12:26:33:501:763 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-11 12:26:33:519:780 + Q4 finished at: 2022-4-11 12:26:33:528:677 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:26:34:511:691 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:26:44:503:899 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:26:44:504:88 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..0f92c2a0 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:25:7:176:922 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:25:7:188:12 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:25:8:176:914 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 12:25:8:191:523 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-11 12:25:9:182:541 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:25:10:195:946 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:25:11:178:573 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:25:21:184:595 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:25:21:184:779 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..32fd6117 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:25:59:375:160 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 12:25:59:389:560 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:26:0:375:154 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-11 12:26:0:386:776 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:26:0:409:85 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-11 12:26:1:382:552 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:26:1:384:170 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-11 12:26:11:382:638 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:26:11:382:827 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..dc23ada2 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:26:15:427:112 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 12:26:15:440:834 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:26:16:427:264 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-11 12:26:16:442:948 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:26:16:458:141 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-11 12:26:17:434:517 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:26:17:436:124 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-11 12:26:27:434:713 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:26:27:434:894 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..1df88bfc --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,67 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:44:48:698:135 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:44:48:710:664 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:44:49:698:149 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:44:49:710:580 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 12:44:50:705:10 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:44:50:716:500 + Q5 finished at: 2022-4-11 12:44:50:723:168 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:44:50:735:376 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:45:0:707:137 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 12:45:0:712:461 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:45:0:712:644 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..4393731b --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:45:4:800:874 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:45:4:813:547 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:45:5:800:891 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:45:5:813:537 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 12:45:7:318:489 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-11 12:45:27:405:777 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..76421f95 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:45:31:494:447 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:45:31:506:904 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:45:32:494:457 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:45:32:508:343 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 12:45:34:13:59 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-11 12:45:54:99:341 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..6d3b6948 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:45:58:184:883 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:45:58:197:534 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:45:59:184:886 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:45:59:199:26 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 12:46:0:703:824 +Q7 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q7 failed at: 2022-4-11 12:46:20:889:734 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..5008ea7f --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:46:24:982:105 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:46:24:993:109 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:46:25:982:142 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:46:25:995:970 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:46:26:10:163 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:46:27:999:579 +Q6 finished at: 2022-4-11 12:46:28:10:408 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:46:28:27:112 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:46:37:990:499 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:46:37:990:716 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..96f7a007 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:46:42:87:134 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:46:42:98:402 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:46:43:87:121 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:46:43:101:238 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:46:43:108:7 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:46:45:111:223 +Q6 finished at: 2022-4-11 12:46:45:116:517 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:46:46:113:20 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:46:56:95:411 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:46:56:95:632 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..1cf1917e --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:47:0:161:609 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:47:0:174:224 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:47:1:161:607 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:47:1:174:977 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 12:47:2:168:480 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:47:2:184:748 + Q5 finished at: 2022-4-11 12:47:2:190:185 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:47:3:186:317 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:47:13:169:895 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:47:13:170:104 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..ed090d74 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:47:17:233:611 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:47:17:246:271 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:47:18:233:562 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:47:18:244:549 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 12:47:19:240:425 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:47:21:246:438 + Q5 finished at: 2022-4-11 12:47:21:252:95 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:47:21:265:337 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:47:31:241:859 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:47:31:242:207 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..35516b2f --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:47:35:303:274 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:47:35:315:853 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:47:36:303:277 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:47:36:316:164 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 12:47:37:310:111 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:47:37:322:263 + Q5 finished at: 2022-4-11 12:47:37:327:895 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:47:37:339:976 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:47:47:311:744 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:47:47:311:975 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..46c5a4d2 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 10:20:57:467:238 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 10:20:57:481:193 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 10:20:58:467:214 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 10:20:58:489:466 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 10:20:59:467:220 + Q7-T3 execute sql: 'UPDATE t3 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 10:20:59:489:312 + Q8-T3 execute sql: 'UPDATE t2 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected errcode: 40P01 + Q8 failed at: 2022-4-18 10:21:1:294:582 + Q5 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q5 failed at: 2022-4-18 10:21:18:994:830 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-18 10:21:21:372:464 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..e032ea6f --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 10:20:17:994:618 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 10:20:18:8:721 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 10:20:18:994:599 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 10:20:19:20:289 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 10:20:19:994:719 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t3 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 10:20:22:9:184 + Q8-T3 execute sql: 'UPDATE t2 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected errcode: 40P01 + Q8 failed at: 2022-4-18 10:20:23:814:261 + Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q6 failed at: 2022-4-18 10:20:41:599:828 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-18 10:20:43:899:746 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..953e4592 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:42:50:137:988 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:42:50:150:890 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:42:51:137:963 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-11 12:42:52:139:961 + Q4 finished at: 2022-4-11 12:42:52:149:614 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:42:53:152:119 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-11 12:43:3:162:715 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-11 12:43:3:188:644 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:43:3:188:910 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..7338eb48 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:43:7:239:57 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:43:7:251:435 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:43:8:238:853 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-11 12:43:9:254:358 + Q4 finished at: 2022-4-11 12:43:9:263:507 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:43:10:255:567 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-11 12:43:20:246:673 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-11 12:43:20:265:739 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:43:20:265:942 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_sda_full_write.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..a66f25cd --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:43:24:316:654 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:43:24:329:552 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:43:25:316:501 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-11 12:43:26:323:243 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-11 12:43:26:335:503 + Q4 finished at: 2022-4-11 12:43:26:345:44 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:43:27:342:123 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-11 12:43:37:323:986 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:43:37:324:162 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..5c10574f --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:43:41:378:669 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:43:41:391:394 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:43:42:378:656 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-11 12:43:43:386:754 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:43:43:411:554 + Q4 finished at: 2022-4-11 12:43:43:420:732 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:43:43:432:831 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-11 12:43:53:386:144 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:43:53:386:345 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..024990d2 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:44:32:587:289 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:44:32:599:761 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:44:33:587:292 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-11 12:44:34:592:579 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:44:34:607:481 + Q4 finished at: 2022-4-11 12:44:34:616:636 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:44:34:629:835 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:44:44:594:675 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:44:44:594:974 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..787d7383 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:43:57:463:501 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 12:43:57:474:623 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:43:58:463:495 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 12:43:58:477:357 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:44:0:492:231 +Q5 finished at: 2022-4-11 12:44:0:497:768 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-11 12:44:0:509:12 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:44:10:471:185 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:44:10:471:368 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..96bfee69 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:44:14:524:775 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 12:44:14:535:860 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:44:15:524:733 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 12:44:15:539:234 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:44:17:538:894 +Q5 finished at: 2022-4-11 12:44:17:544:151 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:44:18:536:518 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:44:28:532:175 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:44:28:532:591 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/result_summary/read-committed_total-result.txt b/install/test_result/distributed_result/gp_test/gp_single/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..18ad6ce8 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Avoid + +wat_mda_step_wat_c2: Avoid + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/gp_test/gp_single/result_summary/serializable_total-result.txt b/install/test_result/distributed_result/gp_test/gp_single/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..1ba5280a --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/result_summary/serializable_total-result.txt @@ -0,0 +1,107 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..0fd72e06 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:18:44:307:450 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:18:44:318:851 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:18:45:307:601 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:18:45:320:35 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:18:45:326:441 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:18:45:347:255 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 12:18:46:313:35 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:18:46:314:798 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:18:56:316:873 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:18:56:317:188 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..d2de88f3 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:19:0:378:11 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:19:0:389:248 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:19:1:378:11 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:19:1:394:396 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:19:1:400:615 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:19:1:426:426 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=23981); errcode: 40001 +Q7 failed at: 2022-4-11 12:19:3:86:619 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=23981); + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_dda_write_skew.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..fa83cdef --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:19:16:445:656 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:19:16:457:64 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:19:17:445:675 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:19:17:456:729 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:19:17:463:421 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:19:19:461:53 +Q6 finished at: 2022-4-11 12:19:19:467:278 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:19:19:478:310 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:19:29:454:96 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:19:29:454:279 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..5206ac97 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:20:5:692:127 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:20:5:703:37 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:20:6:692:128 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:20:6:704:531 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:20:6:711:73 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:20:6:725:671 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 12:20:7:699:597 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:20:7:715:416 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:20:17:700:938 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:20:17:701:150 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..5fd18f76 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:19:33:509:540 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-11 12:19:33:522:207 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-11 12:19:33:529:390 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-11 12:19:34:509:535 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-11 12:19:34:523:965 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-11 12:19:34:529:928 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:19:34:545:233 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:19:35:524:216 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-11 12:19:45:517:849 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-11 12:19:45:523:387 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:19:45:523:617 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..de686585 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:19:49:615:72 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-11 12:19:49:635:67 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:19:50:615:65 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-11 12:19:50:631:776 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-11 12:19:50:641:706 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:19:50:658:58 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-11 12:19:51:624:719 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:19:51:640:13 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-11 12:20:1:624:737 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:20:1:625:24 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_mda_step_iat.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..f4947b76 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: gp #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:20:21:763:720 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-11 12:20:21:777:194 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:20:22:763:717 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:20:22:775:652 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:20:23:763:737 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 12:20:23:775:12 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-11 12:20:24:770:839 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:20:27:778:95 + Q8 finished at: 2022-4-11 12:20:27:783:445 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:20:28:793:183 + Q9 finished at: 2022-4-11 12:20:28:798:738 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:20:29:775:444 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 12:20:39:775:395 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:20:39:775:706 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..62bfe290 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:22:4:172:489 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:22:4:184:48 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:22:5:172:472 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 12:22:5:184:761 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:22:5:201:887 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 12:22:6:172:470 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 12:22:6:183:448 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-11 12:22:6:190:23 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:22:6:208:481 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-11 12:22:7:178:103 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-11 12:22:7:179:877 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-11 12:22:17:181:210 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-11 12:22:17:182:964 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..c280ac51 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:21:45:63:889 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:21:45:75:442 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:21:46:63:883 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:21:46:75:89 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:21:47:63:878 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-11 12:21:47:76:502 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:21:47:91:991 + Q8-T4 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 12:21:48:63:904 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-11 12:21:48:78:214 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:21:48:92:263 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-11 12:21:49:69:489 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:21:49:71:61 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-11 12:21:50:69:563 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-11 12:21:50:71:253 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-11 12:22:0:74:799 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 12:22:0:75:38 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..51105eba --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:20:43:844:136 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-11 12:20:43:857:511 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:20:44:844:142 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:20:44:854:935 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:20:45:844:161 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 12:20:45:855:320 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-11 12:20:46:850:760 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:20:49:857:131 + Q8 finished at: 2022-4-11 12:20:49:862:2 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:20:50:860:806 + Q9 finished at: 2022-4-11 12:20:50:866:162 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:20:51:857:20 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-11 12:21:1:852:447 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:21:1:852:653 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..fc70a83d --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:21:5:900:133 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-11 12:21:5:913:887 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:21:6:900:107 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-11 12:21:6:912:4 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:21:7:900:118 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-11 12:21:7:911:199 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-11 12:21:8:910:12 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:21:11:914:840 + Q8 finished at: 2022-4-11 12:21:11:920:812 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:21:12:917:291 + Q9 finished at: 2022-4-11 12:21:12:923:470 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:21:13:913:821 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 12:21:23:908:886 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:21:23:909:89 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..6c4e80ee --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:22:21:240:343 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 12:22:21:251:747 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-11 12:22:21:256:829 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-11 12:22:22:240:331 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-11 12:22:22:251:697 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-11 12:22:22:258:276 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:22:22:280:960 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 12:22:23:240:358 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-11 12:22:23:251:801 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-11 12:22:23:257:516 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:22:23:259:173 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-11 12:22:24:247:466 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-11 12:22:24:265:113 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-11 12:22:34:246:355 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-11 12:22:34:248:50 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..4b1e1abc --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:21:27:973:860 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-11 12:21:27:984:959 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:21:28:973:855 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-11 12:21:28:986:144 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:21:28:992:778 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 12:21:28:997:741 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-11 12:21:29:9:845 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:21:29:25:907 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-11 12:21:29:973:866 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-11 12:21:29:987:476 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-11 12:21:29:994:281 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-11 12:21:29:999:552 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-11 12:21:30:10:526 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:21:30:26:919 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-11 12:21:30:981:610 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-11 12:21:30:983:287 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-11 12:21:40:982:520 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-11 12:21:40:982:739 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..45a5aa16 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:18:28:244:17 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 12:18:28:255:195 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:18:29:243:996 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 12:18:29:257:536 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:18:29:273:805 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=23981); errcode: 40001 +Q6 failed at: 2022-4-11 12:18:30:852:827 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=23981); + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..f106cddf --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:18:12:170:972 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:18:12:182:556 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:18:13:170:943 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 12:18:13:185:182 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:18:13:205:733 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-11 12:18:14:176:567 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:18:14:178:280 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:18:24:180:384 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:18:24:180:600 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:18:24:180:789 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..96f3921b --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,44 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:4:4:941:179 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:4:4:953:655 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:4:5:941:184 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:4:5:954:905 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:4:5:961:226 +Q6-T1 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:4:7:954:742 +Q6 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14973); errcode: 40001 +Q6 failed at: 2022-4-11 12:4:8:563:44 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14973); + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..e4b6886b --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,44 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:4:23:48:742 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:4:23:61:150 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:4:24:48:747 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:4:24:61:214 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:4:24:67:587 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:4:24:95:416 +Q7-T1 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14973); errcode: 40001 +Q7 failed at: 2022-4-11 12:4:25:758:717 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14973); + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..9e7eeb38 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,44 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:4:39:171:436 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:4:39:184:127 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:4:40:171:413 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:4:40:184:130 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 12:4:41:178:498 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:4:41:194:116 + Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14977); errcode: 40001 + Q5 failed at: 2022-4-11 12:4:41:702:105 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14977); + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_read_skew.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..15665ee0 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:4:56:228:69 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:4:56:239:345 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:4:57:228:61 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:4:57:240:533 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:4:57:246:933 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 12:4:58:233:567 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:4:59:243:209 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:5:0:229:780 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:5:10:236:698 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:5:10:236:934 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_read_skew2.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..bdc4ba16 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:5:46:425:298 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:5:46:437:993 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:5:47:425:294 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:5:47:436:193 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:5:47:441:205 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 12:5:48:432:197 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:5:48:452:623 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:5:49:426:928 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:5:59:434:303 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:5:59:434:608 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..077280af --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:6:3:496:202 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:6:3:508:763 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:6:4:496:187 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:6:4:508:409 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:6:4:513:500 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:6:4:515:182 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 12:6:5:503:228 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:6:5:517:55 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:6:15:504:955 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:6:15:505:263 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..1765ae14 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:5:14:305:418 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-11 12:5:14:318:640 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:5:15:305:418 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:5:15:318:556 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:5:15:324:635 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:5:15:339:725 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-11 12:5:16:312:679 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:5:16:314:381 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-11 12:5:26:313:879 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:5:26:314:83 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..89e94c42 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:5:30:353:821 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-11 12:5:30:367:362 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:5:31:353:824 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-11 12:5:31:370:157 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-11 12:5:31:377:972 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:5:31:391:314 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-11 12:5:32:361:188 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:5:32:362:847 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-11 12:5:42:362:165 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:5:42:362:403 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..068d6b3f --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,72 @@ +#### db_type: gp #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:3:30:726:490 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:3:30:739:182 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:3:31:726:439 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:3:31:738:858 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:3:31:745:429 +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 12:3:32:733:733 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:3:33:749:919 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:3:34:738:708 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:3:44:735:457 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 12:3:44:740:726 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:3:44:740:922 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..7e34b375 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,72 @@ +#### db_type: gp #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:3:48:830:815 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:3:48:843:415 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:3:49:830:813 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:3:49:844:639 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:3:49:851:35 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:3:49:867:294 +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 12:3:50:837:721 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:3:50:853:345 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:4:0:839:348 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 12:4:0:844:636 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:4:0:844:825 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_mda_step_rat.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..b3d91cb3 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_mda_step_rat.txt @@ -0,0 +1,147 @@ +#### db_type: gp #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:6:19:642:821 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:6:19:655:264 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:6:20:642:821 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:6:20:655:223 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:6:20:661:711 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 12:6:21:642:825 + Q7-T3 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-11 12:6:21:655:691 + Q8-T3 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-11 12:6:21:662:343 +Q9-T1 execute sql: 'SELECT * FROM t3 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-11 12:6:22:651:951 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:6:22:666:507 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:6:23:654:9 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:6:24:670:71 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + *(6) expected_result: + (0,1) + + Q13 finished at: 2022-4-11 12:6:34:653:647 + Q14-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + + Q14 finished at: 2022-4-11 12:6:34:659:227 + Q15-T4 execute sql: 'SELECT * FROM t3 ORDER BY k;' + current_result: + (2,1) + *(1) expected_result: + (2,1) + *(2) expected_result: + (2,1) + *(3) expected_result: + (2,1) + *(4) expected_result: + (2,1) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + + Q15 finished at: 2022-4-11 12:6:34:664:774 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 12:6:34:665:79 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..1191b92c --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN' + Q1 finished at: 2022-4-11 12:6:38:764:429 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-11 12:6:38:776:112 +Q3-T1 execute opt: 'BEGIN' +Q3 finished at: 2022-4-11 12:6:39:764:432 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-11 12:6:39:778:749 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:6:40:764:433 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-11 12:6:40:775:460 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 12:6:40:780:756 + Q8-T2 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 12:6:41:764:449 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-11 12:6:42:770:186 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-11 12:6:43:779:599 + Q9 finished at: 2022-4-11 12:6:43:788:755 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:6:44:781:985 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-11 12:6:45:766:228 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:6:55:766:260 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-11 12:6:55:771:942 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 12:6:55:773:574 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..2fcb3598 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,147 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:6:59:913:458 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:6:59:925:784 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:7:0:913:443 + Q4-T2 execute sql: 'DELETE FROM t2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:7:0:925:642 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-11 12:7:0:933:969 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 12:7:1:913:396 + Q7-T3 execute sql: 'DELETE FROM t3 WHERE k=2;' + Q7 finished at: 2022-4-11 12:7:1:925:559 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t2 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-11 12:7:1:934:241 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t3 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-11 12:7:2:924:242 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:7:2:938:953 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:7:3:931:162 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:7:4:925:437 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-11 12:7:14:921:228 + Q14-T4 execute sql: 'SELECT * FROM t2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q14 finished at: 2022-4-11 12:7:14:929:68 + Q15-T4 execute sql: 'SELECT * FROM t3;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q15 finished at: 2022-4-11 12:7:14:936:762 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 12:7:14:938:439 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..30aa0ee1 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:7:18:975:868 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-11 12:7:18:990:249 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:7:19:975:845 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-11 12:7:19:985:822 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-11 12:7:19:993:703 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 12:7:20:975:845 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-11 12:7:20:987:55 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-11 12:7:20:994:909 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-11 12:7:21:988:753 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:7:22:9:565 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:7:22:988:679 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:7:23:991:163 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 12:7:33:984:524 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:7:33:986:270 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_sda_dirty_read.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..0795ce32 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: gp #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:1:32:218:982 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:1:32:232:108 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:1:33:218:944 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:1:33:232:505 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-11 12:1:34:220:657 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:1:35:220:679 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 12:1:45:228:353 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:1:45:228:552 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..c0361c87 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:2:7:401:43 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:2:7:413:584 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:2:8:401:10 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:2:8:411:946 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-11 12:2:9:408:35 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:2:10:402:725 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:2:11:445:464 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-11 12:2:21:408:718 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:2:21:408:898 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..95f9c6da --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:2:25:461:403 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:2:25:473:978 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:2:26:461:405 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:2:26:473:444 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:2:26:475:17 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-11 12:2:27:468:401 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:2:27:481:619 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-11 12:2:37:469:126 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:2:37:469:332 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..ea52e305 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,39 @@ +#### db_type: gp #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:3:13:640:927 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:3:13:653:568 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:3:14:640:884 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-11 12:3:15:646:444 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-11 12:3:15:663:204 + Q4 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14977); errcode: 40001 + Q4 failed at: 2022-4-11 12:3:16:73:779 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14977); + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..fb4d7acc --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:1:49:307:355 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:1:49:318:471 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:1:50:307:365 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 12:1:50:322:6 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-11 12:1:51:312:969 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:1:52:319:684 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:1:53:309:18 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:2:3:315:464 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:2:3:315:643 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..a1db5262 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:2:41:531:947 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 12:2:41:545:180 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:2:42:531:905 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-11 12:2:42:543:982 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:2:42:561:783 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-11 12:2:43:539:338 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:2:43:540:969 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-11 12:2:53:539:699 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:2:53:539:927 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..c0dc52ad --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:2:57:577:870 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 12:2:57:591:165 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:2:58:577:848 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-11 12:2:58:592:408 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:2:58:607:338 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-11 12:2:59:585:376 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:2:59:586:984 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-11 12:3:9:585:471 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:3:9:585:663 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..682e8fba --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,44 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:11:58:415:697 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:11:58:428:52 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:11:59:415:704 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:11:59:428:110 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 12:12:0:422:599 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:12:0:443:257 + Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q5 failed at: 2022-4-11 12:12:0:951:946 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..ff8b71bb --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 14:21:14:825:804 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 14:21:14:838:710 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 14:21:15:825:871 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 14:21:15:840:625 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 14:21:17:345:264 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-11 14:21:37:430:869 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..4ea3d24e --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 14:22:17:554:901 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 14:22:17:567:537 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 14:22:18:554:778 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 14:22:18:569:288 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 14:22:20:74:185 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-11 14:22:40:159:610 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..f4970452 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 14:22:57:696:729 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 14:22:57:709:336 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 14:22:58:696:742 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 14:22:58:716:641 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 14:23:0:221:676 +Q7 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q7 failed at: 2022-4-11 14:23:20:401:658 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..889c8086 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:13:5:814:929 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:13:5:825:798 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:13:6:814:906 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:13:6:827:342 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:13:6:833:805 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:13:8:848:579 +Q6 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); errcode: 40001 +Q6 failed at: 2022-4-11 12:13:9:455:223 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..4be37c54 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:13:22:883:667 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:13:22:894:686 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:13:23:883:653 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:13:23:896:137 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:13:23:902:589 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:13:25:899:821 +Q6 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); errcode: 40001 +Q6 failed at: 2022-4-11 12:13:26:506:921 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..d9343406 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:13:40:947:387 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:13:40:959:690 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:13:41:947:393 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:13:41:958:354 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 12:13:42:954:179 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:13:42:968:258 + Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q5 failed at: 2022-4-11 12:13:43:474:986 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..3915c919 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:13:58:24:437 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:13:58:36:925 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:13:59:24:401 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:13:59:35:336 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 12:14:0:31:515 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:14:2:43:884 + Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q5 failed at: 2022-4-11 12:14:2:550:546 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..59bfdf1c --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:14:16:91:17 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:14:16:103:308 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:14:17:91:5 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:14:17:101:925 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 12:14:18:97:643 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:14:18:125:63 + Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q5 failed at: 2022-4-11 12:14:18:631:592 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..19c01b13 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 10:22:34:300:123 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 10:22:34:314:172 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 10:22:35:300:252 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 10:22:35:319:757 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 10:22:36:300:147 + Q7-T3 execute sql: 'UPDATE t3 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 10:22:36:315:760 + Q8-T3 execute sql: 'UPDATE t2 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected errcode: 40P01 + Q8 failed at: 2022-4-18 10:22:38:120:775 + Q5 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q5 failed at: 2022-4-18 10:22:55:824:997 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-18 10:22:58:205:2 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..2edb6fc0 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 10:23:13:219:398 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 10:23:13:233:50 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 10:23:14:219:413 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 10:23:14:235:774 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 10:23:15:219:431 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t3 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 10:23:17:233:454 + Q8-T3 execute sql: 'UPDATE t2 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected errcode: 40P01 + Q8 failed at: 2022-4-18 10:23:19:38:590 + Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q6 failed at: 2022-4-18 10:23:36:824:434 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-18 10:23:39:124:442 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..89ef5fb6 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:9:59:920:531 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:9:59:933:361 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:10:0:920:565 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-11 12:10:1:922:233 + Q4 finished at: 2022-4-11 12:10:1:933:98 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:10:2:951:842 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-11 12:10:12:929:946 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-11 12:10:12:949:221 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:10:12:949:408 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..a26a17fd --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,30 @@ +#### db_type: gp #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:10:17:5:734 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:10:17:18:152 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:10:18:5:738 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-11 12:10:19:23:242 + Q4 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q4 failed at: 2022-4-11 12:10:19:434:57 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_sda_full_write.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..f9e2a27f --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_sda_full_write.txt @@ -0,0 +1,32 @@ +#### db_type: gp #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:10:34:60:675 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:10:34:73:32 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:10:35:60:848 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-11 12:10:36:67:372 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-11 12:10:36:90:348 + Q4 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q4 failed at: 2022-4-11 12:10:36:500:936 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..7a2c2404 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,32 @@ +#### db_type: gp #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:10:51:113:556 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:10:51:125:949 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:10:52:113:544 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-11 12:10:53:120:225 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:10:53:143:813 + Q4 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q4 failed at: 2022-4-11 12:10:53:554:39 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..a79a2e68 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: gp #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:11:42:303:393 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:11:42:315:789 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:11:43:303:391 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-11 12:11:44:308:581 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:11:44:352:983 + Q4 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q4 failed at: 2022-4-11 12:11:44:763:409 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..dffec363 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:11:7:168:297 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 12:11:7:179:295 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:11:8:168:308 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 12:11:8:182:815 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:11:10:187:226 +Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); errcode: 40001 +Q5 failed at: 2022-4-11 12:11:10:693:851 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); + diff --git a/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..e7c0de33 --- /dev/null +++ b/install/test_result/distributed_result/gp_test/gp_single/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,39 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:11:24:227:728 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 12:11:24:238:715 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:11:25:227:726 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 12:11:25:240:299 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:11:27:247:511 +Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); errcode: 40001 +Q5 failed at: 2022-4-11 12:11:27:754:317 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); + diff --git a/install/test_result/distributed_result/mongodb_dist/mongodb_snapshot_total-result.txt b/install/test_result/distributed_result/mongodb_dist/mongodb_snapshot_total-result.txt new file mode 100644 index 00000000..38119496 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/mongodb_snapshot_total-result.txt @@ -0,0 +1,96 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Rollback + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Rollback + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +wat_sda_dirty_write_1abort: Rollback + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_uname_anomaly: Rollback + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..8f0fcbb6 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/iat_dda_read_skew_committed.txt @@ -0,0 +1,45 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(601, 1)' + T2 execute stmt: 't1.put(0, 1)' + T2 COMMIT transaction success +T1 execute stmt: 't1.get(601)' + current_result: + (601,0) + *(1) expected_result: + (601,0) + (2) expected_result: + (601,1) + +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (601,1) + *(1) expected_result: + (0,1) (601,1) + *(2) expected_result: + (0,1) (601,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..a4681d19 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,28 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(601, 2)' + T2 execute stmt: 't1.put(0, 1)' + T2 COMMIT transaction success +T1 execute stmt: 't1.put(601, 1)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/iat_dda_write_skew.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/iat_dda_write_skew.txt new file mode 100644 index 00000000..ca5fd893 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/iat_dda_write_skew.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_write_skew #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.get(601)' + current_result: + (601,0) + (1) expected_result: + (601,1) + *(2) expected_result: + (601,0) + + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.put(601, 1)' +T1 COMMIT transaction success + T2 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (601,1) + *(1) expected_result: + (0,1) (601,1) + *(2) expected_result: + (0,1) (601,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..a26cd522 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/iat_dda_write_skew_committed.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_write_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.get(601)' + current_result: + (601,0) + (1) expected_result: + (601,1) + *(2) expected_result: + (601,0) + + T2 execute stmt: 't1.put(0, 1)' +T1 COMMIT transaction success +T1 execute stmt: 't1.put(601, 1)' + T2 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (601,1) + *(1) expected_result: + (0,1) (601,1) + *(2) expected_result: + (0,1) (601,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/iat_mda_step_iat.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/iat_mda_step_iat.txt new file mode 100644 index 00000000..8d2a8754 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/iat_mda_step_iat.txt @@ -0,0 +1,87 @@ +#### db_type: mongodb #### +#### test_type: mda_step_iat #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 execute stmt: 't1.put(602, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(602)' + current_result: + (602,0) + *(1) expected_result: + (602,0) + *(2) expected_result: + (602,0) + *(3) expected_result: + (602,0) + (4) expected_result: + (602,1) + (5) expected_result: + (602,1) + (6) expected_result: + (602,1) + + T2 start transaction success + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + T3 start transaction success + T3 execute stmt: 't1.get(601)' + current_result: + (601,0) + (1) expected_result: + (601,1) + *(2) expected_result: + (601,0) + (3) expected_result: + (601,1) + (4) expected_result: + (601,1) + *(5) expected_result: + (601,0) + *(6) expected_result: + (601,0) + +T1 execute stmt: 't1.put(0, 1)' + T2 execute stmt: 't1.put(601, 1)' + T3 execute stmt: 't1.put(602, 1)' +T1 COMMIT transaction success + T2 COMMIT transaction success + T3 COMMIT transaction success + T4 execute stmt: 't1.get(*)' + current_result: + (0,1) (601,1) (602,1) + *(1) expected_result: + (0,1) (601,1) (602,1) + *(2) expected_result: + (0,1) (601,1) (602,1) + *(3) expected_result: + (0,1) (601,1) (602,1) + *(4) expected_result: + (0,1) (601,1) (602,1) + *(5) expected_result: + (0,1) (601,1) (602,1) + *(6) expected_result: + (0,1) (601,1) (602,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..a40742fa --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,87 @@ +#### db_type: mongodb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 1)' + T2 COMMIT transaction success + T3 start transaction success + T3 execute stmt: 't1.get(0)' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + T3 execute stmt: 't1.put(601, 1)' + T3 COMMIT transaction success +T1 execute stmt: 't1.get(601)' + current_result: + (601,0) + *(1) expected_result: + (601,0) + *(2) expected_result: + (601,0) + (3) expected_result: + (601,1) + *(4) expected_result: + (601,0) + (5) expected_result: + (601,1) + (6) expected_result: + (601,1) + +T1 COMMIT transaction success + T4 execute stmt: 't1.get(*)' + current_result: + (0,1) (601,1) + *(1) expected_result: + (0,1) (601,1) + *(2) expected_result: + (0,1) (601,1) + *(3) expected_result: + (0,1) (601,1) + *(4) expected_result: + (0,1) (601,1) + *(5) expected_result: + (0,1) (601,1) + *(6) expected_result: + (0,1) (601,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..bd28717c --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,185 @@ +#### db_type: mongodb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + T3 start transaction success + T3 execute stmt: 't1.put(0, 1)' + T3 COMMIT transaction success + T4 start transaction success + T4 execute stmt: 't1.put(1, 1)' + T4 COMMIT transaction success + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + T2 COMMIT transaction success +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +T1 COMMIT transaction success + T4 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..e748a068 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,117 @@ +#### db_type: mongodb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + T2 execute stmt: 't1.put(1, 20)' + T2 COMMIT transaction success + T3 start transaction success + T3 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + T3 execute stmt: 't1.get(1)' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + T3 COMMIT transaction success +T1 execute stmt: 't1.put(0, 11)' +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..4086ff34 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,69 @@ +#### db_type: mongodb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 execute stmt: 't1.put(2, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + + T2 start transaction success + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + T2 execute stmt: 't1.put(0, 1)' + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + T2 execute stmt: 't1.put(1,1)' + T3 start transaction success + T3 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..9b004276 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/iat_sda_lost_update_committed.txt @@ -0,0 +1,26 @@ +#### db_type: mongodb #### +#### test_type: sda_lost_update_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + T2 COMMIT transaction success +T1 execute stmt: 't1.put(0, 1)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..53530f5a --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 1)' + T2 COMMIT transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..a4984519 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_double_write_skew1.txt @@ -0,0 +1,27 @@ +#### db_type: mongodb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(601, 1)' + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + +T1 execute stmt: 't1.put(601, 2)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..8ab48d5f --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,28 @@ +#### db_type: mongodb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(601, 1)' + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + T2 COMMIT transaction success +T1 execute stmt: 't1.put(601, 2)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..7533535c --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_double_write_skew2.txt @@ -0,0 +1,19 @@ +#### db_type: mongodb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(601, 1)' + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_read_skew.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_read_skew.txt new file mode 100644 index 00000000..b13d069a --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_read_skew.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.getpred(0)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) (601,1) + + T2 start transaction success + T2 execute stmt: 't1.put(601, 1)' + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.getpred(601)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) (601,1) + + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (601,1) (0,1) + *(1) expected_result: + (601,1) (0,1) + *(2) expected_result: + (601,1) (0,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_read_skew2.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_read_skew2.txt new file mode 100644 index 00000000..d9df65d5 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_read_skew2.txt @@ -0,0 +1,45 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(601)' + current_result: + (601,0) + (1) expected_result: + (601,1) + *(2) expected_result: + (601,0) + + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + +T1 execute stmt: 't1.put(601, 1)' + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (601,1) + *(1) expected_result: + (0,1) (601,1) + *(2) expected_result: + (0,1) (601,1) + + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..15d8f6d6 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_read_skew2_committed.txt @@ -0,0 +1,45 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(601)' + current_result: + (601,0) + (1) expected_result: + (601,1) + *(2) expected_result: + (601,0) + + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + T2 COMMIT transaction success +T1 execute stmt: 't1.put(601, 1)' +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (601,1) + *(1) expected_result: + (0,1) (601,1) + *(2) expected_result: + (0,1) (601,1) + + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..077f583f --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.getpred(0)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(601, 1)' + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.getpred(601)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (601,1) + + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (601,1) (0,1) + *(1) expected_result: + (601,1) (0,1) + *(2) expected_result: + (601,1) (0,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..128e7d0e --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.getpred(0)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(601, 1)' + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.getpred(601)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (601,1) + + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (601,1) (0,1) + *(1) expected_result: + (601,1) (0,1) + *(2) expected_result: + (601,1) (0,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..c30f83d5 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_write_read_skew.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_write_read_skew #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(601, 1)' + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + +T1 execute stmt: 't1.get(601)' + current_result: + (601,0) + *(1) expected_result: + (601,0) + (2) expected_result: + (601,1) + + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (601,1) + *(1) expected_result: + (0,1) (601,1) + *(2) expected_result: + (0,1) (601,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..c6f6fa79 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(601, 1)' + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + T2 COMMIT transaction success +T1 execute stmt: 't1.get(601)' + current_result: + (601,0) + *(1) expected_result: + (601,0) + (2) expected_result: + (601,1) + +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (601,1) + *(1) expected_result: + (0,1) (601,1) + *(2) expected_result: + (0,1) (601,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/rat_mda_step_rat.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_mda_step_rat.txt new file mode 100644 index 00000000..3fbfe268 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_mda_step_rat.txt @@ -0,0 +1,87 @@ +#### db_type: mongodb #### +#### test_type: mda_step_rat #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 execute stmt: 't1.put(602, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(601, 1)' + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + T3 start transaction success + T3 execute stmt: 't1.put(602, 1)' + T3 execute stmt: 't1.get(601)' + current_result: + (601,0) + (1) expected_result: + (601,1) + *(2) expected_result: + (601,0) + (3) expected_result: + (601,1) + (4) expected_result: + (601,1) + *(5) expected_result: + (601,0) + *(6) expected_result: + (601,0) + +T1 execute stmt: 't1.get(602)' + current_result: + (602,0) + *(1) expected_result: + (602,0) + *(2) expected_result: + (602,0) + *(3) expected_result: + (602,0) + (4) expected_result: + (602,1) + (5) expected_result: + (602,1) + (6) expected_result: + (602,1) + +T1 COMMIT transaction success + T2 COMMIT transaction success + T3 COMMIT transaction success + T4 execute stmt: 't1.get(*)' + current_result: + (0,1) (601,1) (602,1) + *(1) expected_result: + (0,1) (601,1) (602,1) + *(2) expected_result: + (0,1) (601,1) (602,1) + *(3) expected_result: + (0,1) (601,1) (602,1) + *(4) expected_result: + (0,1) (601,1) (602,1) + *(5) expected_result: + (0,1) (601,1) (602,1) + *(6) expected_result: + (0,1) (601,1) (602,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..6037504c --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,185 @@ +#### db_type: mongodb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' + T4 start transaction success + T4 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T3 start transaction success + T3 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + T3 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T4 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + +T1 COMMIT transaction success + T2 COMMIT transaction success + T3 COMMIT transaction success + T4 COMMIT transaction success + T4 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/rat_sda_dirty_read.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_sda_dirty_read.txt new file mode 100644 index 00000000..9c0caa07 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_sda_dirty_read.txt @@ -0,0 +1,29 @@ +#### db_type: mongodb #### +#### test_type: sda_dirty_read #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.put(0, 0)' + T2 start transaction success + T2 execute stmt: 't1.get(0)' + current_result: + null + *(1) expected_result: + null + + T2 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + null + *(1) expected_result: + null + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..ded07c96 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_sda_intermediate_read.txt @@ -0,0 +1,36 @@ +#### db_type: mongodb #### +#### test_type: sda_intermediate_read #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + +T1 execute stmt: 't1.put(0, 2)' + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..74e1fee4 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,36 @@ +#### db_type: mongodb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + T2 COMMIT transaction success +T1 execute stmt: 't1.put(0, 2)' +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..943c62cc --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_sda_lost_self_update.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_lost_self_update #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..4d66d15f --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_sda_non_repeatable_read.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..ce7c1634 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,25 @@ +#### db_type: mongodb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.getpred(0)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 0)' + T2 COMMIT transaction success +T1 execute stmt: 't1.getpred(0)' +[ERROR] in MongoConnector::ExecFindkV ->Unable to read from a snapshot due to pending collection catalog changes; please retry the operation. Snapshot timestamp is Timestamp(1651682652, 4). Collection minimum is Timestamp(1651682652, 5): generic server error + +Test Result: Rollback +Reason: Unable to read from a snapshot due to pending collection catalog changes; please retry the operation. Snapshot timestamp is Timestamp(1651682652, 4). Collection minimum is Timestamp(1651682652, 5): generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..22b954ea --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,25 @@ +#### db_type: mongodb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.getpred(0)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 0)' + T2 COMMIT transaction success +T1 execute stmt: 't1.getpred(0)' +[ERROR] in MongoConnector::ExecFindkV ->Unable to read from a snapshot due to pending collection catalog changes; please retry the operation. Snapshot timestamp is Timestamp(1651682651, 15). Collection minimum is Timestamp(1651682652, 1): generic server error + +Test Result: Rollback +Reason: Unable to read from a snapshot due to pending collection catalog changes; please retry the operation. Snapshot timestamp is Timestamp(1651682651, 15). Collection minimum is Timestamp(1651682652, 1): generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..6a0533e9 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,19 @@ +#### db_type: mongodb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(601, 1)' + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..831ae2e2 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,18 @@ +#### db_type: mongodb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..614a5c98 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,18 @@ +#### db_type: mongodb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..3b88637e --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,18 @@ +#### db_type: mongodb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..114d105e --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,27 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + + (2) expected_result: + + + T2 start transaction success + T2 execute stmt: 't1.put(601, 2)' + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.put(601, 1)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..ade253f4 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,27 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + + (2) expected_result: + + + T2 start transaction success + T2 execute stmt: 't1.put(601, 2)' + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.put(601, 1)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..b5f52901 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,26 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(601)' + current_result: + (601,0) + (1) expected_result: + (601,1) + *(2) expected_result: + (601,0) + + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..e8d20930 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,26 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(601)' + current_result: + (601,0) + (1) expected_result: + (601,1) + *(2) expected_result: + (601,0) + + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..84673a0d --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,26 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(601)' + current_result: + (601,0) + (1) expected_result: + (601,1) + *(2) expected_result: + (601,0) + + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..990d2c1b --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_mda_step_wat_c1.txt @@ -0,0 +1,20 @@ +#### db_type: mongodb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 execute stmt: 't1.put(602, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(601, 2)' + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..a55c79bf --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_mda_step_wat_c2.txt @@ -0,0 +1,20 @@ +#### db_type: mongodb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(601, 0)' +T1 execute stmt: 't1.put(602, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(601, 2)' + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..1cc1018d --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..66d36468 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/wat_sda_full_write.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_sda_full_write.txt new file mode 100644 index 00000000..e057f4c9 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_sda_full_write.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_full_write #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..65581c56 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_sda_full_write_committed.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_full_write_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..cc27e358 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..f67f3686 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_sda_lost_update_c1.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/mongodb_dist/snapshot/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..910560b5 --- /dev/null +++ b/install/test_result/distributed_result/mongodb_dist/snapshot/wat_sda_lost_update_c2.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..2b6655c2 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:31:47:433:445 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 11:31:47:438:508 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 11:31:48:433:385 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 11:31:48:441:7 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 11:31:48:443:298 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 11:31:48:460:637 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-14 11:31:49:435:418 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 11:31:49:435:957 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 11:31:59:436:456 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 11:31:59:437:147 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..15734546 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:32:3:805:249 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 11:32:3:810:485 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 11:32:4:805:270 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 11:32:4:812:64 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 11:32:4:814:635 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 11:32:4:825:446 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-14 11:32:5:807:945 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 11:32:5:814:403 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 11:32:15:808:443 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 11:32:15:809:30 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_dda_write_skew.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..c9d92ed3 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:33:8:974:835 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 11:33:8:981:12 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 11:33:9:974:877 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 11:33:9:980:75 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 11:33:9:983:616 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-14 11:33:10:979:99 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 11:33:10:988:215 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 11:33:11:982:866 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 11:33:21:978:719 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 11:33:21:979:262 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..5cf44b50 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:32:20:98:502 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 11:32:20:104:732 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 11:32:21:98:420 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 11:32:21:103:922 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 11:32:21:108:170 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 11:32:21:124:759 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-14 11:32:22:102:631 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 11:32:22:113:373 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 11:32:32:101:674 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 11:32:32:102:274 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..144a6b0a --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,71 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:32:36:435:46 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-14 11:32:36:437:527 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-14 11:32:36:438:412 + Q4-T2 execute sql: 'BEGIN;' + Q4 finished at: 2022-4-14 11:32:37:435:9 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-14 11:32:37:436:215 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-14 11:32:37:436:995 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 11:32:37:448:442 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 11:32:38:439:48 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-14 11:32:48:436:622 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-14 11:32:48:437:548 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 11:32:48:438:61 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..1ade2c38 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:32:52:687:707 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-14 11:32:52:690:69 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 11:32:53:687:690 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-14 11:32:53:689:271 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-14 11:32:53:691:413 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 11:32:53:694:784 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-14 11:32:54:688:714 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 11:32:54:693:154 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-14 11:33:4:689:368 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 11:33:4:690:60 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_mda_step_iat.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..d5bf4142 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:34:5:743:455 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-14 11:34:5:749:937 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 11:34:6:743:428 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-14 11:34:6:746:258 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-14 11:34:7:743:432 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-14 11:34:7:749:245 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-14 11:34:8:747:976 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-14 11:34:9:746:714 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-14 11:34:10:747:671 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-14 11:34:11:753:28 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 11:34:12:754:384 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 11:34:13:752:649 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-14 11:34:23:747:387 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 11:34:23:748:106 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..283ad294 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:43:6:125:278 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 10:43:6:131:496 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:43:7:125:252 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-14 10:43:7:131:692 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 10:43:7:139:350 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-14 10:43:8:125:253 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-14 10:43:8:129:748 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-14 10:43:8:131:909 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:43:8:138:892 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-14 10:43:9:128:71 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-14 10:43:9:128:757 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-14 10:43:19:130:549 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-14 10:43:19:131:270 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..cfe0d396 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,206 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:42:46:815:938 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 10:42:46:820:984 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:42:47:815:896 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 10:42:47:818:860 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-14 10:42:48:815:987 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-14 10:42:48:822:396 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 10:42:48:837:395 + Q8-T4 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-14 10:42:49:816:4 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-14 10:42:49:820:70 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:42:49:829:555 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-14 10:42:50:818:666 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 10:42:50:819:559 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-14 10:42:51:818:714 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-14 10:42:51:819:523 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-14 10:43:1:821:12 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-14 10:43:1:821:678 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..dd7bb1e4 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:33:26:179:424 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-14 11:33:26:186:72 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 11:33:27:179:468 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-14 11:33:27:185:548 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-14 11:33:28:179:503 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-14 11:33:28:182:775 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-14 11:33:29:183:18 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-14 11:33:30:182:596 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-14 11:33:31:181:649 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-14 11:33:32:186:415 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 11:33:33:187:7 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 11:33:34:188:378 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-14 11:33:44:182:764 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 11:33:44:183:349 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..382d3225 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:42:7:201:691 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-14 10:42:7:207:368 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:42:8:201:724 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-14 10:42:8:204:609 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-14 10:42:9:201:819 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-14 10:42:9:210:42 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-14 10:42:10:208:231 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-14 10:42:11:202:749 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-14 10:42:12:204:316 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-14 10:42:13:205:613 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 10:42:14:205:768 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 10:42:15:205:876 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-14 10:42:25:207:228 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 10:42:25:207:874 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..44398432 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,139 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(100));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:33:48:430:472 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-14 11:33:48:437:725 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-14 11:33:48:440:461 + Q4-T2 execute sql: 'BEGIN;' + Q4 finished at: 2022-4-14 11:33:49:430:440 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-14 11:33:49:433:828 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-14 11:33:49:438:581 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 11:33:49:547:64 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-14 11:33:50:430:442 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-14 11:33:50:434:892 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-14 11:33:50:437:274 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 11:33:50:437:916 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-14 11:33:51:433:649 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-14 11:33:51:443:572 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-14 11:34:1:434:541 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-14 11:34:1:435:118 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..55515336 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,161 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:42:29:508:291 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-14 10:42:29:515:260 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:42:30:508:323 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-14 10:42:30:513:102 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 10:42:30:517:596 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-14 10:42:30:520:579 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-14 10:42:30:523:696 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 10:42:30:533:741 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-4-14 10:42:31:508:391 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-14 10:42:31:511:353 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-14 10:42:31:515:708 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-14 10:42:31:517:939 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-14 10:42:31:520:524 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 10:42:31:531:458 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-14 10:42:32:510:521 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-14 10:42:32:511:165 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-14 10:42:42:511:738 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-14 10:42:42:512:527 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..d5e4b1d7 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:34:27:899:295 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-14 11:34:27:905:350 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 11:34:28:899:337 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-14 11:34:28:905:362 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 11:34:28:924:12 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-14 11:34:29:903:681 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 11:34:29:911:73 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-14 11:34:39:902:893 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 11:34:39:903:445 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..da1237da --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:34:44:63:38 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 11:34:44:68:794 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 11:34:45:62:862 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-14 11:34:45:68:182 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 11:34:45:173:576 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-14 11:34:46:65:528 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 11:34:46:66:29 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-14 11:34:56:68:44 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 11:34:56:68:613 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 11:34:56:68:995 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..778acbbb --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:30:14:58:413 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:30:14:64:898 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:30:15:58:315 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:30:15:62:311 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-14 10:30:15:66:192 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 10:30:17:165:556 +Q6 finished at: 2022-4-14 10:30:17:171:703 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:30:18:72:703 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-14 10:30:28:62:279 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:30:28:62:889 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..fe38664d --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:30:32:249:961 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:30:32:255:987 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:30:33:250:1 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:30:33:253:280 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-14 10:30:33:256:928 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:30:33:364:393 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-14 10:30:34:253:871 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:30:34:267:390 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-14 10:30:44:253:830 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:30:44:254:380 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..1cf48ed0 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:30:48:485:632 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:30:48:491:904 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:30:49:485:628 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:30:49:489:56 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-14 10:30:50:489:181 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:30:50:593:385 + Q5 finished at: 2022-4-14 10:30:50:598:999 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 10:30:51:499:830 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:31:1:489:296 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:31:1:489:819 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_read_skew.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..5679f94b --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:31:5:705:711 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 10:31:5:711:195 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:31:6:705:718 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:31:6:710:760 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 10:31:6:713:476 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-14 10:31:7:708:460 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 10:31:8:813:930 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:31:9:706:28 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:31:19:709:462 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:31:19:710:28 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_read_skew2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..6271e266 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:31:56:400:427 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:31:56:407:37 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:31:57:400:395 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 10:31:57:405:797 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-14 10:31:57:407:801 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-14 10:31:58:403:400 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:31:58:510:832 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 10:31:59:401:9 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:32:9:405:886 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:32:9:406:388 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..7caf8379 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:32:13:671:50 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:32:13:677:928 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:32:14:670:992 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 10:32:14:676:727 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-14 10:32:14:678:453 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:32:14:679:17 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-14 10:32:15:674:579 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:32:15:683:976 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:32:25:674:30 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:32:25:674:588 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..f16fca14 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:31:23:869:524 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-14 10:31:23:874:152 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:31:24:869:596 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:31:24:875:153 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-14 10:31:24:877:57 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:31:24:891:509 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-14 10:31:25:871:493 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:31:25:872:81 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-14 10:31:35:872:645 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:31:35:873:266 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..93e441e7 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:31:40:16:741 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-14 10:31:40:23:203 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:31:41:16:736 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-14 10:31:41:26:104 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-14 10:31:41:27:722 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:31:41:32:57 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (1,0) (0,0) + (1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-14 10:31:42:17:980 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:31:42:18:537 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-14 10:31:52:20:661 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:31:52:21:354 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..f398b05b --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:29:39:337:758 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:29:39:344:367 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:29:40:337:732 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:29:40:342:79 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-14 10:29:40:344:976 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-14 10:29:41:340:281 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 10:29:42:351:582 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:29:43:352:363 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:29:53:340:909 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:29:53:341:466 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..301d4227 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:29:57:695:947 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:29:57:702:138 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:29:58:695:872 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:29:58:703:800 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-14 10:29:58:707:946 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:29:58:745:399 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-14 10:29:59:699:257 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:29:59:710:920 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:30:9:700:368 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:30:9:701:100 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_mda_step_rat.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..7bcff099 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:32:29:948:789 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:32:29:956:314 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:32:30:948:763 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:32:30:952:368 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-14 10:32:30:955:823 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-14 10:32:31:948:779 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-14 10:32:31:952:576 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-14 10:32:31:955:75 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-14 10:32:32:951:717 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-14 10:32:32:961:281 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 10:32:33:969:470 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 10:32:34:963:903 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-14 10:32:44:954:10 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 10:32:44:954:575 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..8ff58f97 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,208 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN;' + Q1 finished at: 2022-4-14 10:32:49:157:555 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-14 10:32:49:163:846 +Q3-T1 execute sql: 'BEGIN;' +Q3 finished at: 2022-4-14 10:32:50:156:620 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-14 10:32:50:161:127 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-14 10:32:51:156:659 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-14 10:32:51:160:51 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-14 10:32:51:162:672 + Q8-T2 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-14 10:32:52:156:668 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-14 10:32:52:160:415 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-14 10:32:53:159:861 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-14 10:32:54:264:959 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 10:32:55:170:339 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-14 10:32:56:157:148 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 10:33:6:157:166 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-14 10:33:6:161:398 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-14 10:33:6:161:965 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..884c44ae --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:33:10:370:114 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:33:10:377:571 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:33:11:369:971 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:33:11:373:617 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-14 10:33:11:377:477 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-14 10:33:12:369:961 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-14 10:33:12:373:615 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-14 10:33:12:376:528 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-14 10:33:13:372:948 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-14 10:33:13:391:301 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 10:33:14:391:829 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 10:33:15:379:82 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-14 10:33:25:373:716 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 10:33:25:374:277 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..e9ce273f --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:33:29:535:210 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-14 10:33:29:548:528 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:33:30:535:196 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-14 10:33:30:538:190 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-14 10:33:30:543:890 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-14 10:33:31:535:230 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-14 10:33:31:538:57 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-14 10:33:31:541:233 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-14 10:33:32:538:289 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-14 10:33:32:542:83 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 10:33:33:544:959 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 10:33:34:539:742 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-14 10:33:44:539:471 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 10:33:44:540:50 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_sda_dirty_read.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..c8afeadb --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,46 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:27:39:17:980 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:27:39:28:610 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:27:40:17:984 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-14 10:27:40:23:64 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-14 10:27:41:18:397 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:27:42:18:200 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-14 10:27:52:21:597 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 10:27:52:22:150 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..51e24525 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:28:14:540:5 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:28:14:554:921 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:28:15:540:25 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-14 10:28:15:545:832 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-14 10:28:16:546:659 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:28:17:540:656 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:28:18:550:393 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-14 10:28:28:545:918 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:28:28:546:489 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..9d2ff7de --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:28:32:797:913 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:28:32:823:784 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:28:33:797:872 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-14 10:28:33:803:413 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 10:28:33:804:1 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-14 10:28:34:800:745 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:28:34:907:723 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-14 10:28:44:801:129 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:28:44:806:264 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..bf8c5194 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:29:21:931:897 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:29:21:937:351 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:29:22:931:873 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-14 10:29:23:934:940 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-14 10:29:23:943:428 + Q4 finished at: 2022-4-14 10:29:24:31:657 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 10:29:24:940:146 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-14 10:29:34:936:176 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:29:34:936:735 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..30d03184 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:27:56:255:321 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 10:27:56:261:238 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:27:57:255:385 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-14 10:27:57:285:670 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-14 10:27:58:258:173 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:27:59:270:489 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:28:0:255:646 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-14 10:28:10:260:422 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:28:10:260:968 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..29be8a09 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,57 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:28:49:181:838 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-14 10:28:49:187:659 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:28:50:181:802 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-14 10:28:50:200:173 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 10:28:50:315:301 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-14 10:28:51:183:520 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:28:51:184:85 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-14 10:29:1:186:297 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:29:1:186:846 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..c2891f6c --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,56 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:29:5:550:946 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-14 10:29:5:554:874 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:29:6:550:877 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-14 10:29:6:560:979 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 10:29:6:564:843 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-14 10:29:7:551:689 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:29:7:552:259 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-14 10:29:17:557:357 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:29:17:558:37 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..d161c2b9 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:35:48:778:325 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:35:48:784:999 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:35:49:778:292 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:35:49:782:67 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-14 10:35:50:782:164 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:35:50:890:41 + Q5 finished at: 2022-4-14 10:35:50:895:895 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:35:50:904:574 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:36:0:783:676 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:36:0:784:293 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..8e3c54ff --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:36:4:986:402 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:36:4:993:480 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:36:5:986:393 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 10:36:5:992:192 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-14 10:36:16:436:930 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-14 10:36:17:575:666 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..8bbcb798 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:36:22:181:562 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:36:22:188:418 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:36:23:193:858 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 10:36:23:198:152 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-14 10:36:33:661:896 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-14 10:36:34:695:977 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..d84fc7e4 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:36:40:502:201 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:36:40:507:211 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:36:41:514:635 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 10:36:41:520:752 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-14 10:36:51:943:81 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-14 10:36:53:111:702 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..3e6bd249 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:36:57:485:6 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 10:36:57:490:337 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:36:58:494:772 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 10:36:58:501:668 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 10:36:58:504:766 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 10:37:0:498:165 +Q6 finished at: 2022-4-14 10:37:0:532:784 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:37:0:543:309 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:37:10:490:979 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:37:10:491:750 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..82f268b8 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:37:14:812:389 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 10:37:14:818:720 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:37:15:812:481 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 10:37:15:817:29 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 10:37:15:819:824 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 10:37:17:819:414 +Q6 finished at: 2022-4-14 10:37:17:839:770 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:37:18:830:626 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:37:28:817:940 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:37:28:818:619 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..5cfff1b1 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:37:33:117:66 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:37:33:123:489 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:37:34:117:27 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 10:37:34:122:248 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-14 10:37:35:120:143 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:37:35:128:950 + Q5 finished at: 2022-4-14 10:37:35:134:861 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 10:37:36:127:23 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:37:46:119:981 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:37:46:120:674 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..5dde713d --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:37:50:278:179 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:37:50:285:409 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:37:51:278:91 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 10:37:51:283:427 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-14 10:37:52:282:688 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:37:54:387:944 + Q5 finished at: 2022-4-14 10:37:54:397:423 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 10:37:54:408:434 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:38:4:282:866 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:38:4:283:639 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..c039a1a3 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:38:8:550:709 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:38:8:556:648 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:38:9:550:739 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 10:38:9:557:355 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-14 10:38:10:553:638 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:38:10:572:808 + Q5 finished at: 2022-4-14 10:38:10:588:233 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:38:10:597:313 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:38:20:553:704 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:38:20:554:389 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..ebb440a2 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:38:24:854:516 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:38:24:859:676 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:38:25:854:476 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 10:38:25:862:202 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-14 10:38:26:854:552 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-14 10:38:26:858:658 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-14 10:38:36:335:324 + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q8 failed at: 2022-4-14 10:38:37:639:543 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-14 10:38:38:667:912 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..88d22fa4 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:38:44:148:906 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:38:44:155:253 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:38:45:157:537 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 10:38:45:161:271 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-14 10:38:46:156:761 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-14 10:38:48:152:647 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q6 failed at: 2022-4-14 10:38:57:654:743 + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q8 failed at: 2022-4-14 10:38:58:861:706 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-14 10:38:59:961:54 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..4690d0ab --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:33:48:694:580 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:33:48:701:99 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:33:49:694:571 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-14 10:33:50:695:175 + Q4 finished at: 2022-4-14 10:33:50:698:616 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:33:51:797:481 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-14 10:34:1:699:529 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-14 10:34:1:741:151 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:34:1:741:797 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..65c656d5 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:34:5:911:701 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:34:5:920:37 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:34:6:911:587 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-14 10:34:7:919:481 + Q4 finished at: 2022-4-14 10:34:7:925:303 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:34:8:925:269 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-14 10:34:18:917:268 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-14 10:34:18:953:336 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:34:18:954:11 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_sda_full_write.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..734dcf42 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_sda_full_write.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:34:23:91:262 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:34:23:98:222 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:34:24:91:150 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-14 10:34:25:94:108 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-14 10:34:25:199:546 + Q4 finished at: 2022-4-14 10:34:25:206:736 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 10:34:26:104:148 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-14 10:34:36:95:857 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:34:36:96:559 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..a16f6880 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:34:40:379:962 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:34:40:385:72 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:34:41:379:986 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-14 10:34:42:382:955 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:34:42:398:546 + Q4 finished at: 2022-4-14 10:34:42:419:650 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 10:34:42:428:212 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-14 10:34:52:383:660 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:34:52:384:295 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..3d6a4c60 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:35:32:477:454 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:35:32:482:938 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:35:33:477:410 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-14 10:35:34:480:682 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:35:34:489:392 + Q4 finished at: 2022-4-14 10:35:34:495:767 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 10:35:34:504:748 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-14 10:35:44:482:732 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:35:44:483:398 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..d6dbcf9c --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:34:56:746:434 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-14 10:34:56:751:811 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:34:57:746:592 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-14 10:34:57:755:781 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 10:34:59:763:658 +Q5 finished at: 2022-4-14 10:34:59:775:632 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-14 10:34:59:785:773 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-14 10:35:9:751:56 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:35:9:751:897 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..436de6a9 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:35:14:92:706 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-14 10:35:14:98:359 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:35:15:92:637 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-14 10:35:15:100:881 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:35:17:101:488 +Q5 finished at: 2022-4-14 10:35:17:107:537 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:35:18:103:442 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-14 10:35:28:97:490 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:35:28:98:207 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..7c6649c1 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:24:35:355:273 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 11:24:35:363:570 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 11:24:36:355:301 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 11:24:36:360:227 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 11:24:36:362:782 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 11:24:36:376:355 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-14 11:24:37:357:503 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 11:24:37:358:342 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 11:24:47:360:11 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 11:24:47:360:514 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..505f20c7 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:24:51:565:493 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 11:24:51:572:432 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 11:24:52:565:492 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 11:24:52:571:850 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 11:24:52:574:84 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 11:24:52:582:485 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-4-14 11:24:54:269:526 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_dda_write_skew.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..91ea3dd8 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:25:56:571:614 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 11:25:56:576:333 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 11:25:57:571:542 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 11:25:57:577:331 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 11:25:57:581:485 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-14 11:25:58:574:848 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 11:25:58:587:698 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 11:25:59:579:565 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 11:26:9:574:743 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 11:26:9:575:285 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..694f9afa --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:25:7:746:308 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 11:25:7:753:182 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 11:25:8:746:305 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 11:25:8:754:609 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 11:25:8:758:7 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 11:25:8:765:772 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-14 11:25:9:750:286 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 11:25:9:763:150 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 11:25:19:751:760 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 11:25:19:752:287 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..a4bc5976 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,71 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:25:23:949:761 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-14 11:25:23:952:530 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-14 11:25:23:953:421 + Q4-T2 execute sql: 'BEGIN;' + Q4 finished at: 2022-4-14 11:25:24:949:742 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-14 11:25:24:951:555 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-14 11:25:24:952:354 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 11:25:24:955:839 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 11:25:25:953:460 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-14 11:25:35:951:86 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-14 11:25:35:952:387 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 11:25:35:952:828 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..6c25f37a --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:25:40:207:250 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-14 11:25:40:209:831 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 11:25:41:207:243 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-14 11:25:41:208:623 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-14 11:25:41:210:656 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 11:25:41:213:863 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-14 11:25:42:208:332 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 11:25:42:211:976 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-14 11:25:52:208:986 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 11:25:52:209:593 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_mda_step_iat.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..19023c36 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:26:53:540:288 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-14 11:26:53:546:378 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 11:26:54:540:217 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-14 11:26:54:547:436 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-14 11:26:55:540:240 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-14 11:26:55:544:280 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-14 11:26:56:544:71 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-14 11:26:57:544:841 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-14 11:26:58:543:357 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-14 11:26:59:551:707 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 11:27:0:549:797 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 11:27:1:550:654 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-14 11:27:11:545:464 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 11:27:11:546:192 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..c596073d --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,107 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:1:13:670:433 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 11:1:13:676:857 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 11:1:14:670:375 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-14 11:1:14:676:328 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 11:1:14:685:772 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-14 11:1:15:670:376 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-14 11:1:15:673:995 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-14 11:1:15:676:4 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 11:1:15:687:17 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-14 11:1:16:672:372 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-14 11:1:16:673:61 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-14 11:1:26:675:383 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-14 11:1:26:676:68 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..6b9e7ffd --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,208 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:0:54:398:39 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 11:0:54:405:587 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 11:0:55:398:16 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 11:0:55:403:306 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-14 11:0:56:398:26 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-14 11:0:56:402:280 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 11:0:56:426:87 + Q8-T4 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-14 11:0:57:398:99 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-14 11:0:57:401:424 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 11:0:57:419:108 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-14 11:0:58:400:766 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 11:0:58:401:533 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-14 11:0:59:400:577 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-14 11:0:59:401:272 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-14 11:1:9:402:27 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-14 11:1:9:402:698 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..d0b7fe87 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:26:13:938:803 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-14 11:26:13:945:415 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 11:26:14:938:802 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-14 11:26:14:943:119 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-14 11:26:15:938:899 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-14 11:26:15:942:287 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-14 11:26:16:942:475 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-14 11:26:17:942:538 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-14 11:26:18:941:299 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-14 11:26:19:948:4 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 11:26:20:947:941 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 11:26:21:948:872 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-14 11:26:31:942:914 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 11:26:31:943:571 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..99f7d779 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:0:14:797:828 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-14 11:0:14:804:876 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 11:0:15:797:809 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-14 11:0:15:802:903 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-14 11:0:16:797:813 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-14 11:0:16:803:715 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-14 11:0:17:805:452 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-14 11:0:18:799:342 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-14 11:0:19:799:581 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-14 11:0:20:801:485 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 11:0:21:802:645 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 11:0:22:802:840 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-14 11:0:32:803:901 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 11:0:32:804:701 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..75d2d317 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,139 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(100));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:26:36:258:202 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-14 11:26:36:264:40 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-14 11:26:36:266:421 + Q4-T2 execute sql: 'BEGIN;' + Q4 finished at: 2022-4-14 11:26:37:258:212 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-14 11:26:37:261:254 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-14 11:26:37:266:156 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 11:26:37:374:305 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-14 11:26:38:258:208 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-14 11:26:38:262:978 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-14 11:26:38:265:536 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 11:26:38:266:73 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-14 11:26:39:260:927 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-14 11:26:39:269:313 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-14 11:26:49:261:464 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-14 11:26:49:262:770 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..790ce5ad --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,163 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:0:37:90:650 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-14 11:0:37:97:759 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 11:0:38:90:667 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-14 11:0:38:96:924 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 11:0:38:101:140 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-14 11:0:38:103:316 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-14 11:0:38:105:992 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 11:0:38:121:361 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-4-14 11:0:39:90:660 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-14 11:0:39:95:501 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-14 11:0:39:99:610 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-14 11:0:39:101:895 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-14 11:0:39:104:686 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 11:0:39:115:914 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-14 11:0:40:92:940 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-14 11:0:40:93:662 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-14 11:0:50:96:0 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-14 11:0:50:96:685 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..d82031b8 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:27:15:895:82 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-14 11:27:15:900:618 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 11:27:16:895:149 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-14 11:27:16:902:239 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 11:27:16:912:936 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-4-14 11:27:18:500:404 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..98a31923 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,61 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 11:27:32:154:719 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 11:27:32:160:549 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 11:27:33:154:646 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-14 11:27:33:162:479 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 11:27:33:175:1 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-14 11:27:34:156:909 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 11:27:34:157:632 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-14 11:27:44:158:954 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 11:27:44:159:565 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 11:27:44:160:39 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..0742d82c --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:48:22:76:678 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:48:22:82:753 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:48:23:76:673 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:48:23:80:1 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-14 10:48:23:82:812 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 10:48:25:184:14 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-4-14 10:48:25:791:635 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..14f31f58 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:48:40:274:13 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:48:40:280:482 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:48:41:273:860 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:48:41:277:482 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-14 10:48:41:280:733 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:48:41:387:512 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-4-14 10:48:42:977:756 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..13a37e8d --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:48:56:510:874 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:48:56:517:143 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:48:57:510:856 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:48:57:514:437 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-14 10:48:58:514:289 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:48:58:620:64 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-14 10:48:59:130:492 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_read_skew.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..a4d6ac13 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:49:13:705:619 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 10:49:13:712:447 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:49:14:716:872 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:49:14:720:580 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 10:49:14:724:277 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-14 10:49:15:707:556 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 10:49:16:813:270 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:49:17:706:161 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:49:27:710:978 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:49:27:711:582 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_read_skew2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..ac3e1bfa --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:50:4:645:678 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:50:4:651:73 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:50:5:645:624 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 10:50:5:651:724 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-14 10:50:5:653:663 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-14 10:50:6:648:641 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:50:6:659:351 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 10:50:7:646:276 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:50:17:648:837 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:50:17:649:459 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..20e8af10 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:50:21:947:6 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:50:21:955:97 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:50:22:946:976 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 10:50:22:951:389 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-14 10:50:22:953:395 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:50:22:953:920 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-14 10:50:23:949:614 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:50:23:959:902 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:50:33:953:225 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:50:33:953:990 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..a74c00b7 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:49:31:898:685 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-14 10:49:31:903:154 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:49:32:898:679 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:49:32:905:192 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-14 10:49:32:907:250 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:49:33:16:844 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-14 10:49:33:899:672 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:49:33:900:211 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-14 10:49:43:901:702 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:49:43:902:307 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..00685dcd --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:49:48:243:717 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-14 10:49:48:247:65 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:49:49:243:708 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-14 10:49:49:250:372 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-14 10:49:49:251:537 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:49:49:259:277 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-14 10:49:50:244:555 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:49:50:245:129 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-14 10:50:0:249:965 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:50:0:250:540 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..6f9916cd --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:47:47:498:17 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:47:47:504:870 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:47:48:499:83 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:47:48:501:766 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-14 10:47:48:505:464 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-14 10:47:49:500:163 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 10:47:50:507:506 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:47:51:512:78 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:48:1:504:241 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:48:1:504:844 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..c0a8a75f --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:48:5:783:982 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:48:5:789:470 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:48:6:784:32 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:48:6:791:569 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-14 10:48:6:794:598 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:48:6:806:956 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-14 10:48:7:787:336 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:48:7:794:778 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:48:17:787:820 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:48:17:788:326 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_mda_step_rat.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..480a7305 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:50:38:111:991 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:50:38:118:806 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:50:39:112:14 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:50:39:115:191 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-14 10:50:39:118:75 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-14 10:50:40:112:39 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-14 10:50:40:115:485 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-14 10:50:40:117:607 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-14 10:50:41:114:672 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-14 10:50:41:124:301 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 10:50:42:123:451 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 10:50:43:127:533 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-14 10:50:53:118:454 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 10:50:53:119:28 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..23a7b400 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,208 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN;' + Q1 finished at: 2022-4-14 10:50:57:461:490 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-14 10:50:57:468:994 +Q3-T1 execute sql: 'BEGIN;' +Q3 finished at: 2022-4-14 10:50:58:461:377 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-14 10:50:58:465:704 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-14 10:50:59:461:459 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-14 10:50:59:468:267 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-14 10:50:59:470:550 + Q8-T2 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-14 10:51:0:461:581 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-14 10:51:0:464:947 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-14 10:51:1:464:350 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-14 10:51:2:473:316 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 10:51:3:468:315 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-14 10:51:4:461:924 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 10:51:14:462:288 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-14 10:51:14:465:938 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-14 10:51:14:466:556 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..592f8625 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:51:18:819:408 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:51:18:826:69 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:51:19:819:431 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:51:19:825:4 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-14 10:51:19:827:874 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-14 10:51:20:819:435 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-14 10:51:20:823:205 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-14 10:51:20:825:451 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-14 10:51:21:823:472 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-14 10:51:21:833:236 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 10:51:22:832:87 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 10:51:23:827:342 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-14 10:51:33:823:492 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 10:51:33:824:120 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..9299cd15 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:51:38:160:3 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-14 10:51:38:171:128 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:51:39:160:25 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-14 10:51:39:161:912 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-14 10:51:39:167:128 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-14 10:51:40:160:33 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-14 10:51:40:161:923 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-14 10:51:40:164:620 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-14 10:51:41:162:545 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-14 10:51:41:167:526 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 10:51:42:164:713 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 10:51:43:163:354 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-14 10:51:53:164:347 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 10:51:53:164:964 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_sda_dirty_read.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..73dbf961 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,46 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:45:47:879:468 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:45:47:885:500 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:45:48:879:482 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-14 10:45:48:885:346 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-14 10:45:49:879:957 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:45:50:879:943 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-14 10:46:0:884:588 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 10:46:0:885:242 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..7253e628 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:46:23:365:427 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:46:23:370:831 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:46:24:365:432 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-14 10:46:24:369:466 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-14 10:46:25:368:757 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:46:26:365:942 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:46:27:473:380 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-14 10:46:37:370:459 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:46:37:370:963 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..e6a8eed6 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:46:41:681:918 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:46:41:688:96 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:46:42:681:882 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-14 10:46:42:686:521 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 10:46:42:687:263 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-14 10:46:43:685:155 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:46:43:794:409 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-14 10:46:53:685:415 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:46:53:685:911 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..4664cd50 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:47:30:311:800 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:47:30:319:787 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:47:31:311:705 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-14 10:47:32:314:926 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-14 10:47:32:325:752 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-14 10:47:32:755:334 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..a7aa92a1 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:46:5:72:341 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 10:46:5:79:204 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:46:6:72:275 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-14 10:46:6:80:290 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-14 10:46:7:74:572 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:46:8:83:324 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:46:9:72:666 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-14 10:46:19:77:308 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:46:19:77:777 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..5357f45e --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:46:57:912:682 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-14 10:46:57:915:664 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:46:58:912:641 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-14 10:46:58:919:94 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 10:46:59:23:910 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-14 10:46:59:913:544 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:46:59:914:83 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-14 10:47:9:917:535 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:47:9:918:128 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..e8fe235a --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:47:14:96:284 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-14 10:47:14:101:156 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:47:15:96:231 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-14 10:47:15:105:864 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 10:47:15:111:147 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-14 10:47:16:97:525 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:47:16:98:13 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-14 10:47:26:102:131 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:47:26:102:720 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..cd04ad50 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:53:56:650:574 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:53:56:657:301 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:53:57:651:492 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:53:57:654:397 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-14 10:53:58:654:186 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:53:58:662:704 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-14 10:53:59:172:403 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..f7b14559 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:54:12:993:382 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:54:12:999:90 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:54:14:3:426 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 10:54:14:6:956 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-14 10:54:24:417:399 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-14 10:54:25:505:956 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..219b1596 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:54:30:469:829 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:54:30:474:557 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:54:31:480:926 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 10:54:31:484:310 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-14 10:54:41:896:316 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-14 10:54:42:975:719 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..45ad4d0f --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:54:48:944:60 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:54:48:949:358 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:54:49:954:53 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 10:54:49:957:344 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-14 10:55:0:442:210 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-14 10:55:1:551:833 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..07b57935 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:55:5:926:404 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 10:55:5:933:316 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:55:6:937:377 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 10:55:6:942:383 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 10:55:6:946:393 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 10:55:8:945:752 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-4-14 10:55:9:663:460 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..dca4efcc --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:55:23:156:738 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 10:55:23:162:534 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:55:24:156:650 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 10:55:24:161:308 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 10:55:24:163:851 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 10:55:26:264:445 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-4-14 10:55:26:976:616 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..7fe83bbf --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:55:41:512:617 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:55:41:519:899 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:55:42:512:734 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 10:55:42:520:762 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-14 10:55:43:515:445 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:55:43:526:727 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-14 10:55:44:40:667 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..be57183c --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:55:58:769:708 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:55:58:775:842 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:55:59:771:26 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 10:55:59:774:492 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-14 10:56:0:772:138 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:56:2:876:195 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-14 10:56:3:384:335 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..c83ca4b6 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:56:17:38:304 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:56:17:44:407 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:56:18:39:508 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 10:56:18:42:940 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-14 10:56:19:40:898 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:56:19:148:6 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-14 10:56:19:654:139 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..96c65511 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:56:33:281:33 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:56:33:287:945 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:56:34:284:419 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 10:56:34:287:835 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-14 10:56:35:280:914 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-14 10:56:35:286:961 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-14 10:56:44:697:216 + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q8 failed at: 2022-4-14 10:56:45:994:228 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-14 10:56:47:91:842 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..a354afbd --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:56:52:558:533 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:56:52:565:686 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:56:53:566:806 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 10:56:53:570:81 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-14 10:56:54:574:146 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-14 10:56:56:561:369 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q6 failed at: 2022-4-14 10:57:6:113:89 + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q8 failed at: 2022-4-14 10:57:7:341:110 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-14 10:57:8:371:128 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..e3d9479a --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:51:57:384:215 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:51:57:391:542 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:51:58:384:95 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-14 10:51:59:384:644 + Q4 finished at: 2022-4-14 10:51:59:387:111 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:52:0:398:563 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-14 10:52:10:389:229 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-14 10:52:10:443:370 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:52:10:443:986 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..fe007af6 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,29 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:52:14:601:731 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:52:14:609:732 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:52:15:601:702 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-14 10:52:16:610:272 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-14 10:52:17:67:479 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_sda_full_write.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..7fac5a6c --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:52:31:789:392 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:52:31:797:713 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:52:32:790:374 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-14 10:52:33:791:918 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-14 10:52:33:811:285 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-14 10:52:34:216:520 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..34417e34 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:52:48:943:853 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:52:48:951:538 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:52:49:944:672 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-14 10:52:50:946:968 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:52:50:995:798 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-14 10:52:51:414:694 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..2065638d --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:53:40:488:464 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:53:40:495:892 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:53:41:488:543 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-14 10:53:42:491:853 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:53:42:502:222 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-14 10:53:42:916:568 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..03c7ff8f --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:53:5:142:955 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-14 10:53:5:149:893 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:53:6:143:626 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-14 10:53:6:148:504 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 10:53:8:161:803 +Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 +Q5 failed at: 2022-4-14 10:53:8:677:869 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..49bbdbf5 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:53:22:328:502 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-14 10:53:22:335:881 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:53:23:328:472 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-14 10:53:23:335:106 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:53:25:335:826 +Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 +Q5 failed at: 2022-4-14 10:53:25:843:800 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/result_summary/read-committed_total-result.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..a5e025b4 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_c2: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Timeout + +wat_mda_step_wat_c2: Timeout + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_dist/result_summary/repeatable-read_total-result.txt b/install/test_result/distributed_result/ob_mysql_test/ob_dist/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..4139416e --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_dist/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_c2: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Timeout + +wat_mda_step_wat_c2: Timeout + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..b499ad8b --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:0:45:818:968 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 12:0:45:821:136 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:0:46:818:997 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 12:0:46:821:290 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 12:0:46:822:27 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 12:0:46:827:980 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-14 12:0:47:819:534 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 12:0:47:819:958 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 12:0:57:820:432 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 12:0:57:820:878 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..58c661af --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:1:2:47:849 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 12:1:2:50:541 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:1:3:47:913 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 12:1:3:50:881 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 12:1:3:51:848 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 12:1:3:54:975 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-14 12:1:4:48:928 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 12:1:4:52:311 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 12:1:14:49:645 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 12:1:14:50:205 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_dda_write_skew.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..2833dc4e --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:1:18:383:332 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 12:1:18:385:686 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:1:19:383:115 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 12:1:19:384:258 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 12:1:19:386:145 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-14 12:1:20:383:758 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 12:1:20:387:827 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 12:1:21:386:613 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 12:1:31:384:532 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 12:1:31:385:110 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..fcf0c407 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:2:8:77:812 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 12:2:8:80:597 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:2:9:77:736 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 12:2:9:79:90 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 12:2:9:80:990 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 12:2:9:88:334 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-14 12:2:10:78:665 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 12:2:10:81:562 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 12:2:20:79:379 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 12:2:20:79:922 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..1ca25a5f --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,71 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:1:35:584:279 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-14 12:1:35:586:898 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-14 12:1:35:587:876 + Q4-T2 execute sql: 'BEGIN;' + Q4 finished at: 2022-4-14 12:1:36:584:183 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-14 12:1:36:585:703 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-14 12:1:36:586:576 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 12:1:36:595:624 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 12:1:37:588:511 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-14 12:1:47:585:94 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-14 12:1:47:585:889 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 12:1:47:586:450 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..7ccbf800 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:1:51:915:197 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-14 12:1:51:917:632 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:1:52:915:285 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-14 12:1:52:916:720 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-14 12:1:52:919:47 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 12:1:52:923:13 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-14 12:1:53:916:240 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 12:1:53:925:849 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-14 12:2:3:916:984 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 12:2:3:917:561 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_mda_step_iat.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..e65dede1 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:2:24:402:635 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-14 12:2:24:405:25 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:2:25:402:601 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-14 12:2:25:404:556 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-14 12:2:26:402:630 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-14 12:2:26:403:740 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-14 12:2:27:404:425 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-14 12:2:28:403:448 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-14 12:2:29:403:488 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-14 12:2:30:411:831 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 12:2:31:411:913 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 12:2:32:412:168 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-14 12:2:42:404:771 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 12:2:42:405:328 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..48a74437 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:4:7:523:824 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 12:4:7:526:396 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:4:8:523:748 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-14 12:4:8:526:68 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 12:4:8:529:279 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-14 12:4:9:524:4 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-14 12:4:9:525:577 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-14 12:4:9:526:417 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 12:4:9:529:69 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-14 12:4:10:524:788 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-14 12:4:10:525:471 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-14 12:4:20:525:485 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-14 12:4:20:526:109 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..c85582c1 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,206 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:3:48:379:707 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 12:3:48:382:263 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:3:49:379:709 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 12:3:49:381:121 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-14 12:3:50:379:736 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-14 12:3:50:382:61 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 12:3:50:386:762 + Q8-T4 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-14 12:3:51:379:823 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-14 12:3:51:381:257 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 12:3:51:384:788 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-14 12:3:52:380:707 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 12:3:52:381:295 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-14 12:3:53:380:728 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-14 12:3:53:381:222 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-14 12:4:3:382:705 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-14 12:4:3:383:255 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..f8fe2cdf --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:2:46:566:707 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-14 12:2:46:569:96 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:2:47:566:687 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-14 12:2:47:568:340 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-14 12:2:48:566:727 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-14 12:2:48:568:456 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-14 12:2:49:568:573 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-14 12:2:50:567:697 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-14 12:2:51:567:650 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-14 12:2:52:569:933 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 12:2:53:569:939 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 12:2:54:570:3 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-14 12:3:4:570:531 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 12:3:4:571:167 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..91eb9732 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:3:8:804:622 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-14 12:3:8:810:675 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:3:9:804:512 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-14 12:3:9:806:972 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-14 12:3:10:804:534 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-14 12:3:10:805:689 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-14 12:3:11:807:321 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-14 12:3:12:806:257 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-14 12:3:13:805:473 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-14 12:3:14:808:882 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 12:3:15:809:862 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 12:3:16:819:686 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-14 12:3:26:806:341 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 12:3:26:806:862 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..dbc1d04c --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,139 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:4:24:878:994 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-14 12:4:24:881:389 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-14 12:4:24:883:307 + Q4-T2 execute sql: 'BEGIN;' + Q4 finished at: 2022-4-14 12:4:25:878:914 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-14 12:4:25:880:337 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-14 12:4:25:882:153 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 12:4:25:886:766 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-14 12:4:26:878:917 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-14 12:4:26:880:212 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-14 12:4:26:880:967 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 12:4:26:881:495 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-14 12:4:27:879:644 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-14 12:4:27:886:689 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-14 12:4:37:880:489 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-14 12:4:37:881:76 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..6e462aa6 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,161 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:3:31:58:664 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-14 12:3:31:61:53 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:3:32:58:674 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-14 12:3:32:60:221 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 12:3:32:62:28 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-14 12:3:32:63:138 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-14 12:3:32:64:132 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 12:3:32:67:124 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-4-14 12:3:33:58:772 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-14 12:3:33:60:531 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-14 12:3:33:61:600 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-14 12:3:33:62:480 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-14 12:3:33:63:230 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 12:3:33:77:843 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-14 12:3:34:59:742 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-14 12:3:34:60:341 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-14 12:3:44:60:628 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-14 12:3:44:61:245 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..ae1be79b --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:0:29:567:143 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-14 12:0:29:571:861 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:0:30:567:126 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-14 12:0:30:569:976 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 12:0:30:573:260 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-14 12:0:31:570:61 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 12:0:31:576:836 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-14 12:0:41:568:733 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 12:0:41:569:292 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..7a79c139 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:0:13:442:806 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 12:0:13:445:167 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:0:14:442:708 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-14 12:0:14:445:733 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 12:0:14:449:506 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-14 12:0:15:443:359 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 12:0:15:443:793 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-14 12:0:25:448:233 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 12:0:25:448:818 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 12:0:25:449:346 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..ea0c05c7 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:9:53:952:670 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:9:53:955:330 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:9:54:952:660 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:9:54:954:76 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-14 10:9:54:955:995 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 10:9:56:960:488 +Q6 finished at: 2022-4-14 10:9:56:960:792 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:9:57:956:494 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-14 10:10:7:954:61 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:10:7:954:538 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..23c4a84f --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:10:12:103:666 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:10:12:106:459 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:10:13:103:665 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:10:13:106:122 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-14 10:10:13:107:863 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:10:13:113:9 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-14 10:10:14:104:939 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:10:14:113:453 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-14 10:10:24:105:730 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:10:24:106:339 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..92917f1c --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:10:28:417:896 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:10:28:420:490 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:10:29:417:807 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:10:29:419:187 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-14 10:10:30:419:424 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:10:30:427:120 + Q5 finished at: 2022-4-14 10:10:30:427:452 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 10:10:31:423:928 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:10:41:419:223 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:10:41:419:678 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_read_skew.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..905c4a5a --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:10:45:547:624 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 10:10:45:550:439 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:10:46:547:561 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:10:46:550:232 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 10:10:46:551:79 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-14 10:10:47:548:626 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 10:10:48:553:989 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:10:49:548:26 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:10:59:549:313 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:10:59:549:868 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_read_skew2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..2ffcf684 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:11:36:253:604 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:11:36:255:846 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:11:37:253:545 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 10:11:37:255:782 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-14 10:11:37:256:548 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-14 10:11:38:254:316 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:11:38:259:412 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 10:11:39:253:890 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:11:49:255:153 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:11:49:255:711 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..5bbaf0fe --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:11:53:410:752 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:11:53:413:592 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:11:54:410:768 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 10:11:54:413:239 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-14 10:11:54:414:94 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:11:54:414:652 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-14 10:11:55:411:662 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:11:55:414:977 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:12:5:412:598 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:12:5:413:229 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..1e5dc081 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:11:3:905:828 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-14 10:11:3:908:319 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:11:4:905:752 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:11:4:907:877 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-14 10:11:4:908:663 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:11:4:912:279 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-14 10:11:5:906:375 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:11:5:906:850 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-14 10:11:15:907:288 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:11:15:907:799 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..0df868fc --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:11:20:27:827 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-14 10:11:20:34:790 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:11:21:27:810 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-14 10:11:21:31:762 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-14 10:11:21:33:423 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:11:21:38:270 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-14 10:11:22:37:502 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:11:22:39:314 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-14 10:11:32:29:645 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:11:32:30:466 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..269ae57c --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:9:19:396:903 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:9:19:399:361 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:9:20:396:853 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:9:20:398:115 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-14 10:9:20:399:828 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-14 10:9:21:397:646 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 10:9:22:403:177 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:9:23:404:126 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:9:33:398:760 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:9:33:399:408 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..53bd3fa5 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:9:37:598:976 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:9:37:602:69 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:9:38:598:913 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:9:38:600:818 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-14 10:9:38:602:579 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:9:38:608:905 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-14 10:9:39:599:861 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:9:39:603:214 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:9:49:600:678 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:9:49:601:184 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_mda_step_rat.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..ecca012a --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:12:9:737:701 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:12:9:740:150 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:12:10:737:682 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:12:10:739:259 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-14 10:12:10:741:492 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-14 10:12:11:737:665 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-14 10:12:11:739:23 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-14 10:12:11:739:945 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-14 10:12:12:738:706 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-14 10:12:12:741:932 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 10:12:13:740:227 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 10:12:14:743:88 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-14 10:12:24:739:734 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 10:12:24:740:447 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..70970148 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,208 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN;' + Q1 finished at: 2022-4-14 10:12:29:51:440 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-14 10:12:29:54:759 +Q3-T1 execute sql: 'BEGIN;' +Q3 finished at: 2022-4-14 10:12:30:51:377 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-14 10:12:30:53:893 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-14 10:12:31:51:466 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-14 10:12:31:52:981 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-14 10:12:31:53:828 + Q8-T2 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-14 10:12:32:51:434 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-14 10:12:32:52:748 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-14 10:12:33:52:441 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-14 10:12:34:55:150 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 10:12:35:55:135 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-14 10:12:36:51:785 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 10:12:46:51:920 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-14 10:12:46:53:917 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-14 10:12:46:54:424 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..14a4ab80 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:12:50:182:876 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:12:50:185:254 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:12:51:182:903 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:12:51:184:457 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-14 10:12:51:186:552 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-14 10:12:52:182:898 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-14 10:12:52:184:417 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-14 10:12:52:185:406 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-14 10:12:53:183:758 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-14 10:12:53:192:831 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 10:12:54:187:594 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 10:12:55:185:956 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-14 10:13:5:184:856 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 10:13:5:185:589 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..5f5ea642 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:13:9:506:514 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-14 10:13:9:512:281 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:13:10:506:555 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-14 10:13:10:508:704 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-14 10:13:10:512:508 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-14 10:13:11:506:535 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-14 10:13:11:507:744 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-14 10:13:11:508:638 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-14 10:13:12:508:333 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-14 10:13:12:516:31 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 10:13:13:510:911 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 10:13:14:510:459 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-14 10:13:24:508:255 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 10:13:24:508:864 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_sda_dirty_read.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..8ab47568 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,46 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:7:19:703:736 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:7:19:706:389 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:7:20:703:580 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-14 10:7:20:707:753 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-14 10:7:21:704:115 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:7:22:704:127 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-14 10:7:32:705:314 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 10:7:32:705:896 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..4fb9bca2 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:7:55:277:319 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:7:55:282:697 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:7:56:277:307 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-14 10:7:56:279:734 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-14 10:7:57:279:662 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:7:58:277:786 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:7:59:281:423 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-14 10:8:9:278:690 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:8:9:279:260 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..6fd0012e --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:8:13:516:43 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:8:13:520:780 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:8:14:516:59 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-14 10:8:14:518:421 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 10:8:14:518:937 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-14 10:8:15:517:623 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:8:15:522:9 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-14 10:8:25:517:538 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:8:25:517:990 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..b6525bb3 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:9:2:135:424 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:9:2:140:234 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:9:3:135:574 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-14 10:9:4:139:706 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-14 10:9:4:144:618 + Q4 finished at: 2022-4-14 10:9:4:147:626 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 10:9:5:138:655 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-14 10:9:15:137:645 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:9:15:138:358 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..9a1b60fe --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:7:37:36:823 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 10:7:37:40:869 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:7:38:36:807 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-14 10:7:38:39:160 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-14 10:7:39:38:185 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:7:40:44:618 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:7:41:37:283 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-14 10:7:51:39:473 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:7:51:39:979 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..aceae760 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,57 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:8:29:795:219 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-14 10:8:29:800:39 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:8:30:795:159 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-14 10:8:30:797:795 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 10:8:30:803:286 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-14 10:8:31:802:31 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:8:31:802:638 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-14 10:8:41:796:868 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:8:41:797:465 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..2f8c2821 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,56 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:8:45:898:5 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-14 10:8:45:905:452 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:8:46:897:945 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-14 10:8:46:901:794 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 10:8:46:906:162 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-14 10:8:47:899:582 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:8:47:900:241 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-14 10:8:57:899:391 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:8:57:899:869 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..e48ca825 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:15:28:452:50 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:15:28:454:378 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:15:29:452:63 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 10:15:29:453:323 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-14 10:15:30:453:704 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:15:30:457:826 + Q5 finished at: 2022-4-14 10:15:30:458:113 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:15:30:461:317 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:15:40:453:571 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:15:40:454:145 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..6ab8f703 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:15:44:597:575 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:15:44:600:559 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:15:45:597:560 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 10:15:45:599:225 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-14 10:15:56:4:804 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-14 10:15:57:101:529 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..716a64ba --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:16:1:933:979 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:16:1:936:454 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:16:2:936:688 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 10:16:2:939:218 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-14 10:16:13:410:796 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-14 10:16:14:444:91 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..24160c50 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:16:20:58:626 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:16:20:61:312 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:16:21:63:164 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 10:16:21:64:258 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-14 10:16:31:467:726 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-14 10:16:32:664:829 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..09425f00 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:16:37:15:0 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 10:16:37:17:452 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:16:38:17:885 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 10:16:38:21:835 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 10:16:38:23:590 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 10:16:40:19:897 +Q6 finished at: 2022-4-14 10:16:40:23:628 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:16:40:27:789 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:16:50:16:490 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:16:50:17:45 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..c1e1e7a9 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:16:54:158:939 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 10:16:54:161:755 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:16:55:158:906 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 10:16:55:161:412 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 10:16:55:162:283 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 10:16:57:162:46 +Q6 finished at: 2022-4-14 10:16:57:162:410 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:16:58:176:252 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:17:8:160:627 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:17:8:161:376 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..0140c1b9 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:17:12:504:32 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:17:12:506:595 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:17:13:503:984 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 10:17:13:506:43 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-14 10:17:14:504:788 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:17:14:514:878 + Q5 finished at: 2022-4-14 10:17:14:515:112 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 10:17:15:508:69 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:17:25:505:749 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:17:25:506:321 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..ebfed6c7 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:17:29:674:914 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:17:29:677:684 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:17:30:674:942 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 10:17:30:677:383 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-14 10:17:31:675:648 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:17:33:679:148 + Q5 finished at: 2022-4-14 10:17:33:679:462 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 10:17:33:682:49 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:17:43:676:555 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:17:43:677:189 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..0983dce7 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:17:48:16:132 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:17:48:18:603 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:17:49:16:145 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 10:17:49:18:267 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-14 10:17:50:17:16 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 10:17:50:22:490 + Q5 finished at: 2022-4-14 10:17:50:22:758 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:17:50:33:219 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 10:18:0:17:787 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 10:18:0:18:474 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..afa406cb --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:18:4:213:61 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:18:4:215:483 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:18:5:213:103 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 10:18:5:214:494 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-14 10:18:6:213:125 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-14 10:18:6:214:829 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-14 10:18:15:619:842 + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q8 failed at: 2022-4-14 10:18:16:920:867 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-14 10:18:18:20:416 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..d00c82d6 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:18:23:545:147 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:18:23:547:509 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:18:24:557:647 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 10:18:24:562:599 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-14 10:18:25:564:123 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-14 10:18:27:547:2 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q6 failed at: 2022-4-14 10:18:37:49:857 + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q8 failed at: 2022-4-14 10:18:38:294:503 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-14 10:18:39:346:741 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..e64ae3a0 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:13:28:736:745 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:13:28:741:802 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:13:29:736:665 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-14 10:13:30:737:190 + Q4 finished at: 2022-4-14 10:13:30:737:907 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:13:31:739:877 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-14 10:13:41:738:513 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-14 10:13:41:768:14 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:13:41:869:56 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..a379737d --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:13:46:54:415 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:13:46:58:848 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:13:47:54:340 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-14 10:13:48:58:738 + Q4 finished at: 2022-4-14 10:13:48:61:750 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:13:49:58:753 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-14 10:13:59:56:90 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-14 10:13:59:95:322 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:13:59:95:954 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_sda_full_write.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..a7e5c558 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_sda_full_write.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:14:3:277:292 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:14:3:282:633 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:14:4:277:340 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-14 10:14:5:279:694 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-14 10:14:5:284:167 + Q4 finished at: 2022-4-14 10:14:5:287:335 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 10:14:6:281:55 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-14 10:14:16:279:446 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:14:16:280:172 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..6912bb32 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:14:20:517:834 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:14:20:522:209 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:14:21:517:822 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-14 10:14:22:519:327 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:14:22:530:583 + Q4 finished at: 2022-4-14 10:14:22:536:99 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 10:14:22:546:739 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-14 10:14:32:519:259 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:14:32:519:844 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..3d3c4c52 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:15:12:216:23 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-14 10:15:12:220:987 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:15:13:216:77 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-14 10:15:14:219:978 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:15:14:223:920 + Q4 finished at: 2022-4-14 10:15:14:225:965 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 10:15:14:228:442 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-14 10:15:24:217:755 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:15:24:218:396 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..828f2e63 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:14:36:748:857 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-14 10:14:36:753:730 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:14:37:748:977 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-14 10:14:37:751:787 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 10:14:39:753:48 +Q5 finished at: 2022-4-14 10:14:39:817:85 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-14 10:14:39:820:945 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-14 10:14:49:750:811 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:14:49:751:445 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..5dfa7034 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 10:14:53:980:8 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-14 10:14:53:984:249 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 10:14:54:980:22 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-14 10:14:54:982:782 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 10:14:56:984:626 +Q5 finished at: 2022-4-14 10:14:57:57:467 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 10:14:57:988:210 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-14 10:15:7:981:564 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 10:15:7:982:124 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..e78d00e0 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:50:31:782:889 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 12:50:31:785:404 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:50:32:782:904 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-14 12:50:32:785:655 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 12:50:32:786:594 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 12:50:32:789:888 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-14 12:50:33:783:735 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 12:50:33:784:258 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 12:50:43:784:465 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 12:50:43:785:42 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..d6cfa159 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:50:48:79:476 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 12:50:48:82:485 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:50:49:79:449 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-14 12:50:49:82:334 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 12:50:49:83:164 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 12:50:49:89:237 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-4-14 12:50:50:780:659 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_dda_write_skew.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..f05c386d --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:51:4:219:633 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 12:51:4:222:260 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:51:5:219:578 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 12:51:5:221:12 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 12:51:5:222:959 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-14 12:51:6:220:571 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 12:51:6:223:693 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 12:51:7:225:214 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 12:51:17:221:223 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 12:51:17:221:763 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..6349bf11 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:51:54:108:208 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 12:51:54:111:12 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:51:55:108:224 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 12:51:55:109:975 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 12:51:55:111:826 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 12:51:55:115:674 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-14 12:51:56:109:18 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 12:51:56:113:34 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-14 12:52:6:110:245 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 12:52:6:110:840 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..d855eb0a --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,71 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:51:21:601:166 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-14 12:51:21:604:18 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-14 12:51:21:604:837 + Q4-T2 execute sql: 'BEGIN;' + Q4 finished at: 2022-4-14 12:51:22:601:77 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-14 12:51:22:602:935 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-14 12:51:22:603:796 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 12:51:22:608:760 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 12:51:23:605:502 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-14 12:51:33:603:271 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-14 12:51:33:604:902 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 12:51:33:605:389 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..a7df94e2 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:51:37:765:292 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-14 12:51:37:767:935 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:51:38:765:303 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-14 12:51:38:766:844 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-14 12:51:38:768:929 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-14 12:51:38:772:255 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-14 12:51:39:766:377 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-14 12:51:39:769:320 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-14 12:51:49:766:832 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 12:51:49:767:393 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_mda_step_iat.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..e54f105c --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:52:10:264:316 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-14 12:52:10:266:563 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:52:11:264:305 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-14 12:52:11:265:855 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-14 12:52:12:264:359 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-14 12:52:12:265:787 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-14 12:52:13:266:253 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-14 12:52:14:265:371 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-14 12:52:15:265:476 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-14 12:52:16:271:9 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 12:52:17:267:619 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 12:52:18:269:303 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-14 12:52:28:266:410 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 12:52:28:267:109 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..42ac2cad --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,107 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:53:53:442:707 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 12:53:53:445:546 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:53:54:442:681 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-14 12:53:54:445:441 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 12:53:54:450:720 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-14 12:53:55:442:721 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-14 12:53:55:444:515 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-14 12:53:55:445:375 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 12:53:55:453:721 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-14 12:53:56:443:504 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-14 12:53:56:443:980 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-14 12:54:6:445:10 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-14 12:54:6:445:546 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..d4130e38 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,208 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:53:34:105:103 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 12:53:34:108:400 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:53:35:104:995 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-14 12:53:35:106:767 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-14 12:53:36:105:14 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-14 12:53:36:107:496 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 12:53:36:111:262 + Q8-T4 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-14 12:53:37:105:4 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-14 12:53:37:106:521 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 12:53:37:109:636 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-14 12:53:38:105:941 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 12:53:38:106:516 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-14 12:53:39:106:172 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-14 12:53:39:106:748 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-14 12:53:49:108:579 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-14 12:53:49:109:210 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..55acd404 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:52:32:587:897 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-14 12:52:32:590:926 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:52:33:587:809 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-14 12:52:33:589:614 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-14 12:52:34:587:926 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-14 12:52:34:591:513 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-14 12:52:35:589:620 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-14 12:52:36:588:465 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-14 12:52:37:588:542 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-14 12:52:38:591:548 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 12:52:39:591:689 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 12:52:40:591:497 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-14 12:52:50:590:826 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 12:52:50:591:344 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..6bcacca5 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:52:54:711:136 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-14 12:52:54:717:557 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:52:55:711:157 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-14 12:52:55:713:785 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-14 12:52:56:711:189 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-14 12:52:56:712:711 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-14 12:52:57:714:158 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-14 12:52:58:712:550 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-14 12:52:59:712:231 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-14 12:53:0:716:813 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 12:53:1:717:69 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-14 12:53:2:714:941 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-14 12:53:12:713:418 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 12:53:12:714:127 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..ff9a25fa --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,139 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:54:10:654:276 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-14 12:54:10:656:768 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-14 12:54:10:657:677 + Q4-T2 execute sql: 'BEGIN;' + Q4 finished at: 2022-4-14 12:54:11:654:407 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-14 12:54:11:656:107 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-14 12:54:11:658:114 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-14 12:54:11:661:216 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-14 12:54:12:654:395 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-14 12:54:12:656:78 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-14 12:54:12:656:972 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-14 12:54:12:657:605 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-14 12:54:13:655:336 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-14 12:54:13:660:443 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-14 12:54:23:656:154 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-14 12:54:23:656:872 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..7381bf31 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,163 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:53:16:950:831 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-14 12:53:16:953:649 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:53:17:950:910 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-14 12:53:17:952:976 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-14 12:53:17:955:73 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-14 12:53:17:956:25 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-14 12:53:17:956:832 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-14 12:53:17:960:482 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-4-14 12:53:18:950:884 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-14 12:53:18:952:736 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-14 12:53:18:953:470 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-14 12:53:18:954:288 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-14 12:53:18:954:981 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-14 12:53:18:958:603 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-14 12:53:19:951:582 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-14 12:53:19:952:44 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-14 12:53:29:953:187 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-14 12:53:29:953:760 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..377ffc78 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:50:15:551:928 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-14 12:50:15:555:931 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:50:16:551:848 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-14 12:50:16:555:392 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 12:50:16:558:949 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-4-14 12:50:18:155:381 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..75e80e1e --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,61 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-14 12:49:59:312:183 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-14 12:49:59:317:23 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-14 12:50:0:312:223 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-14 12:50:0:314:818 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-14 12:50:0:318:28 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-14 12:50:1:314:150 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-14 12:50:1:314:586 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-14 12:50:11:314:59 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-14 12:50:11:314:641 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-14 12:50:11:315:163 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..7a95bf0e --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 20:58:25:937:783 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 20:58:25:941:166 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 20:58:26:937:780 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-13 20:58:26:939:637 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-13 20:58:26:941:399 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-13 20:58:28:941:254 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-4-13 20:58:29:542:129 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..cc709fdc --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 20:58:44:86:991 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 20:58:44:89:751 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 20:58:45:87:15 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-13 20:58:45:88:668 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-13 20:58:45:90:498 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-13 20:58:45:98:318 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-4-13 20:58:46:788:324 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..0599aac4 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 20:59:0:423:83 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 20:59:0:426:148 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 20:59:1:423:78 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-13 20:59:1:424:917 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-13 20:59:2:424:898 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-13 20:59:2:430:407 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-13 20:59:2:931:274 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_read_skew.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..bc6dc8b6 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 20:59:17:609:776 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-13 20:59:17:612:591 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 20:59:18:626:864 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-13 20:59:18:630:795 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-13 20:59:18:631:949 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-13 20:59:19:610:682 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-13 20:59:20:613:442 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-13 20:59:21:610:268 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-13 20:59:31:611:503 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-13 20:59:31:612:85 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_read_skew2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..df6f7cc1 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:0:8:364:222 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 21:0:8:367:187 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:0:9:364:257 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-13 21:0:9:367:79 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-13 21:0:9:367:807 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-13 21:0:10:365:23 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-13 21:0:10:372:22 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-13 21:0:11:364:602 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-13 21:0:21:366:386 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-13 21:0:21:367:66 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..1a320679 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:0:25:517:922 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 21:0:25:520:715 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:0:26:517:842 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-13 21:0:26:520:77 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-13 21:0:26:520:805 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-13 21:0:26:521:298 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-13 21:0:27:518:939 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-13 21:0:27:521:884 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-13 21:0:37:519:678 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-13 21:0:37:520:435 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..c04c03bc --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 20:59:35:934:937 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-13 20:59:35:937:845 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 20:59:36:934:954 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-13 20:59:36:937:766 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-13 20:59:36:938:471 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-13 20:59:36:942:309 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-13 20:59:37:935:650 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-13 20:59:37:936:136 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-13 20:59:47:937:112 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-13 20:59:47:937:704 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..78cfb2a5 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 20:59:52:54:981 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-13 20:59:52:61:331 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 20:59:53:55:20 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-13 20:59:53:60:369 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-13 20:59:53:61:600 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-13 20:59:53:65:615 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-13 20:59:54:56:377 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-13 20:59:54:56:921 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-13 21:0:4:56:797 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-13 21:0:4:57:430 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..26623b6d --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 20:57:51:451:226 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 20:57:51:454:228 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 20:57:52:451:970 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-13 20:57:52:454:698 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-13 20:57:52:457:592 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-13 20:57:53:451:859 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-13 20:57:54:459:760 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-13 20:57:55:456:621 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-13 20:58:5:453:420 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-13 20:58:5:454:99 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..8bf3b6f8 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 20:58:9:605:698 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 20:58:9:608:687 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 20:58:10:605:653 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-13 20:58:10:607:276 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-13 20:58:10:609:136 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-13 20:58:10:615:272 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-13 20:58:11:606:551 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-13 20:58:11:610:179 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-13 20:58:21:607:154 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-13 20:58:21:607:688 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_mda_step_rat.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..7516f5e8 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:0:41:850:886 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 21:0:41:853:751 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:0:42:850:817 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-13 21:0:42:852:714 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-13 21:0:42:854:514 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-13 21:0:43:850:822 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-13 21:0:43:852:625 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-13 21:0:43:853:464 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-13 21:0:44:851:541 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-13 21:0:44:855:139 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-13 21:0:45:854:918 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-13 21:0:46:855:395 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-13 21:0:56:852:954 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-13 21:0:56:853:606 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..e6413a0e --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,208 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN;' + Q1 finished at: 2022-4-13 21:1:1:37:84 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-13 21:1:1:41:861 +Q3-T1 execute sql: 'BEGIN;' +Q3 finished at: 2022-4-13 21:1:2:37:29 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-13 21:1:2:39:882 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-13 21:1:3:37:65 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-13 21:1:3:38:843 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-13 21:1:3:39:790 + Q8-T2 execute sql: 'BEGIN;' + Q8 finished at: 2022-4-13 21:1:4:37:118 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-13 21:1:4:38:717 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-13 21:1:5:38:228 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-13 21:1:6:40:946 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-13 21:1:7:44:847 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-13 21:1:8:37:662 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-13 21:1:18:37:794 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-13 21:1:18:39:711 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-13 21:1:18:40:241 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..c92fbb2c --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:1:22:376:782 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-13 21:1:22:379:455 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:1:23:376:769 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-13 21:1:23:378:535 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-13 21:1:23:380:370 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-13 21:1:24:376:780 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-13 21:1:24:378:540 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-13 21:1:24:379:406 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-13 21:1:25:377:541 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-13 21:1:25:382:438 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-13 21:1:26:383:653 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-13 21:1:27:380:260 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-13 21:1:37:379:160 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-13 21:1:37:379:793 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..c9b47ceb --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:1:41:522:45 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-13 21:1:41:528:565 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:1:42:522:95 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-13 21:1:42:524:815 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-13 21:1:42:528:82 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-13 21:1:43:522:31 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-13 21:1:43:523:536 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-13 21:1:43:524:563 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-13 21:1:44:523:941 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-13 21:1:44:532:14 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-13 21:1:45:528:919 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-13 21:1:46:525:700 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-13 21:1:56:523:898 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-13 21:1:56:524:474 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_sda_dirty_read.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..a38d9968 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,46 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 20:55:51:810:653 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 20:55:51:813:180 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 20:55:52:810:620 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-13 20:55:52:813:171 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-13 20:55:53:811:192 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-13 20:55:54:811:331 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-13 20:56:4:812:545 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-13 20:56:4:813:152 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..5bbfc43d --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 20:56:27:431:375 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 20:56:27:436:347 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 20:56:28:431:399 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-13 20:56:28:433:751 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-13 20:56:29:433:206 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-13 20:56:30:431:831 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-13 20:56:31:436:357 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-13 20:56:41:433:58 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-13 20:56:41:433:597 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..79f8174a --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 20:56:45:641:748 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 20:56:45:645:982 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 20:56:46:641:705 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-13 20:56:46:644:251 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-13 20:56:46:644:774 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-13 20:56:47:643:276 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-13 20:56:47:650:779 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-13 20:56:57:643:724 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-13 20:56:57:644:262 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..b6d5848b --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 20:57:34:211:552 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 20:57:34:216:918 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 20:57:35:211:543 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-13 20:57:36:214:875 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-13 20:57:36:222:73 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-13 20:57:36:631:668 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..7cc2b19d --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 20:56:9:127:817 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-13 20:56:9:131:915 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 20:56:10:127:808 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-13 20:56:10:131:501 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-13 20:56:11:129:656 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-13 20:56:12:136:631 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-13 20:56:13:128:403 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-13 20:56:23:130:666 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-13 20:56:23:131:160 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..ad196ef8 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 20:57:1:857:888 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-13 20:57:1:862:497 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 20:57:2:857:936 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-13 20:57:2:860:285 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-13 20:57:2:863:782 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-13 20:57:3:859:498 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-13 20:57:3:859:987 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-13 20:57:13:859:377 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-13 20:57:13:859:909 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..cef7e6c6 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 20:57:17:969:13 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-13 20:57:17:975:122 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 20:57:18:969:44 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-13 20:57:18:972:673 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-13 20:57:18:976:900 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-13 20:57:19:970:525 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-13 20:57:19:971:140 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-13 20:57:29:971:237 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-13 20:57:29:971:734 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..c286fa11 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:4:0:303:273 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 21:4:0:305:938 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:4:1:304:306 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-13 21:4:1:307:218 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-13 21:4:2:304:974 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-13 21:4:2:313:67 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-13 21:4:2:908:635 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..64fffefd --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:4:16:617:583 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 21:4:16:620:808 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:4:17:626:843 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-13 21:4:17:627:917 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-13 21:4:28:32:210 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-13 21:4:29:129:371 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..a61d60d7 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:4:33:766:855 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 21:4:33:769:772 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:4:34:771:561 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-13 21:4:34:774:753 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-13 21:4:45:256:739 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-13 21:4:46:269:137 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..7625f1b6 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:4:52:106:696 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 21:4:52:109:713 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:4:53:110:936 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-13 21:4:53:111:865 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-13 21:5:3:516:595 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-13 21:5:4:713:916 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..d5e1fc66 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:5:8:853:689 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-13 21:5:8:856:275 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:5:9:858:651 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-13 21:5:9:862:507 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-13 21:5:9:863:802 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-13 21:5:11:858:865 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-4-13 21:5:12:462:402 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..46e4eb48 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:5:26:196:213 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-13 21:5:26:198:990 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:5:27:196:222 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-13 21:5:27:199:7 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-13 21:5:27:199:815 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-13 21:5:29:202:782 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-4-13 21:5:29:803:538 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..ab511767 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:5:44:381:806 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 21:5:44:384:656 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:5:45:381:790 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-13 21:5:45:384:158 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-13 21:5:46:382:711 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-13 21:5:46:385:900 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-13 21:5:46:886:841 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..14b171e8 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:6:1:711:505 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 21:6:1:714:632 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:6:2:712:348 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-13 21:6:2:715:953 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-13 21:6:3:712:69 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-13 21:6:5:716:516 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-13 21:6:6:240:784 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..d3c7e5af --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:6:19:847:731 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 21:6:19:850:477 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:6:20:848:443 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-13 21:6:20:850:375 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-13 21:6:21:848:612 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-13 21:6:21:853:121 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-4-13 21:6:22:353:894 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..8b74d7f8 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:6:36:180:235 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 21:6:36:183:202 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:6:37:181:89 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-13 21:6:37:183:714 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-4-13 21:6:38:180:261 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-13 21:6:38:181:958 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-13 21:6:47:616:276 + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q8 failed at: 2022-4-13 21:6:48:893:498 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-13 21:6:49:991:34 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..3130346e --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:6:55:382:139 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 21:6:55:384:655 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:6:56:388:698 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-13 21:6:56:389:848 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-4-13 21:6:57:386:292 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-13 21:6:59:385:104 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q6 failed at: 2022-4-13 21:7:8:890:174 + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q8 failed at: 2022-4-13 21:7:10:89:876 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-13 21:7:11:185:123 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..abb97f92 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:2:0:746:474 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 21:2:0:751:292 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:2:1:746:500 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-13 21:2:2:747:191 + Q4 finished at: 2022-4-13 21:2:2:747:872 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-13 21:2:3:760:363 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-13 21:2:13:748:968 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-13 21:2:13:777:878 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-13 21:2:13:778:569 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..f334319f --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,29 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:2:17:883:649 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 21:2:17:888:427 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:2:18:883:626 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-13 21:2:19:888:2 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-13 21:2:20:292:99 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_sda_full_write.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..8b31a1a9 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:2:35:107:500 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 21:2:35:112:30 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:2:36:108:531 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-13 21:2:37:108:892 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-13 21:2:37:117:609 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-13 21:2:37:606:744 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..35cb65d6 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:2:52:328:581 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 21:2:52:333:703 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:2:53:329:213 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-13 21:2:54:330:220 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-13 21:2:54:334:230 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-13 21:2:54:745:862 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..e1366688 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:3:44:68:665 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-13 21:3:44:72:845 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:3:45:68:643 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-13 21:3:46:72:143 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-13 21:3:46:76:561 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-4-13 21:3:46:479:573 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..2fa46f09 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:3:8:559:948 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-13 21:3:8:563:916 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:3:9:560:607 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-13 21:3:9:564:179 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-13 21:3:11:564:96 +Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 +Q5 failed at: 2022-4-13 21:3:12:162:410 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..86fce082 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-4-13 21:3:25:822:305 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-13 21:3:25:827:79 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-4-13 21:3:26:822:330 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-13 21:3:26:824:777 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-13 21:3:28:826:178 +Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction errcode: HY000 +Q5 failed at: 2022-4-13 21:3:29:424:653 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.25]can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/result_summary/read-committed_total-result.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..a5e025b4 --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_c2: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Timeout + +wat_mda_step_wat_c2: Timeout + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/ob_mysql_test/ob_single/result_summary/repeatable-read_total-result.txt b/install/test_result/distributed_result/ob_mysql_test/ob_single/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..4139416e --- /dev/null +++ b/install/test_result/distributed_result/ob_mysql_test/ob_single/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_c2: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Timeout + +wat_mda_step_wat_c2: Timeout + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..f407cc73 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,72 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:9:16:692:937 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:9:17:693:497 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q3 finished at: 2022-3-30 16:9:18:742:65 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 16:9:19:720:608 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-3-30 16:9:19:783:540 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 16:9:19:947:110 +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,1) + (1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,1) + +Q7 finished at: 2022-3-30 16:9:20:739:339 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 16:9:20:780:294 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 16:9:30:695:541 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 16:9:30:784:688 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 16:9:30:874:945 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 16:9:30:917:680 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..e2edfe83 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,65 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:11:18:112:744 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:11:19:110:84 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q3 finished at: 2022-3-30 16:11:20:163:124 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-3-30 16:11:21:114:585 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-3-30 16:11:21:157:801 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 16:11:21:200:380 +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-3-30 16:11:22:114:528 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 16:11:22:160:241 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 16:11:32:110:97 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 16:11:32:197:70 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + (1) expected_result: + (1,3,1,2) + (2) expected_result: + (1,3,1,2) + + Q11 finished at: 2022-3-30 16:11:32:282:303 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 16:11:32:322:857 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_dda_write_skew.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..cf1472c9 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,72 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:11:47:897:436 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:11:48:895:736 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q3 finished at: 2022-3-30 16:11:49:941:431 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-3-30 16:11:50:965:288 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-3-30 16:11:51:24:789 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-3-30 16:11:51:901:768 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 16:11:51:942:149 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 16:11:52:905:874 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 16:12:2:900:621 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 16:12:2:987:844 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 16:12:3:75:121 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 16:12:3:117:102 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..a0849f55 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,72 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:14:20:404:160 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:14:21:405:265 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q3 finished at: 2022-3-30 16:14:22:450:319 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-3-30 16:14:23:468:686 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-3-30 16:14:23:527:581 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 16:14:23:574:228 +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-3-30 16:14:24:409:52 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 16:14:24:452:18 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 16:14:34:401:315 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 16:14:34:480:502 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 16:14:34:558:881 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 16:14:34:596:446 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..29975a26 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:12:18:322:417 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:12:19:320:407 +Q3-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q3 finished at: 2022-3-30 16:12:20:368:270 +Q4-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q4 finished at: 2022-3-30 16:12:20:410:766 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-3-30 16:12:21:366:318 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-3-30 16:12:21:408:66 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 16:12:21:451:403 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 16:12:22:323:521 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 16:12:32:316:328 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-3-30 16:12:32:393:238 + Q11-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q11 finished at: 2022-3-30 16:12:32:468:683 + Q12-T3 execute sql: 'DROP TABLE mytab;' + Q12 finished at: 2022-3-30 16:12:32:523:609 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-3-30 16:12:32:560:888 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..d7f378ea --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:13:51:941:987 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:13:52:947:608 +Q3-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q3 finished at: 2022-3-30 16:13:53:984:216 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-3-30 16:13:54:983:928 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-3-30 16:13:55:25:518 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 16:13:55:66:349 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-3-30 16:13:55:944:38 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 16:13:55:984:202 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 16:14:5:940:438 + Q10-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q10 finished at: 2022-3-30 16:14:6:16:65 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 16:14:6:51:933 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_mda_step_iat.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..a556cd05 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,128 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:14:48:605:574 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:14:49:611:924 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 16:14:50:607:844 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + (2,0,2,1) + (5) expected_result: + (2,0,2,1) + (6) expected_result: + (2,0,2,1) + +Q4 finished at: 2022-3-30 16:14:51:650:713 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,,3) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 16:14:52:663:85 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-3-30 16:14:53:673:364 +Q7-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q7 finished at: 2022-3-30 16:14:54:608:538 + Q8-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q8 finished at: 2022-3-30 16:14:55:616:828 + Q9-T3 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q9 finished at: 2022-3-30 16:14:56:627:223 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 16:14:57:608:339 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 16:14:58:614:447 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 16:14:59:613:914 + Q13-T4 execute sql: 'BEGIN;' + Q13 finished at: 2022-3-30 16:15:9:610:307 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) (2,0,2,1) + *(1) expected_result: + (0,1,0,3) (2,0,2,1) + *(2) expected_result: + (0,1,0,3) (2,0,2,1) + *(3) expected_result: + (0,1,0,3) (2,0,2,1) + *(4) expected_result: + (0,1,0,3) (2,0,2,1) + *(5) expected_result: + (0,1,0,3) (2,0,2,1) + *(6) expected_result: + (0,1,0,3) (2,0,2,1) + + Q14 finished at: 2022-3-30 16:15:9:702:157 + Q15-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q15 finished at: 2022-3-30 16:15:9:792:490 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-3-30 16:15:9:836:327 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..273102ca --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,125 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:17:43:219:846 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:17:44:220:15 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 16:17:45:219:65 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,3) + +Q4 finished at: 2022-3-30 16:17:46:266:153 + Q4-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q4 finished at: 2022-3-30 16:17:47:223:86 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 16:17:47:265:923 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,0) + + Q7 finished at: 2022-3-30 16:17:48:262:190 + Q8-T3 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q8 finished at: 2022-3-30 16:17:48:307:349 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 16:17:48:348:819 +Q10-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,1) + (1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + +Q10 finished at: 2022-3-30 16:17:49:264:114 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-3-30 16:17:49:304:225 + Q12-T4 execute sql: 'BEGIN;' + Q12 finished at: 2022-3-30 16:17:59:219:931 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + + Q13 finished at: 2022-3-30 16:17:59:314:403 + Q14-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q14 finished at: 2022-3-30 16:17:59:407:834 + Q15-T4 execute opt: 'COMMIT'; + Q15 finished at: 2022-3-30 16:17:59:452:404 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..86fb5c9d --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,242 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:17:9:444:365 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:17:10:442:898 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 16:17:11:446:772 + Q4-T4 execute sql: 'BEGIN;' + Q4 finished at: 2022-3-30 16:17:12:444:810 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + *(5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,3) + (7) expected_result: + (0,1,0,3) + *(8) expected_result: + (0,1,0,0) + (9) expected_result: + (0,1,0,3) + (10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,0) + (12) expected_result: + (0,1,0,3) + (13) expected_result: + (0,1,0,3) + (14) expected_result: + (0,1,0,3) + +Q5 finished at: 2022-3-30 16:17:13:493:8 + Q6-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + *(7) expected_result: + (1,3,1,0) + (8) expected_result: + (1,3,1,1) + *(9) expected_result: + (1,3,1,0) + (10) expected_result: + (1,3,1,1) + (11) expected_result: + (1,3,1,1) + (12) expected_result: + (1,3,1,1) + (13) expected_result: + (1,3,1,1) + *(14) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-3-30 16:17:14:487:34 + Q7-T3 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q7 finished at: 2022-3-30 16:17:15:451:136 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 16:17:15:495:729 + Q9-T4 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q9 finished at: 2022-3-30 16:17:16:469:799 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 16:17:16:515:34 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,3) + (1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,0) + (7) expected_result: + (0,1,0,0) + (8) expected_result: + (0,1,0,0) + *(9) expected_result: + (0,1,0,3) + *(10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,3) + (12) expected_result: + (0,1,0,0) + *(13) expected_result: + (0,1,0,3) + *(14) expected_result: + (0,1,0,3) + + Q11 finished at: 2022-3-30 16:17:17:485:771 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 16:17:17:523:932 +Q13-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,1) + (1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,1) + (6) expected_result: + (1,3,1,0) + *(7) expected_result: + (1,3,1,1) + *(8) expected_result: + (1,3,1,1) + (9) expected_result: + (1,3,1,0) + *(10) expected_result: + (1,3,1,1) + *(11) expected_result: + (1,3,1,1) + *(12) expected_result: + (1,3,1,1) + (13) expected_result: + (1,3,1,0) + *(14) expected_result: + (1,3,1,1) + +Q13 finished at: 2022-3-30 16:17:18:487:11 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-3-30 16:17:18:526:736 + Q15-T5 execute sql: 'BEGIN;' + Q15 finished at: 2022-3-30 16:17:28:448:146 + Q16-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + *(7) expected_result: + (0,1,0,3) + *(8) expected_result: + (0,1,0,3) + *(9) expected_result: + (0,1,0,3) + *(10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,3) + *(12) expected_result: + (0,1,0,3) + *(13) expected_result: + (0,1,0,3) + *(14) expected_result: + (0,1,0,3) + + Q16 finished at: 2022-3-30 16:17:28:538:762 + Q17-T5 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + *(7) expected_result: + (1,3,1,1) + *(8) expected_result: + (1,3,1,1) + *(9) expected_result: + (1,3,1,1) + *(10) expected_result: + (1,3,1,1) + *(11) expected_result: + (1,3,1,1) + *(12) expected_result: + (1,3,1,1) + *(13) expected_result: + (1,3,1,1) + *(14) expected_result: + (1,3,1,1) + + Q17 finished at: 2022-3-30 16:17:28:631:77 + Q18-T5 execute opt: 'COMMIT'; + Q18 finished at: 2022-3-30 16:17:28:673:812 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..0346b73d --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,128 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:15:27:46:208 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:15:28:41:804 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 16:15:29:46:938 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q4 finished at: 2022-3-30 16:15:30:98:705 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + null + *(6) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 16:15:31:90:253 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + null + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + null + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-3-30 16:15:32:97:405 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE value1=0;' +Q7 finished at: 2022-3-30 16:15:33:48:261 + Q8-T2 execute sql: 'DELETE FROM t2 WHERE value1=1;' + Q8 finished at: 2022-3-30 16:15:34:44:814 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE value1=2;' + Q9 finished at: 2022-3-30 16:15:35:48:537 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 16:15:36:48:297 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 16:15:37:45:438 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 16:15:38:49:281 + Q13-T4 execute sql: 'BEGIN;' + Q13 finished at: 2022-3-30 16:15:48:44:304 + Q14-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q14 finished at: 2022-3-30 16:15:48:131:977 + Q15-T4 execute sql: 'SELECT * FROM t2;' + current_result: + null + (1) expected_result: + + (2) expected_result: + + (3) expected_result: + + (4) expected_result: + + (5) expected_result: + + (6) expected_result: + + + Q15 finished at: 2022-3-30 16:15:48:219:363 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-3-30 16:15:48:260:983 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..49e2f59e --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,125 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:16:1:951:797 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:16:2:950:476 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 16:16:3:950:558 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,0,2,0) + (5) expected_result: + (2,0,2,0) + (6) expected_result: + (2,0,2,0) + +Q4 finished at: 2022-3-30 16:16:5:1:2 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + null + (1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,0) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1,0,0) + *(6) expected_result: + null + + Q5 finished at: 2022-3-30 16:16:5:997:71 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + null + (1) expected_result: + (1,3,1,0) + *(2) expected_result: + null + (3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,0) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-3-30 16:16:7:22:160 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q7 finished at: 2022-3-30 16:16:7:952:638 + Q8-T2 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + Q8 finished at: 2022-3-30 16:16:8:952:646 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + Q9 finished at: 2022-3-30 16:16:9:959:721 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 16:16:10:953:691 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 16:16:11:952:761 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 16:16:12:956:576 + Q13-T4 execute sql: 'BEGIN;' + Q13 finished at: 2022-3-30 16:16:22:948:949 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,0) (2,0,2,0) + *(1) expected_result: + (0,1,0,0) (2,0,2,0) + *(2) expected_result: + (0,1,0,0) (2,0,2,0) + *(3) expected_result: + (0,1,0,0) (2,0,2,0) + *(4) expected_result: + (0,1,0,0) (2,0,2,0) + *(5) expected_result: + (0,1,0,0) (2,0,2,0) + *(6) expected_result: + (0,1,0,0) (2,0,2,0) + + Q14 finished at: 2022-3-30 16:16:23:30:825 + Q15-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,0) + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q15 finished at: 2022-3-30 16:16:23:114:595 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-3-30 16:16:23:152:919 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..1e3bd60e --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,159 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:18:12:606:377 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:18:13:607:715 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 16:18:14:607:46 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + *(5) expected_result: + (0,1,0,0) + *(6) expected_result: + (0,1,0,0) + +Q4 finished at: 2022-3-30 16:18:15:653:141 +Q5-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + +Q5 finished at: 2022-3-30 16:18:15:739:19 + Q6-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,0) + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-3-30 16:18:16:677:110 + Q6-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q6 finished at: 2022-3-30 16:18:16:730:628 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 16:18:16:778:258 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + (4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,0) + *(6) expected_result: + (0,1,0,0) + + Q9 finished at: 2022-3-30 16:18:17:652:39 + Q10-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + (2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + (5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,0) + + Q10 finished at: 2022-3-30 16:18:17:736:679 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 16:18:17:777:439 +Q12-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q12 finished at: 2022-3-30 16:18:18:609:526 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-3-30 16:18:18:651:929 + Q14-T4 execute sql: 'BEGIN;' + Q14 finished at: 2022-3-30 16:18:28:607:917 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + + Q15 finished at: 2022-3-30 16:18:28:696:638 + Q16-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q16 finished at: 2022-3-30 16:18:28:783:646 + Q17-T4 execute opt: 'COMMIT'; + Q17 finished at: 2022-3-30 16:18:28:825:209 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..921a70c1 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,181 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:16:39:754:190 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:16:40:749:405 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 16:16:41:757:586 +Q4-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,2) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + +Q4 finished at: 2022-3-30 16:16:42:802:768 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,2) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + (0,1,0,2) + (6) expected_result: + (0,1,0,2) + + Q5 finished at: 2022-3-30 16:16:43:794:542 + Q6-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q6 finished at: 2022-3-30 16:16:43:834:835 + Q7-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,0) + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q7 finished at: 2022-3-30 16:16:43:911:765 + Q8-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q8 finished at: 2022-3-30 16:16:43:951:567 + Q9-T2 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 16:16:43:991:206 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + *(4) expected_result: + (2,0,2,0) + *(5) expected_result: + (2,0,2,0) + *(6) expected_result: + (2,0,2,0) + + Q10 finished at: 2022-3-30 16:16:44:808:214 + Q11-T3 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q11 finished at: 2022-3-30 16:16:44:854:378 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,0) + + Q12 finished at: 2022-3-30 16:16:44:947:428 + Q13-T3 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q13 finished at: 2022-3-30 16:16:44:993:840 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 16:16:45:41:615 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,1) + (1) expected_result: + (2,0,2,0) + (2) expected_result: + (2,0,2,0) + (3) expected_result: + (2,0,2,0) + (4) expected_result: + (2,0,2,2) + *(5) expected_result: + (2,0,2,1) + *(6) expected_result: + (2,0,2,1) + +Q15 finished at: 2022-3-30 16:16:45:799:323 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-3-30 16:16:45:841:181 + Q17-T4 execute sql: 'BEGIN;' + Q17 finished at: 2022-3-30 16:16:55:753:292 + Q18-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,2) (2,0,2,1) + *(1) expected_result: + (0,1,0,2) (2,0,2,1) + *(2) expected_result: + (0,1,0,2) (2,0,2,1) + *(3) expected_result: + (0,1,0,2) (2,0,2,1) + *(4) expected_result: + (0,1,0,2) (2,0,2,1) + *(5) expected_result: + (0,1,0,2) (2,0,2,1) + *(6) expected_result: + (0,1,0,2) (2,0,2,1) + + Q18 finished at: 2022-3-30 16:16:55:841:687 + Q19-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q19 finished at: 2022-3-30 16:16:55:927:385 + Q20-T4 execute opt: 'COMMIT'; + Q20 finished at: 2022-3-30 16:16:55:968:587 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..45001b8c --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:8:49:545:750 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:8:50:542:281 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q3 finished at: 2022-3-30 16:8:51:587:702 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-3-30 16:8:52:545:367 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 16:8:52:584:265 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-3-30 16:8:53:544:251 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 16:8:53:584:617 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 16:9:3:548:203 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-3-30 16:9:3:636:649 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 16:9:3:679:339 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..c24ccb2c --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:8:22:869:209 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:8:23:867:631 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 16:8:24:914:750 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-3-30 16:8:25:870:291 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 16:8:25:911:548 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-3-30 16:8:26:911:728 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 16:8:26:952:596 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 16:8:36:869:644 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-3-30 16:8:36:955:231 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 16:8:36:996:401 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..c06edbad --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,67 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:44:10:564:476 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:44:11:559:958 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 15:44:12:569:423 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 15:44:13:584:50 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 15:44:13:688:42 +Q6-T1 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 15:44:15:565:724 +Q6 finished at: 2022-3-30 15:44:15:587:477 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 15:44:16:567:57 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 15:44:26:558:110 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 15:44:26:637:164 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,2) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,2) + + Q11 finished at: 2022-3-30 15:44:26:714:65 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:44:26:751:30 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..ba205c35 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,67 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:45:7:231:863 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:45:8:229:321 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 15:45:9:236:564 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 15:45:10:249:858 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 15:45:10:348:241 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 15:45:10:494:622 +Q7-T1 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' +Q7 finished at: 2022-3-30 15:45:11:236:121 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 15:45:11:279:998 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 15:45:21:230:14 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 15:45:21:314:329 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,2) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,2) + + Q11 finished at: 2022-3-30 15:45:21:396:772 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:45:21:436:258 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..d40c9dbd --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,67 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:46:17:223:238 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:46:18:226:848 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 15:46:19:231:480 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 15:46:20:255:904 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q6 finished at: 2022-3-30 15:46:21:277:43 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 15:46:21:318:971 + Q5 finished at: 2022-3-30 15:46:21:436:763 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 15:46:22:233:338 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 15:46:32:232:372 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,2) + *(1) expected_result: + (0,1,0,2) + *(2) expected_result: + (0,1,0,2) + + Q10 finished at: 2022-3-30 15:46:32:319:652 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 15:46:32:404:988 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:46:32:445:976 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_read_skew.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..d7e51f18 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,74 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:47:12:51:846 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:47:13:52:221 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q3 finished at: 2022-3-30 15:47:14:97:119 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 15:47:15:75:258 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-3-30 15:47:15:133:595 +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q6 finished at: 2022-3-30 15:47:16:96:338 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 15:47:17:57:856 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 15:47:18:55:416 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 15:47:28:55:216 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 15:47:28:143:46 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 15:47:28:231:649 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:47:28:272:971 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_read_skew2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..baa2fb2d --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,74 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:49:26:304:996 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:49:27:301:676 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 15:49:28:309:780 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-3-30 15:49:29:362:346 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 15:49:29:458:773 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-3-30 15:49:30:309:723 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 15:49:30:352:200 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 15:49:31:303:351 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 15:49:41:303:166 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 15:49:41:382:672 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 15:49:41:461:925 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:49:41:499:838 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..bc9553fe --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,74 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:50:1:701:637 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:50:2:699:508 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 15:50:3:703:888 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-3-30 15:50:4:770:172 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 15:50:4:876:621 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 15:50:4:919:839 +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-3-30 15:50:5:703:699 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 15:50:5:746:790 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 15:50:15:697:616 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 15:50:15:778:871 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 15:50:15:860:187 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:50:15:899:72 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..40616e55 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,72 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:47:56:205:332 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:47:57:203:150 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE value2=0;' + current_result: + (0,1,0,0) + (1) expected_result: + null + *(2) expected_result: + (0,1,0,0) + +Q3 finished at: 2022-3-30 15:47:58:256:923 + Q4-T2 execute sql: 'DELETE FROM t2 WHERE value1=1;' + Q4 finished at: 2022-3-30 15:47:59:208:347 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE value1=0;' + Q5 finished at: 2022-3-30 15:47:59:251:784 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 15:47:59:295:614 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE value2=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1,0,0) + +Q7 finished at: 2022-3-30 15:48:0:252:289 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 15:48:0:295:573 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 15:48:10:202:541 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q10 finished at: 2022-3-30 15:48:10:286:260 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q11 finished at: 2022-3-30 15:48:10:370:214 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:48:10:410:795 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..05f4f0d4 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:48:27:285:105 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:48:28:290:706 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q3 finished at: 2022-3-30 15:48:29:329:396 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-3-30 15:48:30:292:135 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-3-30 15:48:30:335:862 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 15:48:30:381:210 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-3-30 15:48:31:325:395 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 15:48:31:363:376 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 15:48:41:288:299 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q10 finished at: 2022-3-30 15:48:41:377:285 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 15:48:41:418:92 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..7dc8a45e --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,72 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:42:2:702:658 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:42:3:705:932 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 15:42:4:707:690 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 15:42:5:734:650 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 15:42:5:841:365 +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1; ' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q6 finished at: 2022-3-30 15:42:6:745:895 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 15:42:7:712:132 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 15:42:8:705:144 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 15:42:18:707:816 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 15:42:18:796:713 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 15:42:18:884:699 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:42:18:927:477 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..a1456cdb --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,74 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:43:10:166:553 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:43:11:171:320 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 15:43:12:171:357 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 15:43:13:177:176 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 15:43:13:260:442 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 15:43:13:302:452 +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,1) + (1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,1) + +Q7 finished at: 2022-3-30 15:43:14:207:372 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 15:43:14:244:519 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 15:43:24:171:983 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 15:43:24:256:628 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 15:43:24:341:286 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:43:24:381:855 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_mda_step_rat.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..d8defc3f --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,128 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:50:34:446:44 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:50:35:445:315 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 15:50:36:438:973 +Q4-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q4 finished at: 2022-3-30 15:50:37:450:933 + Q5-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q5 finished at: 2022-3-30 15:50:38:469:611 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + + Q6 finished at: 2022-3-30 15:50:38:578:456 + Q7-T3 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q7 finished at: 2022-3-30 15:50:39:442:110 + Q8-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q8 finished at: 2022-3-30 15:50:39:522:184 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + (2,0,2,1) + (5) expected_result: + (2,0,2,1) + (6) expected_result: + (2,0,2,1) + +Q9 finished at: 2022-3-30 15:50:40:494:74 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 15:50:40:540:435 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 15:50:41:451:574 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:50:42:441:757 + Q13-T4 execute sql: 'BEGIN;' + Q13 finished at: 2022-3-30 15:50:52:442:367 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) (2,0,2,1) + *(1) expected_result: + (0,1,0,3) (2,0,2,1) + *(2) expected_result: + (0,1,0,3) (2,0,2,1) + *(3) expected_result: + (0,1,0,3) (2,0,2,1) + *(4) expected_result: + (0,1,0,3) (2,0,2,1) + *(5) expected_result: + (0,1,0,3) (2,0,2,1) + *(6) expected_result: + (0,1,0,3) (2,0,2,1) + + Q14 finished at: 2022-3-30 15:50:52:527:460 + Q15-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q15 finished at: 2022-3-30 15:50:52:611:774 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-3-30 15:50:52:652:169 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..3cab05cd --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,244 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN;' + Q1 finished at: 2022-3-30 15:51:8:192:839 +Q2-T1 execute sql: 'BEGIN;' +Q2 finished at: 2022-3-30 15:51:9:191:531 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 15:51:10:191:997 + Q4-T2 execute sql: 'BEGIN;' + Q4 finished at: 2022-3-30 15:51:11:193:21 + Q5-T4 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + (4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + (7) expected_result: + (0,1,0,3) + (8) expected_result: + (0,1,0,3) + *(9) expected_result: + (0,1,0,0) + (10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,0) + (12) expected_result: + (0,1,0,3) + *(13) expected_result: + (0,1,0,0) + *(14) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 15:51:12:245:2 +Q6-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q6 finished at: 2022-3-30 15:51:13:194:801 + Q7-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + (7) expected_result: + (1,3,1,1) + *(8) expected_result: + (1,3,1,0) + (9) expected_result: + (1,3,1,1) + (10) expected_result: + (1,3,1,1) + *(11) expected_result: + (1,3,1,0) + *(12) expected_result: + (1,3,1,0) + *(13) expected_result: + (1,3,1,0) + (14) expected_result: + (1,3,1,1) + + Q7 finished at: 2022-3-30 15:51:14:242:885 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + (7) expected_result: + (0,1,0,3) + (8) expected_result: + (0,1,0,3) + (9) expected_result: + (0,1,0,3) + *(10) expected_result: + (0,1,0,0) + *(11) expected_result: + (0,1,0,0) + *(12) expected_result: + (0,1,0,0) + (13) expected_result: + (0,1,0,3) + (14) expected_result: + (0,1,0,3) + + Q8 finished at: 2022-3-30 15:51:14:336:974 + Q9-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q9 finished at: 2022-3-30 15:51:15:213:415 + Q10-T4 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + *(7) expected_result: + (1,3,1,0) + (8) expected_result: + (1,3,1,1) + (9) expected_result: + (1,3,1,1) + (10) expected_result: + (1,3,1,1) + (11) expected_result: + (1,3,1,1) + *(12) expected_result: + (1,3,1,0) + *(13) expected_result: + (1,3,1,0) + *(14) expected_result: + (1,3,1,0) + + Q10 finished at: 2022-3-30 15:51:16:241:127 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-3-30 15:51:17:194:61 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:51:18:198:733 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-3-30 15:51:19:192:557 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 15:51:20:193:193 + Q15-T5 execute sql: 'BEGIN;' + Q15 finished at: 2022-3-30 15:51:30:190:554 + Q16-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + *(7) expected_result: + (0,1,0,3) + *(8) expected_result: + (0,1,0,3) + *(9) expected_result: + (0,1,0,3) + *(10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,3) + *(12) expected_result: + (0,1,0,3) + *(13) expected_result: + (0,1,0,3) + *(14) expected_result: + (0,1,0,3) + + Q16 finished at: 2022-3-30 15:51:30:281:837 + Q17-T5 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + *(7) expected_result: + (1,3,1,1) + *(8) expected_result: + (1,3,1,1) + *(9) expected_result: + (1,3,1,1) + *(10) expected_result: + (1,3,1,1) + *(11) expected_result: + (1,3,1,1) + *(12) expected_result: + (1,3,1,1) + *(13) expected_result: + (1,3,1,1) + *(14) expected_result: + (1,3,1,1) + + Q17 finished at: 2022-3-30 15:51:30:371:382 + Q18-T5 execute opt: 'COMMIT'; + Q18 finished at: 2022-3-30 15:51:30:414:316 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..1b5253a3 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:51:56:896:209 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:51:57:899:963 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 15:51:58:899:153 +Q4-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q4 finished at: 2022-3-30 15:51:59:899:72 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q5 finished at: 2022-3-30 15:52:0:901:652 + Q6-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q6 finished at: 2022-3-30 15:52:0:984:610 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-3-30 15:52:1:901:314 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-3-30 15:52:1:983:859 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-3-30 15:52:2:936:190 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 15:52:2:974:942 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 15:52:3:902:95 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:52:4:901:451 + Q13-T4 execute sql: 'BEGIN;' + Q13 finished at: 2022-3-30 15:52:14:901:705 + Q14-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q14 finished at: 2022-3-30 15:52:14:989:882 + Q15-T4 execute opt: 'COMMIT'; + Q15 finished at: 2022-3-30 15:52:15:30:892 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..e4557486 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:52:34:712:698 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:52:35:711:106 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 15:52:36:711:405 +Q4-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q4 finished at: 2022-3-30 15:52:37:716:152 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q5 finished at: 2022-3-30 15:52:38:713:203 + Q6-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q6 finished at: 2022-3-30 15:52:38:793:992 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-3-30 15:52:39:713:528 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-3-30 15:52:39:800:122 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-3-30 15:52:40:756:106 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 15:52:40:798:864 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 15:52:41:711:178 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:52:42:715:727 + Q13-T4 execute sql: 'BEGIN;' + Q13 finished at: 2022-3-30 15:52:52:710:986 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q14 finished at: 2022-3-30 15:52:52:789:908 + Q15-T4 execute opt: 'COMMIT'; + Q15 finished at: 2022-3-30 15:52:52:827:249 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_sda_dirty_read.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..1707a2d8 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_dirty_read test run---------- + Q1-T2 execute sql: 'BEGIN;' + Q1 finished at: 2022-3-30 15:36:36:53:792 +Q2-T1 execute sql: 'BEGIN;' +Q2 finished at: 2022-3-30 15:36:37:61:545 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 15:36:37:109:540 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-3-30 15:36:38:95:156 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-3-30 15:36:39:62:183 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 15:36:40:53:797 + Q7-T3 execute sql: 'BEGIN;' + Q7 finished at: 2022-3-30 15:36:50:55:47 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q8 finished at: 2022-3-30 15:36:50:135:237 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 15:36:50:173:786 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..163be83e --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:37:56:361:58 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:37:57:353:119 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 15:37:58:365:251 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-3-30 15:37:59:390:564 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-3-30 15:38:0:362:267 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 15:38:1:353:438 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 15:38:2:364:221 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 15:38:12:358:708 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q9 finished at: 2022-3-30 15:38:12:440:430 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 15:38:12:479:37 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..9d9d8f56 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:38:59:679:483 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:39:0:686:872 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 15:39:1:682:722 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-3-30 15:39:2:733:496 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 15:39:2:776:390 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-3-30 15:39:3:707:140 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 15:39:3:744:127 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 15:39:13:682:451 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q9 finished at: 2022-3-30 15:39:13:758:55 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 15:39:13:793:876 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..2fc3f4ad --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:41:22:264:297 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:41:23:266:234 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 15:41:24:267:306 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-3-30 15:41:26:305:200 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-3-30 15:41:26:345:386 + Q4 finished at: 2022-3-30 15:41:26:347:283 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 15:41:27:268:95 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 15:41:37:267:55 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q9 finished at: 2022-3-30 15:41:37:352:896 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 15:41:37:393:661 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..9fd16699 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:37:7:898:530 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:37:8:899:584 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 15:37:9:942:669 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-3-30 15:37:10:902:595 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-3-30 15:37:11:940:26 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 15:37:12:902:92 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 15:37:13:899:364 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 15:37:23:897:264 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-3-30 15:37:23:977:732 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 15:37:24:15:789 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..2382db62 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:40:8:893:838 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:40:9:896:985 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q3 finished at: 2022-3-30 15:40:10:930:120 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-3-30 15:40:11:901:803 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 15:40:11:945:596 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-3-30 15:40:12:928:159 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 15:40:12:963:498 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 15:40:22:899:864 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q9 finished at: 2022-3-30 15:40:22:990:697 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 15:40:23:34:81 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..1f0b8a18 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:40:44:409:678 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:40:45:415:342 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q3 finished at: 2022-3-30 15:40:46:453:574 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-3-30 15:40:47:418:397 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 15:40:47:465:230 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-3-30 15:40:48:450:742 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 15:40:48:489:186 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 15:40:58:408:184 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q9 finished at: 2022-3-30 15:40:58:486:34 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 15:40:58:523:249 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..8a30430f --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,67 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:58:13:818:908 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:58:14:815:798 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 15:58:15:822:898 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 15:58:16:821:658 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q7 finished at: 2022-3-30 15:58:17:863:334 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 15:58:17:907:374 + Q5 finished at: 2022-3-30 15:58:17:918:687 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 15:58:17:961:228 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 15:58:27:818:388 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,2) + *(1) expected_result: + (0,1,0,2) + (2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 15:58:27:908:498 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 15:58:28:2:213 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:58:28:44:834 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..6b311eb6 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:59:21:769:17 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:59:22:766:259 +Q3-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q3 finished at: 2022-3-30 15:59:23:773:821 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-3-30 15:59:24:789:954 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-3-30 15:59:35:282:159 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-3-30 15:59:36:356:204 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..149ed2f7 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,34 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:59:55:73:884 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:59:56:73:882 +Q3-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q3 finished at: 2022-3-30 15:59:57:79:126 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-3-30 15:59:58:79:139 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-3-30 16:0:8:533:43 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-3-30 16:0:9:642:105 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..9772a885 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,34 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:0:28:365:48 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:0:29:362:850 +Q3-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q3 finished at: 2022-3-30 16:0:30:371:655 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-3-30 16:0:31:367:608 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-3-30 16:0:41:874:921 +Q7 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q7 failed at: 2022-3-30 16:0:43:86:358 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..4d54dc99 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,65 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:2:16:537:990 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:2:17:536:804 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q3 finished at: 2022-3-30 16:2:18:582:171 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-3-30 16:2:19:559:317 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-3-30 16:2:19:615:65 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 16:2:21:542:498 +Q6 finished at: 2022-3-30 16:2:21:595:645 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 16:2:21:636:834 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 16:2:31:543:321 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 16:2:31:636:147 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + (1) expected_result: + (1,3,1,2) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 16:2:31:727:379 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 16:2:31:772:453 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..5ff3f8ac --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,65 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:3:48:194:298 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:3:49:198:685 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q3 finished at: 2022-3-30 16:3:50:236:318 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-3-30 16:3:51:224:11 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-3-30 16:3:51:286:197 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 16:3:53:205:182 +Q6 finished at: 2022-3-30 16:3:53:256:206 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 16:3:54:197:119 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 16:4:4:200:883 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 16:4:4:289:187 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + (1) expected_result: + (1,3,1,2) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 16:4:4:377:141 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 16:4:4:419:507 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..942f04d0 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,65 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:4:21:990:750 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:4:22:984:650 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 16:4:23:996:621 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-3-30 16:4:25:47:174 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-3-30 16:4:25:996:83 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 16:4:26:40:668 + Q5 finished at: 2022-3-30 16:4:26:59:19 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 16:4:26:990:346 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 16:4:36:990:817 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,2) + *(1) expected_result: + (0,1,0,2) + (2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 16:4:37:80:449 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 16:4:37:168:488 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 16:4:37:210:732 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..3e4a259d --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,65 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:4:52:327:215 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:4:53:329:188 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 16:4:54:331:883 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-3-30 16:4:55:395:926 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-3-30 16:4:56:331:691 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 16:4:58:331:129 + Q5 finished at: 2022-3-30 16:4:58:388:952 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 16:4:58:434:735 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 16:5:8:327:789 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,2) + *(1) expected_result: + (0,1,0,2) + (2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 16:5:8:410:753 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 16:5:8:494:930 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 16:5:8:533:914 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..e36d1b7d --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,65 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:5:22:30:915 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:5:23:30:219 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 16:5:24:36:53 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-3-30 16:5:25:77:286 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-3-30 16:5:26:34:141 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 16:5:26:78:291 + Q5 finished at: 2022-3-30 16:5:26:149:340 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 16:5:26:193:704 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 16:5:36:27:470 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,2) + *(1) expected_result: + (0,1,0,2) + (2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 16:5:36:108:854 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 16:5:36:188:557 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 16:5:36:227:483 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..1d6bc2fe --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:5:53:993:813 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:5:54:993:589 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 16:5:55:988:569 +Q4-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q4 finished at: 2022-3-30 16:5:56:998:841 + Q5-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q5 finished at: 2022-3-30 16:5:57:998:186 + Q6-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q7-T3 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=2;' + Q7 finished at: 2022-3-30 16:5:58:990:610 + Q8-T3 execute sql: 'UPDATE t2 SET value2=3 WHERE value1=1;' +Q9-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q6 failed at: 2022-3-30 16:6:8:620:384 + Q8 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q8 failed at: 2022-3-30 16:6:9:798:247 +Q9 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-3-30 16:6:10:849:363 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..0bca5131 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 16:6:27:96:275 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 16:6:28:103:952 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 16:6:29:100:526 +Q4-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q4 finished at: 2022-3-30 16:6:30:105:564 + Q5-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q5 finished at: 2022-3-30 16:6:31:109:488 + Q6-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q7-T3 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=2;' + Q7 finished at: 2022-3-30 16:6:32:101:186 + Q8-T3 execute sql: 'UPDATE t2 SET value2=3 WHERE value1=1;' +Q9-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q6 failed at: 2022-3-30 16:6:41:740:504 + Q8 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q8 failed at: 2022-3-30 16:6:42:927:177 +Q9 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-3-30 16:6:43:945:721 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..d909584e --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,44 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:53:10:861:687 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:53:11:861:364 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 15:53:12:864:300 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-3-30 15:53:14:861:541 + Q4 finished at: 2022-3-30 15:53:14:863:217 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 15:53:15:863:631 + Q7-T3 execute sql: 'BEGIN;' + Q7 finished at: 2022-3-30 15:53:25:859:908 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-3-30 15:53:25:939:968 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 15:53:25:978:965 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..4827414a --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,44 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:53:47:841:423 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:53:48:836:487 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 15:53:49:838:275 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-3-30 15:53:51:837:780 + Q4 finished at: 2022-3-30 15:53:51:837:799 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 15:53:52:838:360 + Q7-T3 execute sql: 'BEGIN;' + Q7 finished at: 2022-3-30 15:54:2:837:896 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-3-30 15:54:2:916:757 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 15:54:2:954:856 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_sda_full_write.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..8a745daf --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:54:23:424:505 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:54:24:422:588 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 15:54:25:426:556 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-3-30 15:54:27:425:226 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-3-30 15:54:27:469:433 + Q4 finished at: 2022-3-30 15:54:27:469:493 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 15:54:28:424:755 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 15:54:38:423:298 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q9 finished at: 2022-3-30 15:54:38:511:538 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 15:54:38:553:81 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..67935e0e --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:54:57:177:260 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:54:58:180:49 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 15:54:59:180:327 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-3-30 15:55:1:177:908 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 15:55:1:219:231 + Q4 finished at: 2022-3-30 15:55:1:219:466 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 15:55:1:263:742 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 15:55:11:175:235 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q9 finished at: 2022-3-30 15:55:11:253:529 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 15:55:11:291:117 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..a6a6a8f8 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:57:34:660:276 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:57:35:659:370 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 15:57:36:662:728 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-3-30 15:57:38:701:973 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-3-30 15:57:38:742:395 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 15:57:38:743:801 + Q5 finished at: 2022-3-30 15:57:38:783:950 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 15:57:48:662:492 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q9 finished at: 2022-3-30 15:57:48:751:496 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 15:57:48:794:135 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..9cbb99ea --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:56:3:444:45 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:56:4:444:853 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q3 finished at: 2022-3-30 15:56:5:488:962 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-3-30 15:56:6:447:120 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 15:56:8:446:765 +Q5 finished at: 2022-3-30 15:56:8:447:546 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-3-30 15:56:8:491:54 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 15:56:18:448:313 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-3-30 15:56:18:540:167 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 15:56:18:584:276 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..9b510ade --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:56:33:970:636 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:56:34:971:487 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q3 finished at: 2022-3-30 15:56:36:17:819 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-3-30 15:56:36:975:90 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 15:56:38:973:321 +Q5 finished at: 2022-3-30 15:56:38:974:329 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 15:56:39:973:20 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 15:56:49:973:77 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-3-30 15:56:50:65:357 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 15:56:50:108:817 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..e74ac78d --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,74 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:20:54:231:591 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:20:55:232:441 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q3 finished at: 2022-3-30 15:20:56:275:762 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 15:20:57:255:673 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-3-30 15:20:57:313:733 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 15:20:57:466:70 +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q7 finished at: 2022-3-30 15:20:58:274:897 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 15:20:58:314:854 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 15:21:8:231:852 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 15:21:8:321:115 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 15:21:8:409:45 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:21:8:451:20 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..dc967511 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:21:26:777:11 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:21:27:780:569 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q3 finished at: 2022-3-30 15:21:28:822:68 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-3-30 15:21:29:786:462 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-3-30 15:21:29:832:357 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 15:21:29:877:727 +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q7 failed at: 2022-3-30 15:21:31:479:131 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_dda_write_skew.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..dc206392 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,72 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:22:7:597:419 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:22:8:591:589 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q3 finished at: 2022-3-30 15:22:9:647:499 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-3-30 15:22:10:656:40 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-3-30 15:22:10:712:53 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-3-30 15:22:11:602:796 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 15:22:11:648:982 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 15:22:12:597:633 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 15:22:22:599:346 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 15:22:22:727:665 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 15:22:22:816:154 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:22:22:858:961 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..56032616 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,72 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:24:20:342:293 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:24:21:339:296 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q3 finished at: 2022-3-30 15:24:22:390:831 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-3-30 15:24:23:384:940 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-3-30 15:24:23:427:386 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 15:24:23:468:676 +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-3-30 15:24:24:345:30 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 15:24:24:390:5 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 15:24:34:343:877 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 15:24:34:437:2 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 15:24:34:528:863 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:24:34:572:982 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..4e05f590 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:22:50:965:242 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:22:51:962:158 +Q3-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q3 finished at: 2022-3-30 15:22:53:5:658 +Q4-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q4 finished at: 2022-3-30 15:22:53:48:108 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-3-30 15:22:54:14:421 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-3-30 15:22:54:51:924 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 15:22:54:91:362 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 15:22:54:965:523 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 15:23:4:970:690 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-3-30 15:23:5:65:281 + Q11-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q11 finished at: 2022-3-30 15:23:5:158:334 + Q12-T3 execute sql: 'DROP TABLE mytab;' + Q12 finished at: 2022-3-30 15:23:5:221:453 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-3-30 15:23:5:269:408 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..b3052b1f --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:23:41:420:855 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:23:42:422:34 +Q3-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q3 finished at: 2022-3-30 15:23:43:465:546 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-3-30 15:23:44:465:188 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-3-30 15:23:44:507:615 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 15:23:44:550:296 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-3-30 15:23:45:421:836 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 15:23:45:463:932 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 15:23:55:421:342 + Q10-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q10 finished at: 2022-3-30 15:23:55:505:727 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 15:23:55:545:792 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_mda_step_iat.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..0c2f6c0b --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,128 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:24:52:576:329 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:24:53:573:305 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 15:24:54:574:684 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + (2,0,2,1) + (5) expected_result: + (2,0,2,1) + (6) expected_result: + (2,0,2,1) + +Q4 finished at: 2022-3-30 15:24:55:626:134 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,,3) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 15:24:56:617:783 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-3-30 15:24:57:637:420 +Q7-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q7 finished at: 2022-3-30 15:24:58:602:540 + Q8-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q8 finished at: 2022-3-30 15:24:59:577:862 + Q9-T3 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q9 finished at: 2022-3-30 15:25:0:591:378 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 15:25:1:578:981 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 15:25:2:575:777 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:25:3:580:404 + Q13-T4 execute sql: 'BEGIN;' + Q13 finished at: 2022-3-30 15:25:13:573:762 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) (2,0,2,1) + *(1) expected_result: + (0,1,0,3) (2,0,2,1) + *(2) expected_result: + (0,1,0,3) (2,0,2,1) + *(3) expected_result: + (0,1,0,3) (2,0,2,1) + *(4) expected_result: + (0,1,0,3) (2,0,2,1) + *(5) expected_result: + (0,1,0,3) (2,0,2,1) + *(6) expected_result: + (0,1,0,3) (2,0,2,1) + + Q14 finished at: 2022-3-30 15:25:13:655:6 + Q15-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q15 finished at: 2022-3-30 15:25:13:736:366 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-3-30 15:25:13:775:124 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..387e1683 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,127 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:28:48:591:353 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:28:49:596:123 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 15:28:50:600:984 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,3) + +Q4 finished at: 2022-3-30 15:28:51:635:366 + Q4-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q4 finished at: 2022-3-30 15:28:52:598:596 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 15:28:52:642:795 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,0) + + Q7 finished at: 2022-3-30 15:28:53:636:21 + Q8-T3 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q8 finished at: 2022-3-30 15:28:53:680:43 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 15:28:53:721:790 +Q10-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,0) + (5) expected_result: + (1,3,1,1) + (6) expected_result: + (1,3,1,1) + +Q10 finished at: 2022-3-30 15:28:54:635:476 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-3-30 15:28:54:673:421 + Q12-T4 execute sql: 'BEGIN;' + Q12 finished at: 2022-3-30 15:29:4:594:100 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + + Q13 finished at: 2022-3-30 15:29:4:679:912 + Q14-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q14 finished at: 2022-3-30 15:29:4:764:666 + Q15-T4 execute opt: 'COMMIT'; + Q15 finished at: 2022-3-30 15:29:4:804:995 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..e846c473 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,244 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:28:10:846:678 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:28:11:846:175 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 15:28:12:845:232 + Q4-T4 execute sql: 'BEGIN;' + Q4 finished at: 2022-3-30 15:28:13:851:48 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + *(5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,3) + (7) expected_result: + (0,1,0,3) + *(8) expected_result: + (0,1,0,0) + (9) expected_result: + (0,1,0,3) + (10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,0) + (12) expected_result: + (0,1,0,3) + (13) expected_result: + (0,1,0,3) + (14) expected_result: + (0,1,0,3) + +Q5 finished at: 2022-3-30 15:28:14:893:40 + Q6-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + *(7) expected_result: + (1,3,1,0) + (8) expected_result: + (1,3,1,1) + *(9) expected_result: + (1,3,1,0) + (10) expected_result: + (1,3,1,1) + (11) expected_result: + (1,3,1,1) + (12) expected_result: + (1,3,1,1) + (13) expected_result: + (1,3,1,1) + *(14) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-3-30 15:28:15:914:982 + Q7-T3 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q7 finished at: 2022-3-30 15:28:16:849:274 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 15:28:16:890:89 + Q9-T4 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q9 finished at: 2022-3-30 15:28:17:855:968 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 15:28:17:901:887 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,0) + *(6) expected_result: + (0,1,0,0) + *(7) expected_result: + (0,1,0,0) + *(8) expected_result: + (0,1,0,0) + (9) expected_result: + (0,1,0,3) + (10) expected_result: + (0,1,0,3) + (11) expected_result: + (0,1,0,3) + *(12) expected_result: + (0,1,0,0) + (13) expected_result: + (0,1,0,3) + (14) expected_result: + (0,1,0,3) + + Q11 finished at: 2022-3-30 15:28:18:907:169 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:28:18:947:399 +Q13-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,0) + *(4) expected_result: + (1,3,1,0) + (5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,0) + (7) expected_result: + (1,3,1,1) + (8) expected_result: + (1,3,1,1) + *(9) expected_result: + (1,3,1,0) + (10) expected_result: + (1,3,1,1) + (11) expected_result: + (1,3,1,1) + (12) expected_result: + (1,3,1,1) + *(13) expected_result: + (1,3,1,0) + (14) expected_result: + (1,3,1,1) + +Q13 finished at: 2022-3-30 15:28:19:890:870 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-3-30 15:28:19:930:692 + Q15-T5 execute sql: 'BEGIN;' + Q15 finished at: 2022-3-30 15:28:29:848:807 + Q16-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + *(7) expected_result: + (0,1,0,3) + *(8) expected_result: + (0,1,0,3) + *(9) expected_result: + (0,1,0,3) + *(10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,3) + *(12) expected_result: + (0,1,0,3) + *(13) expected_result: + (0,1,0,3) + *(14) expected_result: + (0,1,0,3) + + Q16 finished at: 2022-3-30 15:28:29:936:480 + Q17-T5 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + *(7) expected_result: + (1,3,1,1) + *(8) expected_result: + (1,3,1,1) + *(9) expected_result: + (1,3,1,1) + *(10) expected_result: + (1,3,1,1) + *(11) expected_result: + (1,3,1,1) + *(12) expected_result: + (1,3,1,1) + *(13) expected_result: + (1,3,1,1) + *(14) expected_result: + (1,3,1,1) + + Q17 finished at: 2022-3-30 15:28:30:23:546 + Q18-T5 execute opt: 'COMMIT'; + Q18 finished at: 2022-3-30 15:28:30:65:594 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..0c4eee09 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,128 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:25:36:967:112 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:25:37:971:771 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 15:25:38:965:20 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q4 finished at: 2022-3-30 15:25:40:11:646 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + null + *(6) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 15:25:41:20:624 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + null + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + null + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-3-30 15:25:42:25:163 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE value1=0;' +Q7 finished at: 2022-3-30 15:25:42:969:621 + Q8-T2 execute sql: 'DELETE FROM t2 WHERE value1=1;' + Q8 finished at: 2022-3-30 15:25:43:976:704 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE value1=2;' + Q9 finished at: 2022-3-30 15:25:44:986:148 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 15:25:45:969:154 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 15:25:46:974:221 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:25:47:970:814 + Q13-T4 execute sql: 'BEGIN;' + Q13 finished at: 2022-3-30 15:25:57:970:65 + Q14-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q14 finished at: 2022-3-30 15:25:58:59:70 + Q15-T4 execute sql: 'SELECT * FROM t2;' + current_result: + null + (1) expected_result: + + (2) expected_result: + + (3) expected_result: + + (4) expected_result: + + (5) expected_result: + + (6) expected_result: + + + Q15 finished at: 2022-3-30 15:25:58:146:751 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-3-30 15:25:58:188:726 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..ac8d286f --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,125 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:26:24:602:338 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:26:25:612:802 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 15:26:26:609:152 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,0,2,0) + (5) expected_result: + (2,0,2,0) + (6) expected_result: + (2,0,2,0) + +Q4 finished at: 2022-3-30 15:26:27:646:893 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + null + (1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,0) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1,0,0) + *(6) expected_result: + null + + Q5 finished at: 2022-3-30 15:26:28:663:595 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + null + (1) expected_result: + (1,3,1,0) + *(2) expected_result: + null + (3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,0) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-3-30 15:26:29:677:424 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q7 finished at: 2022-3-30 15:26:30:604:51 + Q8-T2 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + Q8 finished at: 2022-3-30 15:26:31:615:229 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + Q9 finished at: 2022-3-30 15:26:32:617:888 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 15:26:33:605:196 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 15:26:34:615:249 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:26:35:615:576 + Q13-T4 execute sql: 'BEGIN;' + Q13 finished at: 2022-3-30 15:26:45:603:528 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,0) (2,0,2,0) + *(1) expected_result: + (0,1,0,0) (2,0,2,0) + *(2) expected_result: + (0,1,0,0) (2,0,2,0) + *(3) expected_result: + (0,1,0,0) (2,0,2,0) + *(4) expected_result: + (0,1,0,0) (2,0,2,0) + *(5) expected_result: + (0,1,0,0) (2,0,2,0) + *(6) expected_result: + (0,1,0,0) (2,0,2,0) + + Q14 finished at: 2022-3-30 15:26:45:684:305 + Q15-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,0) + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q15 finished at: 2022-3-30 15:26:45:762:98 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-3-30 15:26:45:797:679 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..7240f9e4 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,159 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:29:24:869:272 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:29:25:876:595 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 15:29:26:871:948 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + *(5) expected_result: + (0,1,0,0) + *(6) expected_result: + (0,1,0,0) + +Q4 finished at: 2022-3-30 15:29:27:912:883 +Q5-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + +Q5 finished at: 2022-3-30 15:29:27:997:126 + Q6-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,0) + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-3-30 15:29:28:952:879 + Q6-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q6 finished at: 2022-3-30 15:29:29:6:1 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 15:29:29:57:461 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + (4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,0) + *(6) expected_result: + (0,1,0,0) + + Q9 finished at: 2022-3-30 15:29:29:917:539 + Q10-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + (2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + (5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,0) + + Q10 finished at: 2022-3-30 15:29:30:1:949 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 15:29:30:42:935 +Q12-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q12 finished at: 2022-3-30 15:29:31:2:349 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-3-30 15:29:31:44:635 + Q14-T4 execute sql: 'BEGIN;' + Q14 finished at: 2022-3-30 15:29:40:874:912 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + + Q15 finished at: 2022-3-30 15:29:40:967:136 + Q16-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q16 finished at: 2022-3-30 15:29:41:58:118 + Q17-T4 execute opt: 'COMMIT'; + Q17 finished at: 2022-3-30 15:29:41:102:34 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..1b13c86a --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,183 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:27:28:270:45 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:27:29:271:986 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 15:27:30:279:140 +Q4-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,2) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + +Q4 finished at: 2022-3-30 15:27:31:315:605 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,2) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + (0,1,0,2) + (6) expected_result: + (0,1,0,2) + + Q5 finished at: 2022-3-30 15:27:32:317:917 + Q6-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q6 finished at: 2022-3-30 15:27:32:361:202 + Q7-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,0) + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q7 finished at: 2022-3-30 15:27:32:445:236 + Q8-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q8 finished at: 2022-3-30 15:27:32:488:636 + Q9-T2 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 15:27:32:531:888 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + *(4) expected_result: + (2,0,2,0) + *(5) expected_result: + (2,0,2,0) + *(6) expected_result: + (2,0,2,0) + + Q10 finished at: 2022-3-30 15:27:33:318:26 + Q11-T3 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q11 finished at: 2022-3-30 15:27:33:363:572 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,0) + + Q12 finished at: 2022-3-30 15:27:33:450:647 + Q13-T3 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q13 finished at: 2022-3-30 15:27:33:494:189 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 15:27:33:538:77 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + (2,0,2,2) + (5) expected_result: + (2,0,2,1) + (6) expected_result: + (2,0,2,1) + +Q15 finished at: 2022-3-30 15:27:34:311:876 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-3-30 15:27:34:351:331 + Q17-T4 execute sql: 'BEGIN;' + Q17 finished at: 2022-3-30 15:27:44:267:423 + Q18-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,2) (2,0,2,1) + *(1) expected_result: + (0,1,0,2) (2,0,2,1) + *(2) expected_result: + (0,1,0,2) (2,0,2,1) + *(3) expected_result: + (0,1,0,2) (2,0,2,1) + *(4) expected_result: + (0,1,0,2) (2,0,2,1) + *(5) expected_result: + (0,1,0,2) (2,0,2,1) + *(6) expected_result: + (0,1,0,2) (2,0,2,1) + + Q18 finished at: 2022-3-30 15:27:44:345:874 + Q19-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q19 finished at: 2022-3-30 15:27:44:424:324 + Q20-T4 execute opt: 'COMMIT'; + Q20 finished at: 2022-3-30 15:27:44:465:636 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..c12f8064 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,37 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:20:3:17:385 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:20:4:13:740 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q3 finished at: 2022-3-30 15:20:5:64:272 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-3-30 15:20:6:16:509 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 15:20:6:64:880 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q6 failed at: 2022-3-30 15:20:7:618:793 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..e917b7d5 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:19:27:572:344 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:19:28:568:329 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 15:19:29:621:282 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-3-30 15:19:30:570:993 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 15:19:30:612:871 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-3-30 15:19:31:618:862 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 15:19:31:663:990 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 15:19:41:573:23 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-3-30 15:19:41:665:188 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 15:19:41:709:194 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..955d7410 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 14:47:58:191:908 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 14:47:59:184:758 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 14:48:0:185:85 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 14:48:1:190:406 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 14:48:1:286:39 +Q6-T1 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 14:48:3:187:519 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q6 failed at: 2022-3-30 14:48:3:813:682 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..3c21b685 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 14:49:26:589:729 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 14:49:27:593:47 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 14:49:28:594:603 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 14:49:29:621:849 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 14:49:29:736:238 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 14:49:29:895:502 +Q7-T1 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' +Q7 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q7 failed at: 2022-3-30 14:49:31:295:851 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..08b15007 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 14:49:58:266:750 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 14:49:59:267:407 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 14:50:0:271:719 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 14:50:1:292:276 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q6 finished at: 2022-3-30 14:50:2:311:261 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 14:50:2:352:268 + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q5 failed at: 2022-3-30 14:50:2:955:192 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_read_skew.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..60d3456b --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,74 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 14:51:51:404:586 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 14:51:52:406:525 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q3 finished at: 2022-3-30 14:51:53:450:456 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 14:51:54:426:111 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-3-30 14:51:54:482:438 +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q6 finished at: 2022-3-30 14:51:55:449:283 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 14:51:56:412:438 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 14:51:57:405:250 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 14:52:7:404:555 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 14:52:7:490:371 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 14:52:7:571:322 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 14:52:7:610:358 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_read_skew2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..105c0990 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,74 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 14:59:8:418:956 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 14:59:9:421:625 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 14:59:10:424:284 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-3-30 14:59:11:490:270 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 14:59:11:592:104 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-3-30 14:59:12:424:275 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 14:59:12:465:587 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 14:59:13:423:598 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 14:59:23:417:631 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 14:59:23:497:316 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 14:59:23:575:352 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 14:59:23:612:735 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..6636f032 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,74 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 14:59:51:34:749 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 14:59:52:32:959 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 14:59:53:39:593 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-3-30 14:59:54:94:959 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 14:59:54:196:504 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 14:59:54:238:138 +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-3-30 14:59:55:39:358 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 14:59:55:83:478 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 15:0:5:31:679 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 15:0:5:115:340 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 15:0:5:197:457 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:0:5:237:350 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..2267f783 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,74 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 14:54:39:22:980 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 14:54:40:22:275 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE value2=0;' + current_result: + (0,1,0,0) + (1) expected_result: + null + *(2) expected_result: + (0,1,0,0) + +Q3 finished at: 2022-3-30 14:54:41:69:906 + Q4-T2 execute sql: 'DELETE FROM t2 WHERE value1=1;' + Q4 finished at: 2022-3-30 14:54:42:41:889 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE value1=0;' + Q5 finished at: 2022-3-30 14:54:42:100:120 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 14:54:42:255:541 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE value2=0;' + current_result: + (0,1,0,0) + (1) expected_result: + null + *(2) expected_result: + (0,1,0,0) + +Q7 finished at: 2022-3-30 14:54:43:75:510 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 14:54:43:118:168 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 14:54:53:19:902 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q10 finished at: 2022-3-30 14:54:53:100:356 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q11 finished at: 2022-3-30 14:54:53:180:829 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 14:54:53:218:620 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..b5facd5c --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 14:57:58:425:863 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 14:57:59:427:969 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q3 finished at: 2022-3-30 14:58:0:468:192 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-3-30 14:58:1:430:556 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-3-30 14:58:1:472:893 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 14:58:1:516:116 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-3-30 14:58:2:464:187 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 14:58:2:501:661 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 14:58:12:424:546 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q10 finished at: 2022-3-30 14:58:12:505:482 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 14:58:12:542:557 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..a8ae030e --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,72 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 14:46:13:336:260 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 14:46:14:337:742 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 14:46:15:342:241 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 14:46:16:350:39 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 14:46:16:449:473 +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1; ' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q6 finished at: 2022-3-30 14:46:17:384:431 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 14:46:18:339:213 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 14:46:19:339:647 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 14:46:29:334:453 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 14:46:29:419:442 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 14:46:29:502:895 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 14:46:29:543:94 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..2f6ee54f --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,72 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 14:47:16:465:537 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 14:47:17:469:562 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 14:47:18:470:517 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 14:47:19:493:596 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 14:47:19:596:606 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 14:47:19:750:240 +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q7 finished at: 2022-3-30 14:47:20:508:138 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 14:47:20:547:992 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 14:47:30:469:763 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 14:47:30:556:490 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 14:47:30:642:29 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 14:47:30:683:188 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_mda_step_rat.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..b585b868 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,128 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:2:4:243:509 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:2:5:249:2 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 15:2:6:242:915 +Q4-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q4 finished at: 2022-3-30 15:2:7:248:597 + Q5-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q5 finished at: 2022-3-30 15:2:8:272:612 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + + Q6 finished at: 2022-3-30 15:2:8:379:268 + Q7-T3 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q7 finished at: 2022-3-30 15:2:9:246:221 + Q8-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q8 finished at: 2022-3-30 15:2:9:329:2 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + (2,0,2,1) + (5) expected_result: + (2,0,2,1) + (6) expected_result: + (2,0,2,1) + +Q9 finished at: 2022-3-30 15:2:10:286:331 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 15:2:10:327:592 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 15:2:11:253:12 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:2:12:245:591 + Q13-T4 execute sql: 'BEGIN;' + Q13 finished at: 2022-3-30 15:2:22:248:594 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) (2,0,2,1) + *(1) expected_result: + (0,1,0,3) (2,0,2,1) + *(2) expected_result: + (0,1,0,3) (2,0,2,1) + *(3) expected_result: + (0,1,0,3) (2,0,2,1) + *(4) expected_result: + (0,1,0,3) (2,0,2,1) + *(5) expected_result: + (0,1,0,3) (2,0,2,1) + *(6) expected_result: + (0,1,0,3) (2,0,2,1) + + Q14 finished at: 2022-3-30 15:2:22:340:461 + Q15-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q15 finished at: 2022-3-30 15:2:22:430:252 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-3-30 15:2:22:473:301 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..e5f71707 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,244 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN;' + Q1 finished at: 2022-3-30 15:2:39:138:888 +Q2-T1 execute sql: 'BEGIN;' +Q2 finished at: 2022-3-30 15:2:40:144:36 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 15:2:41:136:830 + Q4-T2 execute sql: 'BEGIN;' + Q4 finished at: 2022-3-30 15:2:42:139:327 + Q5-T4 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + (4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + (7) expected_result: + (0,1,0,3) + (8) expected_result: + (0,1,0,3) + *(9) expected_result: + (0,1,0,0) + (10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,0) + (12) expected_result: + (0,1,0,3) + *(13) expected_result: + (0,1,0,0) + *(14) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 15:2:43:184:748 +Q6-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q6 finished at: 2022-3-30 15:2:44:147:300 + Q7-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + (7) expected_result: + (1,3,1,1) + *(8) expected_result: + (1,3,1,0) + (9) expected_result: + (1,3,1,1) + (10) expected_result: + (1,3,1,1) + *(11) expected_result: + (1,3,1,0) + *(12) expected_result: + (1,3,1,0) + *(13) expected_result: + (1,3,1,0) + (14) expected_result: + (1,3,1,1) + + Q7 finished at: 2022-3-30 15:2:45:202:949 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + (7) expected_result: + (0,1,0,3) + (8) expected_result: + (0,1,0,3) + (9) expected_result: + (0,1,0,3) + *(10) expected_result: + (0,1,0,0) + *(11) expected_result: + (0,1,0,0) + *(12) expected_result: + (0,1,0,0) + (13) expected_result: + (0,1,0,3) + (14) expected_result: + (0,1,0,3) + + Q8 finished at: 2022-3-30 15:2:45:298:826 + Q9-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q9 finished at: 2022-3-30 15:2:46:144:316 + Q10-T4 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + *(7) expected_result: + (1,3,1,0) + (8) expected_result: + (1,3,1,1) + (9) expected_result: + (1,3,1,1) + (10) expected_result: + (1,3,1,1) + (11) expected_result: + (1,3,1,1) + *(12) expected_result: + (1,3,1,0) + *(13) expected_result: + (1,3,1,0) + *(14) expected_result: + (1,3,1,0) + + Q10 finished at: 2022-3-30 15:2:47:182:190 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-3-30 15:2:48:146:955 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:2:49:141:445 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-3-30 15:2:50:138:675 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 15:2:51:139:37 + Q15-T5 execute sql: 'BEGIN;' + Q15 finished at: 2022-3-30 15:3:1:139:423 + Q16-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + *(7) expected_result: + (0,1,0,3) + *(8) expected_result: + (0,1,0,3) + *(9) expected_result: + (0,1,0,3) + *(10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,3) + *(12) expected_result: + (0,1,0,3) + *(13) expected_result: + (0,1,0,3) + *(14) expected_result: + (0,1,0,3) + + Q16 finished at: 2022-3-30 15:3:1:227:443 + Q17-T5 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + *(7) expected_result: + (1,3,1,1) + *(8) expected_result: + (1,3,1,1) + *(9) expected_result: + (1,3,1,1) + *(10) expected_result: + (1,3,1,1) + *(11) expected_result: + (1,3,1,1) + *(12) expected_result: + (1,3,1,1) + *(13) expected_result: + (1,3,1,1) + *(14) expected_result: + (1,3,1,1) + + Q17 finished at: 2022-3-30 15:3:1:309:839 + Q18-T5 execute opt: 'COMMIT'; + Q18 finished at: 2022-3-30 15:3:1:349:56 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..093dca34 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:3:21:159:16 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:3:22:165:53 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 15:3:23:164:741 +Q4-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q4 finished at: 2022-3-30 15:3:24:161:753 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q5 finished at: 2022-3-30 15:3:25:167:11 + Q6-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q6 finished at: 2022-3-30 15:3:25:256:422 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-3-30 15:3:26:165:733 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-3-30 15:3:26:254:460 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-3-30 15:3:27:199:356 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 15:3:27:238:886 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 15:3:28:168:278 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:3:29:167:938 + Q13-T4 execute sql: 'BEGIN;' + Q13 finished at: 2022-3-30 15:3:39:160:41 + Q14-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q14 finished at: 2022-3-30 15:3:39:238:156 + Q15-T4 execute opt: 'COMMIT'; + Q15 finished at: 2022-3-30 15:3:39:276:72 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..951b62ae --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:3:55:855:779 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:3:56:860:838 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 15:3:57:861:930 +Q4-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q4 finished at: 2022-3-30 15:3:58:858:15 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q5 finished at: 2022-3-30 15:3:59:861:858 + Q6-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q6 finished at: 2022-3-30 15:3:59:947:685 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-3-30 15:4:0:863:454 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-3-30 15:4:0:951:179 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-3-30 15:4:1:895:74 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 15:4:1:933:543 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 15:4:2:862:319 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 15:4:3:863:905 + Q13-T4 execute sql: 'BEGIN;' + Q13 finished at: 2022-3-30 15:4:13:864:424 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q14 finished at: 2022-3-30 15:4:13:957:743 + Q15-T4 execute opt: 'COMMIT'; + Q15 finished at: 2022-3-30 15:4:14:2:132 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_sda_dirty_read.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..a9df6d10 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_dirty_read test run---------- + Q1-T2 execute sql: 'BEGIN;' + Q1 finished at: 2022-3-30 14:38:14:32:354 +Q2-T1 execute sql: 'BEGIN;' +Q2 finished at: 2022-3-30 14:38:15:26:249 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 14:38:15:67:426 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-3-30 14:38:16:77:853 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-3-30 14:38:17:27:177 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 14:38:18:31:46 + Q7-T3 execute sql: 'BEGIN;' + Q7 finished at: 2022-3-30 14:38:28:32:285 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q8 finished at: 2022-3-30 14:38:28:124:809 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 14:38:28:169:358 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..ba4ef89e --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 14:39:56:876:782 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 14:39:57:878:492 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 14:39:58:879:819 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-3-30 14:39:59:924:270 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-3-30 14:40:0:876:987 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 14:40:1:878:936 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 14:40:2:886:160 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 14:40:12:882:176 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q9 finished at: 2022-3-30 14:40:12:973:817 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 14:40:13:17:883 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..2f13f031 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 14:40:35:636:43 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 14:40:36:641:329 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 14:40:37:638:650 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-3-30 14:40:38:686:935 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 14:40:38:728:533 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-3-30 14:40:39:638:110 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 14:40:39:676:437 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 14:40:49:641:319 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q9 finished at: 2022-3-30 14:40:49:727:704 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 14:40:49:769:12 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..96a1e5b3 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,37 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 14:45:44:541:273 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 14:45:45:547:400 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 14:45:46:544:413 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-3-30 14:45:48:581:927 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-3-30 14:45:48:621:931 + Q4 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q4 failed at: 2022-3-30 14:45:49:23:807 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..96298f0c --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 14:38:42:498:735 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 14:38:43:497:894 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 14:38:44:548:216 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-3-30 14:38:45:499:614 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-3-30 14:38:46:558:96 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 14:38:47:500:468 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 14:38:48:499:427 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 14:38:58:499:533 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-3-30 14:38:58:593:148 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 14:38:58:637:991 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..dde15411 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 14:41:5:225:258 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 14:41:6:224:905 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q3 finished at: 2022-3-30 14:41:7:270:642 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-3-30 14:41:8:226:667 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 14:41:8:269:835 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-3-30 14:41:9:268:101 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 14:41:9:309:458 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 14:41:19:226:190 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q9 finished at: 2022-3-30 14:41:19:313:537 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 14:41:19:355:628 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..ec5a1fb0 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 14:41:31:846:14 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 14:41:32:845:475 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q3 finished at: 2022-3-30 14:41:33:892:60 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-3-30 14:41:34:848:599 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 14:41:34:892:862 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-3-30 14:41:35:888:893 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 14:41:35:930:905 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 14:41:45:844:324 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q9 finished at: 2022-3-30 14:41:45:929:306 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 14:41:45:970:589 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..e36fb5ae --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:8:27:135:951 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:8:28:136:492 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 15:8:29:140:346 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 15:8:30:160:310 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q7 finished at: 2022-3-30 15:8:31:182:721 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 15:8:31:225:192 + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q5 failed at: 2022-3-30 15:8:31:738:807 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..420b9bd4 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:10:46:202:534 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:10:47:200:141 +Q3-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q3 finished at: 2022-3-30 15:10:48:207:579 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-3-30 15:10:49:227:41 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-3-30 15:10:59:690:21 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-3-30 15:11:0:712:428 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..cb06de20 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,34 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:11:24:21:284 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:11:25:18:193 +Q3-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q3 finished at: 2022-3-30 15:11:26:26:182 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-3-30 15:11:27:39:910 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-3-30 15:11:37:564:461 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-3-30 15:11:38:625:910 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..48a3c04b --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,34 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:12:46:987:70 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:12:47:985:510 +Q3-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q3 finished at: 2022-3-30 15:12:48:992:132 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-3-30 15:12:50:12:529 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-3-30 15:13:0:485:639 +Q7 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q7 failed at: 2022-3-30 15:13:1:657:222 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..db3c36a9 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:13:22:792:401 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:13:23:794:121 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q3 finished at: 2022-3-30 15:13:24:835:651 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-3-30 15:13:25:840:760 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-3-30 15:13:25:932:99 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 15:13:27:800:838 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q6 failed at: 2022-3-30 15:13:28:449:387 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..d8a72116 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:14:31:647:494 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:14:32:653:242 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q3 finished at: 2022-3-30 15:14:33:693:89 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-3-30 15:14:34:677:644 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-3-30 15:14:34:740:867 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 15:14:36:659:905 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q6 failed at: 2022-3-30 15:14:37:315:467 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..c3a589e2 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:15:34:273:576 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:15:35:275:9 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 15:15:36:278:624 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-3-30 15:15:37:338:816 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-3-30 15:15:38:278:234 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 15:15:38:318:891 + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q5 failed at: 2022-3-30 15:15:38:894:604 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..a421da98 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:16:54:376:682 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:16:55:378:143 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 15:16:56:446:454 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-3-30 15:16:57:425:591 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-3-30 15:16:58:379:578 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 15:17:0:379:573 + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q5 failed at: 2022-3-30 15:17:0:889:549 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..34b64868 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:17:28:269:655 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:17:29:265:316 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 15:17:30:273:947 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-3-30 15:17:31:329:804 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-3-30 15:17:32:273:827 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 15:17:32:319:296 + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q5 failed at: 2022-3-30 15:17:32:889:515 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..f6eab4c6 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:18:3:15:538 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:18:4:20:657 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 15:18:5:18:298 +Q4-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q4 finished at: 2022-3-30 15:18:6:20:477 + Q5-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q5 finished at: 2022-3-30 15:18:7:46:471 + Q6-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q7-T3 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=2;' + Q7 finished at: 2022-3-30 15:18:8:20:418 + Q8-T3 execute sql: 'UPDATE t2 SET value2=3 WHERE value1=1;' +Q9-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q6 failed at: 2022-3-30 15:18:17:625:107 + Q8 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q8 failed at: 2022-3-30 15:18:18:764:435 +Q9 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-3-30 15:18:19:910:780 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..98b2136d --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:18:41:763:703 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:18:42:759:476 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 15:18:43:762:408 +Q4-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q4 finished at: 2022-3-30 15:18:44:768:459 + Q5-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q5 finished at: 2022-3-30 15:18:45:783:978 + Q6-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q7-T3 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=2;' + Q7 finished at: 2022-3-30 15:18:46:766:70 + Q8-T3 execute sql: 'UPDATE t2 SET value2=3 WHERE value1=1;' +Q9-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q6 failed at: 2022-3-30 15:18:56:404:194 + Q8 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q8 failed at: 2022-3-30 15:18:57:606:584 +Q9 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-3-30 15:18:58:623:232 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..977d3dc5 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,44 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:4:32:192:287 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:4:33:190:58 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 15:4:34:195:303 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-3-30 15:4:36:191:869 +Q5 finished at: 2022-3-30 15:4:36:193:179 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 15:4:37:193:357 + Q7-T3 execute sql: 'BEGIN;' + Q7 finished at: 2022-3-30 15:4:47:191:229 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-3-30 15:4:47:279:641 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 15:4:47:321:946 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..928a7963 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,28 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:5:4:14:690 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:5:5:15:919 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 15:5:6:17:667 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-3-30 15:5:8:17:421 + Q4 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q4 failed at: 2022-3-30 15:5:8:418:664 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_sda_full_write.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..b4562a26 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,30 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:5:31:492:901 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:5:32:490:384 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 15:5:33:495:564 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-3-30 15:5:35:494:497 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-3-30 15:5:35:538:509 + Q4 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q4 failed at: 2022-3-30 15:5:35:939:561 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..271b913c --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,30 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:6:5:655:867 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:6:6:654:657 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 15:6:7:658:646 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-3-30 15:6:9:656:322 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 15:6:9:697:428 + Q4 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q4 failed at: 2022-3-30 15:6:10:99:441 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..768e4c1a --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,37 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:7:55:234:612 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:7:56:219:945 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 15:7:57:227:269 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-3-30 15:7:59:271:717 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 15:7:59:318:480 + Q4 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q4 failed at: 2022-3-30 15:7:59:719:147 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..e0d640e3 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,37 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:6:41:312:897 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:6:42:311:938 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q3 finished at: 2022-3-30 15:6:43:359:601 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-3-30 15:6:44:315:4 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 15:6:46:318:701 +Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q5 failed at: 2022-3-30 15:6:46:819:579 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..38474274 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,37 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 15:7:16:979:650 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 15:7:17:983:96 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q3 finished at: 2022-3-30 15:7:19:35:218 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-3-30 15:7:19:985:703 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 15:7:21:985:363 +Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q5 failed at: 2022-3-30 15:7:22:486:113 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/result_summary/read-committed_total-result.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..a5e025b4 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_c2: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Timeout + +wat_mda_step_wat_c2: Timeout + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/result_summary/repeatable-read_total-result.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..4139416e --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_c2: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Timeout + +wat_mda_step_wat_c2: Timeout + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/result_summary/serializable_total-result.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..4139416e --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/result_summary/serializable_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_c2: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Timeout + +wat_mda_step_wat_c2: Timeout + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..7ba63bfe --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,74 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:25:15:782:299 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:25:16:783:556 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q3 finished at: 2022-3-30 19:25:17:800:113 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 19:25:18:788:8 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-3-30 19:25:18:806:64 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 19:25:18:823:797 +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q7 finished at: 2022-3-30 19:25:19:798:70 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 19:25:19:811:186 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 19:25:29:782:548 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 19:25:29:816:702 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 19:25:29:847:847 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 19:25:29:860:781 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..0b696aea --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:26:22:912:757 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:26:23:925:3 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q3 finished at: 2022-3-30 19:26:24:933:243 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-3-30 19:26:25:939:534 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-3-30 19:26:25:972:52 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 19:26:26:96:642 +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q7 failed at: 2022-3-30 19:26:27:617:622 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_dda_write_skew.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..8952c524 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_dda_write_skew.txt @@ -0,0 +1,72 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:27:22:611:401 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:27:23:617:615 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q3 finished at: 2022-3-30 19:27:24:632:247 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-3-30 19:27:25:651:812 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-3-30 19:27:25:685:606 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-3-30 19:27:26:615:903 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 19:27:26:633:385 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 19:27:27:615:955 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 19:27:37:609:43 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 19:27:37:639:903 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 19:27:37:669:367 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 19:27:37:682:851 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..49591aa0 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,72 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:29:51:473:956 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:29:52:474:83 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q3 finished at: 2022-3-30 19:29:53:496:342 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-3-30 19:29:54:496:425 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-3-30 19:29:54:515:605 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 19:29:54:534:286 +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-3-30 19:29:55:477:11 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 19:29:55:495:612 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 19:30:5:473:97 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 19:30:5:507:957 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 19:30:5:541:432 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 19:30:5:556:466 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..0286065a --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:28:0:759:266 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:28:1:759:549 +Q3-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q3 finished at: 2022-3-30 19:28:2:777:65 +Q4-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q4 finished at: 2022-3-30 19:28:2:791:612 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-3-30 19:28:3:783:30 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-3-30 19:28:3:799:18 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 19:28:3:815:686 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 19:28:4:761:245 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 19:28:14:760:339 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-3-30 19:28:14:794:515 + Q11-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q11 finished at: 2022-3-30 19:28:14:827:437 + Q12-T3 execute sql: 'DROP TABLE mytab;' + Q12 finished at: 2022-3-30 19:28:14:862:85 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-3-30 19:28:14:877:731 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..fc6e043c --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:28:45:175:734 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:28:46:175:393 +Q3-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q3 finished at: 2022-3-30 19:28:47:195:818 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-3-30 19:28:48:193:78 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-3-30 19:28:48:209:598 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 19:28:48:226:796 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-3-30 19:28:49:176:417 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 19:28:49:194:757 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 19:28:59:176:404 + Q10-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q10 finished at: 2022-3-30 19:28:59:212:539 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 19:28:59:228:707 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_mda_step_iat.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..e41616e9 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_mda_step_iat.txt @@ -0,0 +1,128 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:30:22:275:731 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:30:23:274:768 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 19:30:24:272:840 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + (2,0,2,1) + (5) expected_result: + (2,0,2,1) + (6) expected_result: + (2,0,2,1) + +Q4 finished at: 2022-3-30 19:30:25:296:868 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,,3) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 19:30:26:293:381 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-3-30 19:30:27:316:965 +Q7-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q7 finished at: 2022-3-30 19:30:28:278:729 + Q8-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q8 finished at: 2022-3-30 19:30:29:280:990 + Q9-T3 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q9 finished at: 2022-3-30 19:30:30:291:389 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 19:30:31:278:45 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 19:30:32:277:713 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 19:30:33:279:437 + Q13-T4 execute sql: 'BEGIN;' + Q13 finished at: 2022-3-30 19:30:43:276:423 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) (2,0,2,1) + *(1) expected_result: + (0,1,0,3) (2,0,2,1) + *(2) expected_result: + (0,1,0,3) (2,0,2,1) + *(3) expected_result: + (0,1,0,3) (2,0,2,1) + *(4) expected_result: + (0,1,0,3) (2,0,2,1) + *(5) expected_result: + (0,1,0,3) (2,0,2,1) + *(6) expected_result: + (0,1,0,3) (2,0,2,1) + + Q14 finished at: 2022-3-30 19:30:43:312:748 + Q15-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q15 finished at: 2022-3-30 19:30:43:348:615 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-3-30 19:30:43:364:863 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..875ee1d8 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,127 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:34:1:521:280 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:34:2:520:15 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 19:34:3:519:773 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,3) + +Q4 finished at: 2022-3-30 19:34:4:556:482 + Q4-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q4 finished at: 2022-3-30 19:34:5:523:178 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 19:34:5:541:799 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,0) + + Q7 finished at: 2022-3-30 19:34:6:539:627 + Q8-T3 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q8 finished at: 2022-3-30 19:34:6:559:264 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 19:34:6:576:535 +Q10-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,0) + (5) expected_result: + (1,3,1,1) + (6) expected_result: + (1,3,1,1) + +Q10 finished at: 2022-3-30 19:34:7:542:530 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-3-30 19:34:7:559:4 + Q12-T4 execute sql: 'BEGIN;' + Q12 finished at: 2022-3-30 19:34:17:519:578 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + + Q13 finished at: 2022-3-30 19:34:17:553:899 + Q14-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q14 finished at: 2022-3-30 19:34:17:586:802 + Q15-T4 execute opt: 'COMMIT'; + Q15 finished at: 2022-3-30 19:34:17:601:548 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..c0997a1a --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,244 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:33:20:851:641 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:33:21:853:811 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 19:33:22:854:429 + Q4-T4 execute sql: 'BEGIN;' + Q4 finished at: 2022-3-30 19:33:23:853:671 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + *(5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,3) + (7) expected_result: + (0,1,0,3) + *(8) expected_result: + (0,1,0,0) + (9) expected_result: + (0,1,0,3) + (10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,0) + (12) expected_result: + (0,1,0,3) + (13) expected_result: + (0,1,0,3) + (14) expected_result: + (0,1,0,3) + +Q5 finished at: 2022-3-30 19:33:24:870:284 + Q6-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + *(7) expected_result: + (1,3,1,0) + (8) expected_result: + (1,3,1,1) + *(9) expected_result: + (1,3,1,0) + (10) expected_result: + (1,3,1,1) + (11) expected_result: + (1,3,1,1) + (12) expected_result: + (1,3,1,1) + (13) expected_result: + (1,3,1,1) + *(14) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-3-30 19:33:25:874:981 + Q7-T3 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q7 finished at: 2022-3-30 19:33:26:857:427 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 19:33:26:875:361 + Q9-T4 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q9 finished at: 2022-3-30 19:33:27:874:270 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 19:33:27:894:323 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,0) + *(6) expected_result: + (0,1,0,0) + *(7) expected_result: + (0,1,0,0) + *(8) expected_result: + (0,1,0,0) + (9) expected_result: + (0,1,0,3) + (10) expected_result: + (0,1,0,3) + (11) expected_result: + (0,1,0,3) + *(12) expected_result: + (0,1,0,0) + (13) expected_result: + (0,1,0,3) + (14) expected_result: + (0,1,0,3) + + Q11 finished at: 2022-3-30 19:33:28:871:754 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 19:33:28:887:377 +Q13-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,0) + *(4) expected_result: + (1,3,1,0) + (5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,0) + (7) expected_result: + (1,3,1,1) + (8) expected_result: + (1,3,1,1) + *(9) expected_result: + (1,3,1,0) + (10) expected_result: + (1,3,1,1) + (11) expected_result: + (1,3,1,1) + (12) expected_result: + (1,3,1,1) + *(13) expected_result: + (1,3,1,0) + (14) expected_result: + (1,3,1,1) + +Q13 finished at: 2022-3-30 19:33:29:867:546 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-3-30 19:33:29:880:503 + Q15-T5 execute sql: 'BEGIN;' + Q15 finished at: 2022-3-30 19:33:39:852:591 + Q16-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + *(7) expected_result: + (0,1,0,3) + *(8) expected_result: + (0,1,0,3) + *(9) expected_result: + (0,1,0,3) + *(10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,3) + *(12) expected_result: + (0,1,0,3) + *(13) expected_result: + (0,1,0,3) + *(14) expected_result: + (0,1,0,3) + + Q16 finished at: 2022-3-30 19:33:39:884:689 + Q17-T5 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + *(7) expected_result: + (1,3,1,1) + *(8) expected_result: + (1,3,1,1) + *(9) expected_result: + (1,3,1,1) + *(10) expected_result: + (1,3,1,1) + *(11) expected_result: + (1,3,1,1) + *(12) expected_result: + (1,3,1,1) + *(13) expected_result: + (1,3,1,1) + *(14) expected_result: + (1,3,1,1) + + Q17 finished at: 2022-3-30 19:33:39:915:381 + Q18-T5 execute opt: 'COMMIT'; + Q18 finished at: 2022-3-30 19:33:39:929:62 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..31bb18ef --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,128 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:30:59:687:393 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:31:0:691:611 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 19:31:1:696:534 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q4 finished at: 2022-3-30 19:31:2:708:642 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + null + *(6) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 19:31:3:713:976 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + null + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + null + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-3-30 19:31:4:733:478 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE value1=0;' +Q7 finished at: 2022-3-30 19:31:5:690:289 + Q8-T2 execute sql: 'DELETE FROM t2 WHERE value1=1;' + Q8 finished at: 2022-3-30 19:31:6:696:596 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE value1=2;' + Q9 finished at: 2022-3-30 19:31:7:707:349 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 19:31:8:689:839 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 19:31:9:694:783 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 19:31:10:696:785 + Q13-T4 execute sql: 'BEGIN;' + Q13 finished at: 2022-3-30 19:31:20:690:514 + Q14-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q14 finished at: 2022-3-30 19:31:20:724:815 + Q15-T4 execute sql: 'SELECT * FROM t2;' + current_result: + null + (1) expected_result: + + (2) expected_result: + + (3) expected_result: + + (4) expected_result: + + (5) expected_result: + + (6) expected_result: + + + Q15 finished at: 2022-3-30 19:31:20:758:767 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-3-30 19:31:20:774:28 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..7d8dee93 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,125 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:31:49:640:166 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:31:50:637:902 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 19:31:51:638:427 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,0,2,0) + (5) expected_result: + (2,0,2,0) + (6) expected_result: + (2,0,2,0) + +Q4 finished at: 2022-3-30 19:31:52:664:269 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + null + (1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,0) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1,0,0) + *(6) expected_result: + null + + Q5 finished at: 2022-3-30 19:31:53:657:384 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + null + (1) expected_result: + (1,3,1,0) + *(2) expected_result: + null + (3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,0) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-3-30 19:31:54:660:294 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q7 finished at: 2022-3-30 19:31:55:641:541 + Q8-T2 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + Q8 finished at: 2022-3-30 19:31:56:639:201 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + Q9 finished at: 2022-3-30 19:31:57:639:200 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 19:31:58:643:404 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 19:31:59:640:647 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 19:32:0:641:676 + Q13-T4 execute sql: 'BEGIN;' + Q13 finished at: 2022-3-30 19:32:10:639:961 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,0) (2,0,2,0) + *(1) expected_result: + (0,1,0,0) (2,0,2,0) + *(2) expected_result: + (0,1,0,0) (2,0,2,0) + *(3) expected_result: + (0,1,0,0) (2,0,2,0) + *(4) expected_result: + (0,1,0,0) (2,0,2,0) + *(5) expected_result: + (0,1,0,0) (2,0,2,0) + *(6) expected_result: + (0,1,0,0) (2,0,2,0) + + Q14 finished at: 2022-3-30 19:32:10:676:212 + Q15-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,0) + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q15 finished at: 2022-3-30 19:32:10:710:962 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-3-30 19:32:10:726:766 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..0d6439f4 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,159 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:35:8:961:622 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:35:9:963:322 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 19:35:10:960:634 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + *(5) expected_result: + (0,1,0,0) + *(6) expected_result: + (0,1,0,0) + +Q4 finished at: 2022-3-30 19:35:11:982:693 +Q5-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + +Q5 finished at: 2022-3-30 19:35:12:19:258 + Q6-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,0) + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-3-30 19:35:13:8:111 + Q6-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q6 finished at: 2022-3-30 19:35:13:32:499 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 19:35:13:55:596 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + (4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,0) + *(6) expected_result: + (0,1,0,0) + + Q9 finished at: 2022-3-30 19:35:13:979:240 + Q10-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + (2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + (5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,0) + + Q10 finished at: 2022-3-30 19:35:14:9:469 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 19:35:14:24:34 +Q12-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q12 finished at: 2022-3-30 19:35:14:964:470 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-3-30 19:35:14:981:795 + Q14-T4 execute sql: 'BEGIN;' + Q14 finished at: 2022-3-30 19:35:24:961:686 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + + Q15 finished at: 2022-3-30 19:35:24:996:697 + Q16-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q16 finished at: 2022-3-30 19:35:25:30:147 + Q17-T4 execute opt: 'COMMIT'; + Q17 finished at: 2022-3-30 19:35:25:44:967 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..fafbe4a1 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,183 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:32:49:521:848 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:32:50:520:955 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 19:32:51:520:643 +Q4-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,2) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + +Q4 finished at: 2022-3-30 19:32:52:545:204 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,2) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + (0,1,0,2) + (6) expected_result: + (0,1,0,2) + + Q5 finished at: 2022-3-30 19:32:53:544:435 + Q6-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q6 finished at: 2022-3-30 19:32:53:563:404 + Q7-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,0) + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q7 finished at: 2022-3-30 19:32:53:598:711 + Q8-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q8 finished at: 2022-3-30 19:32:53:618:959 + Q9-T2 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 19:32:53:637:851 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + *(4) expected_result: + (2,0,2,0) + *(5) expected_result: + (2,0,2,0) + *(6) expected_result: + (2,0,2,0) + + Q10 finished at: 2022-3-30 19:32:54:540:0 + Q11-T3 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q11 finished at: 2022-3-30 19:32:54:557:75 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,0) + + Q12 finished at: 2022-3-30 19:32:54:590:768 + Q13-T3 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q13 finished at: 2022-3-30 19:32:54:607:723 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 19:32:54:625:805 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + (2,0,2,2) + (5) expected_result: + (2,0,2,1) + (6) expected_result: + (2,0,2,1) + +Q15 finished at: 2022-3-30 19:32:55:541:895 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-3-30 19:32:55:561:338 + Q17-T4 execute sql: 'BEGIN;' + Q17 finished at: 2022-3-30 19:33:5:520:244 + Q18-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,2) (2,0,2,1) + *(1) expected_result: + (0,1,0,2) (2,0,2,1) + *(2) expected_result: + (0,1,0,2) (2,0,2,1) + *(3) expected_result: + (0,1,0,2) (2,0,2,1) + *(4) expected_result: + (0,1,0,2) (2,0,2,1) + *(5) expected_result: + (0,1,0,2) (2,0,2,1) + *(6) expected_result: + (0,1,0,2) (2,0,2,1) + + Q18 finished at: 2022-3-30 19:33:5:556:135 + Q19-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q19 finished at: 2022-3-30 19:33:5:590:786 + Q20-T4 execute opt: 'COMMIT'; + Q20 finished at: 2022-3-30 19:33:5:606:230 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..12fae00c --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,37 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:24:35:408:267 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:24:36:411:943 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q3 finished at: 2022-3-30 19:24:37:425:513 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-3-30 19:24:38:413:977 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 19:24:38:432:919 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q6 failed at: 2022-3-30 19:24:40:9:225 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..37552168 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:24:2:317:953 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:24:3:315:998 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 19:24:4:338:713 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-3-30 19:24:5:318:660 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 19:24:5:335:276 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-3-30 19:24:6:335:200 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 19:24:6:351:637 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 19:24:16:315:79 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-3-30 19:24:16:346:869 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 19:24:16:362:62 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..f14c3d0b --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 18:55:52:117:213 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 18:55:53:120:678 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 18:55:54:121:869 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 18:55:55:148:550 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 18:55:55:207:199 +Q6-T1 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 18:55:57:132:405 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q6 failed at: 2022-3-30 18:55:57:761:140 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..8af03b98 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 18:56:12:393:498 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 18:56:13:396:829 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 18:56:14:398:334 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 18:56:15:431:534 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 18:56:15:490:209 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 18:56:15:620:266 +Q7-T1 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' +Q7 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q7 failed at: 2022-3-30 18:56:17:98:306 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..6c45c55d --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 18:56:30:671:768 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 18:56:31:675:584 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 18:56:32:676:946 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 18:56:33:709:718 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q6 finished at: 2022-3-30 18:56:34:692:857 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 18:56:34:710:435 + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q5 failed at: 2022-3-30 18:56:35:225:231 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_read_skew.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..b9a98f28 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_read_skew.txt @@ -0,0 +1,74 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 18:56:49:935:443 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 18:56:50:948:171 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q3 finished at: 2022-3-30 18:56:51:956:255 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 18:56:52:954:149 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-3-30 18:56:52:994:305 +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q6 finished at: 2022-3-30 18:56:53:956:428 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 18:56:54:945:2 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 18:56:55:935:585 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 18:57:5:944:234 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 18:57:5:981:210 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 18:57:6:17:852 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 18:57:6:34:629 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_read_skew2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..be9485aa --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,74 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:1:1:942:575 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:1:2:943:945 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 19:1:3:948:544 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-3-30 19:1:4:982:201 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 19:1:5:32:762 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-3-30 19:1:5:947:443 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 19:1:5:965:93 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 19:1:6:945:353 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 19:1:16:945:816 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 19:1:16:977:682 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 19:1:17:9:334 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 19:1:17:23:607 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..42b149a3 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,74 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:1:21:279:226 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:1:22:280:808 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 19:1:23:284:671 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-3-30 19:1:24:319:234 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 19:1:24:368:421 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 19:1:24:385:857 +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-3-30 19:1:25:284:192 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 19:1:25:300:990 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 19:1:35:278:838 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 19:1:35:310:830 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 19:1:35:344:129 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 19:1:35:358:157 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..0a7c36f2 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,74 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 18:57:10:320:954 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 18:57:11:324:376 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE value2=0;' + current_result: + (0,1,0,0) + (1) expected_result: + null + *(2) expected_result: + (0,1,0,0) + +Q3 finished at: 2022-3-30 18:57:12:341:886 + Q4-T2 execute sql: 'DELETE FROM t2 WHERE value1=1;' + Q4 finished at: 2022-3-30 18:57:13:342:548 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE value1=0;' + Q5 finished at: 2022-3-30 18:57:13:379:20 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 18:57:13:509:430 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE value2=0;' + current_result: + (0,1,0,0) + (1) expected_result: + null + *(2) expected_result: + (0,1,0,0) + +Q7 finished at: 2022-3-30 18:57:14:338:885 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 18:57:14:354:370 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 18:57:24:322:355 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q10 finished at: 2022-3-30 18:57:24:359:960 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q11 finished at: 2022-3-30 18:57:24:398:456 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 18:57:24:415:408 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..4ccf0fcb --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 18:59:14:729:66 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 18:59:15:729:970 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q3 finished at: 2022-3-30 18:59:16:762:682 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-3-30 18:59:17:732:541 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-3-30 18:59:17:748:801 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 18:59:17:766:941 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-3-30 18:59:18:746:510 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 18:59:18:761:847 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 18:59:28:729:812 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q10 finished at: 2022-3-30 18:59:28:788:873 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 18:59:28:805:869 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..788228b4 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,72 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 18:55:13:310:286 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 18:55:14:313:769 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 18:55:15:315:314 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 18:55:16:343:447 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 18:55:16:401:68 +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1; ' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q6 finished at: 2022-3-30 18:55:17:331:585 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 18:55:18:319:962 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 18:55:19:312:954 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 18:55:29:311:906 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 18:55:29:349:299 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 18:55:29:385:857 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 18:55:29:402:408 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..2b7d50a0 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,72 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 18:55:33:745:773 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 18:55:34:748:981 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 18:55:35:750:582 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 18:55:36:776:940 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 18:55:36:837:452 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 18:55:36:964:639 +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q7 finished at: 2022-3-30 18:55:37:765:819 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 18:55:37:783:619 + Q9-T3 execute sql: 'BEGIN;' + Q9 finished at: 2022-3-30 18:55:47:746:910 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-3-30 18:55:47:784:179 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-3-30 18:55:47:820:952 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 18:55:47:837:686 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_mda_step_rat.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..8145c31a --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_mda_step_rat.txt @@ -0,0 +1,128 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:1:39:631:184 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:1:40:632:492 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 19:1:41:630:720 +Q4-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q4 finished at: 2022-3-30 19:1:42:636:162 + Q5-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q5 finished at: 2022-3-30 19:1:43:651:760 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + + Q6 finished at: 2022-3-30 19:1:43:702:323 + Q7-T3 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q7 finished at: 2022-3-30 19:1:44:632:484 + Q8-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q8 finished at: 2022-3-30 19:1:44:665:980 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + (2,0,2,1) + (5) expected_result: + (2,0,2,1) + (6) expected_result: + (2,0,2,1) + +Q9 finished at: 2022-3-30 19:1:45:649:811 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 19:1:45:666:658 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 19:1:46:637:924 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 19:1:47:633:318 + Q13-T4 execute sql: 'BEGIN;' + Q13 finished at: 2022-3-30 19:1:57:634:290 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) (2,0,2,1) + *(1) expected_result: + (0,1,0,3) (2,0,2,1) + *(2) expected_result: + (0,1,0,3) (2,0,2,1) + *(3) expected_result: + (0,1,0,3) (2,0,2,1) + *(4) expected_result: + (0,1,0,3) (2,0,2,1) + *(5) expected_result: + (0,1,0,3) (2,0,2,1) + *(6) expected_result: + (0,1,0,3) (2,0,2,1) + + Q14 finished at: 2022-3-30 19:1:57:682:483 + Q15-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q15 finished at: 2022-3-30 19:1:57:726:972 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-3-30 19:1:57:745:900 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..ba7d77af --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,244 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN;' + Q1 finished at: 2022-3-30 19:2:2:10:590 +Q2-T1 execute sql: 'BEGIN;' +Q2 finished at: 2022-3-30 19:2:3:10:380 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 19:2:4:8:36 + Q4-T2 execute sql: 'BEGIN;' + Q4 finished at: 2022-3-30 19:2:5:8:777 + Q5-T4 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + (4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + (7) expected_result: + (0,1,0,3) + (8) expected_result: + (0,1,0,3) + *(9) expected_result: + (0,1,0,0) + (10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,0) + (12) expected_result: + (0,1,0,3) + *(13) expected_result: + (0,1,0,0) + *(14) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-3-30 19:2:6:58:388 +Q6-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q6 finished at: 2022-3-30 19:2:7:12:617 + Q7-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + (7) expected_result: + (1,3,1,1) + *(8) expected_result: + (1,3,1,0) + (9) expected_result: + (1,3,1,1) + (10) expected_result: + (1,3,1,1) + *(11) expected_result: + (1,3,1,0) + *(12) expected_result: + (1,3,1,0) + *(13) expected_result: + (1,3,1,0) + (14) expected_result: + (1,3,1,1) + + Q7 finished at: 2022-3-30 19:2:8:27:368 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + (7) expected_result: + (0,1,0,3) + (8) expected_result: + (0,1,0,3) + (9) expected_result: + (0,1,0,3) + *(10) expected_result: + (0,1,0,0) + *(11) expected_result: + (0,1,0,0) + *(12) expected_result: + (0,1,0,0) + (13) expected_result: + (0,1,0,3) + (14) expected_result: + (0,1,0,3) + + Q8 finished at: 2022-3-30 19:2:8:60:275 + Q9-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q9 finished at: 2022-3-30 19:2:9:32:75 + Q10-T4 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + *(7) expected_result: + (1,3,1,0) + (8) expected_result: + (1,3,1,1) + (9) expected_result: + (1,3,1,1) + (10) expected_result: + (1,3,1,1) + (11) expected_result: + (1,3,1,1) + *(12) expected_result: + (1,3,1,0) + *(13) expected_result: + (1,3,1,0) + *(14) expected_result: + (1,3,1,0) + + Q10 finished at: 2022-3-30 19:2:10:40:972 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-3-30 19:2:11:10:980 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 19:2:12:14:532 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-3-30 19:2:13:8:101 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 19:2:14:12:489 + Q15-T5 execute sql: 'BEGIN;' + Q15 finished at: 2022-3-30 19:2:24:8:471 + Q16-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + *(7) expected_result: + (0,1,0,3) + *(8) expected_result: + (0,1,0,3) + *(9) expected_result: + (0,1,0,3) + *(10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,3) + *(12) expected_result: + (0,1,0,3) + *(13) expected_result: + (0,1,0,3) + *(14) expected_result: + (0,1,0,3) + + Q16 finished at: 2022-3-30 19:2:24:43:87 + Q17-T5 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + *(7) expected_result: + (1,3,1,1) + *(8) expected_result: + (1,3,1,1) + *(9) expected_result: + (1,3,1,1) + *(10) expected_result: + (1,3,1,1) + *(11) expected_result: + (1,3,1,1) + *(12) expected_result: + (1,3,1,1) + *(13) expected_result: + (1,3,1,1) + *(14) expected_result: + (1,3,1,1) + + Q17 finished at: 2022-3-30 19:2:24:76:567 + Q18-T5 execute opt: 'COMMIT'; + Q18 finished at: 2022-3-30 19:2:24:91:459 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..da3bd17d --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:2:28:254:32 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:2:29:255:415 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 19:2:30:253:831 +Q4-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q4 finished at: 2022-3-30 19:2:31:257:380 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q5 finished at: 2022-3-30 19:2:32:273:355 + Q6-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q6 finished at: 2022-3-30 19:2:32:312:793 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-3-30 19:2:33:254:352 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-3-30 19:2:33:284:917 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-3-30 19:2:34:271:628 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 19:2:34:288:492 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 19:2:35:260:547 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 19:2:36:255:806 + Q13-T4 execute sql: 'BEGIN;' + Q13 finished at: 2022-3-30 19:2:46:259:33 + Q14-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q14 finished at: 2022-3-30 19:2:46:307:548 + Q15-T4 execute opt: 'COMMIT'; + Q15 finished at: 2022-3-30 19:2:46:326:551 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..1efe3d06 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:5:24:348:559 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:5:25:350:35 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 19:5:26:351:330 +Q4-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q4 finished at: 2022-3-30 19:5:27:358:508 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q5 finished at: 2022-3-30 19:5:28:351:60 + Q6-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q6 finished at: 2022-3-30 19:5:28:384:981 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-3-30 19:5:29:351:783 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-3-30 19:5:29:386:443 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-3-30 19:5:30:365:114 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 19:5:30:381:262 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 19:5:31:353:436 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 19:5:32:353:549 + Q13-T4 execute sql: 'BEGIN;' + Q13 finished at: 2022-3-30 19:5:42:351:60 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q14 finished at: 2022-3-30 19:5:42:386:154 + Q15-T4 execute opt: 'COMMIT'; + Q15 finished at: 2022-3-30 19:5:42:401:889 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_sda_dirty_read.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..2775eee1 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_dirty_read test run---------- + Q1-T2 execute sql: 'BEGIN;' + Q1 finished at: 2022-3-30 18:51:54:338:188 +Q2-T1 execute sql: 'BEGIN;' +Q2 finished at: 2022-3-30 18:51:55:336:25 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 18:51:55:354:223 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-3-30 18:51:56:359:471 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-3-30 18:51:57:336:428 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 18:51:58:338:218 + Q7-T3 execute sql: 'BEGIN;' + Q7 finished at: 2022-3-30 18:52:8:338:106 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q8 finished at: 2022-3-30 18:52:8:385:488 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 18:52:8:402:451 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..73ef7038 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 18:52:32:717:958 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 18:52:33:719:863 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 18:52:34:722:599 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-3-30 18:52:35:739:776 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-3-30 18:52:36:719:167 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 18:52:37:720:63 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 18:52:38:720:437 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 18:52:48:720:119 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q9 finished at: 2022-3-30 18:52:48:757:155 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 18:52:48:774:225 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..5c395c72 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 18:52:52:907:418 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 18:52:53:909:176 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 18:52:54:910:73 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-3-30 18:52:55:929:308 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 18:52:55:946:640 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-3-30 18:52:56:908:241 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 18:52:56:925:843 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 18:53:6:908:903 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q9 finished at: 2022-3-30 18:53:6:945:445 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 18:53:6:962:777 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..d1165657 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,37 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 18:53:47:449:867 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 18:53:48:451:749 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 18:53:49:452:819 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-3-30 18:53:51:468:758 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-3-30 18:53:51:486:465 + Q4 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q4 failed at: 2022-3-30 18:53:51:888:530 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..cd8190cf --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 18:52:12:534:486 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 18:52:13:536:204 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 18:52:14:553:836 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-3-30 18:52:15:537:812 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-3-30 18:52:16:551:426 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 18:52:17:538:452 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 18:52:18:534:793 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 18:52:28:535:996 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-3-30 18:52:28:572:760 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 18:52:28:589:684 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..2c0e748d --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 18:53:11:97:69 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 18:53:12:98:954 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q3 finished at: 2022-3-30 18:53:13:116:514 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-3-30 18:53:14:100:962 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 18:53:14:120:450 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-3-30 18:53:15:114:343 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 18:53:15:130:86 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 18:53:25:98:594 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q9 finished at: 2022-3-30 18:53:25:135:91 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 18:53:25:152:184 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..e83ffaaa --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 18:53:29:267:895 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 18:53:30:267:129 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q3 finished at: 2022-3-30 18:53:31:285:742 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-3-30 18:53:32:268:544 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 18:53:32:287:823 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-3-30 18:53:33:282:594 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 18:53:33:298:172 + Q8-T3 execute sql: 'BEGIN;' + Q8 finished at: 2022-3-30 18:53:43:266:896 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q9 finished at: 2022-3-30 18:53:43:303:403 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 18:53:43:320:409 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..452ca731 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:10:13:689:631 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:10:14:687:502 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 19:10:15:690:771 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-3-30 19:10:16:691:944 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q7 finished at: 2022-3-30 19:10:17:703:995 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 19:10:17:720:319 + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q5 failed at: 2022-3-30 19:10:18:247:198 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..b4c98724 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:10:31:948:413 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:10:32:952:539 +Q3-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q3 finished at: 2022-3-30 19:10:33:954:36 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-3-30 19:10:34:954:115 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-3-30 19:10:45:466:77 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-3-30 19:10:46:534:244 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..cc41df0d --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,34 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:10:51:212:955 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:10:52:216:898 +Q3-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q3 finished at: 2022-3-30 19:10:53:217:435 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-3-30 19:10:54:218:780 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-3-30 19:11:4:709:566 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-3-30 19:11:5:819:419 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..a887993f --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,25 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:11:11:473:920 + Q2-T2 execute sql: 'BEGIN;' + Q2 failed reason: [ma-2.0.3][5.6.25]ORA-00600: internal error code, arguments: -6210, Transaction is timeout errcode: 25000 + Q2 failed at: 2022-3-30 19:11:12:675:612 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..2618e765 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:11:29:753:111 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:11:30:753:987 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q3 finished at: 2022-3-30 19:11:31:774:500 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-3-30 19:11:32:759:158 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-3-30 19:11:32:777:140 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 19:11:34:756:645 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q6 failed at: 2022-3-30 19:11:35:377:374 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..f7e38b32 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:11:49:17:734 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:11:50:18:464 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q3 finished at: 2022-3-30 19:11:51:37:469 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-3-30 19:11:52:33:910 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-3-30 19:11:52:51:507 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 19:11:54:21:245 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q6 failed at: 2022-3-30 19:11:54:649:133 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..5b8ba19c --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:12:9:270:628 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:12:10:292:467 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 19:12:11:274:185 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-3-30 19:12:12:304:22 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-3-30 19:12:13:272:765 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 19:12:13:289:433 + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q5 failed at: 2022-3-30 19:12:13:858:194 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..601b5a6b --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:12:28:525:866 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:12:29:529:161 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 19:12:30:530:708 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-3-30 19:12:31:547:933 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-3-30 19:12:32:528:478 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 19:12:34:528:432 + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q5 failed at: 2022-3-30 19:12:35:61:811 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..3e03195a --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:20:18:717:613 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:20:19:718:641 +Q3-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q3 finished at: 2022-3-30 19:20:20:720:722 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-3-30 19:20:21:741:412 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-3-30 19:20:22:719:52 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 19:20:22:736:402 + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q5 failed at: 2022-3-30 19:20:23:279:50 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..2d192d83 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:13:7:49:522 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:13:8:50:446 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 19:13:9:50:274 +Q4-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q4 finished at: 2022-3-30 19:13:10:54:226 + Q5-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q5 finished at: 2022-3-30 19:13:11:55:80 + Q6-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q7-T3 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=2;' + Q7 finished at: 2022-3-30 19:13:12:51:571 + Q8-T3 execute sql: 'UPDATE t2 SET value2=3 WHERE value1=1;' +Q9-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q6 failed at: 2022-3-30 19:13:21:600:538 + Q8 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q8 failed at: 2022-3-30 19:13:22:838:498 +Q9 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-3-30 19:13:23:916:600 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..3080ae23 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'DROP TABLE t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:13:29:302:362 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:13:30:305:861 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 19:13:31:305:688 +Q4-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q4 finished at: 2022-3-30 19:13:32:307:395 + Q5-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q5 finished at: 2022-3-30 19:13:33:308:38 + Q6-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q7-T3 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=2;' + Q7 finished at: 2022-3-30 19:13:34:304:700 + Q8-T3 execute sql: 'UPDATE t2 SET value2=3 WHERE value1=1;' +Q9-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q6 failed at: 2022-3-30 19:13:43:913:998 + Q8 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q8 failed at: 2022-3-30 19:13:45:113:180 +Q9 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-3-30 19:13:46:161:32 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..f7802c7b --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,44 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:19:39:294:429 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:19:40:295:331 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 19:19:41:297:579 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-3-30 19:19:43:294:195 + Q4 finished at: 2022-3-30 19:19:43:295:340 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 19:19:44:297:884 + Q7-T3 execute sql: 'BEGIN;' + Q7 finished at: 2022-3-30 19:19:54:293:349 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-3-30 19:19:54:327:721 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 19:19:54:342:878 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..e9a6db8f --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,28 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:8:19:845:726 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:8:20:847:931 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 19:8:21:848:446 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-3-30 19:8:23:847:912 + Q4 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q4 failed at: 2022-3-30 19:8:24:251:873 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_sda_full_write.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..1eb310be --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_sda_full_write.txt @@ -0,0 +1,30 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:8:38:959:76 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:8:39:960:239 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 19:8:40:961:958 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-3-30 19:8:42:959:653 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-3-30 19:8:42:975:667 + Q4 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q4 failed at: 2022-3-30 19:8:43:376:969 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..70914099 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,30 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:8:58:74:230 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:8:59:75:242 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 19:9:0:77:144 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-3-30 19:9:2:74:609 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 19:9:2:90:828 + Q4 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q4 failed at: 2022-3-30 19:9:2:491:621 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..85bfb232 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,37 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:9:55:421:580 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:9:56:422:16 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 19:9:57:425:892 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-3-30 19:9:59:437:802 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 19:9:59:453:708 + Q4 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q4 failed at: 2022-3-30 19:9:59:854:330 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..6da3c51a --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,37 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:9:16:189:125 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:9:17:189:824 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q3 finished at: 2022-3-30 19:9:18:206:921 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-3-30 19:9:19:191:508 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 19:9:21:192:331 +Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q5 failed at: 2022-3-30 19:9:21:693:51 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..9b4c3934 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_dis/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,37 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 19:9:35:309:198 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 19:9:36:310:130 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q3 finished at: 2022-3-30 19:9:37:327:82 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-3-30 19:9:38:312:114 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 19:9:40:312:608 +Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q5 failed at: 2022-3-30 19:9:40:813:361 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..0f0afd1f --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:49:44:519:835 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:49:45:523:589 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 11:49:46:574:282 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 11:49:47:526:908 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 11:49:47:545:311 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 11:49:47:565:725 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-3-30 11:49:48:536:400 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 11:49:48:550:257 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 11:49:58:541:272 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 11:49:58:557:144 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..68dac16b --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:50:22:114:453 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:50:23:115:164 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 11:50:24:133:406 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-3-30 11:50:25:118:103 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 11:50:25:134:59 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 11:50:25:152:16 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-3-30 11:50:26:114:731 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 11:50:26:132:724 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 11:50:36:136:995 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 11:50:36:153:857 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_dda_write_skew.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..78afc0a7 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:50:52:561:80 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:50:53:566:394 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 11:50:54:580:597 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-3-30 11:50:55:579:652 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 11:50:55:595:672 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-3-30 11:50:56:561:627 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 11:50:56:579:192 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 11:50:57:563:174 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 11:51:7:579:780 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 11:51:7:594:758 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..e721e520 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:52:11:923:264 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:52:12:919:738 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 11:52:13:939:151 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-3-30 11:52:14:939:993 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 11:52:14:956:899 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 11:52:14:974:707 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-3-30 11:52:15:920:312 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 11:52:15:937:527 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 11:52:25:939:296 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 11:52:25:955:464 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..753c1df6 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,73 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:51:20:923:108 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:51:21:924:509 +Q3-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q3 finished at: 2022-3-30 11:51:22:940:363 +Q4-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q4 finished at: 2022-3-30 11:51:22:953:758 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-3-30 11:51:23:944:399 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-3-30 11:51:23:959:174 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 11:51:23:975:576 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 11:51:24:925:239 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-3-30 11:51:34:945:895 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-3-30 11:51:34:980:449 + Q11-T3 execute sql: 'DROP TABLE mytab;' + Q11 finished at: 2022-3-30 11:51:35:15:127 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 11:51:35:31:559 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..80f3c80a --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:51:46:587:226 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:51:47:585:970 +Q3-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q3 finished at: 2022-3-30 11:51:48:608:793 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-3-30 11:51:49:603:315 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-3-30 11:51:49:618:758 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 11:51:49:634:259 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-3-30 11:51:50:587:981 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 11:51:50:604:740 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-3-30 11:52:0:601:536 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 11:52:0:614:847 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_mda_step_iat.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..f4d8f7ad --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:52:41:196:837 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:52:42:197:225 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 11:52:43:195:979 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q4 finished at: 2022-3-30 11:52:44:216:324 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 11:52:45:217:777 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-3-30 11:52:46:215:931 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-3-30 11:52:47:197:144 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-3-30 11:52:48:198:401 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-3-30 11:52:49:196:926 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 11:52:50:197:856 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 11:52:51:199:740 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 11:52:52:203:257 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-3-30 11:53:2:209:365 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 11:53:2:222:535 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..eceb51d2 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:55:31:339:67 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:55:32:339:712 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 11:55:33:340:787 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q4 finished at: 2022-3-30 11:55:34:357:595 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 11:55:35:341:508 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 11:55:35:358:247 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-3-30 11:55:36:359:444 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-3-30 11:55:36:375:603 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 11:55:36:393:323 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-3-30 11:55:37:355:799 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-3-30 11:55:37:369:777 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-3-30 11:55:47:358:717 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-3-30 11:55:47:373:361 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..b6217c5d --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,206 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:54:56:97:919 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:54:57:100:616 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 11:54:58:102:92 + Q4-T4 execute sql: 'BEGIN;' + Q4 finished at: 2022-3-30 11:54:59:101:830 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q5 finished at: 2022-3-30 11:55:0:116:160 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q6 finished at: 2022-3-30 11:55:1:122:136 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7 finished at: 2022-3-30 11:55:2:104:912 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 11:55:2:124:401 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-3-30 11:55:3:103:496 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 11:55:3:122:43 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-3-30 11:55:4:118:697 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 11:55:4:134:721 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-3-30 11:55:5:113:384 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-3-30 11:55:5:126:706 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-3-30 11:55:15:118:283 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-3-30 11:55:15:133:144 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..20babe59 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:53:18:552:217 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:53:19:560:655 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 11:53:20:552:811 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q4 finished at: 2022-3-30 11:53:21:572:819 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 11:53:22:575:87 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-3-30 11:53:23:572:392 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-3-30 11:53:24:553:945 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-3-30 11:53:25:560:648 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-3-30 11:53:26:553:469 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 11:53:27:554:748 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 11:53:28:562:703 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 11:53:29:555:319 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-3-30 11:53:39:584:650 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 11:53:39:603:122 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..fca08cca --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:53:51:20:106 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:53:52:18:266 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 11:53:53:21:34 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,0) + (5) expected_result: + (2,0) + (6) expected_result: + (2,0) + +Q4 finished at: 2022-3-30 11:53:54:42:85 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,0) + *(6) expected_result: + null + + Q5 finished at: 2022-3-30 11:53:55:36:568 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,0) + *(2) expected_result: + null + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-3-30 11:53:56:36:404 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-3-30 11:53:57:21:390 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-3-30 11:53:58:18:218 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-3-30 11:53:59:19:260 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 11:54:0:22:563 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 11:54:1:21:914 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 11:54:2:21:145 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + *(1) expected_result: + (0,0) (1,0) (2,0) + *(2) expected_result: + (0,0) (1,0) (2,0) + *(3) expected_result: + (0,0) (1,0) (2,0) + *(4) expected_result: + (0,0) (1,0) (2,0) + *(5) expected_result: + (0,0) (1,0) (2,0) + *(6) expected_result: + (0,0) (1,0) (2,0) + + Q13 finished at: 2022-3-30 11:54:12:38:131 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 11:54:12:53:237 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..a391a55e --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,139 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:56:3:630:410 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:56:4:630:440 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 11:56:5:627:985 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q4 finished at: 2022-3-30 11:56:6:650:201 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q5 finished at: 2022-3-30 11:56:6:684:474 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-3-30 11:56:7:652:682 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-3-30 11:56:7:672:359 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 11:56:7:690:855 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-3-30 11:56:8:643:940 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-3-30 11:56:8:672:6 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 11:56:8:685:625 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-3-30 11:56:9:630:718 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-3-30 11:56:9:649:334 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-3-30 11:56:19:644:140 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-3-30 11:56:19:657:629 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..40c6050f --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,161 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:54:24:100:355 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:54:25:100:370 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 11:54:26:102:402 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q4 finished at: 2022-3-30 11:54:27:119:727 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q5 finished at: 2022-3-30 11:54:28:119:491 + Q6-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-3-30 11:54:28:136:859 + Q7-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q7 finished at: 2022-3-30 11:54:28:167:827 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-3-30 11:54:28:182:972 + Q9-T2 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 11:54:28:200:7 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-3-30 11:54:29:128:303 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-3-30 11:54:29:145:696 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-3-30 11:54:29:181:238 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-3-30 11:54:29:198:398 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 11:54:29:217:194 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-3-30 11:54:30:121:118 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-3-30 11:54:30:136:331 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-3-30 11:54:40:123:619 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-3-30 11:54:40:141:194 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..1aff7300 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:49:9:548:88 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:49:10:548:68 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q3 finished at: 2022-3-30 11:49:11:567:813 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-3-30 11:49:12:551:43 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 11:49:12:570:104 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-3-30 11:49:13:548:308 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 11:49:13:566:163 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-3-30 11:49:23:566:323 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 11:49:23:582:159 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..ad2eb5ba --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,57 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:48:25:500:617 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:48:26:501:348 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 11:48:27:520:303 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-3-30 11:48:28:502:880 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 11:48:28:521:866 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-3-30 11:48:29:517:333 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 11:48:29:532:728 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-3-30 11:48:39:515:488 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 11:48:39:528:477 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..44cb7b95 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 1:53:11:605:963 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 1:53:12:605:5 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 1:53:13:609:603 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 1:53:14:605:846 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 1:53:14:694:258 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-3-30 1:53:16:606:337 + Q7 finished at: 2022-3-30 1:53:16:607:117 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 1:53:17:608:114 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-3-30 1:54:48:647:929 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 1:54:48:688:116 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..359947e6 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 1:55:2:11:283 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 1:55:3:10:471 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 1:55:4:13:942 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 1:55:5:11:357 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 1:55:5:145:658 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 1:55:5:188:459 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-3-30 1:55:6:12:86 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 1:55:6:55:187 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-3-30 1:56:37:52:756 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 1:56:37:92:805 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..3046922a --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 1:56:50:415:527 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 1:56:51:415:457 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 1:56:52:418:636 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 1:56:53:415:489 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-3-30 1:56:54:459:498 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 1:56:54:502:905 + Q5 finished at: 2022-3-30 1:56:54:504:167 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 1:56:55:416:822 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 1:58:26:457:419 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 1:58:26:497:597 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_read_skew.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..9a064703 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 1:58:39:815:661 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 1:58:40:815:238 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 1:58:41:861:418 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 1:58:42:817:211 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 1:58:42:857:878 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-3-30 1:58:43:859:163 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 1:58:44:817:40 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 1:58:45:815:780 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 2:0:16:857:266 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 2:0:16:897:529 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_read_skew2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..ee14140d --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 2:4:6:984:399 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 2:4:7:984:519 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 2:4:8:987:202 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-3-30 2:4:10:26:879 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 2:4:10:112:220 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-3-30 2:4:10:984:834 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 2:4:11:28:657 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 2:4:11:984:154 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 2:5:43:26:387 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 2:5:43:66:955 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..5b1d2a55 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 2:5:56:383:930 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 2:5:57:382:987 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 2:5:58:387:110 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-3-30 2:5:59:426:226 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 2:5:59:509:616 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 2:5:59:550:986 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-3-30 2:6:0:385:334 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 2:6:0:428:313 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 2:7:31:426:410 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 2:7:31:466:633 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..7484b7f9 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 2:0:30:222:883 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 2:0:31:222:117 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q3 finished at: 2022-3-30 2:0:32:267:944 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-3-30 2:0:33:223:796 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-3-30 2:0:33:264:632 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 2:0:33:306:881 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-3-30 2:0:34:264:966 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 2:0:34:306:143 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-3-30 2:2:5:267:128 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 2:2:5:307:421 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..7bed423e --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 2:2:18:578:182 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 2:2:19:577:485 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q3 finished at: 2022-3-30 2:2:20:628:439 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-3-30 2:2:21:578:770 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-3-30 2:2:21:619:296 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 2:2:21:665:383 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-3-30 2:2:22:620:414 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 2:2:22:661:517 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-3-30 2:3:53:619:889 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 2:3:53:660:350 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..526b871a --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 1:49:32:801:693 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 1:49:33:800:961 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 1:49:34:804:370 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 1:49:35:805:875 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 1:49:35:889:70 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-3-30 1:49:36:845:696 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 1:49:37:803:19 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 1:49:38:803:713 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 1:51:9:843:945 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 1:51:9:884:130 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..ece0f0fa --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 1:51:23:206:323 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 1:51:24:205:467 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 1:51:25:209:146 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 1:51:26:206:439 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 1:51:26:289:373 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 1:51:26:331:968 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-3-30 1:51:27:250:373 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 1:51:27:293:461 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 1:52:58:248:885 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 1:52:58:289:110 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_mda_step_rat.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..0c21125c --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:58:38:289:252 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:58:39:288:797 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 11:58:40:286:159 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-3-30 11:58:41:292:576 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-3-30 11:58:42:290:326 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q6 finished at: 2022-3-30 11:58:42:325:524 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-3-30 11:58:43:288:27 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-3-30 11:58:43:320:262 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-3-30 11:58:44:309:545 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 11:58:44:329:210 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 11:58:45:291:253 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 11:58:46:288:968 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-3-30 11:58:56:307:48 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 11:58:56:322:710 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..1f621fc0 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,208 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN;' + Q1 finished at: 2022-3-30 11:57:5:201:63 +Q2-T1 execute sql: 'BEGIN;' +Q2 finished at: 2022-3-30 11:57:6:201:321 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 11:57:7:204:376 + Q4-T2 execute sql: 'BEGIN;' + Q4 finished at: 2022-3-30 11:57:8:201:234 + Q5-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 11:57:9:221:677 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-3-30 11:57:10:202:659 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q7 finished at: 2022-3-30 11:57:11:224:211 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q8 finished at: 2022-3-30 11:57:11:259:540 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-3-30 11:57:12:203:651 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-3-30 11:57:13:220:852 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-3-30 11:57:14:204:519 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 11:57:15:203:798 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-3-30 11:57:16:203:153 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 11:57:26:201:304 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-3-30 11:57:26:233:938 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-3-30 11:57:26:248:927 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..c2fcbdc3 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:57:37:538:47 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:57:38:537:353 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 11:57:39:536:840 +Q4-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q4 finished at: 2022-3-30 11:57:40:540:815 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q5 finished at: 2022-3-30 11:57:41:538:908 + Q6-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q6 finished at: 2022-3-30 11:57:41:587:695 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-3-30 11:57:42:537:946 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-3-30 11:57:42:570:377 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-3-30 11:57:43:556:966 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 11:57:43:574:483 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 11:57:44:539:821 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 11:57:45:538:891 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-3-30 11:57:55:565:367 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 11:57:55:580:327 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..484a457d --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:58:6:522:638 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:58:7:523:414 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 11:58:8:523:612 +Q4-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q4 finished at: 2022-3-30 11:58:9:525:886 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q5 finished at: 2022-3-30 11:58:10:525:303 + Q6-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q6 finished at: 2022-3-30 11:58:10:559:740 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-3-30 11:58:11:524:83 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-3-30 11:58:11:575:369 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-3-30 11:58:12:540:706 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 11:58:12:557:902 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 11:58:13:532:173 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 11:58:14:525:941 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-3-30 11:58:24:541:898 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 11:58:24:557:272 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_sda_dirty_read.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..4d3579ce --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_dirty_read test run---------- + Q1-T2 execute sql: 'BEGIN;' + Q1 finished at: 2022-3-30 1:36:49:476:448 +Q2-T1 execute sql: 'BEGIN;' +Q2 finished at: 2022-3-30 1:36:50:477:25 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 1:36:50:520:535 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-3-30 1:36:51:520:431 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-3-30 1:36:52:477:240 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 1:36:53:476:414 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-3-30 1:38:24:519:850 + Q8-T3 execute sql: 'DROP TABLE t1;' + Q8 finished at: 2022-3-30 1:38:24:577:362 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..f2602568 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 1:40:28:109:912 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 1:40:29:109:793 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 1:40:30:112:531 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-3-30 1:40:31:234:768 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-3-30 1:40:32:227:612 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 1:40:33:113:870 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 1:40:34:112:443 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-3-30 1:42:5:151:706 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 1:42:5:191:835 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..81c2cd61 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 1:42:18:465:184 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 1:42:19:463:645 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 1:42:20:467:383 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-3-30 1:42:21:507:283 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 1:42:21:547:573 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-3-30 1:42:22:465:9 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 1:42:22:507:842 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-3-30 1:43:53:506:240 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 1:43:53:546:264 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..0aaf36c7 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 1:47:43:403:135 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 1:47:44:402:616 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 1:47:45:405:904 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-3-30 1:47:47:446:683 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-3-30 1:47:47:490:116 + Q4 finished at: 2022-3-30 1:47:47:491:218 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 1:47:48:404:564 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-3-30 1:49:19:446:181 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 1:49:19:486:432 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..bd025b07 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,56 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 1:38:37:796:410 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 1:38:38:793:285 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 1:38:39:839:955 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-3-30 1:38:40:796:182 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-3-30 1:38:41:838:81 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 1:38:42:798:286 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 1:38:43:794:523 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-3-30 1:40:14:835:580 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..25dca004 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,54 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 1:44:6:777:293 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 1:44:7:777:881 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q3 finished at: 2022-3-30 1:44:8:821:872 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-3-30 1:44:9:777:870 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 1:44:9:820:5 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-3-30 1:44:10:822:820 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 1:44:10:864:405 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-3-30 1:45:41:818:902 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..7b26d283 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,56 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 1:45:55:46:744 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 1:45:56:46:53 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q3 finished at: 2022-3-30 1:45:57:92:211 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-3-30 1:45:58:47:470 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 1:45:58:89:556 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-3-30 1:45:59:90:208 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 1:45:59:131:383 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-3-30 1:47:30:88:608 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 1:47:30:129:586 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..0980ec2b --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 2:28:6:763:856 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 2:28:7:762:625 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 2:28:8:766:71 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 2:28:9:763:374 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-3-30 2:28:10:810:561 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 2:28:10:853:542 + Q5 finished at: 2022-3-30 2:28:10:854:960 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 2:28:10:897:52 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 2:29:41:805:465 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 2:29:41:845:860 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..15192306 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 2:29:55:164:733 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 2:29:56:163:81 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 2:29:57:166:866 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-3-30 2:29:58:163:864 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-3-30 2:30:8:610:322 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-3-30 2:30:9:670:156 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..061be1aa --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:59:36:935:94 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:59:37:932:988 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 11:59:38:937:98 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-3-30 11:59:39:933:250 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-3-30 11:59:50:351:535 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-3-30 11:59:51:443:488 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..7aeaf3fd --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 12:0:24:31:802 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 12:0:25:29:339 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 12:0:26:39:822 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-3-30 12:0:27:30:267 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-3-30 12:0:37:455:637 +Q7 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q7 failed at: 2022-3-30 12:0:38:637:937 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..af80e8af --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 2:35:22:761:24 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 2:35:23:761:116 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 2:35:24:806:287 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-3-30 2:35:25:762:326 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 2:35:25:802:850 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-3-30 2:35:27:762:101 +Q7-T1 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 2:35:27:762:677 +Q7 finished at: 2022-3-30 2:35:27:804:719 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 2:36:58:802:810 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 2:36:58:852:136 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..99e9014a --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 2:37:12:167:418 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 2:37:13:166:453 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 2:37:14:212:446 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-3-30 2:37:15:168:376 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 2:37:15:209:159 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-3-30 2:37:17:168:94 + Q7 finished at: 2022-3-30 2:37:17:169:21 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 2:37:18:169:823 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 2:38:49:209:99 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 2:38:49:249:93 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..9cd1d678 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 2:39:2:564:132 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 2:39:3:563:221 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 2:39:4:567:349 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-3-30 2:39:5:606:430 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-3-30 2:39:6:564:753 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 2:39:6:607:860 + Q5 finished at: 2022-3-30 2:39:6:609:176 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 2:39:7:565:629 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 2:40:38:605:930 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 2:40:38:646:968 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..66176ef3 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 2:40:51:968:680 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 2:40:52:967:849 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 2:40:53:971:577 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-3-30 2:40:55:11:119 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-3-30 2:40:55:969:95 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 2:40:57:971:102 + Q5 finished at: 2022-3-30 2:40:57:972:269 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 2:40:58:14:484 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 2:42:29:10:712 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 2:42:29:50:954 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..ec06ee6e --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 2:42:42:372:612 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 2:42:43:367:404 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 2:42:44:370:218 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-3-30 2:42:45:409:682 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-3-30 2:42:46:367:882 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 2:42:46:411:70 + Q5 finished at: 2022-3-30 2:42:46:412:548 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 2:42:46:454:947 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 2:44:17:409:256 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 2:44:17:449:567 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..1b80c968 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 2:44:30:815:144 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 2:44:31:814:490 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 2:44:32:814:166 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-3-30 2:44:33:817:990 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q5 finished at: 2022-3-30 2:44:34:815:226 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-3-30 2:44:35:815:42 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q6 failed at: 2022-3-30 2:44:45:358:947 + Q8 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q8 failed at: 2022-3-30 2:44:46:559:178 +Q9 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-3-30 2:44:47:617:854 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..cba51a83 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 12:1:15:194:239 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 12:1:16:195:330 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 12:1:17:194:338 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-3-30 12:1:18:197:446 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q5 finished at: 2022-3-30 12:1:19:196:276 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-3-30 12:1:20:196:669 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q6 failed at: 2022-3-30 12:1:29:718:51 + Q8 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q8 failed at: 2022-3-30 12:1:30:919:688 +Q9 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-3-30 12:1:32:2:779 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..248350cd --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,43 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 2:15:22:153:754 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 2:15:23:152:931 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 2:15:24:156:454 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-3-30 2:15:26:154:776 + Q4 finished at: 2022-3-30 2:15:26:155:920 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 2:15:27:155:404 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-3-30 2:16:58:195:543 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 2:16:58:236:408 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..d4c5a3ff --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 2:17:11:508:50 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 2:17:12:507:159 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 2:17:13:510:818 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-3-30 2:17:15:510:384 + Q4 finished at: 2022-3-30 2:17:15:511:830 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 2:17:16:510:855 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-3-30 2:18:47:550:330 + Q8-T3 execute sql: 'DROP TABLE t1;' + Q8 finished at: 2022-3-30 2:18:47:608:431 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 2:18:47:649:430 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_sda_full_write.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..77e7f922 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_sda_full_write.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 2:19:0:921:57 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 2:19:1:920:171 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 2:19:2:923:559 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-3-30 2:19:4:922:99 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-3-30 2:19:4:965:77 + Q4 finished at: 2022-3-30 2:19:4:966:427 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 2:19:5:922:393 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-3-30 2:20:36:962:722 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 2:20:37:2:925 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..534802cd --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 2:20:50:282:532 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 2:20:51:280:610 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 2:20:52:284:16 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-3-30 2:20:54:282:86 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 2:20:54:325:231 + Q4 finished at: 2022-3-30 2:20:54:326:648 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 2:20:54:368:937 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-3-30 2:22:25:323:80 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 2:22:25:363:872 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..5104474a --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 2:26:18:359:498 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 2:26:19:358:523 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 2:26:20:362:493 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-3-30 2:26:22:402:989 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 2:26:22:446:30 + Q4 finished at: 2022-3-30 2:26:22:447:308 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 2:26:22:489:761 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-3-30 2:27:53:400:846 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 2:27:53:441:16 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..764602f6 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 2:22:38:636:664 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 2:22:39:635:640 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q3 finished at: 2022-3-30 2:22:40:681:719 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-3-30 2:22:41:637:526 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-3-30 2:22:43:637:393 +Q6-T1 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 2:22:43:638:115 +Q6 finished at: 2022-3-30 2:22:43:680:466 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-3-30 2:24:14:678:261 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 2:24:14:718:736 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..516c449b --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 2:24:28:4:455 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 2:24:28:998:695 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q3 finished at: 2022-3-30 2:24:30:44:269 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-3-30 2:24:31:0:376 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-3-30 2:24:33:0:145 + Q6 finished at: 2022-3-30 2:24:33:0:983 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 2:24:34:1:698 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-3-30 2:26:5:41:136 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 2:26:5:81:445 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..8891d0f3 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 10:38:21:527:981 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 10:38:22:524:492 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 10:38:23:548:301 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 10:38:24:526:402 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 10:38:24:539:605 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 10:38:24:554:758 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-3-30 10:38:25:547:832 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 10:38:25:564:792 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 10:39:56:548:96 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 10:39:56:564:200 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..4022b671 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 1:9:7:283:344 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 1:9:8:286:676 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 1:9:9:325:743 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-3-30 1:9:10:288:460 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 1:9:10:330:744 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 1:9:10:374:812 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q7 failed at: 2022-3-30 1:9:11:984:610 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_dda_write_skew.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..88f8bc67 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 10:47:56:929:266 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 10:47:57:927:215 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 10:47:58:949:950 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-3-30 10:47:59:945:642 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 10:47:59:961:999 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-3-30 10:48:0:930:449 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 10:48:0:948:958 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 10:48:1:929:505 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 10:48:42:947:33 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 10:48:42:962:174 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..d51bbafe --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 10:40:59:522:135 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 10:41:0:522:664 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 10:41:1:542:564 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-3-30 10:41:2:555:889 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 10:41:2:571:910 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 10:41:2:587:979 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-3-30 10:41:3:522:746 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 10:41:3:538:923 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 10:41:44:540:396 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 10:41:44:554:754 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..6fb7b741 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,73 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 10:42:25:600:868 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 10:42:26:601:46 +Q3-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q3 finished at: 2022-3-30 10:42:27:620:902 +Q4-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q4 finished at: 2022-3-30 10:42:27:636:527 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-3-30 10:42:28:621:311 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-3-30 10:42:28:637:212 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 10:42:28:654:908 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 10:42:29:603:216 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-3-30 10:43:10:622:401 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-3-30 10:43:10:658:771 + Q11-T3 execute sql: 'DROP TABLE mytab;' + Q11 finished at: 2022-3-30 10:43:10:694:695 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 10:43:10:712:19 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..026092d0 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 10:46:46:243:39 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 10:46:47:244:507 +Q3-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q3 finished at: 2022-3-30 10:46:48:262:85 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-3-30 10:46:49:267:689 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-3-30 10:46:49:285:664 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 10:46:49:306:904 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-3-30 10:46:50:243:722 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 10:46:50:260:260 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-3-30 10:47:31:259:847 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 10:47:31:274:504 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_mda_step_iat.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..5463ddbf --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:1:21:958:17 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:1:22:957:349 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 11:1:23:956:901 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q4 finished at: 2022-3-30 11:1:24:978:239 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 11:1:25:977:149 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-3-30 11:1:26:975:920 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-3-30 11:1:27:959:194 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-3-30 11:1:28:957:806 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-3-30 11:1:29:957:432 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 11:1:30:961:0 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 11:1:31:964:391 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 11:1:32:959:559 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-3-30 11:2:13:979:567 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 11:2:13:996:599 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..bbdea31f --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,107 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 10:50:20:529:345 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 10:50:21:539:380 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 10:50:22:528:354 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q4 finished at: 2022-3-30 10:50:23:549:30 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 10:50:24:532:386 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 10:50:24:550:90 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-3-30 10:50:25:545:915 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-3-30 10:50:25:567:844 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 10:50:25:585:680 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-3-30 10:50:26:548:721 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-3-30 10:50:26:564:153 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-3-30 10:51:7:550:907 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-3-30 10:51:7:567:289 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..bbfcb606 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,208 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 10:51:46:91:440 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 10:51:47:92:478 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 10:51:48:90:375 + Q4-T4 execute sql: 'BEGIN;' + Q4 finished at: 2022-3-30 10:51:49:91:302 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q5 finished at: 2022-3-30 10:51:50:109:915 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q6 finished at: 2022-3-30 10:51:51:112:551 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7 finished at: 2022-3-30 10:51:52:93:499 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 10:51:52:108:964 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-3-30 10:51:53:92:155 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 10:51:53:108:406 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-3-30 10:51:54:111:43 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 10:51:54:126:812 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-3-30 10:51:55:114:167 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-3-30 10:51:55:128:370 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-3-30 10:52:36:113:268 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-3-30 10:52:36:129:404 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..cb759377 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 10:53:8:529:675 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 10:53:9:525:840 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 10:53:10:531:659 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q4 finished at: 2022-3-30 10:53:11:549:104 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 10:53:12:543:328 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-3-30 10:53:13:550:950 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-3-30 10:53:14:530:912 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-3-30 10:53:15:526:857 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-3-30 10:53:16:531:483 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 10:53:17:532:67 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 10:53:18:540:572 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 10:53:19:533:371 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-3-30 10:54:0:551:993 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 10:54:0:568:626 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..ab140a73 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 10:55:16:115:883 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 10:55:17:114:310 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 10:55:18:114:850 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,0) + (5) expected_result: + (2,0) + (6) expected_result: + (2,0) + +Q4 finished at: 2022-3-30 10:55:19:137:90 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,0) + *(6) expected_result: + null + + Q5 finished at: 2022-3-30 10:55:20:133:277 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,0) + *(2) expected_result: + null + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-3-30 10:55:21:134:397 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-3-30 10:55:22:117:124 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-3-30 10:55:23:115:194 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-3-30 10:55:24:115:370 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 10:55:25:118:383 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 10:55:26:116:658 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 10:55:27:116:983 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + *(1) expected_result: + (0,0) (1,0) (2,0) + *(2) expected_result: + (0,0) (1,0) (2,0) + *(3) expected_result: + (0,0) (1,0) (2,0) + *(4) expected_result: + (0,0) (1,0) (2,0) + *(5) expected_result: + (0,0) (1,0) (2,0) + *(6) expected_result: + (0,0) (1,0) (2,0) + + Q13 finished at: 2022-3-30 10:56:8:130:94 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 10:56:8:143:776 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..3b45690d --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,139 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 10:57:43:540:556 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 10:57:44:538:222 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 10:57:45:537:209 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q4 finished at: 2022-3-30 10:57:46:562:581 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q5 finished at: 2022-3-30 10:57:46:600:881 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-3-30 10:57:47:555:801 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-3-30 10:57:47:572:309 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 10:57:47:590:25 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-3-30 10:57:48:554:520 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-3-30 10:57:48:584:92 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 10:57:48:598:857 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-3-30 10:57:49:541:515 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-3-30 10:57:49:561:309 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-3-30 10:58:30:559:961 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-3-30 10:58:30:574:291 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..a24bdfaf --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,163 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:0:4:85:415 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:0:5:87:449 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 11:0:6:84:246 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q4 finished at: 2022-3-30 11:0:7:104:343 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q5 finished at: 2022-3-30 11:0:8:107:511 + Q6-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-3-30 11:0:8:124:950 + Q7-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q7 finished at: 2022-3-30 11:0:8:160:121 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-3-30 11:0:8:177:44 + Q9-T2 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 11:0:8:195:944 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-3-30 11:0:9:100:539 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-3-30 11:0:9:113:981 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-3-30 11:0:9:142:96 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-3-30 11:0:9:155:717 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 11:0:9:171:177 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-3-30 11:0:10:104:439 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-3-30 11:0:10:118:946 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-3-30 11:0:51:105:780 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-3-30 11:0:51:121:343 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..d684b5af --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 1:5:30:978:497 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 1:5:31:982:46 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q3 finished at: 2022-3-30 1:5:33:21:375 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-3-30 1:5:33:983:780 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 1:5:34:27:696 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q6 failed at: 2022-3-30 1:5:35:579:675 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..a1340414 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:2:41:50:598 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:2:42:52:118 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 11:2:43:68:83 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-3-30 11:2:44:55:69 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 11:2:44:72:865 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-3-30 11:2:45:66:317 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 11:2:45:80:191 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-3-30 11:3:26:68:244 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 11:3:26:82:454 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..0232ca96 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 0:8:43:40:383 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 0:8:44:38:992 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 0:8:45:42:904 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 0:8:46:39:869 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 0:8:46:71:737 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 0:8:48:41:423 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q6 failed at: 2022-3-30 0:8:48:643:104 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..24a0b934 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:3:53:445:5 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:3:54:442:807 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 11:3:55:447:680 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 11:3:56:443:638 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 11:3:56:475:429 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 11:3:56:492:91 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q7 failed at: 2022-3-30 11:3:58:145:911 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..1f00f317 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 0:12:21:216:310 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 0:12:22:214:759 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 0:12:23:219:105 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 0:12:24:215:614 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-3-30 0:12:25:234:915 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 0:12:25:255:227 + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q5 failed at: 2022-3-30 0:12:25:752:887 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_read_skew.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..25c322c0 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:5:12:679:679 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:5:13:682:639 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 11:5:14:716:855 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 11:5:15:683:875 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 11:5:15:700:925 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-3-30 11:5:16:696:877 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 11:5:17:683:181 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 11:5:18:679:968 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 11:5:59:705:914 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 11:5:59:720:914 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_read_skew2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..93573a57 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 0:19:36:897:790 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 0:19:37:895:943 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 0:19:38:900:128 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-3-30 0:19:39:913:670 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 0:19:39:945:626 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-3-30 0:19:40:897:856 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 0:19:40:915:982 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 0:19:41:896:350 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 0:21:12:916:797 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 0:21:12:933:443 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..9e04073f --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 0:21:26:105:741 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 0:21:27:104:547 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 0:21:28:108:650 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-3-30 0:21:29:122:261 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 0:21:29:155:83 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 0:21:29:169:870 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-3-30 0:21:30:106:238 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 0:21:30:124:128 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 0:23:1:125:733 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 0:23:1:143:258 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..87096e7b --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 0:16:0:522:206 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 0:16:1:521:81 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q3 finished at: 2022-3-30 0:16:2:542:860 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-3-30 0:16:3:522:780 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-3-30 0:16:3:538:775 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 0:16:3:555:641 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-3-30 0:16:4:539:690 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 0:16:4:555:911 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-3-30 0:17:35:541:639 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 0:17:35:558:206 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..3c43d21c --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 0:17:48:688:247 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 0:17:49:686:698 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q3 finished at: 2022-3-30 0:17:50:708:663 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-3-30 0:17:51:688:289 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-3-30 0:17:51:703:230 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 0:17:51:721:287 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-3-30 0:17:52:705:580 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 0:17:52:721:783 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-3-30 0:19:23:707:325 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 0:19:23:723:631 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..3dd93911 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:6:42:551:676 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:6:43:548:620 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 11:6:44:553:68 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 11:6:45:550:619 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 11:6:45:579:668 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-3-30 11:6:46:571:634 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 11:6:47:550:721 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 11:6:48:552:866 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 11:7:29:570:599 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 11:7:29:586:464 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..e2f0b73d --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 0:6:54:834:997 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 0:6:55:834:118 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 0:6:56:838:250 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 0:6:57:834:808 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 0:6:57:866:745 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 0:6:57:885:642 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-3-30 0:6:58:853:868 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 0:6:58:872:92 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 0:8:29:854:391 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 0:8:29:870:817 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_mda_step_rat.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..e8aaab13 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:11:56:146:229 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:11:57:145:798 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 11:11:58:143:970 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-3-30 11:11:59:151:101 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-3-30 11:12:0:146:861 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q6 finished at: 2022-3-30 11:12:0:183:372 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-3-30 11:12:1:146:581 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-3-30 11:12:1:177:765 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-3-30 11:12:2:164:150 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 11:12:2:181:259 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 11:12:3:149:903 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 11:12:4:146:776 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-3-30 11:12:14:165:850 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 11:12:14:181:461 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..db3d0a5f --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,208 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN;' + Q1 finished at: 2022-3-30 11:9:44:7:297 +Q2-T1 execute sql: 'BEGIN;' +Q2 finished at: 2022-3-30 11:9:45:6:730 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 11:9:46:6:596 + Q4-T2 execute sql: 'BEGIN;' + Q4 finished at: 2022-3-30 11:9:47:8:469 + Q5-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 11:9:48:30:195 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-3-30 11:9:49:9:142 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q7 finished at: 2022-3-30 11:9:50:24:791 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q8 finished at: 2022-3-30 11:9:50:59:790 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-3-30 11:9:51:9:19 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-3-30 11:9:52:25:160 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-3-30 11:9:53:8:964 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 11:9:54:10:566 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-3-30 11:9:55:6:324 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 11:10:5:7:476 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-3-30 11:10:5:41:396 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-3-30 11:10:5:57:186 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..476748d0 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:10:25:914:509 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:10:26:909:845 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 11:10:27:910:52 +Q4-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q4 finished at: 2022-3-30 11:10:28:912:343 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q5 finished at: 2022-3-30 11:10:29:912:346 + Q6-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q6 finished at: 2022-3-30 11:10:29:989:44 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-3-30 11:10:30:912:215 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-3-30 11:10:30:948:353 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-3-30 11:10:31:927:714 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 11:10:31:945:678 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 11:10:32:912:322 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 11:10:33:913:81 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-3-30 11:10:43:929:192 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 11:10:43:945:308 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..bd0e9d2d --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:11:11:390:150 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:11:12:389:354 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 11:11:13:389:549 +Q4-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q4 finished at: 2022-3-30 11:11:14:391:944 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q5 finished at: 2022-3-30 11:11:15:391:500 + Q6-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q6 finished at: 2022-3-30 11:11:15:435:70 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-3-30 11:11:16:392:364 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-3-30 11:11:16:434:84 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-3-30 11:11:17:407:579 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 11:11:17:425:743 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 11:11:18:391:479 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 11:11:19:391:150 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-3-30 11:11:29:407:564 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 11:11:29:423:34 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_sda_dirty_read.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..caf4d1f7 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_dirty_read test run---------- + Q1-T2 execute sql: 'BEGIN;' + Q1 finished at: 2022-3-29 23:52:22:458:226 +Q2-T1 execute sql: 'BEGIN;' +Q2 finished at: 2022-3-29 23:52:23:459:409 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-29 23:52:23:479:289 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-3-29 23:52:24:475:931 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-3-29 23:52:25:459:686 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-29 23:52:26:458:409 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-3-29 23:53:57:478:828 + Q8-T3 execute sql: 'DROP TABLE t1;' + Q8 finished at: 2022-3-29 23:53:57:513:143 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..8444dd50 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-29 23:56:0:801:298 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-29 23:56:1:799:916 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-29 23:56:2:804:31 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-3-29 23:56:3:818:355 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-3-29 23:56:4:801:783 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-29 23:56:5:800:340 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-29 23:56:6:803:508 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-3-29 23:57:37:821:289 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-29 23:57:37:837:815 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..a41aed78 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-29 23:57:50:990:244 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-29 23:57:51:988:872 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-29 23:57:52:992:730 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-3-29 23:57:54:7:15 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-29 23:57:54:22:543 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-3-29 23:57:54:990:575 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-29 23:57:55:8:486 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-3-29 23:59:26:34:501 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-29 23:59:26:51:416 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..4bf09357 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 0:3:15:527:364 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 0:3:16:526:153 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 0:3:17:530:398 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-3-30 0:3:19:546:443 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-3-30 0:3:19:564:446 + Q4 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q4 failed at: 2022-3-30 0:3:19:964:449 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..7523331a --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,56 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-29 23:54:10:630:679 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-29 23:54:11:630:669 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-29 23:54:12:650:385 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-3-29 23:54:13:630:945 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-3-29 23:54:14:648:468 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-29 23:54:15:631:330 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-29 23:54:16:630:963 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-3-29 23:55:47:649:750 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..6b4f92fb --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,56 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-29 23:59:39:184:813 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-29 23:59:40:183:354 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q3 finished at: 2022-3-29 23:59:41:205:128 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-3-29 23:59:42:184:755 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-29 23:59:42:201:389 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-3-29 23:59:43:202:123 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-29 23:59:43:218:327 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-3-30 0:1:14:204:232 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..2add5c74 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 0:1:27:334:874 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 0:1:28:333:304 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q3 finished at: 2022-3-30 0:1:29:355:723 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-3-30 0:1:30:340:174 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 0:1:30:357:772 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-3-30 0:1:31:352:35 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 0:1:31:368:250 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-3-30 0:3:2:354:53 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 0:3:2:370:531 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..582297b2 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 0:43:34:163:576 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 0:43:35:162:744 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 0:43:36:166:297 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 0:43:37:163:725 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-3-30 0:43:38:181:979 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 0:43:38:199:629 + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q5 failed at: 2022-3-30 0:43:38:699:570 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..02c56956 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:13:5:704:623 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:13:6:704:184 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 11:13:7:707:499 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-3-30 11:13:8:705:193 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-3-30 11:13:19:128:218 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-3-30 11:13:20:209:842 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..3eeaa006 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:13:34:881:442 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:13:35:881:822 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 11:13:36:885:428 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-3-30 11:13:37:882:61 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-3-30 11:13:48:305:126 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-3-30 11:13:49:386:796 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..972bfec3 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:14:6:591:210 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:14:7:590:432 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 11:14:8:594:354 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-3-30 11:14:9:592:297 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-3-30 11:14:20:12:853 +Q7 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q7 failed at: 2022-3-30 11:14:21:192:978 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..1266c54d --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:14:38:518:92 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:14:39:512:586 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 11:14:40:536:662 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-3-30 11:14:41:514:475 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 11:14:41:531:537 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 11:14:43:515:104 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q6 failed at: 2022-3-30 11:14:44:116:641 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..29b8f1b7 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 0:52:39:342:173 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 0:52:40:345:559 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 0:52:41:384:496 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-3-30 0:52:42:347:188 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 0:52:42:389:408 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 0:52:44:348:273 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q6 failed at: 2022-3-30 0:52:44:948:967 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..5f97a67b --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:15:12:828:221 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:15:13:830:597 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 11:15:14:831:219 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-3-30 11:15:15:845:880 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-3-30 11:15:16:828:231 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 11:15:16:845:664 + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q5 failed at: 2022-3-30 11:15:17:346:449 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..289ca181 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 0:56:18:655:861 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 0:56:19:659:575 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 0:56:20:659:62 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-3-30 0:56:21:705:341 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-3-30 0:56:22:656:727 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 0:56:24:658:541 + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q5 failed at: 2022-3-30 0:56:25:159:25 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..fa99a756 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:15:39:68:57 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:15:40:66:306 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 11:15:41:70:275 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-3-30 11:15:42:85:258 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-3-30 11:15:43:67:965 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 11:15:43:85:191 + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q5 failed at: 2022-3-30 11:15:43:585:673 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..b875d1a4 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:16:52:699:360 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:16:53:696:667 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 11:16:54:699:602 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-3-30 11:16:55:703:24 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q5 finished at: 2022-3-30 11:16:56:699:149 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-3-30 11:16:57:701:133 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q6 failed at: 2022-3-30 11:17:7:218:242 + Q8 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q8 failed at: 2022-3-30 11:17:8:420:290 +Q9 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-3-30 11:17:9:500:939 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..ef8172c2 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:18:12:810:897 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:18:13:807:884 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 11:18:14:808:934 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-3-30 11:18:15:810:698 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q5 finished at: 2022-3-30 11:18:16:808:861 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-3-30 11:18:17:811:98 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q6 failed at: 2022-3-30 11:18:27:326:356 + Q8 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q8 failed at: 2022-3-30 11:18:28:529:609 +Q9 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-3-30 11:18:29:609:100 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..095c211b --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,43 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:18:45:773:291 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:18:46:773:746 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 11:18:47:775:459 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-3-30 11:18:49:773:473 + Q4 finished at: 2022-3-30 11:18:49:775:57 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 11:18:50:775:833 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-3-30 11:19:0:790:313 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 11:19:0:805:123 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..a9597cb9 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,29 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 0:32:40:453:128 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 0:32:41:451:968 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 0:32:42:456:94 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-3-30 0:32:44:455:106 + Q4 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q4 failed at: 2022-3-30 0:32:44:854:998 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_sda_full_write.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..a0da25f8 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:19:30:198:19 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:19:31:196:274 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 11:19:32:198:117 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-3-30 11:19:34:195:436 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-3-30 11:19:34:212:24 + Q4 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q4 failed at: 2022-3-30 11:19:34:614:101 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..c725e4c6 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 0:36:18:723:28 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 0:36:19:721:737 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 0:36:20:726:57 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-3-30 0:36:22:723:678 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 0:36:22:741:759 + Q4 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q4 failed at: 2022-3-30 0:36:23:141:663 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..4117d4d7 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:20:19:766:653 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:20:20:767:415 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 11:20:21:769:612 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-3-30 11:20:23:783:771 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 11:20:23:801:128 + Q4 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q4 failed at: 2022-3-30 11:20:24:202:901 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..2fce26a0 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 11:21:11:470:244 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 11:21:12:471:700 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q3 finished at: 2022-3-30 11:21:13:487:967 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-3-30 11:21:14:474:65 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 11:21:16:474:820 +Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q5 failed at: 2022-3-30 11:21:16:975:645 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..82ac4dc9 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 0:39:55:991:362 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 0:39:56:990:82 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q3 finished at: 2022-3-30 0:39:58:11:427 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-3-30 0:39:58:991:855 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 0:40:0:992:646 +Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q5 failed at: 2022-3-30 0:40:1:494:60 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/result_summary/read-committed_total-result.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..a5e025b4 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_c2: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Timeout + +wat_mda_step_wat_c2: Timeout + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/result_summary/repeatable-read_total-result.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..4139416e --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_c2: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Timeout + +wat_mda_step_wat_c2: Timeout + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/result_summary/serializable_total-result.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..4139416e --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/result_summary/serializable_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_c2: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Timeout + +wat_mda_step_wat_c2: Timeout + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..204724fe --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:51:4:827:349 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:51:5:826:672 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 21:51:6:847:499 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 21:51:7:829:310 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 21:51:7:844:657 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 21:51:7:861:384 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-3-30 21:51:8:845:962 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 21:51:8:862:460 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 21:51:18:909:858 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 21:51:18:923:378 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..705a7fab --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:51:42:373:770 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:51:43:372:521 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 21:51:44:392:119 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-3-30 21:51:45:376:15 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 21:51:45:388:875 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 21:51:45:404:120 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q7 failed at: 2022-3-30 21:51:47:75:482 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_dda_write_skew.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..6f9c0436 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_dda_write_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:52:8:29:236 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:52:9:30:452 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 21:52:10:46:240 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-3-30 21:52:11:47:67 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 21:52:11:63:488 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-3-30 21:52:12:28:524 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 21:52:12:44:861 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 21:52:13:30:531 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 21:52:23:41:9 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 21:52:23:53:49 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..3b4ab581 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:53:30:864:359 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:53:31:865:477 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 21:53:32:883:185 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-3-30 21:53:33:884:47 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 21:53:33:904:475 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 21:53:33:921:743 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-3-30 21:53:34:865:329 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 21:53:34:881:536 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 21:53:44:883:418 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 21:53:44:898:149 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..66a6884d --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,73 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:52:35:313:361 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:52:36:316:62 +Q3-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q3 finished at: 2022-3-30 21:52:37:332:843 +Q4-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q4 finished at: 2022-3-30 21:52:37:347:322 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-3-30 21:52:38:337:437 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-3-30 21:52:38:354:941 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 21:52:38:374:258 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 21:52:39:315:318 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-3-30 21:52:49:328:992 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-3-30 21:52:49:359:44 + Q11-T3 execute sql: 'DROP TABLE mytab;' + Q11 finished at: 2022-3-30 21:52:49:390:186 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 21:52:49:404:449 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..86dad322 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:53:1:830:45 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:53:2:827:725 +Q3-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q3 finished at: 2022-3-30 21:53:3:851:121 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-3-30 21:53:4:845:543 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-3-30 21:53:4:861:722 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 21:53:4:878:59 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-3-30 21:53:5:830:688 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 21:53:5:850:293 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-3-30 21:53:15:847:916 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 21:53:15:863:371 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_mda_step_iat.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..a56adf4a --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_mda_step_iat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:54:1:993:807 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:54:2:992:78 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 21:54:3:991:210 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q4 finished at: 2022-3-30 21:54:5:11:546 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 21:54:6:12:141 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-3-30 21:54:7:9:41 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-3-30 21:54:8:60:976 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-3-30 21:54:8:992:626 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-3-30 21:54:9:991:861 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 21:54:10:994:210 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 21:54:11:994:751 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 21:54:12:993:234 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-3-30 21:54:23:13:131 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 21:54:23:29:605 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..15bba300 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,107 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:58:7:877:770 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:58:8:879:98 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 21:58:9:879:508 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q4 finished at: 2022-3-30 21:58:10:896:67 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 21:58:11:882:11 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 21:58:11:899:641 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-3-30 21:58:12:897:18 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-3-30 21:58:12:912:783 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 21:58:12:930:167 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-3-30 21:58:13:894:669 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-3-30 21:58:13:908:721 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-3-30 21:58:23:893:198 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-3-30 21:58:23:906:628 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..9172e92d --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,208 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:56:20:115:620 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:56:21:118:547 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 21:56:22:118:962 + Q4-T4 execute sql: 'BEGIN;' + Q4 finished at: 2022-3-30 21:56:23:116:80 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q5 finished at: 2022-3-30 21:56:24:134:167 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q6 finished at: 2022-3-30 21:56:25:140:214 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7 finished at: 2022-3-30 21:56:26:123:311 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 21:56:26:142:437 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-3-30 21:56:27:116:954 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 21:56:27:133:9 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-3-30 21:56:28:137:625 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 21:56:28:154:227 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-3-30 21:56:29:131:245 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-3-30 21:56:29:144:739 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-3-30 21:56:39:136:314 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-3-30 21:56:39:151:817 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..07e27489 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:54:35:993:653 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:54:36:993:252 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 21:54:37:996:226 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q4 finished at: 2022-3-30 21:54:39:22:148 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 21:54:40:12:535 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-3-30 21:54:41:17:188 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-3-30 21:54:41:995:233 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-3-30 21:54:42:994:195 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-3-30 21:54:43:996:948 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 21:54:44:996:0 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 21:54:45:995:519 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 21:54:46:998:854 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-3-30 21:54:57:7:973 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 21:54:57:20:775 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..9d606181 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:55:11:263:422 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:55:12:262:919 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 21:55:13:261:956 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,0) + (5) expected_result: + (2,0) + (6) expected_result: + (2,0) + +Q4 finished at: 2022-3-30 21:55:14:284:484 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,0) + *(6) expected_result: + null + + Q5 finished at: 2022-3-30 21:55:15:282:787 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,0) + *(2) expected_result: + null + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-3-30 21:55:16:280:557 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-3-30 21:55:17:265:14 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-3-30 21:55:18:263:717 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-3-30 21:55:19:262:912 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 21:55:20:266:134 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 21:55:21:265:646 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 21:55:22:264:247 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + *(1) expected_result: + (0,0) (1,0) (2,0) + *(2) expected_result: + (0,0) (1,0) (2,0) + *(3) expected_result: + (0,0) (1,0) (2,0) + *(4) expected_result: + (0,0) (1,0) (2,0) + *(5) expected_result: + (0,0) (1,0) (2,0) + *(6) expected_result: + (0,0) (1,0) (2,0) + + Q13 finished at: 2022-3-30 21:55:32:279:643 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 21:55:32:293:512 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..56f1320d --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,139 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:59:3:201:955 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:59:4:200:71 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 21:59:5:201:126 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q4 finished at: 2022-3-30 21:59:6:222:526 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q5 finished at: 2022-3-30 21:59:6:257:424 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-3-30 21:59:7:219:880 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-3-30 21:59:7:235:416 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 21:59:7:251:724 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-3-30 21:59:8:220:239 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-3-30 21:59:8:251:295 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 21:59:8:266:620 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-3-30 21:59:9:202:957 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-3-30 21:59:9:220:863 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-3-30 21:59:19:219:125 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-3-30 21:59:19:234:222 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..b138bf84 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,163 @@ +#### db_type: ob #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:55:48:244:662 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:55:49:238:447 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 21:55:50:240:570 +Q4-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q4 finished at: 2022-3-30 21:55:51:258:761 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q5 finished at: 2022-3-30 21:55:52:256:706 + Q6-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-3-30 21:55:52:271:653 + Q7-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q7 finished at: 2022-3-30 21:55:52:300:642 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-3-30 21:55:52:314:773 + Q9-T2 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 21:55:52:330:656 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-3-30 21:55:53:265:364 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-3-30 21:55:53:281:256 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-3-30 21:55:53:313:864 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-3-30 21:55:53:329:613 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 21:55:53:347:104 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-3-30 21:55:54:256:662 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-3-30 21:55:54:271:468 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-3-30 21:56:4:258:292 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-3-30 21:56:4:273:442 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..0c8c95a3 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:50:39:167:709 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:50:40:168:966 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q3 finished at: 2022-3-30 21:50:41:183:891 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-3-30 21:50:42:170:958 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 21:50:42:186:612 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q6 failed at: 2022-3-30 21:50:43:768:225 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..f45bf00c --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:50:14:286:484 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:50:15:288:510 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 21:50:16:305:268 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-3-30 21:50:17:291:968 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 21:50:17:309:23 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-3-30 21:50:18:302:672 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 21:50:18:316:230 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-3-30 21:50:28:346:409 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 21:50:28:402:12 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..61b1beb9 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:29:55:344:402 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:29:56:344:722 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 21:29:57:347:492 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 21:29:58:345:911 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 21:29:58:377:246 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 21:30:0:347:73 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q6 failed at: 2022-3-30 21:30:0:947:757 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..c3f45324 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:30:35:754:772 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:30:36:757:609 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 21:30:37:757:640 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 21:30:38:758:450 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 21:30:38:791:465 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 21:30:38:808:713 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q7 failed at: 2022-3-30 21:30:40:457:675 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..b0c2b398 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:31:8:324:255 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:31:9:325:111 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 21:31:10:327:761 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 21:31:11:326:792 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-3-30 21:31:12:340:232 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 21:31:12:355:106 + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q5 failed at: 2022-3-30 21:31:12:855:81 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_read_skew.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..9c3e0e65 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_read_skew.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:31:39:836:108 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:31:40:838:555 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 21:31:41:856:771 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 21:31:42:836:700 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 21:31:42:852:546 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-3-30 21:31:43:855:156 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 21:31:44:837:201 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 21:31:45:836:241 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 21:31:55:855:334 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 21:31:55:871:302 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_read_skew2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..cbd71093 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:33:17:605:391 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:33:18:605:432 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 21:33:19:608:492 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-3-30 21:33:20:622:527 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 21:33:20:651:557 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-3-30 21:33:21:605:829 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 21:33:21:620:926 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 21:33:22:605:974 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 21:33:32:625:509 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 21:33:32:641:33 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..65207f8e --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:33:55:489:529 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:33:56:488:655 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 21:33:57:490:998 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-3-30 21:33:58:507:255 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 21:33:58:539:33 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 21:33:58:553:584 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-3-30 21:33:59:488:596 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 21:33:59:504:27 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 21:34:9:511:325 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 21:34:9:527:590 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..2be6d448 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:32:11:105:306 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:32:12:104:343 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q3 finished at: 2022-3-30 21:32:13:125:498 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-3-30 21:32:14:106:26 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-3-30 21:32:14:123:12 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 21:32:14:141:638 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-3-30 21:32:15:122:723 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 21:32:15:139:450 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-3-30 21:32:25:121:524 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 21:32:25:137:282 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..e143335e --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:32:50:69:28 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:32:51:70:757 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q3 finished at: 2022-3-30 21:32:52:89:265 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-3-30 21:32:53:75:385 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-3-30 21:32:53:91:848 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 21:32:53:109:967 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-3-30 21:32:54:84:904 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 21:32:54:99:198 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-3-30 21:33:4:88:630 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 21:33:4:103:993 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..a36a90ec --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:28:24:902:362 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:28:25:902:434 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 21:28:26:905:469 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 21:28:27:904:171 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 21:28:27:936:556 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-3-30 21:28:28:920:537 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 21:28:29:904:633 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 21:28:30:904:868 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 21:28:40:919:786 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 21:28:40:935:375 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..c76cea69 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:29:6:764:540 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:29:7:764:117 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 21:29:8:769:403 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 21:29:9:773:13 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 21:29:9:806:179 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 21:29:9:822:353 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-3-30 21:29:10:782:389 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 21:29:10:799:155 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-3-30 21:29:20:780:521 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-3-30 21:29:20:794:287 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_mda_step_rat.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..0a56bf75 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:34:55:425:811 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:34:56:427:987 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 21:34:57:426:371 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-3-30 21:34:58:428:444 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-3-30 21:34:59:428:742 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q6 finished at: 2022-3-30 21:34:59:466:571 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-3-30 21:35:0:427:149 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-3-30 21:35:0:458:588 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-3-30 21:35:1:441:320 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 21:35:1:457:408 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 21:35:2:430:467 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 21:35:3:428:717 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-3-30 21:35:13:447:363 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 21:35:13:462:302 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..65510760 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,208 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN;' + Q1 finished at: 2022-3-30 21:35:29:335:592 +Q2-T1 execute sql: 'BEGIN;' +Q2 finished at: 2022-3-30 21:35:30:329:633 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 21:35:31:330:934 + Q4-T2 execute sql: 'BEGIN;' + Q4 finished at: 2022-3-30 21:35:32:330:954 + Q5-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q5 finished at: 2022-3-30 21:35:33:350:436 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-3-30 21:35:34:331:606 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q7 finished at: 2022-3-30 21:35:35:348:843 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q8 finished at: 2022-3-30 21:35:35:377:878 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-3-30 21:35:36:333:157 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-3-30 21:35:37:347:951 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-3-30 21:35:38:332:365 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 21:35:39:333:813 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-3-30 21:35:40:331:164 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 21:35:50:331:994 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-3-30 21:35:50:363:933 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-3-30 21:35:50:378:455 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..01d60eaa --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:36:14:985:144 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:36:15:982:248 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 21:36:16:982:344 +Q4-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q4 finished at: 2022-3-30 21:36:17:985:666 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q5 finished at: 2022-3-30 21:36:18:984:560 + Q6-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q6 finished at: 2022-3-30 21:36:19:17:478 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-3-30 21:36:19:983:778 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-3-30 21:36:20:17:364 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-3-30 21:36:21:1:425 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 21:36:21:19:132 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 21:36:21:985:121 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 21:36:22:990:221 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-3-30 21:36:33:1:273 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 21:36:33:16:480 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..38fbbd23 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: ob #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:36:49:204:240 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:36:50:205:387 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 21:36:51:204:310 +Q4-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q4 finished at: 2022-3-30 21:36:52:206:275 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q5 finished at: 2022-3-30 21:36:53:207:576 + Q6-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q6 finished at: 2022-3-30 21:36:53:244:255 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-3-30 21:36:54:206:164 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-3-30 21:36:54:239:84 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-3-30 21:36:55:221:967 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-3-30 21:36:55:238:750 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-3-30 21:36:56:207:630 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-3-30 21:36:57:206:615 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-3-30 21:37:7:220:575 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-3-30 21:37:7:234:147 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_sda_dirty_read.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..d7cb261b --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_dirty_read test run---------- + Q1-T2 execute sql: 'BEGIN;' + Q1 finished at: 2022-3-30 21:25:23:926:179 +Q2-T1 execute sql: 'BEGIN;' +Q2 finished at: 2022-3-30 21:25:24:925:271 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 21:25:24:941:995 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-3-30 21:25:25:945:381 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-3-30 21:25:26:925:854 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 21:25:27:926:477 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-3-30 21:25:37:942:44 + Q8-T3 execute sql: 'DROP TABLE t1;' + Q8 finished at: 2022-3-30 21:25:37:973:912 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..dad62d72 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:26:27:770:639 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:26:28:770:843 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 21:26:29:773:714 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-3-30 21:26:30:788:991 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-3-30 21:26:31:770:894 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 21:26:32:771:167 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 21:26:33:772:911 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-3-30 21:26:43:792:935 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 21:26:43:809:616 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..290f4fe4 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:26:59:419:986 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:27:0:422:489 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 21:27:1:423:961 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-3-30 21:27:2:440:404 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 21:27:2:455:908 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-3-30 21:27:3:420:630 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 21:27:3:436:665 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-3-30 21:27:13:439:775 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 21:27:13:454:440 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..df4dbad5 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,56 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:25:58:504:858 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:25:59:504:573 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 21:26:0:523:522 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-3-30 21:26:1:507:392 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-3-30 21:26:2:520:517 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 21:26:3:507:24 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 21:26:4:505:241 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-3-30 21:26:14:522:816 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..903a0e81 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,56 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:27:25:365:372 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:27:26:363:367 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q3 finished at: 2022-3-30 21:27:27:390:185 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-3-30 21:27:28:366:163 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 21:27:28:381:333 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-3-30 21:27:29:382:504 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 21:27:29:397:467 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-3-30 21:27:39:384:433 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..8486d10b --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:27:49:951:473 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:27:50:951:261 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q3 finished at: 2022-3-30 21:27:51:972:856 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-3-30 21:27:52:953:984 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-3-30 21:27:52:971:498 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-3-30 21:27:53:968:414 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 21:27:53:983:584 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-3-30 21:28:3:970:856 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-3-30 21:28:3:986:31 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..6594e95d --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:42:41:561:249 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:42:42:563:529 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 21:42:43:564:856 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-3-30 21:42:44:565:588 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-3-30 21:42:45:577:599 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 21:42:45:593:318 + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q5 failed at: 2022-3-30 21:42:46:95:559 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..a0bce9a5 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:43:9:821:357 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:43:10:824:242 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 21:43:11:824:717 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-3-30 21:43:12:826:172 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-3-30 21:43:23:256:783 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-3-30 21:43:24:323:606 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..4d0a8bf2 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:43:38:252:72 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:43:39:252:71 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 21:43:40:253:536 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-3-30 21:43:41:253:750 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-3-30 21:43:51:679:167 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-3-30 21:43:52:759:667 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..c94c5313 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:44:4:675:265 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:44:5:675:718 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 21:44:6:678:241 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-3-30 21:44:7:677:529 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-3-30 21:44:18:96:42 +Q7 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q7 failed at: 2022-3-30 21:44:19:276:733 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..30b92a15 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:46:5:230:649 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:46:6:226:528 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 21:46:7:250:678 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-3-30 21:46:8:230:251 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 21:46:8:243:333 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 21:46:10:229:236 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q6 failed at: 2022-3-30 21:46:10:831:614 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..7fc958f9 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:46:54:306:785 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:46:55:305:469 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q3 finished at: 2022-3-30 21:46:56:324:403 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-3-30 21:46:57:309:688 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-3-30 21:46:57:326:894 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 21:46:59:308:101 +Q6 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q6 failed at: 2022-3-30 21:46:59:909:25 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..9b2c3940 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:47:26:270:928 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:47:27:268:177 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 21:47:28:273:963 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-3-30 21:47:29:285:702 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-3-30 21:47:30:271:404 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 21:47:30:289:591 + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q5 failed at: 2022-3-30 21:47:30:788:577 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..3cf6a8fe --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:47:57:255:998 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:47:58:256:851 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 21:47:59:257:16 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-3-30 21:48:0:274:456 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-3-30 21:48:1:254:833 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 21:48:3:256:438 + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q5 failed at: 2022-3-30 21:48:3:758:291 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..241c21d2 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:48:23:576:583 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:48:24:577:426 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 21:48:25:579:259 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-3-30 21:48:26:599:303 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-3-30 21:48:27:577:138 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-3-30 21:48:27:592:673 + Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q5 failed at: 2022-3-30 21:48:28:94:924 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..d993c679 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:48:49:665:885 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:48:50:666:38 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 21:48:51:666:630 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-3-30 21:48:52:669:140 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q5 finished at: 2022-3-30 21:48:53:666:935 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-3-30 21:48:54:668:916 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q6 failed at: 2022-3-30 21:49:4:191:381 + Q8 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q8 failed at: 2022-3-30 21:49:5:392:130 +Q9 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-3-30 21:49:6:472:577 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..ef055556 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:49:19:67:710 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:49:20:71:194 + Q3-T3 execute sql: 'BEGIN;' + Q3 finished at: 2022-3-30 21:49:21:69:855 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-3-30 21:49:22:70:386 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q5 finished at: 2022-3-30 21:49:23:73:163 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-3-30 21:49:24:72:586 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q6 failed at: 2022-3-30 21:49:33:597:910 + Q8 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 + Q8 failed at: 2022-3-30 21:49:34:797:675 +Q9 failed reason: [ma-2.0.3][5.6.25]ORA-30006: resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-3-30 21:49:35:879:744 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..e7d202d2 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,43 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:37:22:83:278 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:37:23:85:400 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 21:37:24:86:555 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-3-30 21:37:26:83:672 + Q4 finished at: 2022-3-30 21:37:26:85:518 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 21:37:27:87:589 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-3-30 21:37:37:106:34 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-3-30 21:37:37:123:347 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..2009a5e9 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,29 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:37:51:712:884 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:37:52:712:593 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 21:37:53:715:788 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-3-30 21:37:55:714:857 + Q4 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q4 failed at: 2022-3-30 21:37:56:115:344 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_sda_full_write.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..03ab38cd --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_sda_full_write.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:38:54:267:720 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:38:55:269:968 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 21:38:56:270:504 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-3-30 21:38:58:268:336 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-3-30 21:38:58:284:133 + Q4 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q4 failed at: 2022-3-30 21:38:58:687:33 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..4cc674fa --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:39:33:626:200 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:39:34:622:53 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 21:39:35:625:690 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-3-30 21:39:37:623:109 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 21:39:37:639:257 + Q4 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q4 failed at: 2022-3-30 21:39:38:40:681 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..3a955931 --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:41:35:538:731 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:41:36:539:743 +Q3-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q3 finished at: 2022-3-30 21:41:37:541:759 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-3-30 21:41:39:559:409 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-3-30 21:41:39:578:779 + Q4 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 + Q4 failed at: 2022-3-30 21:41:39:979:744 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..179f308e --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:40:7:744:814 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:40:8:743:374 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q3 finished at: 2022-3-30 21:40:9:765:153 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-3-30 21:40:10:745:992 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-3-30 21:40:12:745:775 +Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q5 failed at: 2022-3-30 21:40:13:247:486 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..ca66513b --- /dev/null +++ b/install/test_result/distributed_result/ob_oracle_test/ob_oracle_single/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-3-30 21:40:41:85:411 + Q2-T2 execute sql: 'BEGIN;' + Q2 finished at: 2022-3-30 21:40:42:84:862 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q3 finished at: 2022-3-30 21:40:43:103:208 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-3-30 21:40:44:87:565 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-3-30 21:40:46:87:401 +Q5 failed reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction errcode: 25000 +Q5 failed at: 2022-3-30 21:40:46:588:83 + +Test Result: Rollback +Reason: [ma-2.0.3][5.6.25]ORA-08177: can't serialize access for this transaction + diff --git a/install/test_result/distributed_result/readme.txt b/install/test_result/distributed_result/readme.txt new file mode 100644 index 00000000..2be4d524 --- /dev/null +++ b/install/test_result/distributed_result/readme.txt @@ -0,0 +1,6 @@ +ob: Oceanbase +crdb: CockroachDB +gp: greenplum + +single: centrailized test +dist: distributed test \ No newline at end of file diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..7f3a83c6 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,73 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:26:20:661:649 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-23 22:26:20:700:288 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:26:21:696:330 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-23 22:26:21:732:617 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-23 22:26:21:767:754 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 22:26:21:802:615 +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q7 finished at: 2022-4-23 22:26:22:699:857 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 22:26:22:738:400 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-23 22:26:42:699:695 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-23 22:26:42:738:554 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + (2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-23 22:26:42:777:367 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 22:26:42:815:901 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..2b5c0f97 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,66 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:26:47:110:74 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-23 22:26:47:148:851 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:26:48:144:683 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-23 22:26:48:180:697 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-23 22:26:48:215:759 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 22:26:48:250:615 +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-4-23 22:26:49:148:548 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 22:26:49:187:266 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-23 22:27:9:148:90 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-23 22:27:9:186:942 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + (1) expected_result: + (1,3,1,2) + (2) expected_result: + (1,3,1,2) + + Q11 finished at: 2022-4-23 22:27:9:225:595 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 22:27:9:263:892 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_dda_write_skew.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..cd1b51b7 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,73 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:27:13:559:594 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-23 22:27:13:598:216 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:27:14:594:245 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,3,1,1) + (2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-23 22:27:14:632:336 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-23 22:27:14:667:554 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-23 22:27:15:597:836 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 22:27:15:636:489 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-23 22:27:16:594:506 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-23 22:27:36:597:627 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-23 22:27:36:636:508 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-23 22:27:36:675:181 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 22:27:36:713:621 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..531db3ef --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,73 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:28:33:757:520 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-23 22:28:33:796:503 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:28:34:792:261 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,3,1,1) + (2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-23 22:28:34:827:583 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-23 22:28:34:862:868 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 22:28:34:897:732 +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-4-23 22:28:35:795:771 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 22:28:35:834:260 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-23 22:28:55:795:465 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-23 22:28:55:834:321 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-23 22:28:55:873:197 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 22:28:55:911:586 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..1bccf08e --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,75 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL PRIMARY KEY);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:27:40:974:420 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-23 22:27:41:13:174 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-23 22:27:41:51:272 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-23 22:27:42:8:988 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (,) + (1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-23 22:27:42:44:354 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-23 22:27:42:79:474 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 22:27:42:114:828 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 22:27:43:13:142 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-23 22:28:3:12:548 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-23 22:28:3:51:453 + Q11-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q11 finished at: 2022-4-23 22:28:3:90:80 + Q12-T3 execute sql: 'DROP TABLE mytab;' + Q12 finished at: 2022-4-23 22:28:3:146:870 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-23 22:28:3:184:928 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..ca9201b4 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,62 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:28:7:381:599 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-23 22:28:7:420:237 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:28:8:419:874 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + null + (1) expected_result: + (checking,500,) (saving,1400,) + (2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-23 22:28:8:457:723 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-23 22:28:9:420:594 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 22:28:9:458:996 + Q5 finished at: 2022-4-23 22:28:9:459:555 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 22:28:9:494:759 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-23 22:28:29:381:624 + Q10-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q10 finished at: 2022-4-23 22:28:29:420:781 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-23 22:28:29:459:120 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_mda_step_iat.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..612576f6 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,129 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:29:0:246:448 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + (2,0,2,1) + (5) expected_result: + (2,0,2,1) + (6) expected_result: + (2,0,2,1) + +Q2 finished at: 2022-4-23 22:29:0:285:134 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:29:1:280:993 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + null + (1) expected_result: + (0,1,0,,3) + (2) expected_result: + (0,1,0,3) + (3) expected_result: + (0,1,0,0) + (4) expected_result: + (0,1,0,0) + (5) expected_result: + (0,1,0,3) + (6) expected_result: + (0,1,0,0) + + Q4 finished at: 2022-4-23 22:29:1:317:705 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-23 22:29:2:284:455 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + null + (1) expected_result: + (1,3,1,1) + (2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + (5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-4-23 22:29:2:323:516 +Q7-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q7 finished at: 2022-4-23 22:29:3:284:602 + Q8-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q8 finished at: 2022-4-23 22:29:4:281:510 + Q9-T3 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q9 finished at: 2022-4-23 22:29:5:285:159 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-23 22:29:6:285:15 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-23 22:29:7:281:251 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 22:29:8:284:667 + Q13-T4 execute opt: 'BEGIN' + Q13 finished at: 2022-4-23 22:29:28:282:103 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) (2,0,2,0) + (1) expected_result: + (0,1,0,3) (2,0,2,1) + (2) expected_result: + (0,1,0,3) (2,0,2,1) + (3) expected_result: + (0,1,0,3) (2,0,2,1) + (4) expected_result: + (0,1,0,3) (2,0,2,1) + (5) expected_result: + (0,1,0,3) (2,0,2,1) + (6) expected_result: + (0,1,0,3) (2,0,2,1) + + Q14 finished at: 2022-4-23 22:29:28:318:330 + Q15-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + (2) expected_result: + (1,3,1,1) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + (5) expected_result: + (1,3,1,1) + (6) expected_result: + (1,3,1,1) + + Q15 finished at: 2022-4-23 22:29:28:354:530 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-23 22:29:28:390:300 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..f44e1d07 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,126 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:31:34:464:623 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-23 22:31:34:503:772 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:31:35:499:309 + Q4-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q4 finished at: 2022-4-23 22:31:35:536:172 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-23 22:31:35:571:68 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-23 22:31:36:502:715 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,0) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,0) + + Q7 finished at: 2022-4-23 22:31:36:541:884 + Q8-T3 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q8 finished at: 2022-4-23 22:31:36:580:613 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 22:31:36:619:89 +Q10-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,0) + (5) expected_result: + (1,3,1,1) + (6) expected_result: + (1,3,1,1) + +Q10 finished at: 2022-4-23 22:31:37:503:161 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-23 22:31:37:541:716 + Q12-T4 execute opt: 'BEGIN' + Q12 finished at: 2022-4-23 22:31:57:500:294 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,3) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,3) + (6) expected_result: + (0,1,0,3) + + Q13 finished at: 2022-4-23 22:31:57:536:531 + Q14-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + (2) expected_result: + (1,3,1,1) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + (5) expected_result: + (1,3,1,1) + (6) expected_result: + (1,3,1,1) + + Q14 finished at: 2022-4-23 22:31:57:573:321 + Q15-T4 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-23 22:31:57:609:82 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..585de452 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,243 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:31:5:16:876 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + *(5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,3) + (7) expected_result: + (0,1,0,3) + *(8) expected_result: + (0,1,0,0) + (9) expected_result: + (0,1,0,3) + (10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,0) + (12) expected_result: + (0,1,0,3) + (13) expected_result: + (0,1,0,3) + (14) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-23 22:31:5:55:824 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:31:6:51:291 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + (3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,1) + (5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,0) + (7) expected_result: + (1,3,1,0) + (8) expected_result: + (1,3,1,1) + (9) expected_result: + (1,3,1,0) + (10) expected_result: + (1,3,1,1) + (11) expected_result: + (1,3,1,1) + (12) expected_result: + (1,3,1,1) + (13) expected_result: + (1,3,1,1) + (14) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-23 22:31:6:88:145 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-23 22:31:7:54:985 + Q6-T3 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q6 finished at: 2022-4-23 22:31:7:93:895 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 22:31:7:133:509 + Q8-T4 execute opt: 'BEGIN' + Q8 finished at: 2022-4-23 22:31:8:52:338 + Q9-T4 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q9 finished at: 2022-4-23 22:31:8:88:672 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 22:31:8:124:529 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,0) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,0) + (7) expected_result: + (0,1,0,0) + (8) expected_result: + (0,1,0,0) + (9) expected_result: + (0,1,0,3) + (10) expected_result: + (0,1,0,3) + (11) expected_result: + (0,1,0,3) + (12) expected_result: + (0,1,0,0) + (13) expected_result: + (0,1,0,3) + (14) expected_result: + (0,1,0,3) + + Q11 finished at: 2022-4-23 22:31:9:52:566 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 22:31:9:87:799 +Q13-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,0) + *(4) expected_result: + (1,3,1,0) + (5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,0) + (7) expected_result: + (1,3,1,1) + (8) expected_result: + (1,3,1,1) + *(9) expected_result: + (1,3,1,0) + (10) expected_result: + (1,3,1,1) + (11) expected_result: + (1,3,1,1) + (12) expected_result: + (1,3,1,1) + *(13) expected_result: + (1,3,1,0) + (14) expected_result: + (1,3,1,1) + +Q13 finished at: 2022-4-23 22:31:10:55:560 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-23 22:31:10:94:278 + Q15-T5 execute opt: 'BEGIN' + Q15 finished at: 2022-4-23 22:31:30:53:524 + Q16-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,3) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,3) + (6) expected_result: + (0,1,0,3) + (7) expected_result: + (0,1,0,3) + (8) expected_result: + (0,1,0,3) + (9) expected_result: + (0,1,0,3) + (10) expected_result: + (0,1,0,3) + (11) expected_result: + (0,1,0,3) + (12) expected_result: + (0,1,0,3) + (13) expected_result: + (0,1,0,3) + (14) expected_result: + (0,1,0,3) + + Q16 finished at: 2022-4-23 22:31:30:92:278 + Q17-T5 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + (2) expected_result: + (1,3,1,1) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + (5) expected_result: + (1,3,1,1) + (6) expected_result: + (1,3,1,1) + (7) expected_result: + (1,3,1,1) + (8) expected_result: + (1,3,1,1) + (9) expected_result: + (1,3,1,1) + (10) expected_result: + (1,3,1,1) + (11) expected_result: + (1,3,1,1) + (12) expected_result: + (1,3,1,1) + (13) expected_result: + (1,3,1,1) + (14) expected_result: + (1,3,1,1) + + Q17 finished at: 2022-4-23 22:31:30:129:832 + Q18-T5 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-23 22:31:30:166:867 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..91930b7d --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,129 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:18:49:141:253 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-24 15:18:49:178:489 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:18:50:140:342 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + null + *(6) expected_result: + (0,1,0,0) + + Q4 finished at: 2022-4-24 15:18:50:214:345 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-24 15:18:51:136:791 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + null + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + null + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-4-24 15:18:51:203:759 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE value1=0;' +Q7 finished at: 2022-4-24 15:18:52:140:939 + Q8-T2 execute sql: 'DELETE FROM t2 WHERE value1=1;' + Q8 finished at: 2022-4-24 15:18:53:141:261 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE value1=2;' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 15:18:55:141:228 + Q9 finished at: 2022-4-24 15:18:55:141:981 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 15:18:56:141:472 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 15:18:57:137:643 + Q13-T4 execute opt: 'BEGIN' + Q13 finished at: 2022-4-24 15:19:7:146:824 + Q14-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q14 finished at: 2022-4-24 15:19:7:215:130 + Q15-T4 execute sql: 'SELECT * FROM t2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q15 finished at: 2022-4-24 15:19:7:249:376 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-24 15:19:7:283:373 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..3731074d --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,126 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:30:5:99:806 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,0,2,0) + (5) expected_result: + (2,0,2,0) + (6) expected_result: + (2,0,2,0) + +Q2 finished at: 2022-4-23 22:30:5:139:674 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:30:6:134:429 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + null + (1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,0) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1,0,0) + *(6) expected_result: + null + + Q4 finished at: 2022-4-23 22:30:6:169:841 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-23 22:30:7:137:679 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + null + (1) expected_result: + (1,3,1,0) + *(2) expected_result: + null + (3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,0) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-23 22:30:7:178:371 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q7 finished at: 2022-4-23 22:30:8:137:804 + Q8-T2 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + Q8 finished at: 2022-4-23 22:30:9:137:519 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + Q9 finished at: 2022-4-23 22:30:10:138:418 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-23 22:30:11:138:457 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-23 22:30:12:135:265 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 22:30:13:139:73 + Q13-T4 execute opt: 'BEGIN' + Q13 finished at: 2022-4-23 22:30:33:135:484 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,0) (2,0,2,0) + *(1) expected_result: + (0,1,0,0) (2,0,2,0) + *(2) expected_result: + (0,1,0,0) (2,0,2,0) + *(3) expected_result: + (0,1,0,0) (2,0,2,0) + *(4) expected_result: + (0,1,0,0) (2,0,2,0) + *(5) expected_result: + (0,1,0,0) (2,0,2,0) + *(6) expected_result: + (0,1,0,0) (2,0,2,0) + + Q14 finished at: 2022-4-23 22:30:33:171:970 + Q15-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,0) + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q15 finished at: 2022-4-23 22:30:33:208:152 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-23 22:30:33:244:718 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..f7f56eb2 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,160 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:32:1:916:887 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + *(5) expected_result: + (0,1,0,0) + *(6) expected_result: + (0,1,0,0) + +Q2 finished at: 2022-4-23 22:32:1:955:583 +Q3-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + +Q3 finished at: 2022-4-23 22:32:1:994:125 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-23 22:32:2:951:435 + Q5-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + null + (1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,0) + (5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,0) + + Q5 finished at: 2022-4-23 22:32:2:986:887 + Q6-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q6 finished at: 2022-4-23 22:32:3:22:264 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 22:32:3:57:522 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-23 22:32:3:954:748 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + null + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,3) + (3) expected_result: + (0,1,0,0) + (4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,0) + + Q9 finished at: 2022-4-23 22:32:3:993:777 + Q10-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + null + (1) expected_result: + (1,3,1,1) + (2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + (5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,0) + + Q10 finished at: 2022-4-23 22:32:4:32:804 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-23 22:32:4:71:175 +Q12-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q12 finished at: 2022-4-23 22:32:4:955:963 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-23 22:32:4:994:672 + Q14-T4 execute opt: 'BEGIN' + Q14 finished at: 2022-4-23 22:32:24:952:550 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + + Q15 finished at: 2022-4-23 22:32:24:989:86 + Q16-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + (2) expected_result: + (1,3,1,1) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + (5) expected_result: + (1,3,1,1) + (6) expected_result: + (1,3,1,1) + + Q16 finished at: 2022-4-23 22:32:25:25:347 + Q17-T4 execute opt: 'COMMIT'; + Q17 finished at: 2022-4-23 22:32:25:61:221 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..74dc87fb --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,182 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:30:37:577:986 +Q2-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,2) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + +Q2 finished at: 2022-4-23 22:30:37:616:743 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:30:38:612:649 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + null + (1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,2) + (3) expected_result: + (0,1,0,0) + (4) expected_result: + (0,1,0,0) + (5) expected_result: + (0,1,0,2) + (6) expected_result: + (0,1,0,2) + + Q4 finished at: 2022-4-23 22:30:38:649:316 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-23 22:30:38:684:513 + Q6-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + null + (1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,0) + (5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-4-23 22:30:38:719:906 + Q7-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q7 finished at: 2022-4-23 22:30:38:755:71 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-23 22:30:38:789:851 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-23 22:30:39:615:921 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + null + (1) expected_result: + (2,0,2,0) + (2) expected_result: + (2,0,2,0) + (3) expected_result: + (2,0,2,0) + (4) expected_result: + (2,0,2,0) + (5) expected_result: + (2,0,2,0) + (6) expected_result: + (2,0,2,0) + + Q10 finished at: 2022-4-23 22:30:39:654:833 + Q11-T3 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q11 finished at: 2022-4-23 22:30:39:693:333 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + null + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,0) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,0) + + Q12 finished at: 2022-4-23 22:30:39:731:977 + Q13-T3 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q13 finished at: 2022-4-23 22:30:39:770:415 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-23 22:30:39:808:899 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + (2,0,2,2) + (5) expected_result: + (2,0,2,1) + (6) expected_result: + (2,0,2,1) + +Q15 finished at: 2022-4-23 22:30:40:616:376 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-23 22:30:40:654:850 + Q17-T4 execute opt: 'BEGIN' + Q17 finished at: 2022-4-23 22:31:0:613:509 + Q18-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,0) (2,0,2,0) + (1) expected_result: + (0,1,0,2) (2,0,2,1) + (2) expected_result: + (0,1,0,2) (2,0,2,1) + (3) expected_result: + (0,1,0,2) (2,0,2,1) + (4) expected_result: + (0,1,0,2) (2,0,2,1) + (5) expected_result: + (0,1,0,2) (2,0,2,1) + (6) expected_result: + (0,1,0,2) (2,0,2,1) + + Q18 finished at: 2022-4-23 22:31:0:649:932 + Q19-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + (2) expected_result: + (1,3,1,1) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + (5) expected_result: + (1,3,1,1) + (6) expected_result: + (1,3,1,1) + + Q19 finished at: 2022-4-23 22:31:0:686:193 + Q20-T4 execute opt: 'COMMIT'; + Q20 finished at: 2022-4-23 22:31:0:722:175 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..af0d0c10 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,52 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:17:30:198:67 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 15:17:30:238:631 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:17:31:215:989 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 15:17:31:302:868 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 15:17:31:345:211 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-24 15:17:32:198:652 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 15:17:32:238:912 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 15:17:42:198:410 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-24 15:17:42:278:909 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 15:17:42:318:907 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..371cdb27 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,59 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:17:5:96:342 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 15:17:5:134:260 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:17:6:100:650 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 15:17:6:176:758 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 15:17:6:214:796 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-24 15:17:7:98:49 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 15:17:7:131:798 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 15:17:17:101:273 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-24 15:17:17:179:147 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 15:17:17:218:350 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..866248bd --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,68 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:7:22:57:978 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 15:7:22:99:908 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:7:23:49:28 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 15:7:23:114:724 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-4-24 15:7:23:147:805 +Q6-T1 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 15:7:25:50:42 +Q6 finished at: 2022-4-24 15:7:25:54:225 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 15:7:26:60:163 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 15:7:36:52:196 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 15:7:36:124:110 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,2) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,2) + + Q11 finished at: 2022-4-24 15:7:36:159:866 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 15:7:36:195:407 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..6f73312f --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,68 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:7:49:266:311 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 15:7:49:303:13 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:7:50:271:56 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 15:7:50:352:257 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-4-24 15:7:50:393:86 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 15:7:50:433:686 +Q7-T1 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' +Q7 finished at: 2022-4-24 15:7:51:266:540 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 15:7:51:303:131 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 15:8:1:269:794 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 15:8:1:350:197 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,2) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,2) + + Q11 finished at: 2022-4-24 15:8:1:391:595 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 15:8:1:431:683 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..9e951e51 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,68 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:8:15:23:370 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 15:8:15:60:89 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:8:16:28:1 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 15:8:16:110:922 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q6 finished at: 2022-4-24 15:8:17:26:952 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 15:8:17:63:315 + Q5 finished at: 2022-4-24 15:8:17:63:574 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 15:8:18:28:644 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 15:8:28:28:270 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,2) + *(1) expected_result: + (0,1,0,2) + *(2) expected_result: + (0,1,0,2) + + Q10 finished at: 2022-4-24 15:8:28:108:39 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-24 15:8:28:149:109 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 15:8:28:188:873 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_read_skew.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..f91bbc18 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,75 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:8:48:623:258 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-24 15:8:48:663:271 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:8:49:623:155 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 15:8:49:702:677 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-24 15:8:49:742:463 +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q6 finished at: 2022-4-24 15:8:50:623:627 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 15:8:51:623:657 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 15:8:52:623:258 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 15:9:2:615:989 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 15:9:2:682:20 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-24 15:9:2:714:878 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 15:9:2:747:475 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_read_skew2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..0650df7f --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,75 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:9:52:359:528 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 15:9:52:394:245 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:9:53:365:113 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-24 15:9:53:443:316 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-4-24 15:9:53:481:996 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-24 15:9:54:360:147 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 15:9:54:395:113 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 15:9:55:363:721 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 15:10:5:368:892 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 15:10:5:445:862 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-24 15:10:5:484:205 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 15:10:5:522:23 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..28fbe0bb --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,75 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:10:30:31:411 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 15:10:30:71:81 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:10:31:33:455 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-24 15:10:31:114:521 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-4-24 15:10:31:159:430 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 15:10:31:199:696 +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-4-24 15:10:32:32:37 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 15:10:32:71:615 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 15:10:42:28:565 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 15:10:42:101:528 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-24 15:10:42:138:184 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 15:10:42:174:181 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..a1b4d79f --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,73 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:9:17:740:209 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value2=0;' + current_result: + (0,1,0,0) + (1) expected_result: + null + *(2) expected_result: + (0,1,0,0) + +Q2 finished at: 2022-4-24 15:9:17:774:130 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:9:18:743:675 + Q4-T2 execute sql: 'DELETE FROM t2 WHERE value1=1;' + Q4 finished at: 2022-4-24 15:9:18:817:392 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE value1=0;' + Q5 finished at: 2022-4-24 15:9:18:854:326 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 15:9:18:891:483 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE value2=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1,0,0) + +Q7 finished at: 2022-4-24 15:9:19:740:715 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 15:9:19:774:32 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 15:9:29:744:153 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q10 finished at: 2022-4-24 15:9:29:817:129 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q11 finished at: 2022-4-24 15:9:29:853:510 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 15:9:29:889:760 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..0c379942 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:24:35:16:356 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-24 12:24:35:51:215 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:24:36:24:441 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-24 12:24:36:105:481 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-24 12:24:36:145:870 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 12:24:36:189:68 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-24 12:24:37:17:422 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 12:24:37:49:904 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 12:24:47:20:659 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q10 finished at: 2022-4-24 12:24:47:94:268 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 12:24:47:130:789 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..ee080714 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,73 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:10:38:304:959 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-23 22:10:38:343:838 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:10:39:339:504 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-23 22:10:39:376:9 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + null + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-4-23 22:10:39:411:203 +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1; ' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q6 finished at: 2022-4-23 22:10:40:343:488 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 22:10:41:339:901 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 22:10:42:345:703 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-23 22:11:2:343:25 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-23 22:11:2:381:941 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + (2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-23 22:11:2:420:852 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 22:11:2:458:918 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..4c0e9673 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,75 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:6:41:961:776 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 15:6:42:0:486 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:6:42:959:310 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 15:6:43:32:423 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-4-24 15:6:43:69:168 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 15:6:43:105:637 +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,1) + (1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,1) + +Q7 finished at: 2022-4-24 15:6:43:961:774 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 15:6:44:0:23 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 15:6:53:963:931 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 15:6:54:47:859 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-24 15:6:54:88:927 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 15:6:54:129:245 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_mda_step_rat.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..80b220b0 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,129 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:15:10:757:471 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-23 22:15:10:796:246 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:15:11:792:145 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-23 22:15:11:827:321 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + null + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,3) + (3) expected_result: + (0,1,0,0) + (4) expected_result: + (0,1,0,0) + (5) expected_result: + (0,1,0,3) + (6) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-4-23 22:15:11:862:761 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-23 22:15:12:795:491 + Q7-T3 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q7 finished at: 2022-4-23 22:15:12:834:337 + Q8-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + null + (1) expected_result: + (1,3,1,1) + (2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + (5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,0) + + Q8 finished at: 2022-4-23 22:15:12:873:46 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + (2,0,2,1) + (5) expected_result: + (2,0,2,1) + (6) expected_result: + (2,0,2,1) + +Q9 finished at: 2022-4-23 22:15:13:796:31 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-23 22:15:13:834:597 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-23 22:15:14:792:527 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 22:15:15:795:669 + Q13-T4 execute opt: 'BEGIN' + Q13 finished at: 2022-4-23 22:15:35:792:916 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) (2,0,2,0) + (1) expected_result: + (0,1,0,3) (2,0,2,1) + (2) expected_result: + (0,1,0,3) (2,0,2,1) + (3) expected_result: + (0,1,0,3) (2,0,2,1) + (4) expected_result: + (0,1,0,3) (2,0,2,1) + (5) expected_result: + (0,1,0,3) (2,0,2,1) + (6) expected_result: + (0,1,0,3) (2,0,2,1) + + Q14 finished at: 2022-4-23 22:15:35:865:417 + Q15-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + (2) expected_result: + (1,3,1,1) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + (5) expected_result: + (1,3,1,1) + (6) expected_result: + (1,3,1,1) + + Q15 finished at: 2022-4-23 22:15:35:901:892 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-23 22:15:35:937:756 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..e69e61f0 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,245 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN' + Q1 finished at: 2022-4-24 15:10:53:701:471 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + (4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + (7) expected_result: + (0,1,0,3) + (8) expected_result: + (0,1,0,3) + *(9) expected_result: + (0,1,0,0) + (10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,0) + (12) expected_result: + (0,1,0,3) + *(13) expected_result: + (0,1,0,0) + *(14) expected_result: + (0,1,0,0) + + Q2 finished at: 2022-4-24 15:10:53:774:481 +Q3-T1 execute opt: 'BEGIN' +Q3 finished at: 2022-4-24 15:10:54:698:322 +Q4-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q4 finished at: 2022-4-24 15:10:54:731:728 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-24 15:10:55:701:311 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + (7) expected_result: + (1,3,1,1) + *(8) expected_result: + (1,3,1,0) + (9) expected_result: + (1,3,1,1) + (10) expected_result: + (1,3,1,1) + *(11) expected_result: + (1,3,1,0) + *(12) expected_result: + (1,3,1,0) + *(13) expected_result: + (1,3,1,0) + (14) expected_result: + (1,3,1,1) + + Q6 finished at: 2022-4-24 15:10:55:773:983 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + (7) expected_result: + (0,1,0,3) + (8) expected_result: + (0,1,0,3) + (9) expected_result: + (0,1,0,3) + *(10) expected_result: + (0,1,0,0) + *(11) expected_result: + (0,1,0,0) + *(12) expected_result: + (0,1,0,0) + (13) expected_result: + (0,1,0,3) + (14) expected_result: + (0,1,0,3) + + Q7 finished at: 2022-4-24 15:10:55:810:609 + Q8-T2 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 15:10:56:705:993 + Q9-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q9 finished at: 2022-4-24 15:10:56:786:800 + Q10-T4 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + *(7) expected_result: + (1,3,1,0) + (8) expected_result: + (1,3,1,1) + (9) expected_result: + (1,3,1,1) + (10) expected_result: + (1,3,1,1) + (11) expected_result: + (1,3,1,1) + *(12) expected_result: + (1,3,1,0) + *(13) expected_result: + (1,3,1,0) + *(14) expected_result: + (1,3,1,0) + + Q10 finished at: 2022-4-24 15:10:57:702:472 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-24 15:10:58:698:721 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 15:10:59:706:124 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-24 15:11:0:701:690 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 15:11:1:702:44 + Q15-T5 execute opt: 'BEGIN' + Q15 finished at: 2022-4-24 15:11:11:699:476 + Q16-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + *(7) expected_result: + (0,1,0,3) + *(8) expected_result: + (0,1,0,3) + *(9) expected_result: + (0,1,0,3) + *(10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,3) + *(12) expected_result: + (0,1,0,3) + *(13) expected_result: + (0,1,0,3) + *(14) expected_result: + (0,1,0,3) + + Q16 finished at: 2022-4-24 15:11:11:765:149 + Q17-T5 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + *(7) expected_result: + (1,3,1,1) + *(8) expected_result: + (1,3,1,1) + *(9) expected_result: + (1,3,1,1) + *(10) expected_result: + (1,3,1,1) + *(11) expected_result: + (1,3,1,1) + *(12) expected_result: + (1,3,1,1) + *(13) expected_result: + (1,3,1,1) + *(14) expected_result: + (1,3,1,1) + + Q17 finished at: 2022-4-24 15:11:11:798:182 + Q18-T5 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-24 15:11:11:830:461 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..850734f7 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,110 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:11:30:538:980 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-24 15:11:30:575:993 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:11:31:541:652 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-24 15:11:31:621:297 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-24 15:11:31:661:15 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-24 15:11:32:546:138 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-24 15:11:32:620:216 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-24 15:11:32:657:607 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-24 15:11:33:539:747 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 15:11:33:576:706 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 15:11:34:542:511 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 15:11:35:548:747 + Q13-T4 execute opt: 'BEGIN' + Q13 finished at: 2022-4-24 15:11:45:538:639 + Q14-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q14 finished at: 2022-4-24 15:11:45:611:412 + Q15-T4 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-24 15:11:45:647:414 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..add1e7a4 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,107 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:16:41:864:115 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-23 22:16:41:903:640 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:16:42:898:590 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-23 22:16:42:935:164 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-23 22:16:42:970:471 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-23 22:16:43:902:209 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-23 22:16:43:940:850 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-23 22:16:43:979:396 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-23 22:16:44:902:418 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-23 22:16:44:940:870 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-23 22:16:45:899:568 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 22:16:46:902:878 + Q13-T4 execute opt: 'BEGIN' + Q13 finished at: 2022-4-23 22:17:6:900:825 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q14 finished at: 2022-4-23 22:17:6:937:262 + Q15-T4 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-23 22:17:6:973:41 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_sda_dirty_read.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..3f9f872e --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,48 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:7:28:341:530 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 22:7:28:380:244 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:7:29:342:406 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-23 22:7:29:412:670 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-23 22:7:30:341:939 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 22:7:31:338:595 + Q7-T3 execute opt: 'BEGIN' + Q7 finished at: 2022-4-23 22:7:51:341:768 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q8 finished at: 2022-4-23 22:7:51:418:891 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 22:7:51:457:625 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..de62ac21 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:5:18:425:554 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 15:5:18:459:527 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:5:19:432:250 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 15:5:19:513:530 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-24 15:5:20:430:404 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 15:5:21:432:547 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 15:5:22:426:137 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 15:5:32:424:815 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q9 finished at: 2022-4-24 15:5:32:495:778 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 15:5:32:528:360 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..d70b1b5e --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:5:47:661:407 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 15:5:47:700:906 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:5:48:658:827 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 15:5:48:732:868 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 15:5:48:769:812 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-24 15:5:49:661:926 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 15:5:49:701:686 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 15:5:59:655:4 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q9 finished at: 2022-4-24 15:5:59:733:506 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 15:5:59:766:619 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..90a4c759 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:10:10:885:420 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 22:10:10:924:70 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:10:11:919:766 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-23 22:10:12:923:801 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-23 22:10:12:962:634 + Q4 finished at: 2022-4-23 22:10:12:962:867 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 22:10:13:920:840 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-23 22:10:33:923:368 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q9 finished at: 2022-4-23 22:10:33:962:200 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 22:10:34:0:387 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..0085289e --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:24:51:263:342 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 12:24:51:296:409 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:24:52:303:553 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-24 12:24:53:296:323 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 12:24:55:296:512 + Q4 finished at: 2022-4-24 12:24:55:301:78 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 12:24:55:342:229 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 12:25:5:299:971 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-24 12:25:5:336:620 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 12:25:5:373:94 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..677fb69b --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,59 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:6:11:761:833 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 15:6:11:799:0 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:6:12:763:298 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-24 15:6:12:837:393 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 15:6:12:874:99 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-24 15:6:13:762:561 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 15:6:13:799:88 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 15:6:23:760:779 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q9 finished at: 2022-4-24 15:6:23:832:548 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 15:6:23:867:775 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..e45de0eb --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,58 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:9:44:621:313 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-23 22:9:44:662:352 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:9:45:656:177 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-23 22:9:45:692:733 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-23 22:9:45:728:503 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-23 22:9:46:659:697 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 22:9:46:697:639 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-23 22:10:6:659:343 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q9 finished at: 2022-4-23 22:10:6:699:417 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 22:10:6:737:753 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..c9be9d91 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,68 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:13:54:855:664 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 15:13:54:889:619 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:13:55:859:459 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 15:13:55:933:664 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q7 finished at: 2022-4-24 15:13:56:856:466 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 15:13:56:890:94 + Q5 finished at: 2022-4-24 15:13:56:894:814 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 15:13:56:931:816 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 15:14:6:859:127 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,2) + *(1) expected_result: + (0,1,0,2) + (2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 15:14:6:933:530 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-24 15:14:6:970:517 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 15:14:7:6:987 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..a0b41ef2 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:14:19:729:624 +Q2-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q2 finished at: 2022-4-24 15:14:19:766:408 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:14:20:727:58 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-24 15:14:20:795:870 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q5 finished at: 2022-4-24 15:14:21:728:522 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-276-6264f8cb-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-24 15:14:22:332:582 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-276-6264f8cb-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..2280c974 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,34 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:14:44:391:610 +Q2-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q2 finished at: 2022-4-24 15:14:44:433:768 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:14:45:384:161 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-24 15:14:45:456:713 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q5 finished at: 2022-4-24 15:14:46:394:300 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-cf-261-6264f8e4-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-24 15:14:46:999:497 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-cf-261-6264f8e4-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..1d60ce07 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,36 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:15:15:200:53 +Q2-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q2 finished at: 2022-4-24 15:15:15:237:288 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:15:16:203:128 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-24 15:15:16:283:135 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q5 finished at: 2022-4-24 15:15:17:205:293 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 15:15:17:245:687 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-245-6264f903-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-24 15:15:17:901:911 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-245-6264f903-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..28b7c680 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,66 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:22:9:908:239 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-23 22:22:9:946:846 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:22:10:942:837 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-23 22:22:10:978:235 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-23 22:22:11:13:461 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-23 22:22:11:946:553 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 22:22:11:985:261 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-23 22:22:12:943:68 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-23 22:22:32:946:251 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-23 22:22:32:985:305 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + (1) expected_result: + (1,3,1,2) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-23 22:22:33:24:99 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 22:22:33:62:442 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..e7be4821 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,66 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:22:37:360:497 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-23 22:22:37:398:990 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:22:38:395:30 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-23 22:22:38:437:453 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-23 22:22:38:472:614 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-23 22:22:39:398:802 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 22:22:40:395:365 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 22:22:41:398:993 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-23 22:23:1:398:580 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-23 22:23:1:437:499 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + (1) expected_result: + (1,3,1,2) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-23 22:23:1:476:113 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 22:23:1:514:422 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..6aee81ed --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,66 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:23:5:811:363 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-23 22:23:5:854:288 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:23:6:846:20 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + null + (1) expected_result: + (1,3,1,1) + (2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-23 22:23:6:881:385 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q5 finished at: 2022-4-23 22:23:6:916:415 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-23 22:23:7:849:642 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 22:23:7:888:205 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-23 22:23:8:846:100 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-23 22:23:28:849:334 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + (1) expected_result: + (0,1,0,2) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-23 22:23:28:888:310 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-23 22:23:28:926:925 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 22:23:28:965:223 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..0bbf00e4 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,66 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:23:33:264:956 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-23 22:23:33:304:90 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:23:34:299:487 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + null + (1) expected_result: + (1,3,1,1) + (2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-23 22:23:34:336:45 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q5 finished at: 2022-4-23 22:23:34:371:740 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-23 22:23:35:303:543 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 22:23:36:299:824 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 22:23:37:303:184 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-23 22:23:57:302:917 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + (1) expected_result: + (0,1,0,2) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-23 22:23:57:341:982 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-23 22:23:57:380:829 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 22:23:57:419:249 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..b6a7b755 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,66 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:24:1:715:433 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-23 22:24:1:754:120 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:24:2:750:169 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + null + (1) expected_result: + (1,3,1,1) + (2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-23 22:24:2:785:584 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q5 finished at: 2022-4-23 22:24:2:820:913 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 22:24:2:856:423 +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-4-23 22:24:3:754:39 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 22:24:3:792:609 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-23 22:24:23:753:436 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + (1) expected_result: + (0,1,0,2) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-23 22:24:23:792:653 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-23 22:24:23:831:489 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 22:24:23:869:939 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..e167e534 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:16:7:959:917 +Q2-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q2 finished at: 2022-4-24 15:16:7:996:396 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:16:8:960:115 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-24 15:16:9:32:236 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-24 15:16:9:961:97 + Q7-T3 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=2;' + Q7 finished at: 2022-4-24 15:16:10:35:832 + Q8-T3 execute sql: 'UPDATE t2 SET value2=3 WHERE value1=1;' +Q9-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q5 finished at: 2022-4-24 15:16:10:980:500 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-248-6264f937-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-24 15:16:11:880:837 + Q8 finished at: 2022-4-24 15:16:11:958:906 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-248-6264f937-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..85d480ec --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,41 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:16:37:924:255 +Q2-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q2 finished at: 2022-4-24 15:16:37:964:885 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:16:39:42:171 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-24 15:16:39:123:465 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-24 15:16:39:920:506 + Q7-T3 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=2;' + Q7 finished at: 2022-4-24 15:16:40:82:412 + Q8-T3 execute sql: 'UPDATE t2 SET value2=3 WHERE value1=1;' +Q9-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q5 finished at: 2022-4-24 15:16:40:926:163 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-27e-6264f955-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-24 15:16:41:827:176 + Q8 finished at: 2022-4-24 15:16:41:964:596 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-27e-6264f955-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..f44ccb58 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,45 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:12:15:964:820 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 15:12:15:997:540 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:12:16:969:734 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-24 15:12:17:965:281 + Q4 finished at: 2022-4-24 15:12:17:969:344 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 15:12:18:970:555 + Q7-T3 execute opt: 'BEGIN' + Q7 finished at: 2022-4-24 15:12:28:968:357 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-24 15:12:29:41:443 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 15:12:29:77:402 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..8311c270 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,45 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:17:38:379:121 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 22:17:38:417:563 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:17:39:413:695 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-23 22:17:40:417:632 + Q4 finished at: 2022-4-23 22:17:40:417:895 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 22:17:41:414:502 + Q7-T3 execute opt: 'BEGIN' + Q7 finished at: 2022-4-23 22:18:1:417:66 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-23 22:18:1:455:924 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 22:18:1:494:109 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_sda_full_write.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..a062d3e2 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_sda_full_write.txt @@ -0,0 +1,47 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:18:5:646:975 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 22:18:5:685:554 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:18:6:681:666 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-23 22:18:7:685:228 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-23 22:18:7:723:805 + Q4 finished at: 2022-4-23 22:18:7:724:209 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 22:18:8:682:160 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-23 22:18:28:685:59 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q9 finished at: 2022-4-23 22:18:28:723:817 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 22:18:28:761:974 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..ac3fd5ff --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,47 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:18:32:905:436 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 22:18:32:943:826 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:18:33:940:130 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-23 22:18:34:943:731 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 22:18:34:982:293 + Q4 finished at: 2022-4-23 22:18:34:982:496 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-23 22:18:35:18:168 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-23 22:18:54:943:462 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q9 finished at: 2022-4-23 22:18:54:982:535 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 22:18:55:20:970 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..faad89ea --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 22:19:54:682:507 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 22:19:54:720:955 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 22:19:55:717:151 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-23 22:19:56:720:902 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 22:19:56:759:454 + Q4 finished at: 2022-4-23 22:19:56:759:841 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-23 22:19:56:795:357 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-23 22:20:16:720:662 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q9 finished at: 2022-4-23 22:20:16:761:459 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 22:20:16:799:982 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..39ef234c --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,52 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:12:40:897:144 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 15:12:40:938:406 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:12:41:889:750 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 15:12:41:955:788 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 15:12:43:890:638 +Q5 finished at: 2022-4-24 15:12:43:894:77 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 15:12:43:935:368 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 15:12:53:893:640 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-24 15:12:53:966:856 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 15:12:54:3:40 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..5eb5860c --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,52 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:13:7:598:850 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 15:13:7:639:350 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:13:8:595:514 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 15:13:8:668:708 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 15:13:10:597:472 +Q5 finished at: 2022-4-24 15:13:10:600:579 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 15:13:11:599:867 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 15:13:21:596:438 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-24 15:13:21:671:228 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 15:13:21:708:311 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..70176c57 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,75 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:13:57:772:839 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-24 13:13:57:808:366 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:13:58:771:322 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 13:13:58:836:383 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-24 13:13:58:868:991 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 13:13:58:901:885 +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q7 finished at: 2022-4-24 13:13:59:773:84 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 13:13:59:806:771 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 13:14:9:778:601 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 13:14:9:858:647 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-24 13:14:9:898:601 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 13:14:9:939:376 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..bd2f223f --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,66 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:14:30:927:364 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-24 13:14:30:962:840 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:14:31:931:127 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-24 13:14:32:8:393 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-24 13:14:32:47:185 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 13:14:32:85:987 +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-4-24 13:14:32:927:859 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 13:14:32:963:191 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 13:14:42:928:230 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 13:14:42:999:581 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + (1) expected_result: + (1,3,1,2) + (2) expected_result: + (1,3,1,2) + + Q11 finished at: 2022-4-24 13:14:43:35:692 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 13:14:43:71:214 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_dda_write_skew.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..c75ea75e --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,73 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:14:54:643:966 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-24 13:14:54:676:738 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:14:55:644:920 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-24 13:14:55:713:234 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-24 13:14:55:747:346 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-24 13:14:56:644:230 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 13:14:56:676:900 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 13:14:57:645:284 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 13:15:7:651:486 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 13:15:7:731:897 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-24 13:15:7:772:169 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 13:15:7:811:864 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..b5bc5c19 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,73 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:17:12:707:711 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-24 13:17:12:741:626 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:17:13:713:629 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-24 13:17:13:792:864 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-24 13:17:13:832:901 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 13:17:13:873:287 +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-4-24 13:17:14:707:901 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 13:17:14:741:460 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 13:17:24:713:472 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 13:17:24:792:881 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-24 13:17:24:832:431 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 13:17:24:871:492 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..0d26f4ea --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,75 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL PRIMARY KEY);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:15:23:236:463 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-24 13:15:23:270:53 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-24 13:15:23:303:79 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-24 13:15:24:239:373 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-24 13:15:24:311:452 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-24 13:15:24:347:308 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 13:15:24:383:276 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 13:15:25:237:466 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 13:15:35:240:320 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-24 13:15:35:314:116 + Q11-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q11 finished at: 2022-4-24 13:15:35:351:411 + Q12-T3 execute sql: 'DROP TABLE mytab;' + Q12 finished at: 2022-4-24 13:15:35:408:972 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-24 13:15:35:445:611 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..69ce4596 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,62 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:16:43:642:169 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-24 13:16:43:679:369 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:16:44:642:483 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-24 13:16:44:715:616 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-24 13:16:44:754:97 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 13:16:44:790:850 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-24 13:16:45:643:79 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 13:16:45:679:698 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 13:16:55:642:831 + Q10-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q10 finished at: 2022-4-24 13:16:55:715:736 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 13:16:55:752:30 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_mda_step_iat.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..49ffa74d --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,129 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:26:58:969:662 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + (2,0,2,1) + (5) expected_result: + (2,0,2,1) + (6) expected_result: + (2,0,2,1) + +Q2 finished at: 2022-4-24 13:26:59:6:270 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:26:59:970:601 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,,3) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + + Q4 finished at: 2022-4-24 13:27:0:45:181 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-24 13:27:0:966:724 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-4-24 13:27:1:32:396 +Q7-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q7 finished at: 2022-4-24 13:27:1:970:194 + Q8-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q8 finished at: 2022-4-24 13:27:2:971:665 + Q9-T3 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 13:27:4:970:363 + Q9 finished at: 2022-4-24 13:27:4:970:479 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 13:27:5:971:417 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 13:27:6:966:840 + Q13-T4 execute opt: 'BEGIN' + Q13 finished at: 2022-4-24 13:27:16:970:143 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) (2,0,2,1) + *(1) expected_result: + (0,1,0,3) (2,0,2,1) + *(2) expected_result: + (0,1,0,3) (2,0,2,1) + *(3) expected_result: + (0,1,0,3) (2,0,2,1) + *(4) expected_result: + (0,1,0,3) (2,0,2,1) + *(5) expected_result: + (0,1,0,3) (2,0,2,1) + *(6) expected_result: + (0,1,0,3) (2,0,2,1) + + Q14 finished at: 2022-4-24 13:27:17:44:669 + Q15-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q15 finished at: 2022-4-24 13:27:17:81:602 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-24 13:27:17:117:897 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..a8ebbf38 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,128 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:36:13:20:314 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-24 13:36:13:60:238 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:36:14:13:983 + Q4-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q4 finished at: 2022-4-24 13:36:14:151:292 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 13:36:14:185:659 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-24 13:36:15:18:113 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,0) + + Q7 finished at: 2022-4-24 13:36:15:93:185 + Q8-T3 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q8 finished at: 2022-4-24 13:36:15:130:455 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 13:36:15:174:960 +Q10-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,0) + (5) expected_result: + (1,3,1,1) + (6) expected_result: + (1,3,1,1) + +Q10 finished at: 2022-4-24 13:36:16:21:69 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-24 13:36:16:60:205 + Q12-T4 execute opt: 'BEGIN' + Q12 finished at: 2022-4-24 13:36:26:13:169 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + + Q13 finished at: 2022-4-24 13:36:26:77:932 + Q14-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q14 finished at: 2022-4-24 13:36:26:110:431 + Q15-T4 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-24 13:36:26:142:349 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..6a9172b9 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,245 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:35:34:349:437 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + *(5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,3) + (7) expected_result: + (0,1,0,3) + *(8) expected_result: + (0,1,0,0) + (9) expected_result: + (0,1,0,3) + (10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,0) + (12) expected_result: + (0,1,0,3) + (13) expected_result: + (0,1,0,3) + (14) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-24 13:35:34:387:353 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:35:35:351:373 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + *(7) expected_result: + (1,3,1,0) + (8) expected_result: + (1,3,1,1) + *(9) expected_result: + (1,3,1,0) + (10) expected_result: + (1,3,1,1) + (11) expected_result: + (1,3,1,1) + (12) expected_result: + (1,3,1,1) + (13) expected_result: + (1,3,1,1) + *(14) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-24 13:35:35:430:652 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-24 13:35:36:349:264 + Q6-T3 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q6 finished at: 2022-4-24 13:35:36:423:278 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 13:35:36:460:804 + Q8-T4 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 13:35:37:353:35 + Q9-T4 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q9 finished at: 2022-4-24 13:35:37:434:490 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 13:35:37:475:605 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,0) + *(6) expected_result: + (0,1,0,0) + *(7) expected_result: + (0,1,0,0) + *(8) expected_result: + (0,1,0,0) + (9) expected_result: + (0,1,0,3) + (10) expected_result: + (0,1,0,3) + (11) expected_result: + (0,1,0,3) + *(12) expected_result: + (0,1,0,0) + (13) expected_result: + (0,1,0,3) + (14) expected_result: + (0,1,0,3) + + Q11 finished at: 2022-4-24 13:35:38:352:507 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 13:35:38:391:485 +Q13-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,0) + *(4) expected_result: + (1,3,1,0) + (5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,0) + (7) expected_result: + (1,3,1,1) + (8) expected_result: + (1,3,1,1) + *(9) expected_result: + (1,3,1,0) + (10) expected_result: + (1,3,1,1) + (11) expected_result: + (1,3,1,1) + (12) expected_result: + (1,3,1,1) + *(13) expected_result: + (1,3,1,0) + (14) expected_result: + (1,3,1,1) + +Q13 finished at: 2022-4-24 13:35:39:350:410 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-24 13:35:39:387:563 + Q15-T5 execute opt: 'BEGIN' + Q15 finished at: 2022-4-24 13:35:49:352:418 + Q16-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + *(7) expected_result: + (0,1,0,3) + *(8) expected_result: + (0,1,0,3) + *(9) expected_result: + (0,1,0,3) + *(10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,3) + *(12) expected_result: + (0,1,0,3) + *(13) expected_result: + (0,1,0,3) + *(14) expected_result: + (0,1,0,3) + + Q16 finished at: 2022-4-24 13:35:49:434:434 + Q17-T5 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + *(7) expected_result: + (1,3,1,1) + *(8) expected_result: + (1,3,1,1) + *(9) expected_result: + (1,3,1,1) + *(10) expected_result: + (1,3,1,1) + *(11) expected_result: + (1,3,1,1) + *(12) expected_result: + (1,3,1,1) + *(13) expected_result: + (1,3,1,1) + *(14) expected_result: + (1,3,1,1) + + Q17 finished at: 2022-4-24 13:35:49:475:302 + Q18-T5 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-24 13:35:49:515:98 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..926ae8df --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,129 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:31:46:555:842 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-24 13:31:46:592:464 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:31:47:559:487 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + null + *(6) expected_result: + (0,1,0,0) + + Q4 finished at: 2022-4-24 13:31:47:639:65 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-24 13:31:48:556:445 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + null + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + null + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-4-24 13:31:48:630:170 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE value1=0;' +Q7 finished at: 2022-4-24 13:31:49:556:413 + Q8-T2 execute sql: 'DELETE FROM t2 WHERE value1=1;' + Q8 finished at: 2022-4-24 13:31:50:560:210 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE value1=2;' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 13:31:52:556:926 + Q9 finished at: 2022-4-24 13:31:52:561:396 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 13:31:53:560:421 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 13:31:54:557:503 + Q13-T4 execute opt: 'BEGIN' + Q13 finished at: 2022-4-24 13:32:4:556:968 + Q14-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q14 finished at: 2022-4-24 13:32:4:633:46 + Q15-T4 execute sql: 'SELECT * FROM t2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q15 finished at: 2022-4-24 13:32:4:670:177 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-24 13:32:4:707:8 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..d551c4f5 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,126 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:32:29:383:11 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,0,2,0) + (5) expected_result: + (2,0,2,0) + (6) expected_result: + (2,0,2,0) + +Q2 finished at: 2022-4-24 13:32:29:420:975 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:32:30:383:741 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + null + (1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,0) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1,0,0) + *(6) expected_result: + null + + Q4 finished at: 2022-4-24 13:32:30:457:81 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-24 13:32:31:383:670 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + null + (1) expected_result: + (1,3,1,0) + *(2) expected_result: + null + (3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,0) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-24 13:32:31:462:554 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q7 finished at: 2022-4-24 13:32:32:383:515 + Q8-T2 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + Q8 finished at: 2022-4-24 13:32:33:383:968 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + Q9 finished at: 2022-4-24 13:32:34:384:664 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 13:32:35:383:794 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 13:32:36:384:545 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 13:32:37:384:629 + Q13-T4 execute opt: 'BEGIN' + Q13 finished at: 2022-4-24 13:32:47:387:435 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,0) (2,0,2,0) + *(1) expected_result: + (0,1,0,0) (2,0,2,0) + *(2) expected_result: + (0,1,0,0) (2,0,2,0) + *(3) expected_result: + (0,1,0,0) (2,0,2,0) + *(4) expected_result: + (0,1,0,0) (2,0,2,0) + *(5) expected_result: + (0,1,0,0) (2,0,2,0) + *(6) expected_result: + (0,1,0,0) (2,0,2,0) + + Q14 finished at: 2022-4-24 13:32:47:468:50 + Q15-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,0) + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q15 finished at: 2022-4-24 13:32:47:508:366 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-24 13:32:47:548:397 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..2f7f72b4 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,160 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:36:51:258:144 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + *(5) expected_result: + (0,1,0,0) + *(6) expected_result: + (0,1,0,0) + +Q2 finished at: 2022-4-24 13:36:51:299:668 +Q3-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + +Q3 finished at: 2022-4-24 13:36:51:339:859 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-24 13:36:52:257:344 + Q5-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,0) + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q5 finished at: 2022-4-24 13:36:52:337:427 + Q6-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q6 finished at: 2022-4-24 13:36:52:377:5 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 13:36:52:417:540 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 13:36:53:254:848 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + (4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,0) + *(6) expected_result: + (0,1,0,0) + + Q9 finished at: 2022-4-24 13:36:53:329:411 + Q10-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + (2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + (5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,0) + + Q10 finished at: 2022-4-24 13:36:53:366:538 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 13:36:53:403:263 +Q12-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q12 finished at: 2022-4-24 13:36:54:258:629 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-24 13:36:54:298:889 + Q14-T4 execute opt: 'BEGIN' + Q14 finished at: 2022-4-24 13:37:4:254:159 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + + Q15 finished at: 2022-4-24 13:37:4:328:447 + Q16-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q16 finished at: 2022-4-24 13:37:4:365:290 + Q17-T4 execute opt: 'COMMIT'; + Q17 finished at: 2022-4-24 13:37:4:401:428 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..76c59de9 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,184 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:33:51:958:901 +Q2-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,2) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + +Q2 finished at: 2022-4-24 13:33:51:992:533 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:33:52:959:678 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,2) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + (0,1,0,2) + (6) expected_result: + (0,1,0,2) + + Q4 finished at: 2022-4-24 13:33:53:27:253 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-24 13:33:53:60:223 + Q6-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,0) + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-4-24 13:33:53:93:249 + Q7-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q7 finished at: 2022-4-24 13:33:53:126:250 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 13:33:53:159:281 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 13:33:53:957:836 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + *(4) expected_result: + (2,0,2,0) + *(5) expected_result: + (2,0,2,0) + *(6) expected_result: + (2,0,2,0) + + Q10 finished at: 2022-4-24 13:33:54:22:729 + Q11-T3 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q11 finished at: 2022-4-24 13:33:54:55:41 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,0) + + Q12 finished at: 2022-4-24 13:33:54:87:515 + Q13-T3 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q13 finished at: 2022-4-24 13:33:54:119:863 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 13:33:54:152:422 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + (2,0,2,2) + (5) expected_result: + (2,0,2,1) + (6) expected_result: + (2,0,2,1) + +Q15 finished at: 2022-4-24 13:33:54:959:504 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-24 13:33:54:992:201 + Q17-T4 execute opt: 'BEGIN' + Q17 finished at: 2022-4-24 13:34:4:962:830 + Q18-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,2) (2,0,2,1) + *(1) expected_result: + (0,1,0,2) (2,0,2,1) + *(2) expected_result: + (0,1,0,2) (2,0,2,1) + *(3) expected_result: + (0,1,0,2) (2,0,2,1) + *(4) expected_result: + (0,1,0,2) (2,0,2,1) + *(5) expected_result: + (0,1,0,2) (2,0,2,1) + *(6) expected_result: + (0,1,0,2) (2,0,2,1) + + Q18 finished at: 2022-4-24 13:34:5:37:562 + Q19-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q19 finished at: 2022-4-24 13:34:5:75:11 + Q20-T4 execute opt: 'COMMIT'; + Q20 finished at: 2022-4-24 13:34:5:111:999 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..3ff24810 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,52 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:13:32:295:363 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 13:13:32:328:577 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:13:33:295:952 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 13:13:33:362:510 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 13:13:33:396:349 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-24 13:13:34:296:351 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 13:13:34:329:608 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 13:13:44:295:512 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-24 13:13:44:362:234 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 13:13:44:395:78 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..cbe40cb9 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:13:2:913:324 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 13:13:2:949:582 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:13:3:917:571 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 13:13:3:999:269 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 13:13:4:40:340 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-24 13:13:4:913:420 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 13:13:4:949:6 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 13:13:14:912:893 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-24 13:13:14:985:494 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 13:13:15:21:169 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..8314e5e5 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,68 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:36:32:704:93 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 12:36:32:745:172 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:36:33:703:324 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 12:36:33:784:467 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-4-24 12:36:33:825:62 +Q6-T1 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 12:36:35:704:75 +Q6 finished at: 2022-4-24 12:36:35:705:56 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 12:36:36:704:699 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 12:36:46:698:804 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 12:36:46:769:635 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,2) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,2) + + Q11 finished at: 2022-4-24 12:36:46:805:343 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 12:36:46:840:605 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..46146e65 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,68 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:36:58:815:71 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 12:36:58:852:148 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:36:59:815:920 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 12:36:59:890:502 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-4-24 12:36:59:927:926 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 12:36:59:965:915 +Q7-T1 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' +Q7 finished at: 2022-4-24 12:37:0:815:519 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 12:37:0:852:127 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 12:37:10:815:62 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 12:37:10:889:260 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,2) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,2) + + Q11 finished at: 2022-4-24 12:37:10:926:592 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 12:37:10:962:845 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..6bed68a9 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,68 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:38:30:426:477 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 12:38:30:467:164 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:38:31:423:479 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 12:38:31:498:103 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q6 finished at: 2022-4-24 12:38:32:427:379 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 12:38:32:467:808 + Q5 finished at: 2022-4-24 12:38:32:468:352 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 12:38:33:424:154 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 12:38:43:422:943 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,2) + *(1) expected_result: + (0,1,0,2) + *(2) expected_result: + (0,1,0,2) + + Q10 finished at: 2022-4-24 12:38:43:496:29 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-24 12:38:43:532:771 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 12:38:43:568:984 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_read_skew.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..029c7dbc --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,75 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:29:34:792:829 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-24 12:29:34:829:303 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:29:35:832:144 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q6 finished at: 2022-4-24 12:29:36:828:835 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 12:29:38:829:77 + Q4 finished at: 2022-4-24 12:29:38:829:930 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-24 12:29:38:867:60 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 12:29:38:904:289 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 12:29:48:825:689 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 12:29:48:859:323 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-24 12:29:48:892:742 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 12:29:48:925:568 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_read_skew2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..e05d046e --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,75 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:39:57:464:178 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 14:39:57:501:678 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:39:58:463:500 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-24 14:39:58:538:66 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-4-24 14:39:58:575:103 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-24 14:39:59:464:677 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 14:39:59:501:991 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 14:40:0:463:883 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 14:40:10:467:623 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 14:40:10:549:602 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-24 14:40:10:590:617 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 14:40:10:630:774 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..41e6e71a --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,75 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:40:36:520:71 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 14:40:36:556:878 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:40:37:520:678 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-24 14:40:37:596:703 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-4-24 14:40:37:635:15 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 14:40:37:672:417 +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-4-24 14:40:38:520:614 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 14:40:38:557:216 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 14:40:48:521:643 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 14:40:48:596:347 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-24 14:40:48:633:735 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 14:40:48:670:908 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..2af2b16b --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,75 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:38:59:828:246 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value2=0;' + current_result: + (0,1,0,0) + (1) expected_result: + null + *(2) expected_result: + (0,1,0,0) + +Q2 finished at: 2022-4-24 12:38:59:866:142 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:39:0:827:982 + Q4-T2 execute sql: 'DELETE FROM t2 WHERE value1=1;' + Q4 finished at: 2022-4-24 12:39:0:901:306 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE value1=0;' + Q5 finished at: 2022-4-24 12:39:0:938:576 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 12:39:0:975:294 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE value2=0;' + current_result: + (0,1,0,0) + (1) expected_result: + null + *(2) expected_result: + (0,1,0,0) + +Q7 finished at: 2022-4-24 12:39:1:828:736 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 12:39:1:865:558 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 12:39:11:831:879 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q10 finished at: 2022-4-24 12:39:11:919:801 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q11 finished at: 2022-4-24 12:39:11:960:788 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 12:39:12:1:314 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..553ab941 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,62 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:39:23:492:652 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-24 12:39:23:531:377 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:39:24:492:311 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-24 12:39:24:564:566 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-24 12:39:24:600:604 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 12:39:24:637:9 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-24 12:39:25:493:475 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 12:39:25:530:61 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 12:39:35:492:274 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q10 finished at: 2022-4-24 12:39:35:566:583 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 12:39:35:609:562 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..d856ceac --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,73 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:39:7:178:270 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 14:39:7:212:539 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:39:8:184:702 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 14:39:8:259:944 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-4-24 14:39:8:297:534 +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1; ' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q6 finished at: 2022-4-24 14:39:9:178:787 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 14:39:10:182:962 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 14:39:11:179:741 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 14:39:21:181:436 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 14:39:21:255:585 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-24 14:39:21:292:816 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 14:39:21:329:329 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..fa268a14 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,75 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:36:7:935:95 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 12:36:7:968:671 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:36:8:939:389 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 12:36:9:13:877 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-4-24 12:36:9:51:617 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 12:36:9:89:239 +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,1) + (1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,1) + +Q7 finished at: 2022-4-24 12:36:9:935:600 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 12:36:9:968:860 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 12:36:19:934:497 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 12:36:19:999:478 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-24 12:36:20:32:121 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 12:36:20:64:351 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_mda_step_rat.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..25f82914 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,148 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0, 2, 0);' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:37:13:593:591 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 15:37:13:630:35 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:37:18:586:257 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 15:37:18:667:569 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-4-24 15:37:18:709:760 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-24 15:37:23:586:510 + Q7-T3 execute sql: 'UPDATE t3 SET value2=1 WHERE value1=2;' + Q7 finished at: 2022-4-24 15:37:23:668:154 + Q8-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q8 finished at: 2022-4-24 15:37:23:708:699 +Q9-T1 execute sql: 'SELECT * FROM t3 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + (2,0,2,1) + (5) expected_result: + (2,0,2,1) + (6) expected_result: + (2,0,2,1) + +Q9 finished at: 2022-4-24 15:37:28:595:288 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 15:37:28:632:13 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 15:37:33:587:552 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 15:37:38:586:753 + Q13-T4 execute opt: 'BEGIN' + Q13 finished at: 2022-4-24 15:38:8:583:768 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + + Q14 finished at: 2022-4-24 15:38:8:659:764 + Q15-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q15 finished at: 2022-4-24 15:38:8:697:795 + Q16-T4 execute sql: 'SELECT * FROM t3 ORDER BY k;' + current_result: + (2,0,2,1) + *(1) expected_result: + (2,0,2,1) + *(2) expected_result: + (2,0,2,1) + *(3) expected_result: + (2,0,2,1) + *(4) expected_result: + (2,0,2,1) + *(5) expected_result: + (2,0,2,1) + *(6) expected_result: + (2,0,2,1) + + Q16 finished at: 2022-4-24 15:38:8:735:688 + Q17-T4 execute opt: 'COMMIT'; + Q17 finished at: 2022-4-24 15:38:8:773:168 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..5fac11bd --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,245 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN' + Q1 finished at: 2022-4-24 14:42:30:499:863 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + (4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + (7) expected_result: + (0,1,0,3) + (8) expected_result: + (0,1,0,3) + *(9) expected_result: + (0,1,0,0) + (10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,0) + (12) expected_result: + (0,1,0,3) + *(13) expected_result: + (0,1,0,0) + *(14) expected_result: + (0,1,0,0) + + Q2 finished at: 2022-4-24 14:42:30:574:70 +Q3-T1 execute opt: 'BEGIN' +Q3 finished at: 2022-4-24 14:42:31:499:602 +Q4-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q4 finished at: 2022-4-24 14:42:31:536:254 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-24 14:42:32:503:517 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + (7) expected_result: + (1,3,1,1) + *(8) expected_result: + (1,3,1,0) + (9) expected_result: + (1,3,1,1) + (10) expected_result: + (1,3,1,1) + *(11) expected_result: + (1,3,1,0) + *(12) expected_result: + (1,3,1,0) + *(13) expected_result: + (1,3,1,0) + (14) expected_result: + (1,3,1,1) + + Q6 finished at: 2022-4-24 14:42:32:584:860 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + (7) expected_result: + (0,1,0,3) + (8) expected_result: + (0,1,0,3) + (9) expected_result: + (0,1,0,3) + *(10) expected_result: + (0,1,0,0) + *(11) expected_result: + (0,1,0,0) + *(12) expected_result: + (0,1,0,0) + (13) expected_result: + (0,1,0,3) + (14) expected_result: + (0,1,0,3) + + Q7 finished at: 2022-4-24 14:42:32:625:588 + Q8-T2 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 14:42:33:501:898 + Q9-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q9 finished at: 2022-4-24 14:42:33:575:304 + Q10-T4 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + *(7) expected_result: + (1,3,1,0) + (8) expected_result: + (1,3,1,1) + (9) expected_result: + (1,3,1,1) + (10) expected_result: + (1,3,1,1) + (11) expected_result: + (1,3,1,1) + *(12) expected_result: + (1,3,1,0) + *(13) expected_result: + (1,3,1,0) + *(14) expected_result: + (1,3,1,0) + + Q10 finished at: 2022-4-24 14:42:34:501:279 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-24 14:42:35:500:996 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 14:42:36:500:890 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-24 14:42:37:504:287 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 14:42:38:500:101 + Q15-T5 execute opt: 'BEGIN' + Q15 finished at: 2022-4-24 14:42:48:496:600 + Q16-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + *(7) expected_result: + (0,1,0,3) + *(8) expected_result: + (0,1,0,3) + *(9) expected_result: + (0,1,0,3) + *(10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,3) + *(12) expected_result: + (0,1,0,3) + *(13) expected_result: + (0,1,0,3) + *(14) expected_result: + (0,1,0,3) + + Q16 finished at: 2022-4-24 14:42:48:619:445 + Q17-T5 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + *(7) expected_result: + (1,3,1,1) + *(8) expected_result: + (1,3,1,1) + *(9) expected_result: + (1,3,1,1) + *(10) expected_result: + (1,3,1,1) + *(11) expected_result: + (1,3,1,1) + *(12) expected_result: + (1,3,1,1) + *(13) expected_result: + (1,3,1,1) + *(14) expected_result: + (1,3,1,1) + + Q17 finished at: 2022-4-24 14:42:48:653:138 + Q18-T5 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-24 14:42:48:685:961 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..78b5a709 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,110 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:43:19:564:587 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-24 14:43:19:605:74 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:43:20:560:736 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-24 14:43:20:633:758 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-24 14:43:20:670:517 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-24 14:43:21:563:469 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-24 14:43:21:641:733 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-24 14:43:21:680:919 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-24 14:43:22:565:388 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 14:43:22:605:845 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 14:43:23:562:295 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 14:43:24:565:704 + Q13-T4 execute opt: 'BEGIN' + Q13 finished at: 2022-4-24 14:43:34:558:254 + Q14-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q14 finished at: 2022-4-24 14:43:34:626:339 + Q15-T4 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-24 14:43:34:659:805 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..f0520298 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,107 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:42:57:845:71 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-24 12:42:57:882:784 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:42:58:844:495 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-24 12:42:58:916:326 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-24 12:42:58:952:277 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-24 12:42:59:841:814 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-24 12:42:59:909:424 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-24 12:42:59:943:28 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-24 12:43:0:846:703 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 12:43:0:883:436 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 12:43:1:845:23 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 12:43:2:842:624 + Q13-T4 execute opt: 'BEGIN' + Q13 finished at: 2022-4-24 12:43:12:849:301 + Q14-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q14 finished at: 2022-4-24 12:43:12:931:474 + Q15-T4 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-24 12:43:12:972:15 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_sda_dirty_read.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..bbe0ed2c --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,48 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:38:10:26:954 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 13:38:10:65:826 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:38:11:30:201 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 13:38:11:114:739 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-24 13:38:12:27:498 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 13:38:13:30:395 + Q7-T3 execute opt: 'BEGIN' + Q7 finished at: 2022-4-24 13:38:23:24:330 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q8 finished at: 2022-4-24 13:38:23:96:392 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 13:38:23:132:65 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..a6ea764d --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,52 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:26:43:398:205 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 12:26:43:434:335 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:26:44:434:827 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 12:26:44:472:225 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-24 12:26:45:434:337 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 12:26:46:434:961 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 12:26:47:473:102 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 12:26:57:431:123 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q9 finished at: 2022-4-24 12:26:57:464:619 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 12:26:57:497:655 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..f3304728 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:36:55:404:860 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 14:36:55:441:781 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:36:56:407:751 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 14:36:56:488:878 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 14:36:56:528:645 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-24 14:36:57:404:906 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 14:36:57:441:613 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 14:37:7:403:798 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q9 finished at: 2022-4-24 14:37:7:477:347 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 14:37:7:512:926 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..4840af84 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:35:15:469:107 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 12:35:15:509:941 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:35:16:468:856 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-24 12:35:17:469:877 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 12:35:17:510:406 + Q4 finished at: 2022-4-24 12:35:17:510:506 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 12:35:18:469:747 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 12:35:28:465:652 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q9 finished at: 2022-4-24 12:35:28:539:380 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 12:35:28:576:4 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..a747109b --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:26:25:160:342 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 12:26:25:196:629 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:26:26:197:885 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-24 12:26:27:196:595 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 12:26:29:196:737 + Q4 finished at: 2022-4-24 12:26:29:197:456 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 12:26:29:235:250 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 12:26:39:193:292 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-24 12:26:39:226:870 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 12:26:39:260:528 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..7c055df9 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:33:46:710:879 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 12:33:46:748:108 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:33:47:711:175 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-24 12:33:47:785:788 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 12:33:47:823:225 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-24 12:33:48:871:233 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 12:33:48:907:678 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 12:33:58:711:266 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q9 finished at: 2022-4-24 12:33:58:785:574 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 12:33:58:823:0 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..b526fa1d --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:34:24:62:68 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 12:34:24:97:578 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:34:25:69:701 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-24 12:34:25:151:17 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 12:34:25:191:776 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-24 12:34:26:62:870 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 12:34:26:96:686 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 12:34:36:65:484 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q9 finished at: 2022-4-24 12:34:36:139:841 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 12:34:36:176:285 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..1c316187 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,68 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:47:6:857:531 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 12:47:6:890:712 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:47:7:858:20 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 12:47:7:924:331 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q7 finished at: 2022-4-24 12:47:8:858:86 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 12:47:8:890:770 + Q5 finished at: 2022-4-24 12:47:8:891:50 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 12:47:8:924:443 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 12:47:18:863:589 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,2) + *(1) expected_result: + (0,1,0,2) + (2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 12:47:18:939:914 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-24 12:47:18:978:370 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 12:47:19:16:335 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..4e6b21e6 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,36 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:47:39:234:876 +Q2-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q2 finished at: 2022-4-24 12:47:39:268:556 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:47:40:237:915 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-24 12:47:40:311:16 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-24 12:47:41:238:216 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 12:47:41:272:293 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-122-6264d66c-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-24 12:47:41:741:445 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-122-6264d66c-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..74f4dfec --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,34 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:48:5:561:584 +Q2-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q2 finished at: 2022-4-24 12:48:5:594:303 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:48:6:564:403 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-24 12:48:6:635:172 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-24 12:48:7:563:193 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-cf-16a-6264d686-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-24 12:48:8:64:954 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-cf-16a-6264d686-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..dfa86fcc --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,36 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:48:35:46:45 +Q2-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q2 finished at: 2022-4-24 12:48:35:78:783 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:48:36:61:456 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-24 12:48:36:134:283 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-4-24 12:48:37:49:693 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 12:48:37:82:143 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-129-6264d6a4-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-24 12:48:37:550:199 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-129-6264d6a4-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..85d19409 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,66 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:49:27:814:882 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-24 12:49:27:852:597 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:49:28:814:563 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-24 12:49:28:889:78 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-24 12:49:28:926:377 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 12:49:30:816:546 +Q6 finished at: 2022-4-24 12:49:30:816:823 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 12:49:30:854:444 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 12:49:40:814:917 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 12:49:40:889:513 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + (1) expected_result: + (1,3,1,2) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-24 12:49:40:926:862 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 12:49:40:963:535 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..51abb12a --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,66 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:50:6:484:752 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-24 12:50:6:522:817 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:50:7:486:630 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-24 12:50:7:565:600 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-24 12:50:7:605:490 +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 12:50:9:487:724 +Q6 finished at: 2022-4-24 12:50:9:488:462 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 12:50:10:485:478 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 12:50:20:479:808 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 12:50:20:544:765 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + (1) expected_result: + (1,3,1,2) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-24 12:50:20:577:628 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 12:50:20:609:959 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..9e0e13b7 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,66 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:51:17:99:452 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 12:51:17:133:133 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:51:18:103:241 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-24 12:51:18:177:818 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-24 12:51:19:100:174 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 12:51:19:133:936 + Q5 finished at: 2022-4-24 12:51:19:138:184 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 12:51:20:104:1 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 12:51:30:103:26 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,2) + *(1) expected_result: + (0,1,0,2) + (2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 12:51:30:177:253 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-24 12:51:30:214:450 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 12:51:30:255:744 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..98b6faef --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,66 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:54:49:419:533 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 12:54:49:457:670 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:54:50:422:743 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-24 12:54:50:503:288 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-24 12:54:51:420:120 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 12:54:53:420:652 + Q5 finished at: 2022-4-24 12:54:53:423:813 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 12:54:53:464:248 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 12:55:3:419:964 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,2) + *(1) expected_result: + (0,1,0,2) + (2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 12:55:3:495:604 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-24 12:55:3:533:132 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 12:55:3:570:329 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..a6cfc4dc --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,66 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:55:16:746:892 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 12:55:16:781:15 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:55:17:749:764 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-24 12:55:17:822:934 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-4-24 12:55:18:747:70 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 12:55:18:780:838 + Q5 finished at: 2022-4-24 12:55:18:781:225 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 12:55:18:817:906 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 12:55:28:753:761 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,2) + *(1) expected_result: + (0,1,0,2) + (2) expected_result: + (0,1,0,3) + + Q10 finished at: 2022-4-24 12:55:28:840:569 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + + Q11 finished at: 2022-4-24 12:55:28:881:703 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 12:55:28:922:534 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..3b25fa9b --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,43 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0, 2, 0);' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:46:19:563:847 +Q2-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q2 finished at: 2022-4-24 15:46:19:597:531 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:46:20:567:89 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-24 15:46:20:641:428 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-24 15:46:21:570:864 + Q7-T3 execute sql: 'UPDATE t3 SET value2=3 WHERE value1=2;' + Q7 finished at: 2022-4-24 15:46:21:651:804 + Q8-T3 execute sql: 'UPDATE t2 SET value2=3 WHERE value1=1;' +Q9-T1 execute sql: 'UPDATE t3 SET value2=1 WHERE value1=2;' + Q5 finished at: 2022-4-24 15:46:22:568:458 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-260-6265004b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-24 15:46:23:465:509 + Q8 finished at: 2022-4-24 15:46:23:534:481 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-260-6265004b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..be339106 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,43 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0, 2, 0);' + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:47:13:594:249 +Q2-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q2 finished at: 2022-4-24 15:47:13:631:932 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:47:14:595:819 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-24 15:47:14:670:780 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-24 15:47:15:598:947 + Q7-T3 execute sql: 'UPDATE t3 SET value2=3 WHERE value1=2;' + Q7 finished at: 2022-4-24 15:47:15:680:78 + Q8-T3 execute sql: 'UPDATE t2 SET value2=3 WHERE value1=1;' +Q9-T1 execute sql: 'UPDATE t3 SET value2=1 WHERE value1=2;' + Q5 finished at: 2022-4-24 15:47:16:596:708 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-267-62650081-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-24 15:47:17:496:334 + Q8 finished at: 2022-4-24 15:47:17:631:606 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-267-62650081-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..16d0646a --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,45 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:46:56:300:43 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 14:46:56:337:469 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:46:57:302:874 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-24 14:46:58:300:712 + Q4 finished at: 2022-4-24 14:46:58:314:959 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 14:46:59:303:809 + Q7-T3 execute opt: 'BEGIN' + Q7 finished at: 2022-4-24 14:47:9:298:598 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-24 14:47:9:370:352 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 14:47:9:405:852 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..f4f859f8 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,45 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:44:22:950:643 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 12:44:22:984:504 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:44:23:950:391 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-24 12:44:24:951:433 + Q4 finished at: 2022-4-24 12:44:24:951:713 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 12:44:25:951:387 + Q7-T3 execute opt: 'BEGIN' + Q7 finished at: 2022-4-24 12:44:35:953:771 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-24 12:44:36:26:795 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 12:44:36:63:184 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_sda_full_write.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..3586843a --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,47 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:44:48:126:940 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 12:44:48:160:723 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:44:49:130:868 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-24 12:44:50:127:632 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 12:44:50:161:349 + Q4 finished at: 2022-4-24 12:44:50:161:491 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 12:44:51:131:32 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 12:45:1:130:671 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q9 finished at: 2022-4-24 12:45:1:205:432 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 12:45:1:242:379 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..db47e3f3 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,47 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:45:15:791:638 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 12:45:15:824:500 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:45:16:799:965 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-24 12:45:17:792:279 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 12:45:17:825:274 + Q4 finished at: 2022-4-24 12:45:17:829:665 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 12:45:17:870:693 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 12:45:27:796:47 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q9 finished at: 2022-4-24 12:45:27:870:377 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 12:45:27:907:584 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..ab0aecce --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:46:43:47:712 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 12:46:43:81:374 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:46:44:58:209 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-24 12:46:45:48:716 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 12:46:45:83:98 + Q4 finished at: 2022-4-24 12:46:45:85:364 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 12:46:45:122:370 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 12:46:55:54:718 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q9 finished at: 2022-4-24 12:46:55:135:229 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 12:46:55:175:210 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..1a5ef1d3 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,52 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:45:47:216:696 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 12:45:47:253:804 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:45:48:212:700 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 12:45:48:277:120 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 12:45:50:213:529 +Q5 finished at: 2022-4-24 12:45:50:218:282 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 12:45:50:254:850 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 12:46:0:220:875 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-24 12:46:0:302:9 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 12:46:0:342:139 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..362c63ed --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,52 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:46:15:24:95 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 12:46:15:64:799 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:46:16:16:565 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 12:46:16:83:31 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 12:46:18:17:866 +Q5 finished at: 2022-4-24 12:46:18:21:372 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 12:46:19:26:136 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 12:46:29:20:454 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-24 12:46:29:94:301 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 12:46:29:131:206 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/result_summary/read-committed_total-result.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..38745346 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/result_summary/repeatable-read_total-result.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..ef182286 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/result_summary/serializable_total-result.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..b5b686cf --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/result_summary/serializable_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Rollback + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Rollback + +rat_dda_read_skew2_committed: Rollback + +rat_mda_step_rat: Rollback + +rat_mda_step_rat_long_fork: Rollback + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Rollback + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Rollback + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +iat_mda_step_iat_predicate_based_delete: Rollback + +iat_mda_step_iat_predicate_based_insert: Rollback + +iat_mda_step_iat_uname_anomaly: Rollback + +iat_mda_step_iat_cross_phenomenon: Rollback + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Rollback + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..2572a301 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,43 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:26:44:67:658 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-24 14:26:44:104:413 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:26:45:69:14 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 14:26:45:144:212 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + Q5 finished at: 2022-4-24 14:26:46:69:473 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 14:26:46:107:334 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-229-6264eda4-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-24 14:26:46:769:323 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-229-6264eda4-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..b4cc008b --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,43 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:27:8:795:44 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-24 14:27:8:829:0 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:27:9:797:974 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-24 14:27:9:871:553 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q5 finished at: 2022-4-24 14:27:10:799:528 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 14:27:10:836:333 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-1ff-6264edbc-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-24 14:27:11:497:78 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-1ff-6264edbc-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_dda_write_skew.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..9d485e1b --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_dda_write_skew.txt @@ -0,0 +1,50 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:27:32:438:902 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-24 14:27:32:479:809 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:27:33:435:704 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-24 14:27:33:510:260 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-24 14:27:34:440:411 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 14:27:34:480:799 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-cf-204-6264edd5-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-24 14:27:34:941:409 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-cf-204-6264edd5-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..efe9ff7f --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,50 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:29:7:546:660 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-24 14:29:7:584:722 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:29:8:542:610 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-24 14:29:8:609:293 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-4-24 14:29:9:548:384 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 14:29:9:585:976 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-cf-20b-6264ee34-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-24 14:29:10:45:717 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-cf-20b-6264ee34-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..819f245a --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,77 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL PRIMARY KEY);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:28:10:996:44 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-24 14:28:11:35:541 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-24 14:28:11:72:323 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-24 14:28:11:995:538 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute opt: 'COMMIT'; + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-24 14:28:12:992:327 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' +Q8 finished at: 2022-4-24 14:28:12:996:813 + Q6 finished at: 2022-4-24 14:28:13:30:1 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 14:28:13:66:666 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 14:28:22:995:751 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-24 14:28:23:69:806 + Q11-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q11 finished at: 2022-4-24 14:28:23:106:694 + Q12-T3 execute sql: 'DROP TABLE mytab;' + Q12 finished at: 2022-4-24 14:28:23:160:872 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-24 14:28:23:197:255 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..7e9598e1 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,48 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:28:39:675:478 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-24 14:28:39:715:593 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:28:40:668:462 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-24 14:28:40:734:518 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q5 finished at: 2022-4-24 14:28:41:674:329 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 14:28:41:707:273 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-1c7-6264ee17-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-24 14:28:42:377:195 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-1c7-6264ee17-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_mda_step_iat.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..d2c169d0 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_mda_step_iat.txt @@ -0,0 +1,87 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:29:30:644:144 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + (2,0,2,1) + (5) expected_result: + (2,0,2,1) + (6) expected_result: + (2,0,2,1) + +Q2 finished at: 2022-4-24 14:29:30:680:423 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:29:31:641:185 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,,3) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + + Q4 finished at: 2022-4-24 14:29:31:708:106 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-24 14:29:32:644:771 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-4-24 14:29:32:718:833 +Q7-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q8-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q9-T3 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q8 finished at: 2022-4-24 14:29:35:643:792 + Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-cf-20e-6264ee4c-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q9 failed at: 2022-4-24 14:29:36:547:793 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]set_1650716943_1:Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-24 14:29:55:348:260 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-cf-20e-6264ee4c-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..92e9861d --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,128 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:33:0:798:700 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-24 14:33:0:836:657 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:33:1:793:845 + Q4-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-24 14:33:2:798:425 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q10-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,0) + (5) expected_result: + (1,3,1,1) + (6) expected_result: + (1,3,1,1) + +Q10 finished at: 2022-4-24 14:33:3:799:421 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-24 14:33:3:836:783 + Q4 finished at: 2022-4-24 14:33:3:846:941 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 14:33:3:881:332 + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,0) + + Q7 finished at: 2022-4-24 14:33:3:885:828 + Q8-T3 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q8 finished at: 2022-4-24 14:33:3:923:658 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 14:33:3:961:145 + Q12-T4 execute opt: 'BEGIN' + Q12 finished at: 2022-4-24 14:33:13:797:793 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + *(2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,3) + + Q13 finished at: 2022-4-24 14:33:13:883:454 + Q14-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,3,1,1) + *(1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,1) + *(4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,1) + *(6) expected_result: + (1,3,1,1) + + Q14 finished at: 2022-4-24 14:33:13:920:444 + Q15-T4 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-24 14:33:13:956:982 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..5bc1fb2b --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,172 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:32:28:726:214 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + *(5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,3) + (7) expected_result: + (0,1,0,3) + *(8) expected_result: + (0,1,0,0) + (9) expected_result: + (0,1,0,3) + (10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,0) + (12) expected_result: + (0,1,0,3) + (13) expected_result: + (0,1,0,3) + (14) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-24 14:32:28:762:644 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:32:29:722:534 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + *(7) expected_result: + (1,3,1,0) + (8) expected_result: + (1,3,1,1) + *(9) expected_result: + (1,3,1,0) + (10) expected_result: + (1,3,1,1) + (11) expected_result: + (1,3,1,1) + (12) expected_result: + (1,3,1,1) + (13) expected_result: + (1,3,1,1) + *(14) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-24 14:32:29:790:318 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-24 14:32:30:721:333 + Q6-T3 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q8-T4 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 14:32:31:724:744 + Q9-T4 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q13-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,0) + *(6) expected_result: + (0,1,0,0) + *(7) expected_result: + (0,1,0,0) + *(8) expected_result: + (0,1,0,0) + (9) expected_result: + (0,1,0,3) + (10) expected_result: + (0,1,0,3) + (11) expected_result: + (0,1,0,3) + *(12) expected_result: + (0,1,0,0) + (13) expected_result: + (0,1,0,3) + (14) expected_result: + (0,1,0,3) + + Q11 finished at: 2022-4-24 14:32:33:727:469 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 14:32:33:761:58 + Q9 finished at: 2022-4-24 14:32:33:764:126 + Q10-T4 execute opt: 'COMMIT'; + current_result: + (1,3,1,1) + (1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,1) + (6) expected_result: + (1,3,1,0) + *(7) expected_result: + (1,3,1,1) + *(8) expected_result: + (1,3,1,1) + (9) expected_result: + (1,3,1,0) + *(10) expected_result: + (1,3,1,1) + *(11) expected_result: + (1,3,1,1) + *(12) expected_result: + (1,3,1,1) + (13) expected_result: + (1,3,1,0) + *(14) expected_result: + (1,3,1,1) + +Q13 finished at: 2022-4-24 14:32:33:797:133 +Q14-T1 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 14:32:33:800:422 +Q14 finished at: 2022-4-24 14:32:33:832:777 + Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-251-6264eefe-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q6 failed at: 2022-4-24 14:32:34:326:814 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-251-6264eefe-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..94c44bda --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,87 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:30:6:530:361 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-24 14:30:6:567:520 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:30:7:530:473 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + null + *(6) expected_result: + (0,1,0,0) + + Q4 finished at: 2022-4-24 14:30:7:604:386 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-24 14:30:8:530:113 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + null + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + null + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-4-24 14:30:8:603:490 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE value1=0;' + Q8-T2 execute sql: 'DELETE FROM t2 WHERE value1=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE value1=2;' + Q8 finished at: 2022-4-24 14:30:11:533:95 + Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-239-6264ee70-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q9 failed at: 2022-4-24 14:30:12:432:939 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]set_1650716943_1:Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-24 14:30:31:237:388 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-239-6264ee70-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..a7d1255b --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,84 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:30:42:622:168 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,0,2,0) + (5) expected_result: + (2,0,2,0) + (6) expected_result: + (2,0,2,0) + +Q2 finished at: 2022-4-24 14:30:42:660:669 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:30:43:625:266 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + null + (1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,0) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1,0,0) + *(6) expected_result: + null + + Q4 finished at: 2022-4-24 14:30:43:705:129 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-24 14:30:44:618:287 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + null + (1) expected_result: + (1,3,1,0) + *(2) expected_result: + null + (3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,0) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-24 14:30:44:685:730 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' + Q8-T2 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + Q8 finished at: 2022-4-24 14:30:47:622:998 + Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-1ca-6264ee94-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q9 failed at: 2022-4-24 14:30:48:520:573 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]set_1650716943_1:Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-24 14:31:7:320:920 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-1ca-6264ee94-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..6b3b17d5 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,121 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:33:50:863:294 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + *(5) expected_result: + (0,1,0,0) + *(6) expected_result: + (0,1,0,0) + +Q2 finished at: 2022-4-24 14:33:50:901:31 +Q3-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + +Q3 finished at: 2022-4-24 14:33:50:938:516 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-24 14:33:51:859:484 + Q5-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,0) + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q5 finished at: 2022-4-24 14:33:51:925:836 + Q6-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 14:33:52:862:847 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + (4) expected_result: + (0,1,0,3) + *(5) expected_result: + (0,1,0,0) + *(6) expected_result: + (0,1,0,0) + + Q9 finished at: 2022-4-24 14:33:52:936:663 + Q10-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' +Q12-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q10 finished at: 2022-4-24 14:33:53:865:358 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 14:33:53:901:655 +Q12 finished at: 2022-4-24 14:33:53:902:328 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-24 14:33:53:939:486 + Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-1d5-6264ef4f-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q6 failed at: 2022-4-24 14:33:54:466:71 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-1d5-6264ef4f-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..6943f1b6 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,128 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0, 2, 0);' + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:31:40:947:893 +Q2-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,2) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + +Q2 finished at: 2022-4-24 14:31:40:987:438 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:31:41:945:377 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,2) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + (0,1,0,2) + (6) expected_result: + (0,1,0,2) + + Q4 finished at: 2022-4-24 14:31:42:21:141 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5 finished at: 2022-4-24 14:31:42:57:760 + Q6-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + *(3) expected_result: + (1,3,1,0) + *(4) expected_result: + (1,3,1,0) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q6 finished at: 2022-4-24 14:31:42:94:578 + Q7-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 14:31:42:945:598 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE value1=2;' +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE value1=2;' + Q7 finished at: 2022-4-24 14:31:43:947:362 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 14:31:43:983:955 + current_result: + (2,0,2,0) + *(1) expected_result: + (2,0,2,0) + *(2) expected_result: + (2,0,2,0) + *(3) expected_result: + (2,0,2,0) + *(4) expected_result: + (2,0,2,0) + *(5) expected_result: + (2,0,2,0) + *(6) expected_result: + (2,0,2,0) + + Q10 finished at: 2022-4-24 14:31:43:984:243 + Q11-T3 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=2;' + Q11 finished at: 2022-4-24 14:31:44:21:229 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,3) + *(1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,0) + *(3) expected_result: + (0,1,0,3) + *(4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,0) + (6) expected_result: + (0,1,0,0) + + Q12 finished at: 2022-4-24 14:31:44:58:684 + Q13-T3 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q13 finished at: 2022-4-24 14:31:44:95:858 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 14:31:44:133:695 +Q15 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-cf-21a-6264eecc-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q15 failed at: 2022-4-24 14:31:45:447:100 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-cf-21a-6264eecc-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..c7f262c0 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:26:21:258:230 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 14:26:21:298:771 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:26:22:257:937 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-24 14:26:23:259:801 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 14:26:23:300:529 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-226-6264ed8e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q4 failed at: 2022-4-24 14:26:23:659:568 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-226-6264ed8e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..d2583c7b --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:25:46:418:103 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 14:25:46:455:228 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:25:47:417:834 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-24 14:25:48:418:751 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 14:25:48:454:938 + Q4 finished at: 2022-4-24 14:25:48:458:40 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 14:25:48:494:728 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 14:25:58:413:608 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-24 14:25:58:479:332 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 14:25:58:511:312 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..dde6adb4 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,34 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:58:34:607:295 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 13:58:34:647:940 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:58:35:600:734 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 13:58:35:668:442 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' +Q6 finished at: 2022-4-24 13:58:36:609:104 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-1e8-6264e70b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-24 13:58:37:106:455 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-1e8-6264e70b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..5d314797 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,36 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:59:1:59:676 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 13:59:1:97:417 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:59:2:59:164 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 13:59:2:132:778 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' +Q7 finished at: 2022-4-24 13:59:3:61:541 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 13:59:3:99:59 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-1ec-6264e726-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-24 13:59:3:561:432 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-1ec-6264e726-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..83e97a02 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,43 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:59:26:761:703 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 13:59:26:798:527 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:59:27:757:831 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 13:59:27:823:877 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q6 finished at: 2022-4-24 13:59:28:764:102 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 13:59:28:801:43 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-1ca-6264e73f-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-24 13:59:29:260:72 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-1ca-6264e73f-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_read_skew.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..859903dd --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_read_skew.txt @@ -0,0 +1,41 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:59:52:144:144 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-24 13:59:52:182:436 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:59:53:144:809 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 13:59:53:221:270 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + Q5 finished at: 2022-4-24 13:59:54:145:978 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-1cd-6264e758-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-24 13:59:54:745:670 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-1cd-6264e758-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_read_skew2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..34826d88 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,43 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:4:2:367:822 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 14:4:2:408:275 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:4:3:362:952 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-24 14:4:3:436:118 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-24 14:4:4:368:704 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 14:4:4:409:644 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-193-6264e853-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-24 14:4:4:865:314 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-193-6264e853-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..9b0d6e4e --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,43 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:4:26:866:98 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 14:4:26:903:317 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:4:27:861:746 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-24 14:4:27:926:718 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-4-24 14:4:28:868:313 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 14:4:28:905:217 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-196-6264e86b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-24 14:4:29:364:284 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-196-6264e86b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..efae420b --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,75 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:0:22:298:617 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value2=0;' + current_result: + (0,1,0,0) + (1) expected_result: + null + *(2) expected_result: + (0,1,0,0) + +Q2 finished at: 2022-4-24 14:0:22:338:573 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:0:23:301:141 + Q4-T2 execute sql: 'DELETE FROM t2 WHERE value1=1;' + Q4 finished at: 2022-4-24 14:0:23:385:508 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE value1=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE value2=0;' + current_result: + (0,1,0,0) + (1) expected_result: + null + *(2) expected_result: + (0,1,0,0) + +Q7 finished at: 2022-4-24 14:0:24:300:104 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 14:0:24:339:480 + Q5 finished at: 2022-4-24 14:0:24:340:864 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 14:0:24:383:391 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 14:0:34:293:146 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q10 finished at: 2022-4-24 14:0:34:359:466 + Q11-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q11 finished at: 2022-4-24 14:0:34:392:614 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 14:0:34:425:189 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..897189a8 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,62 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:3:39:232:989 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-24 14:3:39:273:838 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:3:40:234:534 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-24 14:3:41:233:235 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 14:3:41:272:615 + Q4 finished at: 2022-4-24 14:3:41:273:42 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-24 14:3:41:313:793 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 14:3:41:354:492 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-24 14:3:51:233:72 + Q10-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q10 finished at: 2022-4-24 14:3:51:313:332 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 14:3:51:353:130 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..cec848db --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,41 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:56:29:872:374 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 13:56:29:913:110 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:56:30:867:334 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 13:56:30:939:107 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1; ' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q6 finished at: 2022-4-24 13:56:31:873:736 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-18a-6264e68e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-24 13:56:32:370:414 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-18a-6264e68e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..6cbb039f --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,43 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:57:7:768:310 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 13:57:7:804:985 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:57:8:767:363 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 13:57:8:839:659 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q7 finished at: 2022-4-24 13:57:9:769:879 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 13:57:9:806:424 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-cf-1ba-6264e6b4-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-24 13:57:10:266:261 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-cf-1ba-6264e6b4-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_mda_step_rat.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..3dd61bc3 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_mda_step_rat.txt @@ -0,0 +1,73 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0, 2, 0);' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:48:46:576:185 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 15:48:46:615:416 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:48:47:570:145 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 15:48:47:639:212 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-24 15:48:48:577:305 + Q7-T3 execute sql: 'UPDATE t3 SET value2=1 WHERE value1=2;' + Q7 finished at: 2022-4-24 15:48:48:656:702 + Q8-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' +Q9-T1 execute sql: 'SELECT * FROM t3 WHERE value1=2;' + current_result: + (0,1,0,0) + (1) expected_result: + (0,1,0,3) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + *(4) expected_result: + (0,1,0,0) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + + Q5 finished at: 2022-4-24 15:48:49:583:339 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-298-626500de-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-24 15:48:50:483:362 + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + *(6) expected_result: + (1,3,1,0) + + Q8 finished at: 2022-4-24 15:48:50:556:71 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-298-626500de-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..bb7e8d77 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,167 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN' + Q1 finished at: 2022-4-24 14:10:6:496:991 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + *(3) expected_result: + (0,1,0,0) + (4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + (7) expected_result: + (0,1,0,3) + (8) expected_result: + (0,1,0,3) + *(9) expected_result: + (0,1,0,0) + (10) expected_result: + (0,1,0,3) + *(11) expected_result: + (0,1,0,0) + (12) expected_result: + (0,1,0,3) + *(13) expected_result: + (0,1,0,0) + *(14) expected_result: + (0,1,0,0) + + Q2 finished at: 2022-4-24 14:10:6:574:342 +Q3-T1 execute opt: 'BEGIN' +Q3 finished at: 2022-4-24 14:10:7:498:90 +Q4-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-24 14:10:8:496:359 + Q6-T3 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + *(2) expected_result: + (1,3,1,0) + (3) expected_result: + (1,3,1,1) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + (7) expected_result: + (1,3,1,1) + *(8) expected_result: + (1,3,1,0) + (9) expected_result: + (1,3,1,1) + (10) expected_result: + (1,3,1,1) + *(11) expected_result: + (1,3,1,0) + *(12) expected_result: + (1,3,1,0) + *(13) expected_result: + (1,3,1,0) + (14) expected_result: + (1,3,1,1) + + Q6 finished at: 2022-4-24 14:10:8:573:353 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + Q8-T2 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 14:10:9:498:234 + Q9-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q10-T4 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + *(2) expected_result: + (0,1,0,0) + (3) expected_result: + (0,1,0,3) + (4) expected_result: + (0,1,0,3) + (5) expected_result: + (0,1,0,3) + *(6) expected_result: + (0,1,0,0) + (7) expected_result: + (0,1,0,3) + (8) expected_result: + (0,1,0,3) + (9) expected_result: + (0,1,0,3) + *(10) expected_result: + (0,1,0,0) + *(11) expected_result: + (0,1,0,0) + *(12) expected_result: + (0,1,0,0) + (13) expected_result: + (0,1,0,3) + (14) expected_result: + (0,1,0,3) + + Q7 finished at: 2022-4-24 14:10:10:499:808 +Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-1f9-6264e9bf-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q4 failed at: 2022-4-24 14:10:10:899:133 + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + *(3) expected_result: + (1,3,1,0) + (4) expected_result: + (1,3,1,1) + *(5) expected_result: + (1,3,1,0) + (6) expected_result: + (1,3,1,1) + *(7) expected_result: + (1,3,1,0) + (8) expected_result: + (1,3,1,1) + (9) expected_result: + (1,3,1,1) + (10) expected_result: + (1,3,1,1) + (11) expected_result: + (1,3,1,1) + *(12) expected_result: + (1,3,1,0) + *(13) expected_result: + (1,3,1,0) + *(14) expected_result: + (1,3,1,0) + + Q10 finished at: 2022-4-24 14:10:30:501:52 + Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]set_1650716943_1:Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q9 failed at: 2022-4-24 14:10:31:399:574 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-1f9-6264e9bf-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..807767e4 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,69 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:10:43:883:91 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-24 14:10:43:918:55 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:10:44:882:36 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-24 14:10:44:949:197 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-24 14:10:45:886:808 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-24 14:10:45:963:170 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-24 14:10:46:884:807 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-19e-6264e9e3-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-24 14:10:47:786:48 + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-24 14:10:47:854:506 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-19e-6264e9e3-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..ad61940e --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,66 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:11:16:308:675 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-24 14:11:16:343:400 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:11:17:311:740 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-24 14:11:17:385:503 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-24 14:11:18:308:575 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-24 14:11:18:375:830 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-24 14:11:19:314:391 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-1a3-6264ea04-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-24 14:11:20:210:933 + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-24 14:11:20:277:417 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-1a3-6264ea04-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_sda_dirty_read.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..01d698eb --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,48 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:40:17:358:323 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 13:40:17:398:313 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:40:18:352:448 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-24 13:40:19:355:272 + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 13:40:19:356:266 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 13:40:20:353:444 + Q7-T3 execute opt: 'BEGIN' + Q7 finished at: 2022-4-24 13:40:30:350:767 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q8 finished at: 2022-4-24 13:40:30:422:415 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 13:40:30:457:664 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..4111ef17 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:53:37:192:145 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 13:53:37:228:976 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:53:38:191:957 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-24 13:53:39:192:559 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 13:53:41:192:940 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 13:53:41:193:67 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 13:53:41:229:390 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 13:53:51:192:325 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q9 finished at: 2022-4-24 13:53:51:276:283 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 13:53:51:312:659 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..b919d762 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:54:3:617:378 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 13:54:3:653:640 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:54:4:618:278 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-24 13:54:5:620:401 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 13:54:5:656:677 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 13:54:5:661:11 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 13:54:5:697:522 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 13:54:15:617:491 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q9 finished at: 2022-4-24 13:54:15:689:710 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 13:54:15:725:349 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..ea385944 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:55:55:688:229 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 13:55:55:725:327 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:55:56:672:759 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-24 13:55:57:687:77 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 13:55:57:723:919 + Q4 finished at: 2022-4-24 13:55:57:727:447 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 13:55:58:673:743 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 13:56:8:673:363 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q9 finished at: 2022-4-24 13:56:8:746:164 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 13:56:8:782:59 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..3fe15bd2 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:41:3:100:93 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 13:41:3:133:422 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:41:4:107:251 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-24 13:41:5:100:870 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 13:41:7:100:646 + Q4 finished at: 2022-4-24 13:41:7:104:529 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 13:41:7:145:784 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 13:41:17:99:855 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-24 13:41:17:168:683 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 13:41:17:201:40 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..f0b42642 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:54:58:383:103 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 13:54:58:416:68 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:54:59:381:751 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-24 13:55:0:382:212 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 13:55:0:414:519 + Q4 finished at: 2022-4-24 13:55:0:415:161 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 13:55:0:448:524 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 13:55:10:385:465 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q9 finished at: 2022-4-24 13:55:10:459:280 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 13:55:10:495:715 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..e035e29d --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 13:55:28:315:429 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 13:55:28:350:65 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 13:55:29:318:157 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-24 13:55:30:315:895 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 13:55:30:349:429 + Q4 finished at: 2022-4-24 13:55:30:349:442 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 13:55:30:386:949 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 13:55:40:314:234 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q9 finished at: 2022-4-24 13:55:40:380:523 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 13:55:40:413:518 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..cbc10b35 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,43 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:20:48:149:661 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 14:20:48:189:189 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:20:49:151:927 + Q4-T2 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q4 finished at: 2022-4-24 14:20:49:237:837 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + *(1) expected_result: + (1,3,1,0) + (2) expected_result: + (1,3,1,1) + +Q7 finished at: 2022-4-24 14:20:50:151:345 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 14:20:50:190:705 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-1b0-6264ec41-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-24 14:20:50:652:963 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-1b0-6264ec41-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..11cf2b7d --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,36 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:21:16:428:719 +Q2-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q2 finished at: 2022-4-24 14:21:16:462:315 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:21:17:432:426 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-24 14:21:17:513:217 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-24 14:21:18:436:731 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 14:21:18:469:846 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-214-6264ec5d-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-24 14:21:18:937:141 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-214-6264ec5d-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..48b3d6a9 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,34 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:21:46:250:33 +Q2-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q2 finished at: 2022-4-24 14:21:46:286:904 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:21:47:249:698 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-24 14:21:47:322:608 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-24 14:21:48:251:809 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-217-6264ec7b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-24 14:21:48:752:152 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-217-6264ec7b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..966f310f --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,36 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:22:11:344:891 +Q2-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q2 finished at: 2022-4-24 14:22:11:378:166 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:22:12:350:468 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-24 14:22:12:422:349 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-4-24 14:22:13:346:629 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 14:22:13:379:629 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-1b4-6264ec94-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-24 14:22:13:850:656 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-1b4-6264ec94-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..30bdf001 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,41 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:22:35:589:955 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-24 14:22:35:627:380 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:22:36:586:62 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-24 14:22:36:651:400 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q5 finished at: 2022-4-24 14:22:37:589:961 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-cf-1ec-6264ecab-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-24 14:22:38:194:741 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-cf-1ec-6264ecab-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..bb1bbb4a --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,41 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:22:59:478:481 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE value1=0;' + current_result: + (0,1,0,0) + *(1) expected_result: + (0,1,0,0) + (2) expected_result: + (0,1,0,3) + +Q2 finished at: 2022-4-24 14:22:59:516:571 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:23:0:474:359 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-24 14:23:0:543:442 + Q5-T2 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' + Q5 finished at: 2022-4-24 14:23:1:476:826 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-21b-6264ecc3-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-24 14:23:2:80:704 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-21b-6264ecc3-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..289d87e3 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,43 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:23:28:696:285 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 14:23:28:729:686 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:23:29:699:201 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-24 14:23:29:872:646 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-24 14:23:30:697:798 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 14:23:30:731:114 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-cf-1f4-6264ece1-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-24 14:23:31:201:230 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-cf-1f4-6264ece1-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..75fc44c4 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,41 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:23:55:838:446 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 14:23:55:879:155 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:23:56:844:284 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-24 14:23:56:917:691 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q6-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q6 finished at: 2022-4-24 14:23:57:839:976 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-1ba-6264ecfc-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-24 14:23:58:336:685 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-1ba-6264ecfc-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..e956ae73 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,43 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:24:27:387:106 +Q2-T1 execute sql: 'UPDATE t1 SET value2=3 WHERE value1=0;' +Q2 finished at: 2022-4-24 14:24:27:424:162 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:24:28:391:39 + Q4-T2 execute sql: 'SELECT * FROM t2 WHERE value1=1;' + current_result: + (1,3,1,0) + (1) expected_result: + (1,3,1,1) + *(2) expected_result: + (1,3,1,0) + + Q4 finished at: 2022-4-24 14:24:28:476:576 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' +Q7-T1 execute sql: 'UPDATE t2 SET value2=1 WHERE value1=1;' +Q7 finished at: 2022-4-24 14:24:29:388:599 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 14:24:29:425:511 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-1c0-6264ed1c-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-24 14:24:29:890:380 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-99-1c0-6264ed1c-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..ae50c8c3 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,43 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0, 2, 0);' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:49:56:418:1 +Q2-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q2 finished at: 2022-4-24 15:49:56:458:284 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:49:57:417:781 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-24 15:49:57:497:145 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-24 15:49:58:415:398 + Q7-T3 execute sql: 'UPDATE t3 SET value2=3 WHERE value1=2;' + Q7 finished at: 2022-4-24 15:49:58:494:347 + Q8-T3 execute sql: 'UPDATE t2 SET value2=3 WHERE value1=1;' +Q9-T1 execute sql: 'UPDATE t3 SET value2=1 WHERE value1=2;' + Q5 finished at: 2022-4-24 15:49:59:419:585 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-26c-62650124-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-24 15:50:0:319:547 + Q8 finished at: 2022-4-24 15:50:0:400:384 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-26c-62650124-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..ddc74021 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,43 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT, v INT, value1 INT, value2 INT, PRIMARY KEY (v,k)) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1, 0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 3, 1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0, 2, 0);' + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 15:50:22:70:415 +Q2-T1 execute sql: 'UPDATE t1 SET value2=1 WHERE value1=0;' +Q2 finished at: 2022-4-24 15:50:22:107:664 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 15:50:23:66:727 + Q4-T2 execute sql: 'UPDATE t2 SET value2=2 WHERE value1=1;' + Q4 finished at: 2022-4-24 15:50:23:134:142 + Q5-T2 execute sql: 'UPDATE t1 SET value2=2 WHERE value1=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-24 15:50:24:70:902 + Q7-T3 execute sql: 'UPDATE t3 SET value2=3 WHERE value1=2;' + Q7 finished at: 2022-4-24 15:50:24:145:812 + Q8-T3 execute sql: 'UPDATE t2 SET value2=3 WHERE value1=1;' +Q9-T1 execute sql: 'UPDATE t3 SET value2=1 WHERE value1=2;' + Q5 finished at: 2022-4-24 15:50:25:68:463 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-cf-293-6265013e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-24 15:50:25:971:933 + Q8 finished at: 2022-4-24 15:50:26:107:707 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-cf-293-6265013e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..ee16c5ca --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,45 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:12:8:949:470 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 14:12:8:986:250 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:12:9:949:272 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-24 14:12:10:949:830 + Q4 finished at: 2022-4-24 14:12:10:949:936 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 14:12:11:950:100 + Q7-T3 execute opt: 'BEGIN' + Q7 finished at: 2022-4-24 14:12:21:948:912 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-24 14:12:22:25:453 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 14:12:22:61:690 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..7620f9ed --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,45 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:14:28:8:184 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 14:14:28:48:425 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:14:29:8:567 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-24 14:14:30:9:405 + Q4 finished at: 2022-4-24 14:14:30:10:142 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 14:14:31:9:323 + Q7-T3 execute opt: 'BEGIN' + Q7 finished at: 2022-4-24 14:14:41:4:988 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-24 14:14:41:79:4 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 14:14:41:115:300 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_sda_full_write.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..bea20708 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_sda_full_write.txt @@ -0,0 +1,47 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:17:39:465:817 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 14:17:39:506:261 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:17:40:466:291 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-24 14:17:41:466:221 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 14:17:41:506:633 + Q4 finished at: 2022-4-24 14:17:41:507:276 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 14:17:42:467:26 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 14:17:52:463:55 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q9 finished at: 2022-4-24 14:17:52:538:151 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 14:17:52:575:49 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..c0e38e4c --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,47 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:18:9:164:430 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 14:18:9:202:869 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:18:10:170:467 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-24 14:18:11:164:751 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 14:18:11:202:969 + Q4 finished at: 2022-4-24 14:18:11:205:973 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 14:18:11:246:75 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 14:18:21:163:545 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q9 finished at: 2022-4-24 14:18:21:236:776 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 14:18:21:274:408 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..d0547122 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:20:16:720:723 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 14:20:16:758:301 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:20:17:719:115 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-24 14:20:18:721:358 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 14:20:18:758:916 + Q4 finished at: 2022-4-24 14:20:18:761:753 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 14:20:18:798:278 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 14:20:28:719:573 + Q9-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q9 finished at: 2022-4-24 14:20:28:795:25 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 14:20:28:831:412 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..466f92b4 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,38 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:18:39:472:277 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 14:18:39:513:848 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:18:40:468:672 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-24 14:18:41:474:609 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 14:18:41:515:529 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-1eb-6264ebc0-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q4 failed at: 2022-4-24 14:18:41:874:193 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-1eb-6264ebc0-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..0af89e84 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_dist/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,36 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 14:19:8:536:812 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 14:19:8:572:457 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 14:19:9:540:424 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-24 14:19:10:538:346 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-20d-6264ebdd-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q4 failed at: 2022-4-24 14:19:10:938:864 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-20d-6264ebdd-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..eccb91ba --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:15:17:391:717 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:15:17:427:134 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:15:20:401:617 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 15:15:20:441:859 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:15:20:481:587 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:15:20:523:643 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-18 15:15:23:396:21 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:15:23:447:383 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:15:53:399:241 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:15:53:439:438 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..b46a33bb --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:16:1:671:282 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:16:1:705:318 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:16:4:677:75 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:16:4:716:996 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:16:4:756:830 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:16:4:796:475 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-18 15:16:7:671:601 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:16:7:705:558 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:16:37:678:636 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:16:37:718:691 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_dda_write_skew.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..6cb0ad30 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:16:45:953:334 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:16:45:987:543 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:16:48:959:115 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:16:48:999:529 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:16:49:39:142 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-18 15:16:51:954:19 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:16:51:988:132 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:16:54:959:660 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:17:24:960:821 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:17:25:1:26 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..662ef40b --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:19:2:41:502 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:19:2:75:636 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:19:5:47:232 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:19:5:87:156 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:19:5:126:947 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:19:5:166:932 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-18 15:19:8:42:5 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:19:8:76:97 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:19:38:48:663 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:19:38:88:879 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..8152674c --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL PRIMARY KEY);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 20:48:7:328:957 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-23 20:48:7:364:543 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-23 20:48:7:399:719 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-23 20:48:8:330:210 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-23 20:48:8:403:496 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-23 20:48:8:440:555 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 20:48:8:478:136 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 20:48:9:329:760 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-23 20:48:29:367:67 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-23 20:48:29:403:231 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 20:48:29:438:865 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..51139b15 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:18:17:761:965 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-18 15:18:17:796:249 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:18:20:728:244 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-18 15:18:20:769:6 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-18 15:18:20:808:999 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:18:20:849:778 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-18 15:18:23:762:560 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:18:23:796:655 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-18 15:18:53:769:126 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:18:53:809:232 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_mda_step_iat.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..62a3372c --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:19:46:360:118 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-18 15:19:46:394:380 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:19:49:366:72 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-18 15:19:49:405:834 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 15:19:52:377:413 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-18 15:19:52:418:582 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-18 15:19:55:360:731 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-18 15:19:58:366:475 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-18 15:20:1:367:176 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 15:20:4:361:19 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 15:20:7:366:912 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:20:10:368:334 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-18 15:20:40:367:138 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:20:40:407:411 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..87e2ee39 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:24:33:810:836 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:24:33:845:129 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:24:36:816:56 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-18 15:24:36:855:950 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:24:36:895:695 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 15:24:39:817:2 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-18 15:24:39:857:907 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-18 15:24:39:898:278 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:24:39:938:953 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-18 15:24:42:810:777 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-18 15:24:42:844:500 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-18 15:25:12:817:326 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-18 15:25:12:857:300 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..c39b88d9 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:23:40:499:987 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:23:40:534:825 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:23:43:506:65 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:23:43:546:324 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 15:23:46:506:762 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-18 15:23:46:547:516 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:23:46:588:189 + Q8-T4 execute opt: 'BEGIN' + Q8 finished at: 2022-4-18 15:23:49:506:148 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-18 15:23:49:546:600 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:23:49:586:864 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-18 15:23:52:506:575 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:23:52:546:512 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-18 15:23:55:500:837 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-18 15:23:55:534:754 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-18 15:24:25:540:387 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-18 15:24:25:576:375 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..f1a37275 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:20:48:676:936 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-18 15:20:48:711:103 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:20:51:682:656 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-18 15:20:51:723:69 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 15:20:54:683:791 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-18 15:20:54:724:596 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-18 15:20:57:677:433 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-18 15:21:0:683:232 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-18 15:21:3:684:251 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 15:21:6:677:569 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 15:21:9:683:489 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:21:12:684:339 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-18 15:21:42:685:639 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:21:42:742:259 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..2928622b --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:21:50:870:799 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-18 15:21:50:906:231 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:21:53:909:664 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-18 15:21:53:949:760 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 15:21:56:910:525 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-18 15:21:56:951:685 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-18 15:21:59:904:830 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-18 15:22:2:910:145 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-18 15:22:5:911:215 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 15:22:8:905:99 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 15:22:11:910:960 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:22:14:911:445 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-18 15:22:44:911:540 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:22:44:951:204 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..f289c970 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:25:21:89:672 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-18 15:25:21:123:663 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-18 15:25:21:160:114 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-18 15:25:24:94:583 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-18 15:25:24:134:468 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-18 15:25:24:174:149 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:25:24:213:969 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-18 15:25:27:95:483 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-18 15:25:27:136:386 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-18 15:25:27:177:66 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 15:25:27:217:409 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-18 15:25:30:89:331 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-18 15:25:30:123:645 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-18 15:26:0:97:637 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-18 15:26:0:138:240 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..d7a6c712 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:22:53:220:840 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-18 15:22:53:266:405 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:22:56:226:576 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-18 15:22:56:266:885 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:22:56:307:242 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-18 15:22:56:347:543 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-18 15:22:56:387:67 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:22:56:427:238 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-18 15:22:59:227:830 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-18 15:22:59:269:11 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-18 15:22:59:309:620 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-18 15:22:59:350:232 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-18 15:22:59:390:808 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:22:59:431:465 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-18 15:23:2:221:462 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-18 15:23:2:267:280 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-18 15:23:32:228:65 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-18 15:23:32:269:261 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..970f0a90 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:14:33:106:757 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-18 15:14:33:140:820 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:14:36:111:849 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-18 15:14:36:152:208 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:14:36:192:852 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-18 15:14:39:107:572 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:14:39:143:57 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-18 15:15:9:118:814 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:15:9:159:42 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..af3f964b --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:13:48:817:780 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:13:48:851:985 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:13:51:784:465 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-18 15:13:51:824:621 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:13:51:864:809 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-18 15:13:54:818:406 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:13:54:852:79 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-18 15:14:24:825:217 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:14:24:865:695 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:14:24:906:497 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..f3a93e04 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 20:48:33:681:580 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 20:48:33:716:863 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 20:48:34:682:864 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 20:48:34:719:566 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-23 20:48:34:756:530 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 20:48:36:683:669 +Q6 finished at: 2022-4-23 20:48:36:685:371 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 20:48:37:681:978 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-23 20:48:57:683:237 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 20:48:57:718:849 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..76b0cf6b --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:50:17:952:991 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:50:17:987:209 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:50:20:958:986 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 14:50:20:999:601 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 14:50:21:43:893 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 14:50:21:83:932 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-18 14:50:23:953:767 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 14:50:23:987:540 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-18 14:50:53:960:564 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 14:50:54:0:460 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..50bca9e1 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:51:2:233:702 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:51:2:267:654 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:51:5:239:481 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 14:51:5:279:522 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-18 14:51:8:234:307 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 14:51:8:268:89 + Q5 finished at: 2022-4-18 14:51:8:271:328 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 14:51:11:239:773 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 14:51:41:251:970 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 14:51:41:292:675 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_read_skew.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..9edce572 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:51:49:526:931 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 14:51:49:560:970 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:51:52:532:530 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 14:51:52:572:399 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 14:51:52:611:820 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-18 14:51:55:529:106 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 14:51:58:533:496 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 14:52:1:527:429 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 14:52:31:534:641 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 14:52:31:574:524 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_read_skew2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..cf81889a --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:54:8:306:447 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:54:8:341:75 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:54:11:312:88 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 14:54:11:352:304 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 14:54:11:391:874 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-18 14:54:14:306:985 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 14:54:14:340:765 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 14:54:17:401:934 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 14:54:47:314:77 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 14:54:47:354:253 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..fc33f859 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:54:55:589:148 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:54:55:623:138 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:54:58:594:975 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 14:54:58:635:381 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 14:54:58:674:926 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 14:54:58:714:160 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-18 14:55:1:590:12 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 14:55:1:624:639 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 14:55:31:596:801 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 14:55:31:636:747 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..de8405ce --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:52:39:808:424 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-18 14:52:39:842:651 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:52:42:814:170 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-18 14:52:42:855:24 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-18 14:52:42:894:710 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 14:52:42:934:637 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-18 14:52:45:808:948 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 14:52:45:842:473 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-18 14:53:15:815:793 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 14:53:15:855:696 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..7ba1c0b9 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:53:23:984:175 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-18 14:53:24:19:358 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:53:27:27:435 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-18 14:53:27:67:88 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-18 14:53:27:108:573 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 14:53:27:148:473 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-18 14:53:30:18:180 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 14:53:30:51:611 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-18 14:54:0:24:863 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 14:54:0:64:728 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..c29e97a8 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:47:53:112:989 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:47:53:150:541 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:47:56:118:294 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 14:47:56:158:215 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 14:47:56:198:334 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-18 14:47:59:113:306 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 14:48:2:198:833 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 14:48:5:113:211 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 14:48:35:120:89 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 14:48:35:160:29 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..ecd63f83 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:48:43:395:933 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:48:43:429:935 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:48:46:401:616 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 14:48:46:441:474 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 14:48:46:481:307 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 14:48:46:520:662 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-18 14:48:49:396:508 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 14:48:49:430:286 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 14:49:19:403:316 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 14:49:19:443:482 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_mda_step_rat.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..0dd9262a --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:55:39:902:589 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:55:39:936:737 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:55:42:908:401 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 14:55:42:948:303 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 14:55:42:988:784 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 14:55:45:909:449 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-18 14:55:45:950:558 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-18 14:55:45:991:68 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-18 14:55:48:903:415 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 14:55:48:937:506 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 14:55:51:909:398 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 14:55:54:910:182 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-18 14:56:24:949:534 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 14:56:24:988:937 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..5d80be7e --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN' + Q1 finished at: 2022-4-18 14:56:33:228:606 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-18 14:56:33:269:487 +Q3-T1 execute opt: 'BEGIN' +Q3 finished at: 2022-4-18 14:56:36:222:301 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-18 14:56:36:256:594 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 14:56:39:229:34 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-18 14:56:39:270:424 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-18 14:56:39:311:222 + Q8-T2 execute opt: 'BEGIN' + Q8 finished at: 2022-4-18 14:56:42:228:93 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-18 14:56:42:267:958 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-18 14:56:45:229:648 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-18 14:56:48:222:780 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 14:56:51:228:973 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-18 14:56:54:229:651 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 14:57:24:228:965 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-18 14:57:24:270:535 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-18 14:57:24:311:285 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..2ec15f59 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:57:32:576:60 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:57:32:609:998 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:57:35:581:748 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-18 14:57:35:621:711 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-18 14:57:35:661:482 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 14:57:38:586:149 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-18 14:57:38:627:911 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-18 14:57:38:669:317 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-18 14:57:41:576:867 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 14:57:41:611:120 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 14:57:44:582:405 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 14:57:47:583:981 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-18 14:58:17:583:297 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 14:58:17:622:798 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..38b0b3a9 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:58:25:754:376 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-18 14:58:25:789:385 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:58:28:793:634 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-18 14:58:28:833:968 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-18 14:58:28:873:882 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 14:58:31:794:285 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-18 14:58:31:837:190 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-18 14:58:31:877:930 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-18 14:58:34:791:90 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 14:58:34:825:174 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 14:58:37:794:63 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 14:58:40:795:95 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-18 14:59:10:794:948 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 14:59:10:836:247 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_sda_dirty_read.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..c9f759b5 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:42:25:329:647 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:42:25:367:350 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:42:28:338:202 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-18 14:42:28:417:951 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-18 14:42:31:329:662 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 14:42:34:336:85 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-18 14:43:4:376:745 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 14:43:4:417:82 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..be50eb4e --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:44:2:863:843 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:44:2:897:684 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:44:5:867:300 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-18 14:44:5:907:946 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-18 14:44:8:861:613 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 14:44:11:867:57 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 14:44:14:861:592 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-18 14:44:44:868:705 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 14:44:44:908:925 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..f3b6f135 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:44:53:107:861 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:44:53:143:759 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:44:56:113:591 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-18 14:44:56:153:556 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 14:44:56:193:747 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-18 14:44:59:108:653 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 14:44:59:143:188 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-18 14:45:29:115:663 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 14:45:29:155:622 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..36bb4c28 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:47:5:817:242 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:47:5:851:212 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:47:8:822:866 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-18 14:47:11:817:829 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-18 14:47:11:851:535 + Q4 finished at: 2022-4-18 14:47:11:855:51 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 14:47:14:823:696 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-18 14:47:44:824:494 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 14:47:44:864:411 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..7954b328 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:43:12:614:644 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 14:43:12:649:188 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:43:15:620:548 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-18 14:43:15:660:442 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-18 14:43:18:615:494 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 14:43:21:621:17 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 14:43:24:614:884 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-18 14:43:54:622:39 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 14:43:54:662:17 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..4778fa8c --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:45:37:351:867 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-18 14:45:37:386:232 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:45:40:357:133 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-18 14:45:40:398:697 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 14:45:40:438:395 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-18 14:45:43:352:239 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 14:45:43:385:955 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-18 14:46:13:358:942 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 14:46:13:400:860 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..291e0b0a --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:46:21:534:85 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-18 14:46:21:569:383 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:46:24:572:930 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-18 14:46:24:612:705 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 14:46:24:652:598 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-18 14:46:27:567:736 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 14:46:27:601:108 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-18 14:46:57:574:641 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 14:46:57:614:620 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..21e0db23 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:4:46:937:125 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:4:46:971:154 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:4:49:942:963 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 15:4:49:982:987 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-18 15:4:52:937:933 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:4:52:971:706 + Q5 finished at: 2022-4-18 15:4:52:974:952 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:4:53:15:127 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:5:22:944:649 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:5:22:984:956 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..504f2e5f --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:5:31:217:63 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:5:31:251:36 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:5:34:222:866 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:5:34:262:976 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-18 15:5:37:221:315 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-e5-3c-625d0dbb-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-18 15:5:37:818:624 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-e5-3c-625d0dbb-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..6c7115d9 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,33 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:6:18:642:90 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:6:18:676:380 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:6:21:608:637 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:6:21:648:709 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-18 15:6:24:646:644 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-e5-41-625d0dea-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-18 15:6:25:243:498 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-e5-41-625d0dea-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..6d15cfc9 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:7:9:85:633 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:7:9:119:770 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:7:12:52:469 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:7:12:97:971 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-18 15:7:15:97:784 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:7:15:137:896 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-e5-46-625d0e1d-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-18 15:7:15:787:384 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-e5-46-625d0e1d-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..1f3877b8 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 20:49:1:958:380 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 20:49:1:993:904 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 20:49:2:959:777 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-23 20:49:2:998:453 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-23 20:49:3:35:173 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-23 20:49:4:960:156 +Q6 finished at: 2022-4-23 20:49:4:961:669 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 20:49:4:997:38 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-23 20:49:24:960:158 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 20:49:24:995:709 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..c393a0e0 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 20:49:29:236:396 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 20:49:29:271:838 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 20:49:30:237:696 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-23 20:49:30:276:528 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-23 20:49:30:312:997 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 20:49:32:238:222 +Q6 finished at: 2022-4-23 20:49:32:240:7 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 20:49:33:236:881 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-23 20:49:53:238:214 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 20:49:53:273:863 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..07a39ebd --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:9:31:92:426 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:9:31:126:574 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:9:34:99:509 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:9:34:147:241 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-18 15:9:37:93:211 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:9:37:127:396 + Q5 finished at: 2022-4-18 15:9:37:130:598 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:9:40:107:237 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:10:10:99:723 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:10:10:139:759 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..df3fe717 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:10:18:372:289 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:10:18:406:219 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:10:21:378:67 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:10:21:418:529 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-18 15:10:24:373:147 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:10:30:373:213 + Q5 finished at: 2022-4-18 15:10:30:376:121 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:10:30:416:710 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:11:0:379:838 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:11:0:420:795 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..cda73ace --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:11:8:652:296 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:11:8:686:98 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:11:11:658:268 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:11:11:697:925 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-18 15:11:14:653:77 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:11:14:687:197 + Q5 finished at: 2022-4-18 15:11:14:690:262 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:11:14:730:80 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:11:44:659:975 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:11:44:700:882 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..0c14f0d9 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:11:52:967:902 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:11:53:1:985 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:11:55:973:459 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:11:56:13:682 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 15:11:58:975:376 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 15:11:59:16:365 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-18 15:12:1:971:972 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-e5-54-625d0f38-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-18 15:12:2:869:558 + Q8 finished at: 2022-4-18 15:12:2:945:925 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-e5-54-625d0f38-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..4037cdf0 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:12:46:428:155 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:12:46:462:168 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:12:49:394:761 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:12:49:434:818 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 15:12:52:394:768 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 15:12:58:439:739 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-18 15:13:1:432:535 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-e5-5a-625d0f6e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-18 15:13:2:329:704 + Q8 finished at: 2022-4-18 15:13:4:467:579 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-e5-5a-625d0f6e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..d318473f --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 14:59:19:61:270 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 14:59:19:97:151 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 14:59:22:68:408 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-18 14:59:25:61:799 + Q4 finished at: 2022-4-18 14:59:25:67:826 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 14:59:28:68:198 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-18 14:59:58:68:828 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-18 14:59:58:124:918 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 14:59:58:165:148 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..32a0f8df --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:0:6:364:302 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:0:6:398:669 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:0:9:370:295 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-18 15:0:12:365:135 + Q4 finished at: 2022-4-18 15:0:12:368:336 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:0:15:370:896 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-18 15:0:45:371:971 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-18 15:0:45:427:511 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:0:45:467:517 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_sda_full_write.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..6468e30c --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:0:53:666:194 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:0:53:700:244 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:0:56:672:40 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-18 15:0:59:666:436 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-18 15:0:59:701:165 + Q4 finished at: 2022-4-18 15:0:59:703:444 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:1:2:673:74 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-18 15:1:32:673:475 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:1:32:713:698 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..8425c099 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:1:40:914:644 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:1:40:948:992 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:1:43:920:777 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-18 15:1:46:915:179 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:1:46:949:309 + Q4 finished at: 2022-4-18 15:1:46:952:502 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:1:46:992:292 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-18 15:2:16:923:975 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:2:16:964:942 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..b2ca35a6 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:4:2:656:456 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:4:2:690:321 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:4:5:662:272 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-18 15:4:8:657:49 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:4:8:691:41 + Q4 finished at: 2022-4-18 15:4:8:694:118 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:4:8:733:763 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-18 15:4:38:664:425 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:4:38:704:874 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..b560cfc8 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 20:49:57:479:233 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-23 20:49:57:514:659 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 20:49:58:481:719 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-23 20:49:58:520:918 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 20:50:0:481:456 +Q5 finished at: 2022-4-23 20:50:0:483:211 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-23 20:50:0:518:609 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-23 20:50:20:481:34 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 20:50:20:519:63 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..9319700f --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 20:50:24:726:989 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-23 20:50:24:763:466 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 20:50:25:728:286 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-23 20:50:25:765:27 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 20:50:27:729:32 +Q5 finished at: 2022-4-23 20:50:27:730:794 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 20:50:28:727:661 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-23 20:50:48:728:730 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 20:50:48:764:315 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..cb713a4a --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:41:42:503:147 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:41:42:535:828 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:41:43:503:318 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 15:41:43:536:624 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:41:43:569:303 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:41:43:602:157 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-18 15:41:44:504:230 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:41:44:536:575 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:41:54:507:703 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:41:54:543:599 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..1d57c3f9 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:41:58:770:750 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:41:58:804:38 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:41:59:772:232 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:41:59:805:544 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:41:59:838:390 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:41:59:871:278 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-18 15:42:0:771:234 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:42:0:803:707 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:42:10:775:592 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:42:10:811:632 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_dda_write_skew.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..54a43dfe --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:42:15:43:528 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:42:15:111:407 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:42:16:43:648 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:42:16:76:829 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:42:16:109:549 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-18 15:42:17:43:902 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:42:17:81:34 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:42:18:44:114 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:42:28:47:615 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:42:28:83:552 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..c2e4b535 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:43:5:186:275 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:43:5:219:0 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:43:6:191:698 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:43:6:225:772 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:43:6:258:480 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:43:6:291:496 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-18 15:43:7:187:103 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:43:7:219:603 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:43:17:190:681 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:43:17:226:425 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..e05579c4 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL PRIMARY KEY);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 20:52:34:444:395 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-23 20:52:34:486:718 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-23 20:52:34:525:613 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-23 20:52:35:443:334 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-23 20:52:35:517:933 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-23 20:52:35:555:85 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 20:52:35:592:364 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 20:52:36:444:982 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-23 20:52:56:479:560 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-23 20:52:56:516:90 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 20:52:56:551:794 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..c1db5233 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:42:48:918:38 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-18 15:42:48:950:638 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:42:49:886:179 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-18 15:42:49:919:732 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-18 15:42:49:952:957 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:42:49:985:978 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-18 15:42:50:939:456 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:42:50:972:251 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-18 15:43:0:922:528 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:43:0:958:471 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_mda_step_iat.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..76a39fc2 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:43:21:486:548 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-18 15:43:21:519:365 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:43:22:487:448 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-18 15:43:22:520:776 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 15:43:23:490:601 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-18 15:43:23:527:110 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-18 15:43:24:487:98 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-18 15:43:25:487:368 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-18 15:43:26:490:929 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 15:43:27:486:918 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 15:43:28:488:84 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:43:29:490:910 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-18 15:43:39:498:612 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:43:39:537:664 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..6b86a05f --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:45:4:907:138 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:45:4:940:67 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:45:5:907:603 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-18 15:45:5:940:761 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:45:5:974:3 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 15:45:6:911:187 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-18 15:45:6:947:667 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-18 15:45:6:983:867 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:45:7:20:321 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-18 15:45:7:908:111 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-18 15:45:7:940:996 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-18 15:45:17:914:699 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-18 15:45:17:953:720 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..9b5df999 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:44:45:592:531 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:44:45:627:679 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:44:46:591:988 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:44:46:625:291 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 15:44:47:595:884 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-18 15:44:47:632:397 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:44:47:668:703 + Q8-T4 execute opt: 'BEGIN' + Q8 finished at: 2022-4-18 15:44:48:599:57 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-18 15:44:48:639:8 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:44:48:678:444 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-18 15:44:49:592:998 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:44:49:626:54 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-18 15:44:50:592:840 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-18 15:44:50:625:103 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-18 15:45:0:640:113 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-18 15:45:0:680:241 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..bc238946 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:43:43:796:182 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-18 15:43:43:829:24 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:43:44:796:121 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-18 15:43:44:829:649 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 15:43:45:799:665 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-18 15:43:45:835:966 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-18 15:43:46:796:876 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-18 15:43:47:796:910 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-18 15:43:48:800:63 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 15:43:49:796:670 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 15:43:50:796:783 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:43:51:800:145 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-18 15:44:1:808:289 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:44:1:848:132 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..e52d527d --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:44:5:976:315 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-18 15:44:6:9:821 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:44:7:8:306 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-18 15:44:7:41:457 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 15:44:8:11:878 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-18 15:44:8:48:312 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-18 15:44:9:9:542 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-18 15:44:10:9:19 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-18 15:44:11:12:264 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 15:44:12:8:958 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 15:44:13:9:279 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:44:14:12:579 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-18 15:44:24:16:442 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:44:24:55:566 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..b61161b0 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:45:22:181:589 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-18 15:45:22:214:460 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-18 15:45:22:247:289 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-18 15:45:23:183:201 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-18 15:45:23:216:217 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-18 15:45:23:248:810 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:45:23:282:61 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-18 15:45:24:184:513 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-18 15:45:24:221:764 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-18 15:45:24:257:976 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 15:45:24:294:324 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-18 15:45:25:181:400 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-18 15:45:25:214:195 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-18 15:45:35:185:328 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-18 15:45:35:222:134 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..2e1ff714 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:44:28:317:196 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-18 15:44:28:349:845 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:44:29:324:585 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-18 15:44:29:357:807 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:44:29:391:618 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-18 15:44:29:424:717 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-18 15:44:29:457:395 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:44:29:490:445 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-18 15:44:30:320:712 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-18 15:44:30:359:933 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-18 15:44:30:396:251 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-18 15:44:30:432:490 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-18 15:44:30:468:801 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:44:30:505:164 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-18 15:44:31:324:325 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-18 15:44:31:356:468 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-18 15:44:41:324:744 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-18 15:44:41:363:970 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..7536ff22 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:41:26:235:443 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-18 15:41:26:268:102 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:41:27:235:580 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-18 15:41:27:268:920 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:41:27:301:787 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-18 15:41:28:238:656 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:41:28:271:415 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-18 15:41:38:239:976 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:41:38:275:804 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..99abff34 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:41:9:951:482 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:41:9:984:828 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:41:10:918:709 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-18 15:41:10:951:859 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:41:10:984:546 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-18 15:41:11:951:166 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:41:11:984:962 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-18 15:41:21:957:389 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:41:21:993:134 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:41:22:29:3 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..581ab111 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 20:53:0:809:710 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 20:53:0:848:420 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 20:53:1:808:760 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 20:53:1:846:502 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-23 20:53:1:883:914 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-23 20:53:3:806:834 + Q7 finished at: 2022-4-23 20:53:3:809:936 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 20:53:4:810:446 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-23 20:53:24:808:607 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 20:53:24:844:204 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..fc2f295b --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:32:35:191:9 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:32:35:223:638 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:32:36:191:121 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 15:32:36:224:531 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 15:32:36:257:343 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:32:36:295:408 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-18 15:32:37:191:680 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:32:37:224:165 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-18 15:32:47:195:409 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:32:47:230:986 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..1a3f6b7a --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:32:51:473:702 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:32:51:506:272 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:32:52:473:942 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 15:32:52:506:897 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-18 15:32:53:474:222 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:32:53:507:505 + Q5 finished at: 2022-4-18 15:32:53:508:502 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:32:54:474:556 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:33:4:478:280 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:33:4:513:910 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_read_skew.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..bb5a9809 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:33:8:741:873 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:33:8:774:486 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:33:9:741:921 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 15:33:9:776:97 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:33:9:809:74 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-18 15:33:10:744:265 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:33:11:746:307 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:33:12:742:249 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:33:22:746:921 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:33:22:782:661 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_read_skew2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..08d121ec --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:33:59:480:793 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:33:59:513:333 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:34:0:481:11 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:34:0:514:150 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 15:34:0:547:112 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-18 15:34:1:482:216 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:34:1:514:826 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:34:2:481:437 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:34:12:485:571 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:34:12:521:162 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..39bdc507 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:34:16:747:495 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:34:16:780:197 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:34:17:748:60 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:34:17:781:467 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 15:34:17:814:403 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:34:17:846:716 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-18 15:34:18:748:307 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:34:18:781:214 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:34:28:752:86 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:34:28:787:811 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..ac9c646c --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:33:27:8:914 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-18 15:33:27:41:470 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:33:28:9:312 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-18 15:33:28:42:267 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:33:28:74:770 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:33:28:107:682 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-18 15:33:29:9:580 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:33:29:41:382 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-18 15:33:39:13:226 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:33:39:50:151 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..5ebb0989 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:33:43:178:584 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-18 15:33:43:212:230 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:33:44:210:667 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-18 15:33:44:243:769 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-18 15:33:44:276:563 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:33:44:309:432 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-18 15:33:45:211:461 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:33:45:243:579 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-18 15:33:55:214:990 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:33:55:250:523 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..5a6df7ba --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:31:42:388:115 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:31:42:420:691 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:31:43:388:319 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 15:31:43:421:737 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 15:31:43:454:577 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-18 15:31:44:388:698 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:31:45:388:964 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:31:46:388:563 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:31:56:392:337 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:31:56:427:895 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..1189597e --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:32:0:654:190 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:32:0:687:468 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:32:1:654:418 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 15:32:1:687:508 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 15:32:1:721:417 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:32:1:754:248 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-18 15:32:2:654:804 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:32:2:687:185 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:32:12:658:649 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:32:12:694:91 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_mda_step_rat.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..9e2464a5 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:34:33:56:258 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:34:33:88:925 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:34:34:56:596 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-18 15:34:34:89:610 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-18 15:34:34:122:604 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 15:34:35:60:178 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-18 15:34:35:96:693 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-18 15:34:35:133:314 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-18 15:34:36:57:369 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 15:34:36:91:288 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 15:34:37:57:438 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:34:38:60:607 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-18 15:34:48:102:969 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:34:48:142:43 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..25542689 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN' + Q1 finished at: 2022-4-18 15:34:52:378:962 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-18 15:34:52:419:417 +Q3-T1 execute opt: 'BEGIN' +Q3 finished at: 2022-4-18 15:34:53:371:775 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-18 15:34:53:404:324 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 15:34:54:375:267 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-18 15:34:54:411:762 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-18 15:34:54:448:38 + Q8-T2 execute opt: 'BEGIN' + Q8 finished at: 2022-4-18 15:34:55:372:244 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-18 15:34:55:405:70 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-18 15:34:56:379:815 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-18 15:34:57:378:664 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:34:58:372:688 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-18 15:34:59:375:722 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:35:9:379:67 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-18 15:35:9:418:904 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-18 15:35:9:457:994 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..31b814bc --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:35:13:720:180 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:35:13:752:744 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:35:14:720:892 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-18 15:35:14:753:984 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-18 15:35:14:786:754 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 15:35:15:724:61 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-18 15:35:15:760:291 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-18 15:35:15:796:609 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-18 15:35:16:721:4 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 15:35:16:753:533 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 15:35:17:721:481 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:35:18:724:500 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-18 15:35:28:728:40 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:35:28:766:952 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..25d8f7f2 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:35:32:898:5 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-18 15:35:32:931:710 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:35:33:930:119 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-18 15:35:33:963:273 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-18 15:35:33:996:350 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 15:35:34:933:794 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-18 15:35:34:970:138 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-18 15:35:35:6:603 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-18 15:35:35:931:9 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-18 15:35:35:963:589 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-18 15:35:36:931:15 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-18 15:35:37:934:240 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-18 15:35:47:937:760 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-18 15:35:47:976:647 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_sda_dirty_read.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..08bf1251 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:29:42:702:59 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:29:42:734:684 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:29:43:701:861 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-18 15:29:43:767:438 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-18 15:29:44:702:25 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:29:45:702:159 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-18 15:29:55:741:497 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:29:55:776:948 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..b68cf440 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:30:18:208:850 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:30:18:241:309 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:30:19:208:486 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-18 15:30:19:241:706 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-18 15:30:20:208:784 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:30:21:209:261 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:30:22:209:569 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-18 15:30:32:212:765 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:30:32:248:232 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..16eb2a2c --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:30:36:442:245 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:30:36:474:912 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:30:37:442:684 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-18 15:30:37:477:613 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:30:37:511:550 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-18 15:30:38:442:847 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:30:38:475:369 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-18 15:30:48:447:578 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:30:48:483:388 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..6eff50b3 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:31:25:117:112 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:31:25:150:728 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:31:26:116:285 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-18 15:31:27:116:906 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-18 15:31:27:149:268 + Q4 finished at: 2022-4-18 15:31:27:149:697 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:31:28:117:140 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-18 15:31:38:120:538 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:31:38:156:212 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..ae7a3812 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:29:59:971:224 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:30:0:6:742 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:30:0:971:15 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-18 15:30:1:4:112 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-18 15:30:1:973:150 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:30:2:971:826 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:30:3:971:345 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-18 15:30:13:975:541 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:30:14:11:11 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..fedb6911 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:30:52:677:914 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-18 15:30:52:710:553 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:30:53:678:111 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-18 15:30:53:711:28 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:30:53:743:666 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-18 15:30:54:678:654 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:30:54:711:95 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-18 15:31:4:683:585 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:31:4:720:69 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..b0c575ac --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:31:8:848:995 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-18 15:31:8:882:541 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:31:9:881:189 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-18 15:31:9:914:245 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:31:9:946:941 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-18 15:31:10:881:345 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:31:10:913:334 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-18 15:31:20:885:412 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:31:20:922:726 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..5dc2dacc --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 20:53:29:104:260 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 20:53:29:143:888 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 20:53:30:104:611 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 20:53:30:143:522 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-23 20:53:31:105:410 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 20:53:31:150:626 + Q5 finished at: 2022-4-23 20:53:31:153:680 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 20:53:31:191:237 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-23 20:53:51:102:653 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 20:53:51:138:347 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..e88fd420 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:38:8:255:63 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:38:8:288:881 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:38:9:255:199 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:38:9:288:502 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-18 15:38:10:257:327 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-74-58-625d1560-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-18 15:38:10:857:476 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-74-58-625d1560-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..22c51306 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,33 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:38:25:748:398 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:38:25:781:326 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:38:26:708:801 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:38:26:742:493 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-18 15:38:27:741:867 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-74-5d-625d1571-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-18 15:38:28:343:51 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-74-5d-625d1571-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..cd0327ce --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:38:44:162:396 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:38:44:195:16 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:38:45:130:142 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:38:45:163:396 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-18 15:38:46:163:499 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:38:46:196:538 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-74-62-625d1584-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-18 15:38:46:863:642 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-74-62-625d1584-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..3a051dcb --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:39:0:620:344 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:39:0:652:938 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:39:1:586:472 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:39:1:619:813 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:39:1:652:398 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:39:3:619:382 +Q6 finished at: 2022-4-18 15:39:3:620:240 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:39:3:656:252 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:39:13:622:773 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:39:13:658:609 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..e3e3f2fd --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:39:17:921:422 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-18 15:39:17:954:141 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:39:18:886:588 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:39:18:919:740 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-18 15:39:18:954:40 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:39:20:887:874 +Q6 finished at: 2022-4-18 15:39:20:888:700 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:39:21:887:491 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:39:31:892:38 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:39:31:927:859 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..9679f888 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:39:36:208:856 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:39:36:242:900 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:39:37:207:699 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:39:37:241:320 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-18 15:39:38:207:896 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:39:38:241:263 + Q5 finished at: 2022-4-18 15:39:38:241:778 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-18 15:39:39:208:259 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:39:49:211:745 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:39:49:248:375 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..11261695 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:39:53:476:591 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:39:53:515:580 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:39:54:476:762 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-18 15:39:54:510:3 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-18 15:39:55:482:961 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-18 15:39:57:477:603 + Q5 finished at: 2022-4-18 15:39:57:478:602 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:39:57:511:478 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-18 15:40:7:485:163 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-18 15:40:7:521:147 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..a954df96 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 20:53:55:401:230 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 20:53:55:440:239 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 20:53:56:400:152 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-23 20:53:56:440:602 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-23 20:53:57:403:955 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 20:53:57:442:480 + Q5 finished at: 2022-4-23 20:53:57:445:438 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 20:53:57:482:833 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-23 20:54:17:400:9 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 20:54:17:435:982 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..8505987b --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:40:28:66:634 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:40:28:99:327 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:40:29:67:485 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:40:29:100:504 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 15:40:30:70:65 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 15:40:30:107:10 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-18 15:40:31:68:216 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-74-70-625d15ec-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-18 15:40:31:968:349 + Q8 finished at: 2022-4-18 15:40:32:37:223 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-74-70-625d15ec-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..eab33a57 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:40:47:562:721 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:40:47:595:263 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:40:48:530:736 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 15:40:48:563:863 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 15:40:49:530:738 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 15:40:51:567:663 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-18 15:40:52:564:273 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-74-76-625d15ff-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-18 15:40:53:464:405 + Q8 finished at: 2022-4-18 15:40:53:598:596 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='2-74-76-625d15ff-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..c326781e --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:35:52:175:2 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:35:52:207:421 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:35:53:175:224 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-18 15:35:54:175:611 + Q4 finished at: 2022-4-18 15:35:54:175:906 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:35:55:176:673 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-18 15:36:5:179:750 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-18 15:36:5:232:914 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:36:5:268:602 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..03555579 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:36:9:468:469 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:36:9:502:399 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:36:10:469:357 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-18 15:36:11:468:187 + Q4 finished at: 2022-4-18 15:36:11:468:502 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:36:12:468:540 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-18 15:36:22:471:834 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-18 15:36:22:524:49 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:36:22:559:527 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_sda_full_write.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..ea4f4df2 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:36:26:762:755 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:36:26:795:330 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:36:27:762:958 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-18 15:36:28:763:312 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-18 15:36:28:796:284 + Q4 finished at: 2022-4-18 15:36:28:796:633 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-18 15:36:29:763:657 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-18 15:36:39:767:743 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:36:39:804:45 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..6798de5e --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:36:43:998:163 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:36:44:33:978 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:36:44:998:769 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-18 15:36:45:998:973 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:36:46:31:449 + Q4 finished at: 2022-4-18 15:36:46:31:804 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:36:46:64:624 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-18 15:36:56:2:589 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:36:56:38:224 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..640bfdf4 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:37:35:714:993 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 15:37:35:747:473 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:37:36:731:225 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-18 15:37:37:716:82 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:37:37:749:566 + Q4 finished at: 2022-4-18 15:37:37:751:461 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-18 15:37:37:785:912 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-18 15:37:47:719:563 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:37:47:755:527 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..8515e2a6 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 20:54:21:659:361 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-23 20:54:21:698:431 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 20:54:22:658:243 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-23 20:54:22:697:789 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-23 20:54:24:656:112 +Q6-T1 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 20:54:24:658:821 +Q6 finished at: 2022-4-23 20:54:24:694:817 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-23 20:54:44:657:889 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 20:54:44:693:623 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..2b455816 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 15:37:17:472:38 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-18 15:37:17:504:623 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 15:37:18:472:337 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-18 15:37:18:505:413 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-18 15:37:20:472:946 +Q5 finished at: 2022-4-18 15:37:20:473:652 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-18 15:37:21:474:879 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-18 15:37:31:484:98 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-18 15:37:31:520:53 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/result_summary/read-committed_total-result.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..38745346 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/result_summary/repeatable-read_total-result.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..ef182286 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/result_summary/serializable_total-result.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..b5b686cf --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/result_summary/serializable_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Rollback + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Rollback + +rat_dda_read_skew2_committed: Rollback + +rat_mda_step_rat: Rollback + +rat_mda_step_rat_long_fork: Rollback + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Rollback + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Rollback + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +iat_mda_step_iat_predicate_based_delete: Rollback + +iat_mda_step_iat_predicate_based_insert: Rollback + +iat_mda_step_iat_uname_anomaly: Rollback + +iat_mda_step_iat_cross_phenomenon: Rollback + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Rollback + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..ed9314ee --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:23:55:649:6 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 21:23:55:683:111 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:23:56:615:509 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 21:23:56:655:683 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:23:57:654:414 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:23:57:693:262 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-99-6263fdeb-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-23 21:23:58:350:6 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-99-6263fdeb-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..8a79473b --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:24:22:74:447 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 21:24:22:109:490 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:24:23:29:810 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-23 21:24:23:69:169 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:24:24:68:968 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:24:24:107:661 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-a0-6263fe06-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-23 21:24:24:775:449 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-a0-6263fe06-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_dda_write_skew.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..b9dcf586 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_dda_write_skew.txt @@ -0,0 +1,47 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:24:48:488:80 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 21:24:48:522:156 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:24:49:454:536 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-23 21:24:49:493:665 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:24:50:493:547 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-a7-6263fe20-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-23 21:24:51:89:337 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-a7-6263fe20-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..09aae02d --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,49 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:26:8:699:307 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 21:26:8:734:564 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:26:9:665:879 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-23 21:26:9:705:680 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:26:10:704:891 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:26:10:743:456 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-b9-6263fe70-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-23 21:26:11:400:883 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-b9-6263fe70-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..0d192f0b --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL PRIMARY KEY);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:25:15:968:256 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-23 21:25:16:2:367 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-23 21:25:16:36:275 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-23 21:25:16:934:793 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 21:25:17:968:681 + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-23 21:25:17:973:644 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-23 21:25:18:12:292 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 21:25:18:51:74 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-23 21:25:37:970:562 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-23 21:25:38:6:22 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 21:25:38:40:887 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..5c38d3c6 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,49 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:25:42:272:969 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-23 21:25:42:307:782 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:25:43:277:568 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-23 21:25:43:317:621 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q5 finished at: 2022-4-23 21:25:44:278:959 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:25:44:317:748 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-b2-6263fe56-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-23 21:25:44:974:595 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-b2-6263fe56-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_mda_step_iat.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..a203da36 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_mda_step_iat.txt @@ -0,0 +1,86 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:21:28:7:132 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-24 12:21:28:44:30 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:21:28:970:0 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 12:21:29:7:199 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-24 12:21:29:970:13 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 12:21:30:4:790 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 finished at: 2022-4-24 12:21:33:8:364 + Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-157-6264d049-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q9 failed at: 2022-4-24 12:21:33:904:522 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]set_1650716943_1:Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-24 12:21:52:709:607 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-157-6264d049-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..2c1658b8 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:29:9:223:885 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 21:29:9:258:237 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:29:10:190:386 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-23 21:29:11:190:408 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-23 21:29:12:224:901 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-23 21:29:12:258:791 + Q4 finished at: 2022-4-23 21:29:12:263:517 + Q5-T2 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-23 21:29:12:298:983 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:29:12:302:324 + Q8 finished at: 2022-4-23 21:29:12:334:487 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:29:12:369:975 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-23 21:29:32:223:152 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-23 21:29:32:255:149 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..83f30d91 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,171 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:20:21:906:223 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 12:20:21:943:337 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:20:22:905:735 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 12:20:22:979:246 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-24 12:20:23:902:219 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T4 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 12:20:24:906:45 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-24 12:20:26:908:95 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 12:20:26:945:454 + Q9 finished at: 2022-4-24 12:20:26:945:830 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 12:20:26:982:432 + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-24 12:20:26:982:731 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-24 12:20:27:19:39 + Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-14c-6264d007-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q6 failed at: 2022-4-24 12:20:27:504:275 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-14c-6264d007-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..843fc799 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,86 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:20:41:367:839 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-24 12:20:41:404:536 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-24 12:20:42:331:569 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 12:20:42:368:578 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-24 12:20:43:331:621 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 12:20:43:367:50 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q8 finished at: 2022-4-24 12:20:46:369:581 + Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-14f-6264d01b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q9 failed at: 2022-4-24 12:20:47:265:789 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]set_1650716943_1:Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-24 12:21:6:71:47 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-14f-6264d01b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..e878d4a8 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,81 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:27:39:902:9 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-23 21:27:39:937:101 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:27:40:901:992 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-23 21:27:40:941:185 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-23 21:27:41:901:984 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-23 21:27:41:938:715 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-d3-6263fecc-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q8 failed at: 2022-4-23 21:27:44:741:390 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]set_1650716943_1:Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-23 21:28:4:638:982 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-d3-6263fecc-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..dd59de9c --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,120 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-24 12:21:10:533:651 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 12:21:10:570:426 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-24 12:21:10:607:10 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-24 12:21:11:497:374 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-24 12:21:11:535:777 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-24 12:21:12:497:400 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-24 12:21:12:533:554 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q6 finished at: 2022-4-24 12:21:13:536:18 + Q7-T2 execute opt: 'COMMIT'; + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-24 12:21:13:569:7 + Q11-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 12:21:13:572:975 + Q11 finished at: 2022-4-24 12:21:13:602:2 +Q12 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-168-6264d036-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q12 failed at: 2022-4-24 12:21:14:735:866 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-168-6264d036-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..58ad193c --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,127 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:28:12:381:50 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-23 21:28:12:415:314 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:28:13:347:668 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-23 21:28:13:388:208 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-23 21:28:13:432:630 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-23 21:28:13:471:305 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-23 21:28:14:347:665 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-23 21:28:14:383:666 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-23 21:28:14:431:981 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-23 21:28:15:386:970 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-23 21:28:15:425:795 + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-23 21:28:15:431:774 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-23 21:28:15:467:372 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-23 21:28:15:503:176 +Q15 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-de-6263feec-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q15 failed at: 2022-4-23 21:28:16:882:722 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-de-6263feec-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..0046ee13 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:23:29:218:876 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-23 21:23:29:252:817 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:23:30:223:370 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-23 21:23:31:219:728 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 21:23:31:253:629 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-93-6263fdd2-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q4 failed at: 2022-4-23 21:23:31:624:832 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-93-6263fdd2-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..1112ca71 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:23:2:902:855 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 21:23:2:937:12 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:23:3:906:866 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-23 21:23:4:902:782 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 21:23:4:936:336 + Q4 finished at: 2022-4-23 21:23:4:941:187 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-23 21:23:4:979:961 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-23 21:23:24:939:639 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:23:24:974:486 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 21:23:25:9:325 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..e37c27be --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:5:6:259:733 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:5:6:295:417 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:5:7:224:975 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 21:5:7:263:576 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-23 21:5:8:264:771 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-19-6263f982-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-23 21:5:8:865:144 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-19-6263f982-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..bc978167 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:5:34:679:937 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:5:34:715:292 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:5:35:645:237 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 21:5:35:683:945 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-23 21:5:36:684:831 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:5:36:723:688 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-1e-6263f99e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-23 21:5:37:381:533 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-1e-6263f99e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..d43aa058 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,33 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:6:1:133:757 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:6:1:169:57 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:6:2:99:229 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 21:6:2:138:153 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:6:3:138:754 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-22-6263f9b9-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-23 21:6:3:735:442 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-22-6263f9b9-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_read_skew.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..5167cd5b --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_read_skew.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:6:28:555:531 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 21:6:28:590:720 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:6:29:520:909 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 21:6:29:559:765 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:6:30:560:114 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-27-6263f9d4-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-23 21:6:31:156:890 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-27-6263f9d4-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_read_skew2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..84bbe279 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:7:49:453:427 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:7:49:488:734 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:7:50:457:634 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-23 21:7:50:497:539 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-23 21:7:51:454:397 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 21:7:51:489:711 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-26-6263fa26-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-23 21:7:51:958:437 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-26-6263fa26-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..dc982e69 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:8:16:882:872 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:8:16:918:172 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:8:17:844:956 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-23 21:8:17:884:959 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-23 21:8:18:880:613 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 21:8:18:915:947 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-29-6263fa41-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-23 21:8:19:384:775 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-29-6263fa41-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..7f73f850 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:6:56:975:211 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-23 21:6:57:10:525 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:6:57:940:661 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-23 21:6:58:975:772 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 21:6:59:10:604 + Q4 finished at: 2022-4-23 21:6:59:14:431 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-23 21:6:59:52:831 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:6:59:91:149 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-23 21:7:18:976:531 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 21:7:19:11:604 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..1b441532 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:7:23:144:21 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-23 21:7:23:180:333 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:7:24:181:749 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-23 21:7:25:179:176 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 21:7:25:214:53 + Q4 finished at: 2022-4-23 21:7:25:217:843 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-23 21:7:25:256:255 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:7:25:294:613 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-23 21:7:45:179:818 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 21:7:45:215:193 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..a0a7067e --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:4:11:407:474 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:4:11:442:588 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:4:12:410:694 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 21:4:12:454:807 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-23 21:4:13:412:705 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-10-6263f94b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-23 21:4:14:9:332 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-10-6263f94b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..71ba70ab --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:4:39:829:953 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:4:39:865:329 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:4:40:794:867 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 21:4:40:833:998 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-23 21:4:41:836:960 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:4:41:875:264 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-15-6263f967-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-23 21:4:42:533:750 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-15-6263f967-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_mda_step_rat.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..f6be0c64 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_mda_step_rat.txt @@ -0,0 +1,70 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:8:43:338:753 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:8:43:374:5 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:8:44:304:142 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 21:8:44:343:826 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-23 21:8:45:339:232 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-23 21:8:45:375:296 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-23 21:8:46:343:983 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-38-6263fa5b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-23 21:8:47:240:544 + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-23 21:8:47:312:162 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-38-6263fa5b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..c0a2eaa0 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,166 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN' + Q1 finished at: 2022-4-23 21:9:12:760:640 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-23 21:9:12:835:441 +Q3-T1 execute opt: 'BEGIN' +Q3 finished at: 2022-4-23 21:9:13:759:71 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-23 21:9:14:724:513 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-23 21:9:14:761:179 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute opt: 'BEGIN' + Q8 finished at: 2022-4-23 21:9:15:724:545 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-23 21:9:16:766:460 +Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-42-6263fa79-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q4 failed at: 2022-4-23 21:9:17:164:652 + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-23 21:9:36:765:137 + Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]set_1650716943_1:Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q9 failed at: 2022-4-23 21:9:37:669:929 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-42-6263fa79-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..078e00c4 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,70 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:9:44:216:510 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:9:44:251:834 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:9:45:181:951 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-23 21:9:45:220:819 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-23 21:9:46:181:947 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-23 21:9:46:221:343 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-23 21:9:47:221:528 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-4c-6263fa98-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-23 21:9:48:118:301 + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-23 21:9:48:189:819 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-4c-6263fa98-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..1e0f80fd --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,67 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:10:13:531:113 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-23 21:10:13:567:618 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:10:14:531:106 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-23 21:10:14:569:933 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-23 21:10:15:531:102 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-23 21:10:15:567:279 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-23 21:10:16:570:892 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-56-6263fab5-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-23 21:10:17:467:517 + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-23 21:10:17:539:32 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-56-6263fab5-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_sda_dirty_read.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..51ed9b31 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:1:1:674:100 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:1:1:713:609 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:1:2:677:288 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-23 21:1:3:674:682 + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-23 21:1:3:678:335 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:1:4:677:466 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-23 21:1:24:710:918 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-23 21:1:24:745:980 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..0424a315 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:1:57:194:109 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:1:57:229:409 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:1:58:197:550 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-23 21:1:59:195:159 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 21:2:1:194:989 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-23 21:2:1:198:820 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:2:1:237:28 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-23 21:2:21:195:609 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:2:21:230:587 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..1ca86551 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:2:25:437:120 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:2:25:472:467 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:2:26:440:447 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-23 21:2:27:437:581 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 21:2:27:472:773 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-23 21:2:27:476:613 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-23 21:2:27:514:707 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-23 21:2:47:438:459 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:2:47:473:445 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..1b87a0e4 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:3:44:129:351 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:3:44:164:425 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:3:45:132:579 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-23 21:3:46:129:832 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-23 21:3:46:165:157 + Q4 finished at: 2022-4-23 21:3:46:168:771 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 21:3:47:133:225 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-23 21:4:7:130:793 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:4:7:166:391 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..79213e34 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:1:28:949:843 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 21:1:28:985:241 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:1:29:953:131 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-23 21:1:30:950:579 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 21:1:32:950:136 + Q4 finished at: 2022-4-23 21:1:32:954:36 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:1:32:992:550 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-23 21:1:52:951:67 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:1:52:986:42 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..998e13f1 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:2:51:686:191 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-23 21:2:51:721:411 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:2:52:688:572 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-23 21:2:53:686:132 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 21:2:53:720:909 + Q4 finished at: 2022-4-23 21:2:53:724:671 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-23 21:2:53:763:7 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-23 21:3:13:686:775 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:3:13:721:763 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..f7815365 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:3:17:854:448 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-23 21:3:17:890:670 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:3:18:892:326 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-23 21:3:19:889:624 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 21:3:19:924:534 + Q4 finished at: 2022-4-23 21:3:19:928:294 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-23 21:3:19:966:726 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-23 21:3:39:890:625 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:3:39:926:177 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..b6c41c1d --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:16:34:13:569 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:16:34:52:516 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:16:35:16:819 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 21:16:35:57:787 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:16:36:18:364 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:16:36:58:239 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-4e-6263fc32-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-23 21:16:36:715:254 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-4e-6263fc32-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..37a46f64 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:17:0:446:485 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:17:0:483:540 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:17:1:410:126 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-23 21:17:1:450:518 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:17:2:451:0 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-52-6263fc4c-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-23 21:17:3:47:730 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-52-6263fc4c-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..378176e1 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,33 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:17:27:877:89 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:17:27:913:861 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:17:28:840:946 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-23 21:17:28:884:493 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:17:29:881:876 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-57-6263fc67-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-23 21:17:30:478:940 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-57-6263fc67-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..19fd387e --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:17:56:307:471 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:17:56:344:300 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:17:57:271:400 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-23 21:17:57:311:373 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:17:58:312:281 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:17:58:352:90 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-5c-6263fc84-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-4-23 21:17:59:9:103 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-5c-6263fc84-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..eea7a9f0 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:18:22:740:399 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 21:18:22:777:399 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:18:23:704:326 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-23 21:18:23:744:461 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:18:24:745:136 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-60-6263fc9e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-23 21:18:25:341:791 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-60-6263fc9e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..1b00fa9a --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:18:50:172:600 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 21:18:50:209:543 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:18:51:136:562 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-23 21:18:51:179:218 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-23 21:18:52:177:411 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-65-6263fcba-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-4-23 21:18:52:774:105 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-65-6263fcba-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..3abac102 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:19:18:603:104 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:19:18:639:782 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:19:19:567:54 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-23 21:19:19:607:243 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-23 21:19:20:604:377 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 21:19:20:641:144 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-7d-6263fcd7-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-23 21:19:21:108:353 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-7d-6263fcd7-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..7edfbd95 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:19:46:39:105 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:19:46:75:891 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:19:47:2:611 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-23 21:19:47:44:69 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-23 21:19:48:39:886 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-80-6263fcf3-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-23 21:19:48:543:790 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-80-6263fcf3-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..939b0344 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:20:14:468:93 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:20:14:505:267 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:20:15:431:223 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-23 21:20:15:472:742 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-23 21:20:16:468:356 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 21:20:16:505:94 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-84-6263fd0f-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-4-23 21:20:16:972:512 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-84-6263fd0f-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..f2b32d0b --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:20:40:931:362 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:20:40:968:539 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:20:41:895:130 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-23 21:20:41:936:937 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-23 21:20:42:931:769 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-23 21:20:42:969:150 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-23 21:20:43:936:195 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-76-6263fd28-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-23 21:20:44:834:507 + Q8 finished at: 2022-4-23 21:20:44:911:158 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-76-6263fd28-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..cd55af75 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,40 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:21:10:398:167 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:21:10:434:935 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:21:11:362:99 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-23 21:21:11:402:515 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-23 21:21:12:362:108 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-23 21:21:14:399:190 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-23 21:21:15:403:259 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-7c-6263fd46-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-4-23 21:21:16:300:98 + Q8 finished at: 2022-4-23 21:21:16:438:277 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-2c-7c-6263fd46-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..02cd9270 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:13:23:782:21 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:13:23:818:703 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:13:24:785:427 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-23 21:13:25:782:625 + Q4 finished at: 2022-4-23 21:13:25:786:244 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:13:26:787:659 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-23 21:13:46:820:391 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-23 21:13:46:872:980 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:13:46:909:834 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..6226c96b --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:13:51:123:939 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:13:51:160:734 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:13:52:126:303 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-23 21:13:53:123:739 + Q4 finished at: 2022-4-23 21:13:53:127:409 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 21:13:54:127:91 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-23 21:14:14:124:381 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-23 21:14:14:178:350 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:14:14:214:975 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_sda_full_write.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..f8444b76 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:14:18:429:816 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:14:18:466:745 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:14:19:432:883 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-23 21:14:20:430:586 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-23 21:14:20:467:441 + Q4 finished at: 2022-4-23 21:14:20:471:132 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 21:14:21:433:978 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-23 21:14:41:431:96 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:14:41:467:661 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..d81dda48 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:14:45:679:620 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:14:45:716:422 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:14:46:682:522 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-23 21:14:47:680:52 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 21:14:47:716:696 + Q4 finished at: 2022-4-23 21:14:47:720:462 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-23 21:14:47:760:388 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-23 21:15:7:680:811 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:15:7:718:510 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..2bafe1e6 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:16:7:728:800 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 21:16:7:765:956 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:16:8:692:446 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-23 21:16:9:729:164 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 21:16:9:765:805 + Q4 finished at: 2022-4-23 21:16:9:769:659 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-23 21:16:9:809:420 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-23 21:16:29:729:725 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 21:16:29:766:186 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..a0444e85 --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:15:11:929:604 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-23 21:15:11:966:563 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:15:12:937:284 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-23 21:15:13:930:843 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-23 21:15:13:967:597 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-63-6263fbe0-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q4 failed at: 2022-4-23 21:15:14:334:750 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-63-6263fbe0-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..12a4f38b --- /dev/null +++ b/install/test_result/distributed_result/tdsql_test/tdsql_single/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,37 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-23 21:15:39:330:622 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-23 21:15:39:367:735 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-23 21:15:40:294:369 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-23 21:15:41:331:560 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-66-6263fbfc-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q4 failed at: 2022-4-23 21:15:41:735:685 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-95-66-6263fbfc-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..5144f5a1 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:42:33:779:91 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:42:33:784:729 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:42:34:779:31 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:42:34:780:214 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 10:42:34:781:140 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:42:34:781:726 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 10:42:35:779:792 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:42:35:780:187 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:42:45:779:917 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:42:45:780:311 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..538ed5e6 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:42:49:806:540 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:42:49:811:800 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:42:50:806:617 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 10:42:50:809:107 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 10:42:50:810:96 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:42:50:810:725 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 10:42:51:807:562 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738971105624065, conflictStartTS=432738971367768064, conflictCommitTS=432738971368816640, key={tableID=2795, handle=2} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 10:42:52:608:425 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738971105624065, conflictStartTS=432738971367768064, conflictCommitTS=432738971368816640, key={tableID=2795, handle=2} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_dda_write_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..c565db3e --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:43:5:831:344 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:43:5:836:867 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:43:6:831:324 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 10:43:6:832:445 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 10:43:6:833:342 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 10:43:7:831:801 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:43:7:832:410 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 10:43:8:831:577 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:43:18:832:20 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 10:43:18:832:435 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..2ef0d1d8 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:43:54:914:95 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:43:54:919:548 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:43:55:913:866 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 10:43:55:915:720 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 10:43:55:916:564 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:43:55:917:191 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 10:43:56:914:658 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:43:56:915:219 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:44:6:914:669 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:44:6:915:53 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..86e32e07 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:43:22:859:781 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-24 10:43:22:860:781 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-24 10:43:22:861:313 + Q4-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q4 finished at: 2022-4-24 10:43:23:859:794 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-24 10:43:23:861:185 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-24 10:43:23:861:816 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:43:23:862:472 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:43:24:860:112 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-24 10:43:34:860:468 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-24 10:43:34:861:326 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 10:43:34:861:709 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..b0bb7ca0 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:43:38:888:140 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-24 10:43:38:889:764 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:43:39:888:205 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + (2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-24 10:43:39:890:368 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-24 10:43:39:891:67 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:43:39:891:654 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-24 10:43:40:888:442 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:43:40:889:47 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-24 10:43:50:888:800 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:43:50:889:214 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_mda_step_iat.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..c24d1efc --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:44:10:941:278 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-24 10:44:10:946:691 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:44:11:941:299 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 10:44:11:943:504 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 10:44:12:941:301 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 10:44:12:942:488 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-24 10:44:13:942:246 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-24 10:44:14:942:355 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-24 10:44:15:942:226 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 10:44:16:941:617 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 10:44:17:941:689 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 10:44:18:941:776 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 10:44:28:942:182 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 10:44:28:942:583 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..3b41c815 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:45:53:78:316 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:45:53:83:861 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:45:54:78:270 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 10:45:54:79:465 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 10:45:54:80:88 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-24 10:45:55:78:268 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-24 10:45:55:79:481 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-24 10:45:55:80:355 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:45:55:80:982 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-24 10:45:56:79:450 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-24 10:45:56:79:927 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-24 10:46:6:79:257 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-24 10:46:6:79:658 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..5cf96034 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:45:34:49:835 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:45:34:55:482 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:45:35:49:799 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 10:45:35:51:815 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 10:45:36:49:828 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-24 10:45:36:50:917 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:45:36:51:524 + Q8-T4 execute sql: 'BEGIN OPTIMISTIC;' + Q8 finished at: 2022-4-24 10:45:37:49:947 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-24 10:45:37:51:313 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:45:37:51:939 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-24 10:45:38:50:821 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 10:45:38:51:261 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-24 10:45:39:50:936 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-24 10:45:39:51:393 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-24 10:45:49:51:88 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-24 10:45:49:51:532 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..5827a7e1 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:44:32:970:25 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-24 10:44:32:975:559 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:44:33:969:976 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 10:44:33:971:806 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 10:44:34:969:975 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 10:44:34:971:117 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-24 10:44:35:970:802 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-24 10:44:36:970:893 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-24 10:44:37:970:673 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 10:44:38:970:577 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 10:44:39:970:383 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 10:44:40:970:439 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-24 10:44:50:970:980 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 10:44:50:971:403 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..79f4954a --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:44:54:996:297 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-24 10:44:55:1:920 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:44:55:996:244 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-24 10:44:55:998:198 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 10:44:56:996:342 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-24 10:44:56:997:659 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-24 10:44:57:996:914 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-24 10:44:58:996:675 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-24 10:44:59:996:577 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 10:45:0:996:695 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 10:45:1:996:666 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 10:45:2:996:836 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 10:45:12:997:531 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 10:45:12:998:43 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..14c45f78 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(100));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:46:10:108:402 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 10:46:10:113:844 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-24 10:46:10:114:825 + Q4-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q4 finished at: 2022-4-24 10:46:11:108:381 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-24 10:46:11:109:743 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-24 10:46:11:110:747 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:46:11:111:410 + Q8-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q8 finished at: 2022-4-24 10:46:12:108:552 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-24 10:46:12:109:749 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-24 10:46:12:110:661 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 10:46:12:111:71 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-24 10:46:13:109:518 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-24 10:46:13:110:318 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-24 10:46:23:109:214 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-24 10:46:23:109:651 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..cad91527 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:45:17:25:922 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-24 10:45:17:31:531 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:45:18:24:512 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-24 10:45:18:25:711 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 10:45:18:26:548 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 10:45:18:27:521 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-24 10:45:18:28:360 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 10:45:18:28:953 + Q9-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q9 finished at: 2022-4-24 10:45:19:24:595 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-24 10:45:19:25:867 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-24 10:45:19:26:738 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-24 10:45:19:27:825 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-24 10:45:19:28:741 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 10:45:19:29:389 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-24 10:45:20:25:605 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-24 10:45:20:26:48 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-24 10:45:30:25:521 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-24 10:45:30:25:997 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..0a913b56 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:42:17:753:149 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 10:42:17:758:792 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:42:18:753:104 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 10:42:18:755:302 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 10:42:18:755:932 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-24 10:42:19:753:852 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738962703122432, conflictStartTS=432738962965266432, conflictCommitTS=432738962965790720, key={tableID=2785, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-24 10:42:20:454:806 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738962703122432, conflictStartTS=432738962965266432, conflictCommitTS=432738962965790720, key={tableID=2785, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..6d2ab660 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:42:1:721:906 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:42:1:727:522 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:42:2:721:835 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 10:42:2:723:27 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 10:42:2:723:619 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-24 10:42:3:722:809 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:42:3:723:196 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 10:42:13:722:515 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:42:13:722:887 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:42:13:723:179 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..dcceda5d --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:33:16:940:413 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:33:16:945:965 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:33:17:940:347 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:33:17:941:740 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 10:33:17:942:698 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q6 finished at: 2022-4-24 10:33:18:941:177 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:33:19:940:549 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738820932239360, conflictStartTS=432738821194383360, conflictCommitTS=432738821718671360, key={tableID=2630, handle=2} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 10:33:21:740:938 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738820932239360, conflictStartTS=432738821194383360, conflictCommitTS=432738821718671360, key={tableID=2630, handle=2} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..32e613e8 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:33:34:967:148 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:33:34:972:525 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:33:35:967:92 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:33:35:968:330 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 10:33:35:969:392 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:33:35:969:866 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-24 10:33:36:968:85 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738825657909248, conflictStartTS=432738825919791104, conflictCommitTS=432738825920577536, key={tableID=2635, handle=2} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 10:33:37:769:69 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738825657909248, conflictStartTS=432738825919791104, conflictCommitTS=432738825920577536, key={tableID=2635, handle=2} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..748138d8 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:33:50:993:292 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:33:50:998:904 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:33:51:993:246 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:33:51:994:512 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 10:33:51:995:492 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-24 10:33:52:993:998 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:33:52:994:475 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738830121172992, conflictStartTS=432738829859028992, conflictCommitTS=432738830383579136, key={tableID=2640, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-24 10:33:54:793:877 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738830121172992, conflictStartTS=432738829859028992, conflictCommitTS=432738830383579136, key={tableID=2640, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_read_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..d22e81de --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:34:8:16:863 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:34:8:22:348 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:34:9:16:693 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:34:9:17:855 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 10:34:9:18:877 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-24 10:34:10:17:572 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:34:11:16:887 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:34:12:16:679 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:34:22:17:623 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:34:22:17:938 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_read_skew2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..dab970be --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:34:58:98:191 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:34:58:103:576 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:34:59:98:177 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 10:34:59:99:420 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 10:34:59:100:396 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 10:35:0:99:31 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:35:0:99:552 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 10:35:1:98:236 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:35:11:98:900 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:35:11:99:244 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..76e2c0f0 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:35:15:125:146 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:35:15:130:529 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:35:16:125:186 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 10:35:16:127:372 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 10:35:16:128:223 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:35:16:128:556 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 10:35:17:126:251 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:35:17:126:823 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:35:27:125:952 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:35:27:126:433 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..e86caddd --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:34:26:44:675 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-24 10:34:26:49:915 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:34:27:44:747 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:34:27:46:653 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-24 10:34:27:47:652 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:34:27:48:278 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-24 10:34:28:45:493 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:34:28:45:824 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-24 10:34:38:45:364 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:34:38:45:744 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..65c2eb88 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:34:42:70:572 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-24 10:34:42:75:759 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:34:43:70:614 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-24 10:34:43:71:459 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-24 10:34:43:71:987 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:34:43:72:547 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-24 10:34:44:71:179 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:34:44:71:525 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-24 10:34:54:71:392 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:34:54:71:744 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..8586c38a --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:32:42:886:313 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:32:42:891:718 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:32:43:886:177 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:32:43:887:331 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 10:32:43:888:236 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-24 10:32:44:887:27 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:32:45:886:463 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:32:46:886:354 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:32:56:887:46 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:32:56:887:360 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..66a6041d --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:33:0:912:971 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:33:0:918:379 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:33:1:913:33 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:33:1:915:733 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 10:33:1:916:923 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:33:1:917:516 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 10:33:2:913:875 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:33:2:914:401 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:33:12:913:764 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:33:12:914:73 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_mda_step_rat.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..00c084f2 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:35:31:152:442 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:35:31:157:977 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:35:32:152:410 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:35:32:154:774 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 10:35:32:155:739 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-24 10:35:33:152:407 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-24 10:35:33:153:536 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-24 10:35:33:154:564 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-24 10:35:34:153:466 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 10:35:34:154:135 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 10:35:35:152:703 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 10:35:36:152:673 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 10:35:46:153:553 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 10:35:46:153:878 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..919d8ee0 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN OPTIMISTIC;' + Q1 finished at: 2022-4-24 10:35:50:180:346 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-24 10:35:50:186:250 +Q3-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q3 finished at: 2022-4-24 10:35:51:180:342 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-24 10:35:51:182:488 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 10:35:52:180:341 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-24 10:35:52:181:951 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-24 10:35:52:183:238 + Q8-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q8 finished at: 2022-4-24 10:35:53:180:387 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-24 10:35:53:181:699 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-24 10:35:54:181:464 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-24 10:35:55:180:648 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 10:35:56:180:610 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-24 10:35:57:180:493 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 10:36:7:180:730 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-24 10:36:7:182:462 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-24 10:36:7:182:883 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..e1354fdf --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:36:11:208:393 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:36:11:209:536 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:36:12:208:386 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:36:12:209:617 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-24 10:36:12:210:903 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-24 10:36:13:208:416 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-24 10:36:13:209:650 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-24 10:36:13:210:970 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-24 10:36:14:209:854 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 10:36:14:210:447 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 10:36:15:208:666 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 10:36:16:208:653 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-24 10:36:26:209:245 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 10:36:26:209:594 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..89c61570 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:36:30:234:359 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-24 10:36:30:235:209 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:36:31:234:359 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-24 10:36:31:234:862 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-24 10:36:31:240:623 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-24 10:36:32:234:391 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-24 10:36:32:234:913 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-24 10:36:32:236:346 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-24 10:36:33:235:672 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 10:36:33:236:243 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 10:36:34:234:646 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 10:36:35:234:624 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 10:36:45:235:344 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 10:36:45:235:682 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_sda_dirty_read.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..4be7a30b --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:30:44:706:921 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:30:44:712:283 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:30:45:706:938 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 10:30:45:708:170 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-24 10:30:46:706:968 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:30:47:706:828 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-24 10:30:57:707:625 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 10:30:57:707:945 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..4d729716 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:31:19:757:822 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:31:19:763:202 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:31:20:757:853 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 10:31:20:758:923 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-24 10:31:21:758:852 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:31:22:757:857 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:31:23:758:143 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-24 10:31:33:758:504 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:31:33:758:803 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..b4cc8d21 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:31:37:784:381 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:31:37:789:753 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:31:38:784:317 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 10:31:38:785:419 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 10:31:38:785:713 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-24 10:31:39:785:99 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:31:39:785:645 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-24 10:31:49:784:928 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:31:49:785:258 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..c32ee0fa --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:32:25:860:389 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:32:25:865:596 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:32:26:860:444 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 10:32:26:862:412 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-24 10:32:27:861:270 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 10:32:27:861:779 + Q7-T2 execute opt: 'COMMIT'; + Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738807804067840, conflictStartTS=432738807541923840, conflictCommitTS=432738808066473984, key={tableID=2615, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q7 failed at: 2022-4-24 10:32:29:561:610 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738807804067840, conflictStartTS=432738807541923840, conflictCommitTS=432738808066473984, key={tableID=2615, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..b223267c --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:31:1:731:874 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:31:1:737:345 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:31:2:731:880 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 10:31:2:734:92 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-24 10:31:3:732:676 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:31:4:732:92 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:31:5:731:886 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 10:31:15:732:609 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:31:15:732:945 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..7f049bc6 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:31:53:808:797 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 10:31:53:813:894 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:31:54:808:827 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-24 10:31:54:811:73 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 10:31:54:811:552 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-24 10:31:55:809:180 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:31:55:809:491 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-24 10:32:5:809:449 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:32:5:809:741 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..ab64cf68 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:32:9:834:318 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 10:32:9:839:592 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:32:10:834:201 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-24 10:32:10:836:165 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 10:32:10:836:622 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-24 10:32:11:834:962 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:32:11:835:322 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-24 10:32:21:834:983 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:32:21:835:327 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..ff76bbe5 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:38:47:440:531 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:38:47:446:16 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:38:48:440:665 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:38:48:442:511 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 10:38:48:443:523 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:38:48:444:164 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 10:38:49:441:388 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738907570831360, conflictStartTS=432738907832975360, conflictCommitTS=432738907833761792, key={tableID=2725, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 10:38:50:242:316 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738907570831360, conflictStartTS=432738907832975360, conflictCommitTS=432738907833761792, key={tableID=2725, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..8ab6ab07 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,37 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:39:3:466:651 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:39:3:472:212 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:39:4:466:599 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 10:39:4:467:812 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 10:39:4:468:737 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 10:39:5:467:474 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:39:5:468:100 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738912034095104, conflictStartTS=432738911771951104, conflictCommitTS=432738912296501248, key={tableID=2730, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-24 10:39:7:267:279 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738912034095104, conflictStartTS=432738911771951104, conflictCommitTS=432738912296501248, key={tableID=2730, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..cd2e0ca9 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,37 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:39:20:492:698 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:39:20:498:358 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:39:21:492:569 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 10:39:21:493:931 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 10:39:21:494:786 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 10:39:22:493:379 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:39:23:492:880 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738916235214848, conflictStartTS=432738916497358848, conflictCommitTS=432738917021646848, key={tableID=2735, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 10:39:25:293:203 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738916235214848, conflictStartTS=432738916497358848, conflictCommitTS=432738917021646848, key={tableID=2735, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..72e6ea4c --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,37 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:39:38:516:25 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:39:38:521:371 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:39:39:515:986 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 10:39:39:517:218 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 10:39:39:518:98 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:39:39:518:734 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 10:39:40:517:65 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738920959836160, conflictStartTS=432738921221980160, conflictCommitTS=432738921222766592, key={tableID=2740, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 10:39:41:317:940 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738920959836160, conflictStartTS=432738921221980160, conflictCommitTS=432738921222766592, key={tableID=2740, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..1d3362b6 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:39:54:542:252 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:39:54:547:718 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:39:55:542:185 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 10:39:55:543:400 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 10:39:55:544:465 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 10:39:56:543:43 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:39:56:543:628 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738925423362048, conflictStartTS=432738925161218048, conflictCommitTS=432738925685768192, key={tableID=2745, handle=2} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-24 10:39:58:342:894 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738925423362048, conflictStartTS=432738925161218048, conflictCommitTS=432738925685768192, key={tableID=2745, handle=2} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..a1473502 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:40:11:568:301 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:40:11:573:757 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:40:12:568:223 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 10:40:12:569:525 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 10:40:12:570:663 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 10:40:13:569:94 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:40:14:568:666 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738929624481792, conflictStartTS=432738929886625792, conflictCommitTS=432738930410913792, key={tableID=2750, handle=2} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 10:40:16:368:938 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738929624481792, conflictStartTS=432738929886625792, conflictCommitTS=432738930410913792, key={tableID=2750, handle=2} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..c9f782be --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:40:29:592:154 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:40:29:597:599 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:40:30:592:117 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 10:40:30:593:334 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 10:40:30:594:276 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 10:40:31:593:112 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:40:31:593:692 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738934611509248, conflictStartTS=432738934349365248, conflictCommitTS=432738934873915392, key={tableID=2755, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-24 10:40:33:392:898 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738934611509248, conflictStartTS=432738934349365248, conflictCommitTS=432738934873915392, key={tableID=2755, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..a87c95bd --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:40:46:615:983 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:40:46:621:313 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:40:47:615:961 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 10:40:47:617:233 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 10:40:47:618:197 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 10:40:48:616:937 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:40:49:616:366 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738938811842560, conflictStartTS=432738939073986560, conflictCommitTS=432738939598536704, key={tableID=2760, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 10:40:51:416:693 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738938811842560, conflictStartTS=432738939073986560, conflictCommitTS=432738939598536704, key={tableID=2760, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..20c80686 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:41:4:642:468 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:41:4:647:938 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:41:5:642:435 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 10:41:5:643:628 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 10:41:5:644:697 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:41:5:645:337 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 10:41:6:643:371 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738943537512448, conflictStartTS=432738943799656448, conflictCommitTS=432738943800442880, key={tableID=2765, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 10:41:7:444:286 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738943537512448, conflictStartTS=432738943799656448, conflictCommitTS=432738943800442880, key={tableID=2765, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..9d5054d0 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:41:20:669:366 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:41:20:675:63 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:41:21:669:287 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 10:41:21:670:495 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 10:41:21:671:434 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-24 10:41:22:669:294 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-24 10:41:22:670:534 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' + Q8 finished at: 2022-4-24 10:41:22:671:550 +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-24 10:41:23:670:242 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 10:41:23:671:141 + Q11-T2 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; + Q11 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738948001038336, conflictStartTS=432738947738894336, conflictCommitTS=432738948525588480, key={tableID=2770, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q11 failed at: 2022-4-24 10:41:25:770:38 + Q12 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738948263182336, conflictStartTS=432738947738894336, conflictCommitTS=432738948525588480, key={tableID=2770, handle=3} primary=[]byte(nil) [try again later] errcode: HY000 + Q12 failed at: 2022-4-24 10:41:26:870:132 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738948001038336, conflictStartTS=432738947738894336, conflictCommitTS=432738948525588480, key={tableID=2770, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..f97b6cd2 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:41:39:696:206 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:41:39:701:861 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:41:40:696:263 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 10:41:40:697:484 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 10:41:41:696:238 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6 finished at: 2022-4-24 10:41:42:697:198 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-24 10:41:43:697:62 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' + Q8 finished at: 2022-4-24 10:41:43:698:10 +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-24 10:41:44:697:327 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:41:45:696:509 +Q11-T1 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; +Q11 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738952726708224, conflictStartTS=432738952988852224, conflictCommitTS=432738954299572224, key={tableID=2775, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q11 failed at: 2022-4-24 10:41:47:796:770 + Q12 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738953250996224, conflictStartTS=432738952988852224, conflictCommitTS=432738954299572224, key={tableID=2775, handle=2} primary=[]byte(nil) [try again later] errcode: HY000 + Q12 failed at: 2022-4-24 10:41:48:896:875 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738952726708224, conflictStartTS=432738952988852224, conflictCommitTS=432738954299572224, key={tableID=2775, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..619eb952 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:36:49:261:330 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:36:49:266:735 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:36:50:261:291 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 10:36:50:262:433 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-24 10:36:51:261:273 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:36:52:261:763 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-24 10:37:2:262:105 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-24 10:37:2:277:316 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:37:2:277:742 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..abbed4c6 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,32 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:37:6:288:372 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:37:6:293:752 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:37:7:288:391 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 10:37:7:290:432 +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-24 10:37:8:288:653 + Q6-T2 execute opt: 'COMMIT'; + Q6 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738881316585472, conflictStartTS=432738881054441472, conflictCommitTS=432738881578729472, key={tableID=2695, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q6 failed at: 2022-4-24 10:37:9:889:208 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738881316585472, conflictStartTS=432738881054441472, conflictCommitTS=432738881578729472, key={tableID=2695, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_sda_full_write.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..7986fbe5 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_sda_full_write.txt @@ -0,0 +1,34 @@ +#### db_type: tidb #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:37:23:314:46 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:37:23:319:402 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:37:24:313:950 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 10:37:24:315:121 +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-24 10:37:25:314:823 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 10:37:25:315:429 + Q7-T2 execute opt: 'COMMIT'; + Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738885779587072, conflictStartTS=432738885517443072, conflictCommitTS=432738886042255360, key={tableID=2700, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q7 failed at: 2022-4-24 10:37:27:14:593 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738885779587072, conflictStartTS=432738885517443072, conflictCommitTS=432738886042255360, key={tableID=2700, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..0a18530a --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,34 @@ +#### db_type: tidb #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:37:40:339:420 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:37:40:345:85 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:37:41:339:359 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 10:37:41:340:631 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 10:37:41:341:242 +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-24 10:37:42:340:223 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738889980706816, conflictStartTS=432738890242850816, conflictCommitTS=432738890243375104, key={tableID=2705, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-24 10:37:43:41:180 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738889980706816, conflictStartTS=432738890242850816, conflictCommitTS=432738890243375104, key={tableID=2705, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..30182887 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:38:31:414:519 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:38:31:419:994 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:38:32:414:491 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 10:38:32:415:565 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 10:38:32:416:377 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-24 10:38:33:416:249 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738903369711616, conflictStartTS=432738903631855616, conflictCommitTS=432738903632379904, key={tableID=2720, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-24 10:38:34:117:156 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738903369711616, conflictStartTS=432738903631855616, conflictCommitTS=432738903632379904, key={tableID=2720, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..e2334532 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:37:56:365:144 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 10:37:56:370:584 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:37:57:365:101 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 10:37:57:366:212 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-24 10:37:58:365:844 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 10:37:58:372:589 + Q7-T2 execute opt: 'COMMIT'; + Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738894443970560, conflictStartTS=432738894181826560, conflictCommitTS=432738894707949568, key={tableID=2710, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q7 failed at: 2022-4-24 10:38:0:65:783 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738894443970560, conflictStartTS=432738894181826560, conflictCommitTS=432738894707949568, key={tableID=2710, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..fc8d4c39 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:38:13:390:648 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 10:38:13:396:208 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:38:14:390:587 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 10:38:14:391:725 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-24 10:38:15:391:385 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:38:16:390:924 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738898644828160, conflictStartTS=432738898906972160, conflictCommitTS=432738899431260160, key={tableID=2715, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-24 10:38:18:91:252 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432738898644828160, conflictStartTS=432738898906972160, conflictCommitTS=432738899431260160, key={tableID=2715, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..b3dc5c19 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:1:11:982:822 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:1:11:988:295 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:1:12:982:819 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:1:12:983:986 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:1:12:984:865 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:1:12:985:477 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 11:1:13:983:540 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:1:13:983:922 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 11:1:23:983:635 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:1:23:984:41 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..2a5b9e13 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:1:28:8:414 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:1:28:13:732 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:1:29:8:347 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 11:1:29:10:107 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:1:29:10:966 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:1:29:11:667 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 11:1:30:9:293 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739264235569152, conflictStartTS=432739264497713152, conflictCommitTS=432739264498499584, key={tableID=3061, handle=2} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 11:1:30:810:242 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739264235569152, conflictStartTS=432739264497713152, conflictCommitTS=432739264498499584, key={tableID=3061, handle=2} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_dda_write_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..090aead0 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:1:44:34:85 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:1:44:39:586 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:1:45:34:44 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 11:1:45:35:295 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:1:45:36:285 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 11:1:46:35:12 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:1:46:38:45 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 11:1:47:34:352 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 11:1:57:34:854 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 11:1:57:35:343 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..c2df0b0c --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:2:33:114:896 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:2:33:120:380 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:2:34:114:931 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 11:2:34:117:339 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:2:34:118:151 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:2:34:118:902 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 11:2:35:115:526 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:2:35:116:90 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 11:2:45:115:617 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:2:45:116:7 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..782ee340 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:2:1:61:386 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-24 11:2:1:62:563 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-24 11:2:1:63:62 + Q4-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q4 finished at: 2022-4-24 11:2:2:61:352 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-24 11:2:2:66:221 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-24 11:2:2:66:915 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 11:2:2:67:599 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:2:3:61:656 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-24 11:2:13:62:513 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-24 11:2:13:63:573 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:2:13:63:979 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..24061f89 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:2:17:89:581 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-24 11:2:17:91:27 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:2:18:89:589 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + (2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-24 11:2:18:91:155 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-24 11:2:18:91:902 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:2:18:92:491 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-24 11:2:19:90:72 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:2:19:90:792 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-24 11:2:29:90:163 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:2:29:90:662 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_mda_step_iat.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..9457e102 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:2:49:142:459 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-24 11:2:49:147:963 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:2:50:142:429 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 11:2:50:144:841 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 11:2:51:142:402 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 11:2:51:143:732 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-24 11:2:52:143:254 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-24 11:2:53:143:158 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-24 11:2:54:143:298 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 11:2:55:142:819 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 11:2:56:142:846 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:2:57:142:837 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 11:3:7:143:403 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 11:3:7:143:802 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..593796d1 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:4:31:276:657 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:4:31:282:276 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:4:32:276:601 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 11:4:32:277:804 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 11:4:32:278:416 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-24 11:4:33:276:681 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-24 11:4:33:278:7 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-24 11:4:33:279:111 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 11:4:33:279:804 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-24 11:4:34:277:560 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-24 11:4:34:277:991 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-24 11:4:44:277:537 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-24 11:4:44:277:995 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..5ba97251 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:4:12:248:913 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:4:12:254:771 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:4:13:248:804 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 11:4:13:250:144 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 11:4:14:248:778 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-24 11:4:14:249:879 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 11:4:14:250:583 + Q8-T4 execute sql: 'BEGIN OPTIMISTIC;' + Q8 finished at: 2022-4-24 11:4:15:248:816 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-24 11:4:15:250:82 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:4:15:250:756 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-24 11:4:16:249:988 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:4:16:250:441 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-24 11:4:17:251:741 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-24 11:4:17:252:217 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-24 11:4:27:250:30 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-24 11:4:27:250:458 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..c8a52558 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:3:11:175:323 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-24 11:3:11:180:926 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:3:12:169:985 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 11:3:12:171:235 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 11:3:13:169:989 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 11:3:13:171:266 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-24 11:3:14:170:696 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-24 11:3:15:170:708 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-24 11:3:16:170:834 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 11:3:17:170:357 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 11:3:18:170:331 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:3:19:170:346 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-24 11:3:29:170:861 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 11:3:29:171:321 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..330cfa8c --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:3:33:195:610 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-24 11:3:33:200:945 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:3:34:195:631 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-24 11:3:34:197:896 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 11:3:35:195:626 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-24 11:3:35:196:990 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-24 11:3:36:196:186 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-24 11:3:37:195:955 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-24 11:3:38:195:914 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 11:3:39:196:182 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 11:3:40:196:84 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:3:41:196:64 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 11:3:51:196:623 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 11:3:51:197:17 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..e762eb9c --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(100));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:4:48:303:133 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 11:4:48:308:878 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-24 11:4:48:310:249 + Q4-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q4 finished at: 2022-4-24 11:4:49:303:104 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-24 11:4:49:304:645 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-24 11:4:49:305:541 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 11:4:49:306:176 + Q8-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q8 finished at: 2022-4-24 11:4:50:303:80 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-24 11:4:50:304:464 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-24 11:4:50:305:440 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 11:4:50:305:862 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-24 11:4:51:303:891 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-24 11:4:51:309:533 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-24 11:5:1:303:968 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-24 11:5:1:304:422 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..6df16691 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:3:55:223:404 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-24 11:3:55:228:894 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:3:56:223:397 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-24 11:3:56:225:550 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:3:56:226:431 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 11:3:56:227:398 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-24 11:3:56:228:391 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 11:3:56:229:5 + Q9-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q9 finished at: 2022-4-24 11:3:57:223:426 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-24 11:3:57:224:904 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-24 11:3:57:225:942 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-24 11:3:57:227:94 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-24 11:3:57:228:158 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 11:3:57:228:841 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-24 11:3:58:224:398 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-24 11:3:58:224:843 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-24 11:4:8:224:178 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-24 11:4:8:224:621 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..925b7972 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:0:55:956:627 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 11:0:55:961:913 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:0:56:956:616 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 11:0:56:957:929 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 11:0:56:958:581 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-24 11:0:57:957:471 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739255833329664, conflictStartTS=432739256095473664, conflictCommitTS=432739256095997952, key={tableID=3051, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-24 11:0:58:658:446 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739255833329664, conflictStartTS=432739256095473664, conflictCommitTS=432739256095997952, key={tableID=3051, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..d34dfd1e --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:0:39:930:767 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:0:39:936:0 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:0:40:930:721 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 11:0:40:931:882 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 11:0:40:932:454 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-24 11:0:41:931:593 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:0:41:931:966 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 11:0:51:931:483 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 11:0:51:931:875 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:0:51:932:151 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..c5a37545 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:51:55:150:835 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:51:55:156:223 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:51:56:150:777 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:51:56:151:953 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 10:51:56:152:868 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q6 finished at: 2022-4-24 10:51:57:151:614 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:51:58:151:42 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739114064281600, conflictStartTS=432739114326425600, conflictCommitTS=432739114850713600, key={tableID=2896, handle=2} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 10:51:59:951:387 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739114064281600, conflictStartTS=432739114326425600, conflictCommitTS=432739114850713600, key={tableID=2896, handle=2} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..4f7fb0e3 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:52:13:177:981 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:52:13:183:640 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:52:14:177:770 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:52:14:178:883 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 10:52:14:179:968 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:52:14:180:564 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-24 10:52:15:178:624 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739118789951488, conflictStartTS=432739119052095488, conflictCommitTS=432739119052881920, key={tableID=2901, handle=2} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 10:52:15:979:555 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739118789951488, conflictStartTS=432739119052095488, conflictCommitTS=432739119052881920, key={tableID=2901, handle=2} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..40328040 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:52:29:201:761 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:52:29:207:219 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:52:30:201:721 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:52:30:203:749 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 10:52:30:204:720 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-24 10:52:31:202:681 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:52:31:203:295 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739123252690944, conflictStartTS=432739122990546944, conflictCommitTS=432739123515359232, key={tableID=2906, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-24 10:52:33:2:382 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739123252690944, conflictStartTS=432739122990546944, conflictCommitTS=432739123515359232, key={tableID=2906, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_read_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..cbfbf7ca --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:52:46:227:630 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:52:46:233:121 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:52:47:227:509 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:52:47:228:623 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 10:52:47:229:445 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-24 10:52:48:228:300 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:52:49:227:763 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:52:50:227:717 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:53:0:228:506 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:53:0:228:836 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_read_skew2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..a50bca1e --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:53:36:307:543 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:53:36:312:694 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:53:37:307:638 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 10:53:37:309:620 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 10:53:37:310:491 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 10:53:38:308:382 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:53:38:308:934 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 10:53:39:307:618 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:53:49:308:406 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:53:49:308:745 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..97e0cd2f --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:53:53:335:342 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:53:53:340:764 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:53:54:335:328 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 10:53:54:337:779 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 10:53:54:338:783 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:53:54:339:199 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 10:53:55:336:266 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:53:55:336:895 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:54:5:336:12 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:54:5:336:390 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..9a92f420 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:53:4:254:524 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-24 10:53:4:259:942 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:53:5:254:515 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:53:5:256:362 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-24 10:53:5:257:301 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:53:5:257:832 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-24 10:53:6:255:277 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:53:6:255:660 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-24 10:53:16:255:242 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:53:16:255:559 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..9aed9253 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:53:20:280:680 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-24 10:53:20:285:949 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:53:21:280:690 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-24 10:53:21:281:665 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-24 10:53:21:282:314 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:53:21:282:899 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-24 10:53:22:281:383 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:53:22:281:706 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-24 10:53:32:281:502 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:53:32:281:916 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..b552f654 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:51:21:96:875 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:51:21:102:340 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:51:22:96:795 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:51:22:97:918 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 10:51:22:98:847 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-24 10:51:23:97:718 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:51:24:96:989 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:51:25:96:981 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:51:35:97:557 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:51:35:97:874 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..240d8180 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:51:39:123:940 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:51:39:129:331 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:51:40:124:153 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:51:40:126:326 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 10:51:40:127:490 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:51:40:128:86 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 10:51:41:124:881 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:51:41:125:556 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:51:51:124:725 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:51:51:125:60 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_mda_step_rat.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..35ff9458 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:54:9:364:108 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:54:9:369:671 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:54:10:364:105 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:54:10:366:308 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 10:54:10:367:397 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-24 10:54:11:364:97 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-24 10:54:11:365:307 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-24 10:54:11:366:345 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-24 10:54:12:365:344 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 10:54:12:365:853 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 10:54:13:364:443 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 10:54:14:364:359 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 10:54:24:365:228 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 10:54:24:365:556 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..c37c0464 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN OPTIMISTIC;' + Q1 finished at: 2022-4-24 10:54:28:391:857 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-24 10:54:28:397:785 +Q3-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q3 finished at: 2022-4-24 10:54:29:391:779 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-24 10:54:29:393:922 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 10:54:30:391:831 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-24 10:54:30:393:362 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-24 10:54:30:394:447 + Q8-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q8 finished at: 2022-4-24 10:54:31:391:929 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-24 10:54:31:393:285 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-24 10:54:32:392:988 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-24 10:54:33:392:134 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 10:54:34:392:212 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-24 10:54:35:392:4 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 10:54:45:391:990 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-24 10:54:45:394:76 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-24 10:54:45:394:443 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..3685fd7f --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:54:49:420:944 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:54:49:426:353 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:54:50:420:922 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:54:50:422:780 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-24 10:54:50:424:65 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-24 10:54:51:420:966 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-24 10:54:51:422:190 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-24 10:54:51:423:532 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-24 10:54:52:422:242 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 10:54:52:422:882 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 10:54:53:421:229 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 10:54:54:421:245 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-24 10:55:4:421:856 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 10:55:4:422:305 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..33eb62ba --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:55:8:446:609 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-24 10:55:8:447:489 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:55:9:446:668 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-24 10:55:9:447:247 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-24 10:55:9:453:93 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-24 10:55:10:446:641 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-24 10:55:10:447:189 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-24 10:55:10:448:652 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-24 10:55:11:448:143 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 10:55:11:448:765 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 10:55:12:446:935 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 10:55:13:446:880 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 10:55:23:447:530 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 10:55:23:447:866 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_sda_dirty_read.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..155ecce4 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:49:22:916:38 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:49:22:921:317 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:49:23:915:979 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 10:49:23:917:213 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-24 10:49:24:915:803 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:49:25:915:807 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-24 10:49:35:916:735 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 10:49:35:917:43 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..d3a5c9c4 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:49:57:968:29 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:49:57:973:649 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:49:58:967:862 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 10:49:58:969:808 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-24 10:49:59:968:786 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:50:0:967:897 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:50:1:968:141 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-24 10:50:11:968:605 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:50:11:968:903 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..441c4439 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:50:15:994:412 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:50:15:999:621 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:50:16:994:378 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 10:50:16:995:419 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 10:50:16:995:706 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-24 10:50:17:995:238 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:50:17:995:778 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-24 10:50:27:995:47 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:50:27:995:373 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..a2f7c7a5 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:51:4:71:254 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:51:4:76:644 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:51:5:71:261 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 10:51:5:75:313 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-24 10:51:6:72:31 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 10:51:6:72:569 + Q7-T2 execute opt: 'COMMIT'; + Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739100936372224, conflictStartTS=432739100674228224, conflictCommitTS=432739101198778368, key={tableID=2881, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q7 failed at: 2022-4-24 10:51:7:771:872 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739100936372224, conflictStartTS=432739100674228224, conflictCommitTS=432739101198778368, key={tableID=2881, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..a703713f --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:49:39:942:245 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:49:39:947:622 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:49:40:942:174 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 10:49:40:943:335 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-24 10:49:41:942:988 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:49:42:942:445 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:49:43:942:164 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 10:49:53:942:896 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:49:53:943:208 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..e3f5eda8 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:50:32:19:337 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 10:50:32:24:613 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:50:33:19:347 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-24 10:50:33:20:956 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 10:50:33:21:436 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-24 10:50:34:20:95 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:50:34:20:411 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-24 10:50:44:20:46 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:50:44:20:363 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..81dd31f1 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:50:48:44:569 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 10:50:48:49:805 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:50:49:44:598 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-24 10:50:49:46:167 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 10:50:49:46:664 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-24 10:50:50:45:60 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:50:50:45:373 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-24 10:51:0:45:303 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:51:0:45:610 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..ede74972 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:57:25:650:584 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:57:25:655:939 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:57:26:650:576 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:57:26:651:915 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 10:57:26:652:811 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:57:26:653:417 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 10:57:27:651:555 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739200702873600, conflictStartTS=432739200965017600, conflictCommitTS=432739200965804032, key={tableID=2991, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 10:57:28:452:414 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739200702873600, conflictStartTS=432739200965017600, conflictCommitTS=432739200965804032, key={tableID=2991, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..01717dea --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,37 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:57:41:676:641 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:57:41:681:989 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:57:42:676:674 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 10:57:42:677:857 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 10:57:42:678:772 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 10:57:43:677:498 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:57:43:678:49 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739205166137344, conflictStartTS=432739204903993344, conflictCommitTS=432739205428543488, key={tableID=2996, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-24 10:57:45:477:498 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739205166137344, conflictStartTS=432739204903993344, conflictCommitTS=432739205428543488, key={tableID=2996, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..640a0976 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,37 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:57:58:701:366 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:57:58:707:113 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:57:59:701:153 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 10:57:59:702:516 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 10:57:59:703:525 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 10:58:0:701:970 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:58:1:701:495 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739209366994944, conflictStartTS=432739209629138944, conflictCommitTS=432739210153426944, key={tableID=3001, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 10:58:3:501:766 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739209366994944, conflictStartTS=432739209629138944, conflictCommitTS=432739210153426944, key={tableID=3001, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..049b48a9 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,37 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:58:16:729:134 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:58:16:734:711 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:58:17:729:127 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 10:58:17:730:343 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 10:58:17:731:274 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:58:17:731:932 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 10:58:18:729:902 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739214092926976, conflictStartTS=432739214355070976, conflictCommitTS=432739214355595264, key={tableID=3006, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 10:58:19:530:786 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739214092926976, conflictStartTS=432739214355070976, conflictCommitTS=432739214355595264, key={tableID=3006, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..bdc20997 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:58:32:755:11 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:58:32:760:424 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:58:33:755:58 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 10:58:33:756:250 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 10:58:33:757:217 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 10:58:34:755:917 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:58:34:756:484 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739218555928576, conflictStartTS=432739218293784576, conflictCommitTS=432739218818596864, key={tableID=3011, handle=2} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-24 10:58:36:555:715 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739218555928576, conflictStartTS=432739218293784576, conflictCommitTS=432739218818596864, key={tableID=3011, handle=2} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..abc9eab7 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:58:49:781:347 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:58:49:786:723 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:58:50:781:346 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 10:58:50:782:639 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 10:58:50:783:553 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 10:58:51:782:103 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:58:52:781:675 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739222757310464, conflictStartTS=432739223019454464, conflictCommitTS=432739223543742464, key={tableID=3016, handle=2} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 10:58:54:581:905 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739222757310464, conflictStartTS=432739223019454464, conflictCommitTS=432739223543742464, key={tableID=3016, handle=2} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..abbc2195 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:59:7:805:317 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:59:7:808:791 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:59:8:805:408 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 10:59:8:806:558 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 10:59:8:807:390 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 10:59:9:806:267 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:59:9:806:864 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739227744337920, conflictStartTS=432739227482193920, conflictCommitTS=432739228006744064, key={tableID=3021, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-24 10:59:11:606:242 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739227744337920, conflictStartTS=432739227482193920, conflictCommitTS=432739228006744064, key={tableID=3021, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..376bab93 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:59:24:830:346 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:59:24:835:845 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:59:25:830:327 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 10:59:25:831:328 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 10:59:25:832:131 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 10:59:26:831:288 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:59:27:830:707 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739231945195520, conflictStartTS=432739232207339520, conflictCommitTS=432739232731627520, key={tableID=3026, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 10:59:29:630:887 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739231945195520, conflictStartTS=432739232207339520, conflictCommitTS=432739232731627520, key={tableID=3026, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..66144e56 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:59:42:854:488 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:59:42:859:805 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:59:43:854:421 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 10:59:43:855:299 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 10:59:43:856:124 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:59:43:856:780 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 10:59:44:855:361 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739236670078976, conflictStartTS=432739236932222976, conflictCommitTS=432739236932747264, key={tableID=3031, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 10:59:45:656:391 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739236670078976, conflictStartTS=432739236932222976, conflictCommitTS=432739236932747264, key={tableID=3031, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..6a02fc3d --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:59:58:881:15 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:59:58:886:264 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:59:59:881:61 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 10:59:59:882:288 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 10:59:59:883:213 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-24 11:0:0:881:53 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-24 11:0:0:882:379 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' + Q8 finished at: 2022-4-24 11:0:0:883:370 +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-24 11:0:1:881:610 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 11:0:1:882:162 + Q11-T2 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; + Q11 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739241133342720, conflictStartTS=432739240871198720, conflictCommitTS=432739241657892864, key={tableID=3036, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q11 failed at: 2022-4-24 11:0:3:982:64 + Q12 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739241395486720, conflictStartTS=432739240871198720, conflictCommitTS=432739241657892864, key={tableID=3036, handle=3} primary=[]byte(nil) [try again later] errcode: HY000 + Q12 failed at: 2022-4-24 11:0:5:81:832 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739241133342720, conflictStartTS=432739240871198720, conflictCommitTS=432739241657892864, key={tableID=3036, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..dab2eea8 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:0:17:907:550 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:0:17:912:809 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:0:18:907:541 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 11:0:18:908:864 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 11:0:19:907:483 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6 finished at: 2022-4-24 11:0:20:908:409 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-24 11:0:21:908:467 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' + Q8 finished at: 2022-4-24 11:0:21:909:632 +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-24 11:0:22:908:517 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:0:23:907:942 +Q11-T1 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; +Q11 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739245859012608, conflictStartTS=432739246121156608, conflictCommitTS=432739247431876608, key={tableID=3041, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q11 failed at: 2022-4-24 11:0:26:8:227 + Q12 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739246383300608, conflictStartTS=432739246121156608, conflictCommitTS=432739247431876608, key={tableID=3041, handle=2} primary=[]byte(nil) [try again later] errcode: HY000 + Q12 failed at: 2022-4-24 11:0:27:108:219 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739245859012608, conflictStartTS=432739246121156608, conflictCommitTS=432739247431876608, key={tableID=3041, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..8638c1e7 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:55:27:475:495 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:55:27:480:993 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:55:28:475:429 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 10:55:28:476:644 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-24 10:55:29:475:434 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:55:30:475:792 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-24 10:55:40:476:191 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-24 10:55:40:491:392 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:55:40:491:840 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..8056b035 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,32 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:55:44:501:212 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:55:44:506:409 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:55:45:501:212 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 10:55:45:503:58 +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-24 10:55:46:501:442 + Q6-T2 execute opt: 'COMMIT'; + Q6 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739174449414144, conflictStartTS=432739174187270144, conflictCommitTS=432739174711558144, key={tableID=2961, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q6 failed at: 2022-4-24 10:55:48:101:966 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739174449414144, conflictStartTS=432739174187270144, conflictCommitTS=432739174711558144, key={tableID=2961, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_sda_full_write.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..399c7f8a --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,34 @@ +#### db_type: tidb #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:56:1:526:544 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:56:1:532:245 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:56:2:526:463 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 10:56:2:527:991 +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-24 10:56:3:527:215 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 10:56:3:527:859 + Q7-T2 execute opt: 'COMMIT'; + Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739178912415744, conflictStartTS=432739178650271744, conflictCommitTS=432739179174821888, key={tableID=2966, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q7 failed at: 2022-4-24 10:56:5:227:50 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739178912415744, conflictStartTS=432739178650271744, conflictCommitTS=432739179174821888, key={tableID=2966, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..4013264d --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,34 @@ +#### db_type: tidb #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:56:18:551:915 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:56:18:557:526 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:56:19:551:768 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 10:56:19:552:942 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 10:56:19:553:533 +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-24 10:56:20:552:602 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739183113273344, conflictStartTS=432739183375417344, conflictCommitTS=432739183375941632, key={tableID=2971, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-24 10:56:21:253:505 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739183113273344, conflictStartTS=432739183375417344, conflictCommitTS=432739183375941632, key={tableID=2971, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..c7fa0b63 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:57:9:624:629 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:57:9:630:119 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:57:10:624:559 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 10:57:10:626:549 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 10:57:10:627:163 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-24 10:57:11:625:390 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739196501753856, conflictStartTS=432739196763897856, conflictCommitTS=432739196764422144, key={tableID=2986, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-24 10:57:12:326:336 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739196501753856, conflictStartTS=432739196763897856, conflictCommitTS=432739196764422144, key={tableID=2986, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..788375ad --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:56:34:577:362 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 10:56:34:582:966 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:56:35:577:334 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 10:56:35:578:694 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-24 10:56:36:578:23 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 10:56:36:578:573 + Q7-T2 execute opt: 'COMMIT'; + Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739187576537088, conflictStartTS=432739187314393088, conflictCommitTS=432739187838943232, key={tableID=2976, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q7 failed at: 2022-4-24 10:56:38:277:920 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739187576537088, conflictStartTS=432739187314393088, conflictCommitTS=432739187838943232, key={tableID=2976, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..b24a2005 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 10:56:51:600:145 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 10:56:51:605:509 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 10:56:52:600:103 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 10:56:52:601:448 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-24 10:56:53:601:173 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:56:54:600:440 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739191776870400, conflictStartTS=432739192039014400, conflictCommitTS=432739192563302400, key={tableID=2981, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-24 10:56:56:300:756 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739191776870400, conflictStartTS=432739192039014400, conflictCommitTS=432739192563302400, key={tableID=2981, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/result_summary/read-committed_total-result.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..45e2cffc --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/result_summary/repeatable-read_total-result.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..45e2cffc --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_dist/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..a957c600 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:39:33:754:86 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:39:33:754:649 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:39:34:754:103 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:39:34:754:821 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:39:34:755:422 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:39:34:756:118 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 11:39:35:754:359 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:39:35:754:729 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 11:39:45:754:805 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:39:45:755:181 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..eacc44b8 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:39:49:779:697 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:39:49:780:249 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:39:50:779:723 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 11:39:50:781:245 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:39:50:781:708 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:39:50:782:275 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 11:39:51:780:91 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739867631026176, conflictStartTS=432739867893170176, conflictCommitTS=432739867893956608, key={tableID=3404, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 11:39:52:581:57 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739867631026176, conflictStartTS=432739867893170176, conflictCommitTS=432739867893956608, key={tableID=3404, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_dda_write_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..9a044007 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:40:5:803:594 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:40:5:804:197 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:40:6:803:606 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 11:40:6:804:193 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:40:6:804:685 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 11:40:7:803:719 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:40:7:804:270 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 11:40:8:803:906 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 11:40:18:804:248 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 11:40:18:804:643 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..d6d419e7 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:40:54:883:285 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:40:54:883:917 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:40:55:883:210 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 11:40:55:884:857 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:40:55:885:468 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:40:55:886:105 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 11:40:56:883:509 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:40:56:884:168 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 11:41:6:883:931 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:41:6:884:370 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..c22c486b --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL PRIMARY KEY);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:40:22:830:297 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-24 11:40:22:831:227 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-24 11:40:22:831:697 + Q4-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q4 finished at: 2022-4-24 11:40:23:830:401 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-24 11:40:23:832:455 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-24 11:40:23:833:109 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 11:40:23:833:770 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:40:24:830:705 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-24 11:40:34:831:19 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-24 11:40:34:832:69 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:40:34:832:563 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..443b47dd --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:40:38:858:5 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-24 11:40:38:859:413 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:40:39:858:47 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + (2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-24 11:40:39:859:616 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-24 11:40:39:860:449 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:40:39:861:65 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-24 11:40:40:858:344 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:40:40:858:947 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-24 11:40:50:858:603 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:40:50:859:57 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_mda_step_iat.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..d777f841 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:41:10:908:52 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-24 11:41:10:908:657 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:41:11:908:73 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 11:41:11:908:791 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 11:41:12:908:79 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 11:41:12:908:751 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-24 11:41:13:908:282 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-24 11:41:14:908:338 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-24 11:41:15:908:366 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 11:41:16:908:398 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 11:41:17:908:434 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:41:18:908:547 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 11:41:28:909:85 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 11:41:28:909:511 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..dd1101da --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:42:53:35:602 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:42:53:36:310 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:42:54:35:651 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 11:42:54:39:963 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 11:42:54:40:561 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-24 11:42:55:35:751 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-24 11:42:55:36:504 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-24 11:42:55:37:52 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 11:42:55:37:686 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-24 11:42:56:35:946 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-24 11:42:56:36:422 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-24 11:43:6:36:560 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-24 11:43:6:37:5 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..2c0c5be2 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:42:34:9:610 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:42:34:10:643 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:42:35:9:529 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 11:42:35:11:46 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 11:42:36:9:355 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-24 11:42:36:9:975 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 11:42:36:10:615 + Q8-T4 execute sql: 'BEGIN OPTIMISTIC;' + Q8 finished at: 2022-4-24 11:42:37:9:487 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-24 11:42:37:10:147 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:42:37:10:831 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-24 11:42:38:9:841 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:42:38:10:292 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-24 11:42:39:9:902 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-24 11:42:39:10:411 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-24 11:42:49:10:480 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-24 11:42:49:10:913 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..f0334d8b --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:41:32:934:805 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-24 11:41:32:935:449 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:41:33:934:723 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 11:41:33:935:328 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 11:41:34:934:715 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 11:41:34:935:286 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-24 11:41:35:934:958 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-24 11:41:36:934:940 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-24 11:41:37:934:923 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 11:41:38:935:138 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 11:41:39:935:163 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:41:40:935:134 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-24 11:41:50:935:535 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 11:41:50:936:1 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..7703c0eb --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:41:54:959:71 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-24 11:41:54:959:760 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:41:55:959:25 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-24 11:41:55:960:534 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 11:41:56:959:118 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-24 11:41:56:959:785 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-24 11:41:57:959:280 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-24 11:41:58:959:246 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-24 11:41:59:959:421 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 11:42:0:959:455 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 11:42:1:959:552 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:42:2:959:495 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 11:42:12:959:915 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 11:42:12:960:318 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..9cf4d488 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:43:10:63:522 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 11:43:10:64:217 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-24 11:43:10:64:904 + Q4-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q4 finished at: 2022-4-24 11:43:11:63:482 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-24 11:43:11:64:202 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-24 11:43:11:64:825 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 11:43:11:65:474 + Q8-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q8 finished at: 2022-4-24 11:43:12:63:532 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-24 11:43:12:64:267 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-24 11:43:12:64:867 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 11:43:12:65:292 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-24 11:43:13:63:734 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-24 11:43:13:64:358 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-24 11:43:23:64:131 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-24 11:43:23:64:573 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..db7bcc81 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:42:16:985:21 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-24 11:42:16:985:709 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:42:17:985:22 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-24 11:42:17:985:660 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:42:17:986:125 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 11:42:17:986:660 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-24 11:42:17:987:73 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 11:42:17:987:741 + Q9-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q9 finished at: 2022-4-24 11:42:18:985:69 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-24 11:42:18:985:756 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-24 11:42:18:986:288 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-24 11:42:18:986:846 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-24 11:42:18:987:298 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 11:42:18:987:910 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-24 11:42:19:985:281 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-24 11:42:19:985:693 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-24 11:42:29:985:774 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-24 11:42:29:986:183 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..023d4c1a --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:39:17:729:213 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 11:39:17:729:842 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:39:18:729:258 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 11:39:18:729:912 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 11:39:18:730:498 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-24 11:39:19:729:478 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739859229310976, conflictStartTS=432739859491454976, conflictCommitTS=432739859491717120, key={tableID=3398, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-24 11:39:20:430:339 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739859229310976, conflictStartTS=432739859491454976, conflictCommitTS=432739859491717120, key={tableID=3398, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..b0d9cb0a --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:39:1:704:962 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:39:1:705:676 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:39:2:704:981 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 11:39:2:705:581 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 11:39:2:706:109 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-24 11:39:3:705:213 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:39:3:705:626 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 11:39:13:705:489 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 11:39:13:705:873 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:39:13:706:338 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..74c1f9bf --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:30:16:962:774 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:30:16:963:382 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:30:17:962:719 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:30:17:963:303 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 11:30:17:963:797 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q6 finished at: 2022-4-24 11:30:18:962:980 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 11:30:19:962:851 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739717470486528, conflictStartTS=432739717732630528, conflictCommitTS=432739718256918528, key={tableID=3305, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 11:30:21:763:369 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739717470486528, conflictStartTS=432739717732630528, conflictCommitTS=432739718256918528, key={tableID=3305, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..b8ee9ca6 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:30:34:987:274 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:30:34:987:933 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:30:35:987:272 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:30:35:987:873 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 11:30:35:988:385 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:30:35:988:903 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-24 11:30:36:987:489 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739722195632128, conflictStartTS=432739722457776128, conflictCommitTS=432739722458038272, key={tableID=3308, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 11:30:37:788:319 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739722195632128, conflictStartTS=432739722457776128, conflictCommitTS=432739722458038272, key={tableID=3308, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..e7d4a1c3 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:30:51:11:525 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:30:51:12:160 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:30:52:11:598 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:30:52:12:197 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 11:30:52:12:777 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-24 11:30:53:12:308 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:30:53:12:903 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739726658371584, conflictStartTS=432739726396227584, conflictCommitTS=432739726920777728, key={tableID=3311, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-24 11:30:54:812:70 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739726658371584, conflictStartTS=432739726396227584, conflictCommitTS=432739726920777728, key={tableID=3311, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_read_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..fb5ed353 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:31:8:37:516 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:31:8:38:178 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:31:9:36:100 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:31:9:36:851 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:31:9:37:306 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-24 11:31:10:36:463 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 11:31:11:36:389 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:31:12:36:230 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 11:31:22:36:912 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:31:22:37:229 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_read_skew2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..215ffa9f --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:31:58:110:704 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:31:58:111:446 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:31:59:110:668 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 11:31:59:112:357 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 11:31:59:112:811 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 11:32:0:110:939 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:32:0:111:489 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 11:32:1:110:671 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 11:32:11:111:168 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:32:11:111:500 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..f951fe1d --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:32:15:135:556 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:32:15:136:144 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:32:16:135:568 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 11:32:16:137:265 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 11:32:16:137:864 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:32:16:138:253 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 11:32:17:135:739 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:32:17:136:418 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 11:32:27:136:274 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:32:27:136:630 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..da07b7bc --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:31:26:61:544 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-24 11:31:26:62:532 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:31:27:61:603 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:31:27:68:520 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:31:27:69:78 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:31:27:69:665 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-24 11:31:28:62:259 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:31:28:62:593 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-24 11:31:38:62:44 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:31:38:62:373 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..194114df --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:31:42:85:381 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-24 11:31:42:90:791 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:31:43:85:440 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-24 11:31:43:86:842 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-24 11:31:43:87:319 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:31:43:87:930 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-24 11:31:44:85:874 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:31:44:86:196 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-24 11:31:54:85:975 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:31:54:86:328 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..14207f57 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:29:42:913:573 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:29:42:914:154 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:29:43:912:389 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:29:43:913:86 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 11:29:43:913:749 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-24 11:29:44:912:698 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 11:29:45:912:653 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:29:46:912:610 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 11:29:56:913:102 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:29:56:913:510 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..b02e8b9a --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:30:0:937:481 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:30:0:938:308 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:30:1:937:388 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:30:1:939:369 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 11:30:1:939:868 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:30:1:940:376 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 11:30:2:937:658 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:30:2:938:162 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 11:30:12:938:122 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:30:12:938:439 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_mda_step_rat.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..86a06e44 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:32:31:161:488 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:32:31:162:129 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:32:32:161:443 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:32:32:162:888 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 11:32:32:163:454 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-24 11:32:33:161:467 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-24 11:32:33:162:63 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-24 11:32:33:162:645 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-24 11:32:34:161:757 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 11:32:34:162:310 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 11:32:35:161:701 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:32:36:161:730 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 11:32:46:162:322 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 11:32:46:162:659 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..6290aa07 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN OPTIMISTIC;' + Q1 finished at: 2022-4-24 11:32:50:187:176 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-24 11:32:50:187:934 +Q3-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q3 finished at: 2022-4-24 11:32:51:187:201 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-24 11:32:51:187:829 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 11:32:52:187:230 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-24 11:32:52:188:10 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-24 11:32:52:188:696 + Q8-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q8 finished at: 2022-4-24 11:32:53:187:232 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-24 11:32:53:188:451 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-24 11:32:54:187:710 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-24 11:32:55:187:590 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:32:56:187:526 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-24 11:32:57:187:371 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 11:33:7:187:378 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-24 11:33:7:188:549 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-24 11:33:7:188:846 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..59cfbdad --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:33:11:213:842 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:33:11:214:375 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:33:12:213:863 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:33:12:214:395 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-24 11:33:12:215:275 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-24 11:33:13:213:875 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-24 11:33:13:214:419 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-24 11:33:13:215:269 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-24 11:33:14:214:947 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 11:33:14:215:507 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 11:33:15:214:81 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:33:16:214:178 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-24 11:33:26:214:467 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 11:33:26:214:820 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..8f405714 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:33:30:237:718 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-24 11:33:30:238:223 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:33:31:237:687 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-24 11:33:31:238:717 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-24 11:33:31:239:727 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-24 11:33:32:237:709 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-24 11:33:32:238:247 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-24 11:33:32:239:166 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-24 11:33:33:238:352 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 11:33:33:238:880 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 11:33:34:237:983 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:33:35:238:46 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 11:33:45:238:499 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 11:33:45:238:837 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_sda_dirty_read.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..6170d2ea --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:27:44:743:466 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:27:44:744:58 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:27:45:743:787 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 11:27:45:744:567 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-24 11:27:46:743:354 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:27:47:743:364 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-24 11:27:57:744:50 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 11:27:57:744:340 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..61428ec7 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:28:19:792:250 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:28:19:792:874 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:28:20:792:279 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 11:28:20:792:888 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-24 11:28:21:792:450 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:28:22:792:236 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:28:23:792:444 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-24 11:28:33:792:870 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 11:28:33:793:184 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..54caebc7 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:28:37:815:565 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:28:37:816:233 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:28:38:815:494 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 11:28:38:816:73 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 11:28:38:816:358 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-24 11:28:39:815:702 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:28:39:816:227 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-24 11:28:49:815:847 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 11:28:49:816:221 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..2cea3b2c --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:29:25:887:743 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:29:25:888:309 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:29:26:887:792 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 11:29:26:889:83 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-24 11:29:27:887:956 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 11:29:27:888:499 + Q7-T2 execute opt: 'COMMIT'; + Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739704343625728, conflictStartTS=432739704081481728, conflictCommitTS=432739704606031872, key={tableID=3296, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q7 failed at: 2022-4-24 11:29:29:588:252 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739704343625728, conflictStartTS=432739704081481728, conflictCommitTS=432739704606031872, key={tableID=3296, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..954a8103 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:28:1:767:869 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:28:1:768:491 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:28:2:767:880 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 11:28:2:769:254 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-24 11:28:3:768:313 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:28:4:768:88 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:28:5:767:879 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 11:28:15:768:460 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 11:28:15:768:798 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..b65a7b1a --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:28:53:840:213 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 11:28:53:841:314 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:28:54:840:231 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-24 11:28:54:840:764 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 11:28:54:841:261 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-24 11:28:55:840:697 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:28:55:840:972 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-24 11:29:5:840:726 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 11:29:5:841:48 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..4e24b698 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:29:9:863:626 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 11:29:9:869:0 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:29:10:863:563 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-24 11:29:10:865:169 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 11:29:10:865:671 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-24 11:29:11:864:320 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:29:11:864:639 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-24 11:29:21:864:156 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 11:29:21:864:465 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..a3ed1f7d --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:35:47:431:679 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:35:47:432:301 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:35:48:431:627 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:35:48:432:240 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 11:35:48:432:784 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:35:48:433:375 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 11:35:49:432:58 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739804100952064, conflictStartTS=432739804363096064, conflictCommitTS=432739804363620352, key={tableID=3362, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 11:35:50:232:958 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739804100952064, conflictStartTS=432739804363096064, conflictCommitTS=432739804363620352, key={tableID=3362, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..2ce0b5a6 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,37 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:36:3:456:514 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:36:3:457:215 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:36:4:456:463 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 11:36:4:457:100 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 11:36:4:457:634 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 11:36:5:456:782 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:36:5:457:400 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739808563953664, conflictStartTS=432739808301809664, conflictCommitTS=432739808826359808, key={tableID=3365, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-24 11:36:7:257:224 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739808563953664, conflictStartTS=432739808301809664, conflictCommitTS=432739808826359808, key={tableID=3365, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..9aa25945 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,37 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:36:20:481:661 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:36:20:482:461 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:36:21:481:512 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 11:36:21:482:95 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 11:36:21:482:677 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 11:36:22:481:768 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 11:36:23:481:817 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739812764811264, conflictStartTS=432739813026955264, conflictCommitTS=432739813551243264, key={tableID=3368, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 11:36:25:282:194 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739812764811264, conflictStartTS=432739813026955264, conflictCommitTS=432739813551243264, key={tableID=3368, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..53f11d4a --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,37 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:36:38:506:386 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:36:38:506:980 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:36:39:506:308 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 11:36:39:506:993 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 11:36:39:507:421 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:36:39:507:957 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 11:36:40:506:556 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739817489956864, conflictStartTS=432739817752100864, conflictCommitTS=432739817752363008, key={tableID=3371, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 11:36:41:307:551 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739817489956864, conflictStartTS=432739817752100864, conflictCommitTS=432739817752363008, key={tableID=3371, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..01b8ae6a --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:36:54:530:116 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:36:54:530:833 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:36:55:530:64 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 11:36:55:530:733 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:36:55:531:217 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 11:36:56:530:267 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:36:56:530:873 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739821952434176, conflictStartTS=432739821690552320, conflictCommitTS=432739822214840320, key={tableID=3374, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-24 11:36:58:330:741 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739821952434176, conflictStartTS=432739821690552320, conflictCommitTS=432739822214840320, key={tableID=3374, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..eda2f655 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:37:11:555:510 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:37:11:556:229 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:37:12:555:277 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 11:37:12:555:915 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:37:12:556:365 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 11:37:13:555:531 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 11:37:14:555:565 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739826153553920, conflictStartTS=432739826415697920, conflictCommitTS=432739826939985920, key={tableID=3377, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 11:37:16:355:939 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739826153553920, conflictStartTS=432739826415697920, conflictCommitTS=432739826939985920, key={tableID=3377, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..6ae84061 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:37:29:582:59 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:37:29:582:779 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:37:30:580:406 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 11:37:30:581:54 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 11:37:30:581:525 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 11:37:31:580:756 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:37:31:581:406 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739831140843520, conflictStartTS=432739830878961664, conflictCommitTS=432739831403249664, key={tableID=3380, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-24 11:37:33:381:151 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739831140843520, conflictStartTS=432739830878961664, conflictCommitTS=432739831403249664, key={tableID=3380, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..8cd5db84 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:37:46:604:258 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:37:46:604:979 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:37:47:604:369 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 11:37:47:605:177 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 11:37:47:605:712 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 11:37:48:604:435 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 11:37:49:604:606 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739835341438976, conflictStartTS=432739835603582976, conflictCommitTS=432739836127870976, key={tableID=3383, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 11:37:51:404:917 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739835341438976, conflictStartTS=432739835603582976, conflictCommitTS=432739836127870976, key={tableID=3383, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..a30c33cd --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:38:4:629:115 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:38:4:629:737 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:38:5:629:53 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 11:38:5:629:633 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 11:38:5:630:131 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:38:5:630:668 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 11:38:6:629:447 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739840066584576, conflictStartTS=432739840328466432, conflictCommitTS=432739840328990720, key={tableID=3386, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 11:38:7:430:345 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739840066584576, conflictStartTS=432739840328466432, conflictCommitTS=432739840328990720, key={tableID=3386, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..1dfccc92 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:38:20:654:445 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:38:20:655:24 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:38:21:654:325 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 11:38:21:654:925 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 11:38:21:655:404 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-24 11:38:22:654:400 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-24 11:38:22:655:33 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' + Q8 finished at: 2022-4-24 11:38:22:655:541 +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-24 11:38:23:654:639 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 11:38:23:655:922 + Q11-T2 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; + Q11 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739844529586176, conflictStartTS=432739844267442176, conflictCommitTS=432739845054136320, key={tableID=3389, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q11 failed at: 2022-4-24 11:38:25:755:66 + Q12 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739844791730176, conflictStartTS=432739844267442176, conflictCommitTS=432739845054136320, key={tableID=3389, handle=2} primary=[]byte(nil) [try again later] errcode: HY000 + Q12 failed at: 2022-4-24 11:38:26:855:107 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739844529586176, conflictStartTS=432739844267442176, conflictCommitTS=432739845054136320, key={tableID=3389, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..e7d0fba0 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:38:39:680:418 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:38:39:681:156 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:38:40:680:301 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 11:38:40:680:990 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 11:38:41:680:648 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6 finished at: 2022-4-24 11:38:42:680:542 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-24 11:38:43:680:584 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' + Q8 finished at: 2022-4-24 11:38:43:681:32 +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-24 11:38:44:680:632 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:38:45:680:743 +Q11-T1 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; +Q11 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739849254993920, conflictStartTS=432739849517137920, conflictCommitTS=432739850827857920, key={tableID=3392, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q11 failed at: 2022-4-24 11:38:47:781:33 + Q12 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739849779281920, conflictStartTS=432739849517137920, conflictCommitTS=432739850827857920, key={tableID=3392, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q12 failed at: 2022-4-24 11:38:48:881:104 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739849254993920, conflictStartTS=432739849517137920, conflictCommitTS=432739850827857920, key={tableID=3392, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..e8d94923 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:33:49:262:959 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:33:49:263:527 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:33:50:262:916 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 11:33:50:263:507 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-24 11:33:51:262:986 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:33:52:263:233 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-24 11:34:2:263:629 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-24 11:34:2:278:388 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 11:34:2:278:826 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..65786973 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,32 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:34:6:288:423 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:34:6:289:27 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:34:7:288:400 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 11:34:7:289:10 +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-24 11:34:8:288:691 + Q6-T2 execute opt: 'COMMIT'; + Q6 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739777849065472, conflictStartTS=432739777586921472, conflictCommitTS=432739778111209472, key={tableID=3344, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q6 failed at: 2022-4-24 11:34:9:889:40 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739777849065472, conflictStartTS=432739777586921472, conflictCommitTS=432739778111209472, key={tableID=3344, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_sda_full_write.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..76349a6a --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_sda_full_write.txt @@ -0,0 +1,34 @@ +#### db_type: tidb #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:34:23:312:469 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:34:23:313:32 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:34:24:312:511 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 11:34:24:313:229 +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-24 11:34:25:312:747 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 11:34:25:313:423 + Q7-T2 execute opt: 'COMMIT'; + Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739782311804928, conflictStartTS=432739782049660928, conflictCommitTS=432739782574211072, key={tableID=3347, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q7 failed at: 2022-4-24 11:34:27:13:160 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739782311804928, conflictStartTS=432739782049660928, conflictCommitTS=432739782574211072, key={tableID=3347, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..74f9f041 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,34 @@ +#### db_type: tidb #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:34:40:336:875 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:34:40:337:619 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:34:41:336:816 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 11:34:41:337:438 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 11:34:41:337:996 +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-24 11:34:42:337:4 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739786512400384, conflictStartTS=432739786774544384, conflictCommitTS=432739786774806528, key={tableID=3350, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-24 11:34:43:37:998 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739786512400384, conflictStartTS=432739786774544384, conflictCommitTS=432739786774806528, key={tableID=3350, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..9975b6c2 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:35:31:407:725 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:35:31:408:364 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:35:32:407:732 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 11:35:32:408:333 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 11:35:32:408:882 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-24 11:35:33:407:921 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739799900356608, conflictStartTS=432739800162500608, conflictCommitTS=432739800162762752, key={tableID=3359, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-24 11:35:34:108:838 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739799900356608, conflictStartTS=432739800162500608, conflictCommitTS=432739800162762752, key={tableID=3359, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..3c94df74 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:34:56:360:560 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 11:34:56:361:236 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:34:57:360:514 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 11:34:57:361:140 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-24 11:34:58:360:785 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 11:34:58:361:369 + Q7-T2 execute opt: 'COMMIT'; + Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739790975139840, conflictStartTS=432739790712995840, conflictCommitTS=432739791237545984, key={tableID=3353, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q7 failed at: 2022-4-24 11:35:0:61:198 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739790975139840, conflictStartTS=432739790712995840, conflictCommitTS=432739791237545984, key={tableID=3353, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..d75851c4 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:35:13:384:747 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 11:35:13:385:349 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:35:14:384:800 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 11:35:14:385:385 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-24 11:35:15:384:994 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:35:16:385:235 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739795175735296, conflictStartTS=432739795437879296, conflictCommitTS=432739795962167296, key={tableID=3356, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-24 11:35:18:85:365 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739795175735296, conflictStartTS=432739795437879296, conflictCommitTS=432739795962167296, key={tableID=3356, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..01c3022b --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:22:48:642:216 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:22:48:642:957 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:22:49:642:213 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:22:49:642:866 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:22:49:643:328 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:22:49:643:915 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 11:22:50:642:436 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:22:50:642:829 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 11:23:0:642:829 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:23:0:643:186 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..56bb798a --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:23:4:667:781 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:23:4:668:372 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:23:5:667:726 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 11:23:5:668:974 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:23:5:669:531 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:23:5:670:143 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 11:23:6:668:14 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739604146946048, conflictStartTS=432739604409090048, conflictCommitTS=432739604409614336, key={tableID=3242, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 11:23:7:469:8 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739604146946048, conflictStartTS=432739604409090048, conflictCommitTS=432739604409614336, key={tableID=3242, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_dda_write_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..68ab5cb9 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:23:20:692:338 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:23:20:692:968 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:23:21:692:352 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 11:23:21:693:9 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:23:21:693:556 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 11:23:22:692:681 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:23:22:693:313 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 11:23:23:692:675 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 11:23:33:692:982 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 11:23:33:693:378 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..29a79a0b --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:24:9:770:411 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:24:9:770:982 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:24:10:770:656 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 11:24:10:772:137 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:24:10:772:842 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:24:10:773:541 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 11:24:11:770:658 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:24:11:771:318 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 11:24:21:771:19 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:24:21:771:441 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..eebbefbc --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL PRIMARY KEY);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:23:37:717:252 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-24 11:23:37:718:577 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-24 11:23:37:719:160 + Q4-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q4 finished at: 2022-4-24 11:23:38:717:154 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-24 11:23:38:719:462 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-24 11:23:38:719:994 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 11:23:38:720:657 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:23:39:717:491 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-24 11:23:49:718:75 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-24 11:23:49:719:114 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:23:49:719:588 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..cd2cb1e1 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:23:53:745:336 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-24 11:23:53:746:711 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:23:54:745:326 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + (2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-24 11:23:54:747:424 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-24 11:23:54:748:71 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:23:54:748:693 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-24 11:23:55:745:821 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:23:55:746:527 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-24 11:24:5:745:854 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:24:5:746:259 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_mda_step_iat.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..f9102636 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:24:25:796:755 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-24 11:24:25:797:418 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:24:26:796:540 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 11:24:26:797:706 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 11:24:27:796:584 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 11:24:27:797:281 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-24 11:24:28:796:861 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-24 11:24:29:796:810 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-24 11:24:30:796:856 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 11:24:31:796:885 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 11:24:32:796:943 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:24:33:796:984 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 11:24:43:797:447 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 11:24:43:797:887 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..f5ba694f --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:26:7:925:598 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:26:7:926:390 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:26:8:925:570 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 11:26:8:926:157 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 11:26:8:926:751 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-24 11:26:9:925:549 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-24 11:26:9:926:244 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-24 11:26:9:926:719 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 11:26:9:927:313 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-24 11:26:10:925:820 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-24 11:26:10:926:295 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-24 11:26:20:926:332 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-24 11:26:20:926:741 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..9fbcc0bb --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:25:48:899:442 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:25:48:900:299 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:25:49:899:332 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 11:25:49:900:216 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 11:25:50:899:419 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-24 11:25:50:900:130 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 11:25:50:900:791 + Q8-T4 execute sql: 'BEGIN OPTIMISTIC;' + Q8 finished at: 2022-4-24 11:25:51:899:436 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-24 11:25:51:900:161 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:25:51:900:854 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-24 11:25:52:899:988 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:25:52:900:520 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-24 11:25:53:902:503 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-24 11:25:53:903:73 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-24 11:26:3:900:576 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-24 11:26:3:901:7 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..968d649c --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:24:47:823:325 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-24 11:24:47:823:988 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:24:48:823:344 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 11:24:48:824:49 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 11:24:49:823:235 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 11:24:49:823:793 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-24 11:24:50:823:500 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-24 11:24:51:823:508 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-24 11:24:52:823:479 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 11:24:53:823:760 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 11:24:54:823:743 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:24:55:823:663 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-24 11:25:5:824:87 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 11:25:5:824:511 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..8859656d --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:25:9:847:617 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-24 11:25:9:848:319 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:25:10:847:569 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-24 11:25:10:849:306 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 11:25:11:847:657 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-24 11:25:11:848:355 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-24 11:25:12:847:949 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-24 11:25:13:847:810 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-24 11:25:14:848:18 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 11:25:15:848:21 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 11:25:16:847:921 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:25:17:848:106 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 11:25:27:848:448 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 11:25:27:848:874 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..034742ab --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:26:24:951:536 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 11:26:24:952:245 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-24 11:26:24:952:881 + Q4-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q4 finished at: 2022-4-24 11:26:25:951:484 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-24 11:26:25:952:181 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-24 11:26:25:952:662 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 11:26:25:953:309 + Q8-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q8 finished at: 2022-4-24 11:26:26:951:510 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-24 11:26:26:952:228 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-24 11:26:26:952:763 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 11:26:26:953:173 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-24 11:26:27:951:822 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-24 11:26:27:952:987 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-24 11:26:37:952:86 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-24 11:26:37:952:528 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..35faa887 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:25:31:873:708 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-24 11:25:31:874:347 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:25:32:873:795 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-24 11:25:32:875:273 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:25:32:875:913 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 11:25:32:876:617 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-24 11:25:32:877:190 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 11:25:32:877:904 + Q9-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q9 finished at: 2022-4-24 11:25:33:873:787 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-24 11:25:33:874:640 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-24 11:25:33:875:282 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-24 11:25:33:875:996 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-24 11:25:33:876:600 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 11:25:33:877:278 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-24 11:25:34:874:90 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-24 11:25:34:874:616 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-24 11:25:44:874:516 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-24 11:25:44:874:932 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..673d026e --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:22:32:617:143 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 11:22:32:617:744 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:22:33:617:235 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 11:22:33:617:906 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 11:22:33:618:503 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-24 11:22:34:617:390 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739595745230848, conflictStartTS=432739596007374848, conflictCommitTS=432739596007636992, key={tableID=3236, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-24 11:22:35:318:281 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739595745230848, conflictStartTS=432739596007374848, conflictCommitTS=432739596007636992, key={tableID=3236, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..ac17e33f --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:22:16:592:842 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:22:16:593:416 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:22:17:592:816 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 11:22:17:594:579 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 11:22:17:595:129 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-24 11:22:18:593:47 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:22:18:593:438 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 11:22:28:593:487 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 11:22:28:593:865 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:22:28:594:139 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..d8086cfd --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:13:31:852:807 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:13:31:853:321 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:13:32:852:769 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:13:32:853:306 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 11:13:32:853:812 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q6 finished at: 2022-4-24 11:13:33:853:23 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 11:13:34:852:951 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739453986930688, conflictStartTS=432739454249074688, conflictCommitTS=432739454773362688, key={tableID=3143, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 11:13:36:653:419 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739453986930688, conflictStartTS=432739454249074688, conflictCommitTS=432739454773362688, key={tableID=3143, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..0271eca5 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:13:49:877:176 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:13:49:877:728 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:13:50:877:313 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:13:50:877:952 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 11:13:50:878:519 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:13:50:879:51 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-24 11:13:51:877:477 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739458712076288, conflictStartTS=432739458974220288, conflictCommitTS=432739458974482432, key={tableID=3146, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 11:13:52:678:330 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739458712076288, conflictStartTS=432739458974220288, conflictCommitTS=432739458974482432, key={tableID=3146, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..0e006356 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:14:5:901:962 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:14:5:902:650 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:14:6:901:665 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:14:6:902:250 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 11:14:6:902:700 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-24 11:14:7:901:836 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:14:7:902:417 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739463174815744, conflictStartTS=432739462912671744, conflictCommitTS=432739463437221888, key={tableID=3149, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-24 11:14:9:702:183 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739463174815744, conflictStartTS=432739462912671744, conflictCommitTS=432739463437221888, key={tableID=3149, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_read_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..5c62a40d --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:14:22:926:81 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:14:22:926:650 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:14:23:926:335 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:14:23:926:902 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:14:23:927:396 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-24 11:14:24:926:420 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 11:14:25:926:301 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:14:26:926:134 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 11:14:36:926:835 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:14:36:927:156 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_read_skew2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..ed69890e --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:15:13:0:206 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:15:13:0:868 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:15:14:0:153 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 11:15:14:2:436 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 11:15:14:2:883 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 11:15:15:0:457 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:15:15:1:38 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 11:15:16:0:188 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 11:15:26:0:814 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:15:26:1:121 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..038720a3 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:15:30:25:205 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:15:30:25:804 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:15:31:25:142 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 11:15:31:27:186 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 11:15:31:27:622 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:15:31:27:928 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 11:15:32:25:481 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:15:32:26:77 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 11:15:42:25:874 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:15:42:26:289 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..73687277 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:14:40:951:252 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-24 11:14:40:952:110 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:14:41:951:290 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:14:41:951:819 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:14:41:952:223 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:14:41:952:739 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-24 11:14:42:951:993 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:14:42:952:337 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-24 11:14:52:951:733 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:14:52:952:42 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..ac947a64 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:14:56:974:698 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-24 11:14:56:979:996 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:14:57:974:621 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-24 11:14:57:975:162 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-24 11:14:57:975:577 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:14:57:976:86 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-24 11:14:58:975:179 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:14:58:975:514 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-24 11:15:8:975:538 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:15:8:975:911 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..94c7a788 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:12:57:802:799 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:12:57:803:423 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:12:58:802:824 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:12:58:803:369 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 11:12:58:803:859 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-24 11:12:59:803:28 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 11:13:0:803:145 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:13:1:802:928 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 11:13:11:803:530 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:13:11:803:831 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..65220860 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:13:15:827:696 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:13:15:828:317 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:13:16:827:651 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:13:16:828:276 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 11:13:16:828:809 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:13:16:829:321 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 11:13:17:827:931 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 11:13:17:828:652 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 11:13:27:828:344 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:13:27:828:673 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_mda_step_rat.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..fc8dcc39 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:15:46:51:326 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:15:46:52:139 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:15:47:51:240 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:15:47:51:779 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 11:15:47:52:331 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-24 11:15:48:51:280 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-24 11:15:48:51:832 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-24 11:15:48:52:372 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-24 11:15:49:51:664 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 11:15:49:52:207 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 11:15:50:51:462 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:15:51:51:521 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 11:16:1:52:74 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 11:16:1:52:443 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..f7091ca8 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN OPTIMISTIC;' + Q1 finished at: 2022-4-24 11:16:5:77:44 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-24 11:16:5:77:846 +Q3-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q3 finished at: 2022-4-24 11:16:6:77:105 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-24 11:16:6:79:772 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 11:16:7:77:78 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-24 11:16:7:77:924 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-24 11:16:7:78:585 + Q8-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q8 finished at: 2022-4-24 11:16:8:77:32 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-24 11:16:8:77:670 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-24 11:16:9:77:516 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-24 11:16:10:77:353 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:16:11:77:343 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-24 11:16:12:77:183 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 11:16:22:77:256 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-24 11:16:22:78:696 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-24 11:16:22:79:94 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..8e114ec6 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:16:26:103:57 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:16:26:103:586 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:16:27:103:87 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:16:27:104:182 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-24 11:16:27:105:124 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-24 11:16:28:103:124 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-24 11:16:28:103:693 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-24 11:16:28:104:617 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-24 11:16:29:103:654 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 11:16:29:104:179 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 11:16:30:103:370 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:16:31:103:498 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-24 11:16:41:103:805 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 11:16:41:104:126 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..91fa917e --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:16:45:125:435 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-24 11:16:45:126:9 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:16:46:125:458 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-24 11:16:46:126:88 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-24 11:16:46:127:307 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-24 11:16:47:125:463 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-24 11:16:47:126:13 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-24 11:16:47:126:899 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-24 11:16:48:126:436 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 11:16:48:127:137 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 11:16:49:125:716 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 11:16:50:125:795 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 11:17:0:126:281 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 11:17:0:126:619 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_sda_dirty_read.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..59895b2e --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:10:59:633:870 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:10:59:634:517 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:11:0:633:984 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 11:11:0:634:645 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-24 11:11:1:633:817 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:11:2:633:868 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-24 11:11:12:634:645 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 11:11:12:634:935 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..1a4ffae4 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:11:34:682:724 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:11:34:683:312 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:11:35:682:713 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 11:11:35:684:896 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-24 11:11:36:682:921 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:11:37:682:702 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:11:38:682:937 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-24 11:11:48:683:359 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 11:11:48:683:632 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..c107c77b --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:11:52:706:267 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:11:52:706:876 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:11:53:706:231 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 11:11:53:706:799 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 11:11:53:707:66 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-24 11:11:54:706:426 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:11:54:706:920 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-24 11:12:4:706:786 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 11:12:4:707:91 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..6e6ca217 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:12:40:779:524 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:12:40:780:137 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:12:41:779:514 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 11:12:41:781:320 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-24 11:12:42:779:816 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 11:12:42:780:523 + Q7-T2 execute opt: 'COMMIT'; + Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739440860594176, conflictStartTS=432739440598450176, conflictCommitTS=432739441123000320, key={tableID=3134, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q7 failed at: 2022-4-24 11:12:44:479:987 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739440860594176, conflictStartTS=432739440598450176, conflictCommitTS=432739441123000320, key={tableID=3134, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..18838bff --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:11:16:658:579 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:11:16:659:316 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:11:17:658:535 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 11:11:17:660:379 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-24 11:11:18:658:789 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:11:19:658:759 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:11:20:658:521 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 11:11:30:659:77 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 11:11:30:659:494 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..b2c56d85 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:12:8:729:754 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 11:12:8:730:784 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:12:9:729:746 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-24 11:12:9:731:452 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 11:12:9:731:939 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-24 11:12:10:730:542 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:12:10:730:844 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-24 11:12:20:730:511 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 11:12:20:730:917 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..021ef3b0 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:12:24:754:368 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 11:12:24:759:562 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:12:25:754:398 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-24 11:12:25:757:420 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 11:12:25:757:928 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-24 11:12:26:755:12 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:12:26:755:343 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-24 11:12:36:754:962 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 11:12:36:755:328 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..aafcc45f --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:19:2:319:957 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:19:2:320:572 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:19:3:318:955 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 11:19:3:319:646 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 11:19:3:320:67 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:19:3:320:605 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 11:19:4:319:232 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739540616871936, conflictStartTS=432739540878753792, conflictCommitTS=432739540879278080, key={tableID=3200, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 11:19:5:120:161 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739540616871936, conflictStartTS=432739540878753792, conflictCommitTS=432739540879278080, key={tableID=3200, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..403f8b7f --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,37 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:19:18:343:582 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:19:18:344:179 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:19:19:343:592 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 11:19:19:344:232 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 11:19:19:344:744 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 11:19:20:343:815 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:19:20:344:386 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739545079611392, conflictStartTS=432739544817467392, conflictCommitTS=432739545342017536, key={tableID=3203, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-24 11:19:22:144:228 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739545079611392, conflictStartTS=432739544817467392, conflictCommitTS=432739545342017536, key={tableID=3203, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..c91b9e41 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,37 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:19:35:368:780 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:19:35:369:384 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:19:36:368:668 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 11:19:36:369:269 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 11:19:36:369:734 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 11:19:37:368:904 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 11:19:38:368:944 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739549280468992, conflictStartTS=432739549542612992, conflictCommitTS=432739550066900992, key={tableID=3206, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 11:19:40:169:311 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739549280468992, conflictStartTS=432739549542612992, conflictCommitTS=432739550066900992, key={tableID=3206, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..319ba0e9 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,37 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:19:53:393:602 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:19:53:394:242 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:19:54:393:570 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 11:19:54:394:174 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 11:19:54:394:595 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:19:54:395:136 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 11:19:55:393:861 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739554005614592, conflictStartTS=432739554267758592, conflictCommitTS=432739554268020736, key={tableID=3209, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 11:19:56:194:754 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739554005614592, conflictStartTS=432739554267758592, conflictCommitTS=432739554268020736, key={tableID=3209, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..0fe9ea2c --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:20:9:416:572 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:20:9:417:163 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:20:10:416:578 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 11:20:10:417:188 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:20:10:417:629 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 11:20:11:416:850 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:20:11:417:416 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739558468091904, conflictStartTS=432739558205947904, conflictCommitTS=432739558730498048, key={tableID=3212, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-24 11:20:13:217:233 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739558468091904, conflictStartTS=432739558205947904, conflictCommitTS=432739558730498048, key={tableID=3212, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..c8b8c5c4 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:20:26:442:366 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 11:20:26:442:964 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:20:27:442:392 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 11:20:27:443:654 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 11:20:27:444:77 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 11:20:28:442:633 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 11:20:29:442:722 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739562669211648, conflictStartTS=432739562931355648, conflictCommitTS=432739563455643648, key={tableID=3215, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 11:20:31:243:91 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739562669211648, conflictStartTS=432739562931355648, conflictCommitTS=432739563455643648, key={tableID=3215, handle=1} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..bbe47cb4 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:20:44:467:825 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:20:44:468:497 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:20:45:467:824 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 11:20:45:468:436 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 11:20:45:468:976 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 11:20:46:468:102 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 11:20:46:468:764 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739567656501248, conflictStartTS=432739567394357248, conflictCommitTS=432739567918907392, key={tableID=3218, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-24 11:20:48:268:504 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739567656501248, conflictStartTS=432739567394357248, conflictCommitTS=432739567918907392, key={tableID=3218, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..1c00ffe2 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:21:1:492:333 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:21:1:492:956 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:21:2:492:395 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 11:21:2:494:365 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 11:21:2:494:918 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 11:21:3:492:596 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 11:21:4:492:682 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739571857358848, conflictStartTS=432739572119502848, conflictCommitTS=432739572643790848, key={tableID=3221, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 11:21:6:293:11 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739571857358848, conflictStartTS=432739572119502848, conflictCommitTS=432739572643790848, key={tableID=3221, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..07887eb2 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:21:19:516:327 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:21:19:516:942 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:21:20:516:322 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 11:21:20:516:928 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 11:21:20:517:384 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:21:20:517:943 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 11:21:21:516:632 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739576582242304, conflictStartTS=432739576844386304, conflictCommitTS=432739576844648448, key={tableID=3224, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-24 11:21:22:317:519 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739576582242304, conflictStartTS=432739576844386304, conflictCommitTS=432739576844648448, key={tableID=3224, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..2542cd30 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:21:35:542:866 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:21:35:543:510 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:21:36:542:856 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 11:21:36:543:516 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-24 11:21:36:543:933 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-24 11:21:37:542:883 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-24 11:21:37:544:882 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' + Q8 finished at: 2022-4-24 11:21:37:545:300 +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-24 11:21:38:543:139 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 11:21:38:543:731 + Q11-T2 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; + Q11 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739581045506048, conflictStartTS=432739580783362048, conflictCommitTS=432739581570056192, key={tableID=3227, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q11 failed at: 2022-4-24 11:21:40:643:606 + Q12 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739581307650048, conflictStartTS=432739580783362048, conflictCommitTS=432739581570056192, key={tableID=3227, handle=2} primary=[]byte(nil) [try again later] errcode: HY000 + Q12 failed at: 2022-4-24 11:21:41:743:625 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739581045506048, conflictStartTS=432739580783362048, conflictCommitTS=432739581570056192, key={tableID=3227, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..dc596101 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:21:54:568:576 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:21:54:569:226 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:21:55:568:542 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 11:21:55:569:134 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-24 11:21:56:568:597 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6 finished at: 2022-4-24 11:21:57:568:797 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-24 11:21:58:568:817 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' + Q8 finished at: 2022-4-24 11:21:58:569:277 +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-24 11:21:59:568:849 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 11:22:0:568:898 +Q11-T1 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; +Q11 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739585770913792, conflictStartTS=432739586033057792, conflictCommitTS=432739587343777792, key={tableID=3230, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q11 failed at: 2022-4-24 11:22:2:669:289 + Q12 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739586295201792, conflictStartTS=432739586033057792, conflictCommitTS=432739587343777792, key={tableID=3230, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q12 failed at: 2022-4-24 11:22:3:769:296 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739585770913792, conflictStartTS=432739586033057792, conflictCommitTS=432739587343777792, key={tableID=3230, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..44386a48 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:17:4:150:302 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:17:4:151:85 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:17:5:150:199 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 11:17:5:150:807 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-24 11:17:6:150:231 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:17:7:150:541 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-24 11:17:17:150:898 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-24 11:17:17:165:516 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 11:17:17:165:948 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..52828381 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,32 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:17:21:175:779 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:17:21:176:383 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:17:22:175:780 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 11:17:22:176:387 +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-24 11:17:23:176:37 + Q6-T2 execute opt: 'COMMIT'; + Q6 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739514364723200, conflictStartTS=432739514102579200, conflictCommitTS=432739514626867200, key={tableID=3182, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q6 failed at: 2022-4-24 11:17:24:776:331 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739514364723200, conflictStartTS=432739514102579200, conflictCommitTS=432739514626867200, key={tableID=3182, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_sda_full_write.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..bb56e182 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,34 @@ +#### db_type: tidb #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:17:38:199:891 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:17:38:200:486 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:17:39:199:881 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 11:17:39:200:519 +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-24 11:17:40:200:107 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 11:17:40:200:706 + Q7-T2 execute opt: 'COMMIT'; + Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739518827462656, conflictStartTS=432739518565318656, conflictCommitTS=432739519089868800, key={tableID=3185, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q7 failed at: 2022-4-24 11:17:41:900:488 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739518827462656, conflictStartTS=432739518565318656, conflictCommitTS=432739519089868800, key={tableID=3185, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..dc59e281 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,34 @@ +#### db_type: tidb #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:17:55:223:74 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:17:55:223:669 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:17:56:223:71 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 11:17:56:223:700 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 11:17:56:224:243 +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-24 11:17:57:223:437 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739523027795968, conflictStartTS=432739523289939968, conflictCommitTS=432739523290464256, key={tableID=3188, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-24 11:17:57:924:359 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739523027795968, conflictStartTS=432739523289939968, conflictCommitTS=432739523290464256, key={tableID=3188, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..ca79a5b6 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:18:46:295:257 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 11:18:46:295:862 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:18:47:295:236 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 11:18:47:298:823 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 11:18:47:299:342 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-24 11:18:48:295:445 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739536416276480, conflictStartTS=432739536678420480, conflictCommitTS=432739536679469056, key={tableID=3197, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-24 11:18:48:996:327 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739536416276480, conflictStartTS=432739536678420480, conflictCommitTS=432739536679469056, key={tableID=3197, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..646769d5 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:18:11:246:859 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 11:18:11:247:436 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:18:12:246:863 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 11:18:12:247:599 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-24 11:18:13:247:125 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 11:18:13:247:839 + Q7-T2 execute opt: 'COMMIT'; + Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739527490535424, conflictStartTS=432739527228391424, conflictCommitTS=432739527752941568, key={tableID=3191, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q7 failed at: 2022-4-24 11:18:14:947:485 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739527490535424, conflictStartTS=432739527228391424, conflictCommitTS=432739527752941568, key={tableID=3191, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..07013a34 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-24 11:18:28:270:832 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 11:18:28:271:446 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-24 11:18:29:270:643 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 11:18:29:271:249 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-24 11:18:30:270:844 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 11:18:31:270:946 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739531691130880, conflictStartTS=432739531953274880, conflictCommitTS=432739532477562880, key={tableID=3194, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-24 11:18:32:971:288 + +Test Result: Rollback +[MySQL][ODBC 5.2(w) Driver]Write conflict, txnStartTS=432739531691130880, conflictStartTS=432739531953274880, conflictCommitTS=432739532477562880, key={tableID=3194, handle=0} primary=[]byte(nil) [try again later] + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/result_summary/read-committed_total-result.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..45e2cffc --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/result_summary/repeatable-read_total-result.txt b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..45e2cffc --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_optimistic_single/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..da22c292 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:16:17:364:765 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:16:17:370:175 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:16:18:364:789 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:16:18:366:319 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 10:16:18:367:534 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:16:18:368:298 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 10:16:19:365:623 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:16:19:366:37 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:16:39:365:806 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:16:39:366:189 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..cccdf404 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:16:43:394:9 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:16:43:399:180 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:16:44:393:991 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 10:16:44:396:758 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 10:16:44:398:109 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:16:44:398:916 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 10:16:45:395:135 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:16:45:395:908 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:17:5:394:705 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:17:5:395:97 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_dda_write_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..2b21db71 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:17:9:419:999 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:17:9:425:631 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:17:10:420:28 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 10:17:10:422:841 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 10:17:10:424:95 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 10:17:11:421:16 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:17:11:421:771 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 10:17:12:420:679 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:17:32:420:774 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 10:17:32:421:183 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..5104be5c --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:18:28:502:258 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:18:28:507:777 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:18:29:502:222 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 10:18:29:503:993 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 10:18:29:505:220 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:18:29:505:815 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 10:18:30:503:482 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:18:30:504:171 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:18:50:503:113 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:18:50:503:563 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..fb75517f --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:17:36:447:508 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-24 10:17:36:448:688 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-24 10:17:36:449:279 + Q4-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q4 finished at: 2022-4-24 10:17:37:447:527 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-24 10:17:37:449:581 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-24 10:17:37:450:163 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:17:37:450:873 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:17:38:447:830 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-24 10:17:58:448:687 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-24 10:17:58:449:564 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 10:17:58:449:958 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..7060971f --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:18:2:475:482 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-24 10:18:2:476:834 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:18:3:475:479 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + (2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-24 10:18:3:477:587 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-24 10:18:3:478:393 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:18:3:479:44 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-24 10:18:4:475:991 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:18:4:476:617 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-24 10:18:24:476:153 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:18:24:476:683 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_mda_step_iat.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..6e31afa0 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:18:54:529:466 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-24 10:18:54:534:945 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:18:55:529:505 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 10:18:55:532:162 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 10:18:56:529:505 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 10:18:56:530:840 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-24 10:18:57:530:915 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-24 10:18:58:530:777 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-24 10:18:59:530:634 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 10:19:0:529:903 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 10:19:1:529:856 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 10:19:2:529:912 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 10:19:22:530:479 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 10:19:22:530:893 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..151638a3 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:21:26:665:204 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:21:26:670:880 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:21:27:665:110 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 10:21:27:667:387 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 10:21:27:667:976 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-24 10:21:28:665:164 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-24 10:21:28:666:404 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-24 10:21:28:667:501 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:21:28:668:238 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-24 10:21:29:666:42 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-24 10:21:29:666:477 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-24 10:21:49:666:76 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-24 10:21:49:666:517 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..ef58ff26 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:20:57:637:421 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:20:57:643:212 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:20:58:637:967 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 10:20:58:639:348 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 10:20:59:637:404 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-24 10:20:59:638:848 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:20:59:639:508 + Q8-T4 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-24 10:21:0:637:381 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-24 10:21:0:638:754 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:21:0:639:408 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-24 10:21:1:638:415 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 10:21:1:638:853 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-24 10:21:2:638:474 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-24 10:21:2:638:906 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-24 10:21:22:638:573 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-24 10:21:22:639:10 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..16b55543 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:19:26:557:336 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-24 10:19:26:562:969 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:19:27:557:294 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 10:19:27:559:286 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 10:19:28:557:330 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 10:19:28:558:542 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-24 10:19:29:558:656 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-24 10:19:30:558:422 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-24 10:19:31:558:411 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 10:19:32:557:842 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 10:19:33:557:717 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 10:19:34:557:719 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-24 10:19:54:558:99 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 10:19:54:558:544 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..2b5ccf60 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:19:58:583:316 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-24 10:19:58:588:897 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:19:59:583:256 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-24 10:19:59:585:536 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 10:20:0:583:272 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-24 10:20:0:584:656 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-24 10:20:1:583:880 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-24 10:20:2:583:562 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-24 10:20:3:583:675 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 10:20:4:583:659 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 10:20:5:583:658 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 10:20:6:583:694 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 10:20:26:584:104 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 10:20:26:584:525 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..bf80e742 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(100));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:21:53:692:308 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 10:21:53:697:887 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-24 10:21:53:698:895 + Q4-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q4 finished at: 2022-4-24 10:21:54:692:332 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-24 10:21:54:701:522 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-24 10:21:54:702:667 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:21:54:703:332 + Q8-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-24 10:21:55:692:357 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-24 10:21:55:693:670 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-24 10:21:55:694:619 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 10:21:55:695:72 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-24 10:21:56:693:473 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-24 10:21:56:694:240 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-24 10:22:16:693:163 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-24 10:22:16:693:618 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..fa705587 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:20:30:609:238 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-24 10:20:30:614:864 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:20:31:609:223 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-24 10:20:31:615:49 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 10:20:31:616:238 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 10:20:31:617:377 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-24 10:20:31:618:712 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 10:20:31:619:393 + Q9-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q9 finished at: 2022-4-24 10:20:32:609:309 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-24 10:20:32:610:581 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-24 10:20:32:611:701 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-24 10:20:32:612:769 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-24 10:20:32:614:129 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 10:20:32:614:914 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-24 10:20:33:610:215 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-24 10:20:33:610:779 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-24 10:20:53:610:320 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-24 10:20:53:610:742 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..38c400ef --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:15:51:337:842 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 10:15:51:343:444 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:15:52:337:850 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 10:15:52:340:226 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 10:15:52:340:934 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-24 10:15:53:338:944 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:15:53:339:668 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 10:16:13:338:527 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:16:13:338:951 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..604e8cf8 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:15:25:311:327 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:15:25:316:744 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:15:26:311:263 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 10:15:26:312:758 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 10:15:26:313:372 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-24 10:15:27:312:125 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:15:27:312:572 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 10:15:47:311:974 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:15:47:312:381 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:15:47:312:690 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..d63edf35 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:1:40:516:546 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:1:40:522:135 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:1:41:516:519 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:1:41:518:509 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 10:1:41:519:634 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:1:43:516:742 +Q6 finished at: 2022-4-24 10:1:43:517:818 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:1:44:516:792 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-24 10:2:4:517:312 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:2:4:517:646 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..d9cb4d79 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:2:8:542:719 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:2:8:548:451 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:2:9:542:692 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:2:9:544:984 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 10:2:9:546:39 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:2:9:546:565 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-24 10:2:10:543:823 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:2:10:544:452 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-24 10:2:30:543:454 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:2:30:543:799 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..4677bb21 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:2:34:569:256 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:2:34:575:94 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:2:35:569:201 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:2:35:571:480 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-24 10:2:36:570:299 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:2:36:570:914 + Q5 finished at: 2022-4-24 10:2:36:571:831 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 10:2:37:569:444 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:2:57:569:975 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:2:57:570:275 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_read_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..879f3c08 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:3:1:595:835 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:3:1:601:87 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:3:2:595:844 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:3:2:598:131 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 10:3:2:599:443 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-24 10:3:3:596:639 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:3:4:596:34 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:3:5:595:838 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:3:25:596:603 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:3:25:596:941 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_read_skew2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..6e0205d0 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:4:21:673:549 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:4:21:679:84 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:4:22:673:621 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 10:4:22:675:429 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 10:4:22:676:254 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 10:4:23:674:637 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:4:23:675:183 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 10:4:24:673:570 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:4:44:674:395 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:4:44:674:701 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..49950b2d --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:4:48:702:525 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:4:48:708:119 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:4:49:702:484 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 10:4:49:704:548 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 10:4:49:705:352 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:4:49:705:656 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 10:4:50:703:656 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:4:50:704:181 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:5:10:703:296 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:5:10:703:626 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..bc969d4b --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:3:29:622:348 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-24 10:3:29:627:575 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:3:30:622:395 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:3:30:624:0 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-24 10:3:30:625:578 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:3:30:626:166 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-24 10:3:31:623:102 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:3:31:623:444 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-24 10:3:51:623:118 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:3:51:623:530 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..c84f4b93 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:3:55:647:508 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-24 10:3:55:652:884 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:3:56:647:488 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-24 10:3:56:649:305 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-24 10:3:56:649:963 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:3:56:650:520 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (1,0) (0,0) + (1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-24 10:3:57:648:308 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:3:57:648:720 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-24 10:4:17:648:287 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:4:17:648:652 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..21960d1e --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:0:46:465:64 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:0:46:470:801 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:0:47:465:65 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:0:47:467:934 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 10:0:47:469:143 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-24 10:0:48:466:12 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:0:49:465:241 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:0:50:465:183 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:1:10:465:848 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:1:10:466:183 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..77461df3 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:1:14:491:758 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:1:14:497:495 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:1:15:491:741 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:1:15:494:217 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 10:1:15:495:342 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:1:15:495:834 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 10:1:16:492:586 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:1:16:493:80 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:1:36:492:446 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:1:36:492:760 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_mda_step_rat.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..97d13d3c --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:5:14:729:318 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:5:14:734:997 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:5:15:729:326 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:5:15:731:542 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 10:5:15:732:785 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-24 10:5:16:729:310 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-24 10:5:16:730:849 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-24 10:5:16:732:56 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-24 10:5:17:730:284 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 10:5:17:730:801 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 10:5:18:729:580 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 10:5:19:729:620 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 10:5:39:730:387 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 10:5:39:730:758 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..d6b38845 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN PESSIMISTIC;' + Q1 finished at: 2022-4-24 10:5:43:756:151 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-24 10:5:43:762:50 +Q3-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q3 finished at: 2022-4-24 10:5:44:756:118 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-24 10:5:44:758:240 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 10:5:45:756:83 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-24 10:5:45:757:504 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-24 10:5:45:758:533 + Q8-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-24 10:5:46:756:181 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-24 10:5:46:757:748 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-24 10:5:47:757:250 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-24 10:5:48:756:390 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 10:5:49:756:512 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-24 10:5:50:756:446 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 10:6:10:756:253 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-24 10:6:10:757:619 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-24 10:6:10:757:936 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..ced50e09 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:6:14:783:948 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:6:14:789:683 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:6:15:783:898 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:6:15:786:479 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-24 10:6:15:787:898 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-24 10:6:16:783:906 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-24 10:6:16:785:292 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-24 10:6:16:786:812 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-24 10:6:17:785:177 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 10:6:17:785:730 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 10:6:18:784:263 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 10:6:19:784:201 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-24 10:6:39:784:710 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 10:6:39:785:95 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..f37b4b63 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:6:43:807:789 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-24 10:6:43:808:803 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:6:44:807:786 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-24 10:6:44:809:428 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-24 10:6:44:810:983 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-24 10:6:45:807:848 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-24 10:6:45:808:644 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-24 10:6:45:810:265 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-24 10:6:46:808:675 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 10:6:46:809:189 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 10:6:47:808:87 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 10:6:48:808:92 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 10:7:8:808:724 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 10:7:8:809:375 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_sda_dirty_read.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..ed7329bd --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 9:57:38:289:52 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 9:57:38:294:725 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 9:57:39:289:158 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 9:57:39:291:608 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-24 9:57:40:289:42 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 9:57:41:289:32 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-24 9:58:1:289:886 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 9:58:1:290:277 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..3e508b88 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 9:58:33:339:113 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 9:58:33:344:828 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 9:58:34:339:49 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 9:58:34:340:729 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-24 9:58:35:340:201 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 9:58:36:339:0 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 9:58:37:339:553 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-24 9:58:57:339:706 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 9:58:57:340:67 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..adc2bb96 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 9:59:1:364:650 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 9:59:1:370:192 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 9:59:2:364:662 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 9:59:2:366:717 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 9:59:2:367:4 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-24 9:59:3:365:780 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 9:59:3:366:379 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-24 9:59:23:365:302 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 9:59:23:365:620 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..15a99833 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:0:19:438:961 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:0:19:444:742 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:0:20:438:760 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-24 10:0:21:439:614 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 10:0:21:440:110 + Q4 finished at: 2022-4-24 10:0:21:441:98 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:0:22:439:34 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 10:0:42:439:479 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:0:42:439:780 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..6d2b2eb0 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 9:58:5:313:583 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 9:58:5:318:960 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 9:58:6:313:620 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 9:58:6:319:152 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-24 9:58:7:314:358 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 9:58:8:313:770 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 9:58:9:313:598 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 9:58:29:314:240 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 9:58:29:314:560 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..714cd9cc --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 9:59:27:390:231 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 9:59:27:395:552 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 9:59:28:390:264 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-24 9:59:28:392:226 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 9:59:28:392:845 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-24 9:59:29:390:818 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 9:59:29:391:122 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-24 9:59:49:390:935 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 9:59:49:391:251 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..4ee2c070 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 9:59:53:413:448 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 9:59:53:418:652 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 9:59:54:413:388 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-24 9:59:54:415:66 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 9:59:54:415:606 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-24 9:59:55:414:110 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 9:59:55:414:521 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-24 10:0:15:414:105 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:0:15:414:418 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..78eb17ba --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:10:21:18:961 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:10:21:24:750 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:10:22:18:937 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 10:10:22:21:193 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 10:10:23:19:731 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:10:23:20:289 + Q5 finished at: 2022-4-24 10:10:23:21:114 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:10:23:21:713 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:10:43:19:991 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:10:43:20:383 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..caf7c651 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:10:47:46:564 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:10:47:52:128 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:10:48:46:615 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 10:10:48:49:942 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-24 10:10:49:48:617 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-24 10:10:49:648:273 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..78a445eb --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,33 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:11:14:73:283 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:11:14:78:887 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:11:15:73:332 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 10:11:15:74:895 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-24 10:11:16:75:303 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-24 10:11:16:674:939 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..cae40a23 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:11:42:99:696 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:11:42:105:316 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:11:43:99:724 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 10:11:43:101:215 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-24 10:11:44:101:668 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:11:44:102:497 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-24 10:11:44:801:180 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..e55caa92 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:12:8:124:862 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:12:8:130:167 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:12:9:124:864 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 10:12:9:126:383 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 10:12:9:127:762 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 10:12:11:125:198 +Q6 finished at: 2022-4-24 10:12:11:126:181 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:12:11:126:813 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:12:31:125:832 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:12:31:126:196 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..892560b4 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:12:35:151:889 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 10:12:35:157:374 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:12:36:151:842 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 10:12:36:153:786 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 10:12:36:155:122 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:12:38:152:194 +Q6 finished at: 2022-4-24 10:12:38:153:154 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:12:39:152:206 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:12:59:152:636 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:12:59:153:19 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..085f5d22 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:13:3:178:956 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:13:3:184:591 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:13:4:178:973 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 10:13:4:181:909 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 10:13:5:180:347 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:13:5:181:62 + Q5 finished at: 2022-4-24 10:13:5:181:862 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 10:13:6:179:283 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:13:26:179:786 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:13:26:180:161 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..62754fef --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:13:30:204:116 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:13:30:209:980 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:13:31:204:162 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 10:13:31:205:840 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 10:13:32:205:369 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:13:34:204:526 + Q5 finished at: 2022-4-24 10:13:34:205:534 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:13:34:206:160 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:13:54:205:35 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:13:54:205:430 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..37b24c67 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:13:58:231:571 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:13:58:237:228 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:13:59:231:524 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 10:13:59:232:600 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 10:14:0:234:99 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 10:14:0:235:73 + Q5 finished at: 2022-4-24 10:14:0:236:173 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:14:0:236:949 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 10:14:20:232:354 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 10:14:20:232:832 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..7a30f6e1 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,40 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:14:24:258:768 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:14:24:264:527 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:14:25:258:750 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 10:14:25:262:660 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-24 10:14:26:258:735 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-24 10:14:26:260:120 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-24 10:14:27:260:956 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-24 10:14:28:160:545 + Q8 finished at: 2022-4-24 10:14:28:162:406 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..45bb5e6f --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,40 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:14:53:285:356 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:14:53:291:185 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:14:54:285:355 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 10:14:54:286:872 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 10:14:55:285:395 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-24 10:14:57:286:488 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-24 10:14:58:287:680 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-24 10:14:59:187:189 + Q8 finished at: 2022-4-24 10:14:59:286:606 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..e596e2aa --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:7:12:834:23 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:7:12:839:645 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:7:13:833:973 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-24 10:7:14:834:79 + Q4 finished at: 2022-4-24 10:7:14:835:113 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:7:15:834:347 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-24 10:7:35:834:719 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-24 10:7:35:849:543 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:7:35:850:23 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..94f5fd52 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:7:39:860:116 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:7:39:865:918 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:7:40:860:51 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-24 10:7:41:860:267 + Q4 finished at: 2022-4-24 10:7:41:861:235 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:7:42:860:430 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-24 10:8:2:860:762 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-24 10:8:2:875:762 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:8:2:876:217 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_sda_full_write.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..a050c061 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:8:6:886:557 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:8:6:892:215 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:8:7:886:489 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-24 10:8:8:887:733 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 10:8:8:888:580 + Q4 finished at: 2022-4-24 10:8:8:889:460 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:8:9:886:834 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-24 10:8:29:887:303 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:8:29:887:740 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..8822a2c6 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:8:33:913:8 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:8:33:920:224 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:8:34:912:768 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-24 10:8:35:913:950 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:8:35:914:642 + Q4 finished at: 2022-4-24 10:8:35:915:508 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 10:8:35:916:115 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-24 10:8:55:913:432 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:8:55:913:760 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..cc32f26b --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:9:54:990:294 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 10:9:54:995:989 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:9:55:990:205 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-24 10:9:56:991:130 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:9:56:991:685 + Q4 finished at: 2022-4-24 10:9:56:992:584 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 10:9:56:993:164 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 10:10:16:993:596 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:10:16:994:51 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..cb97349e --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:8:59:938:544 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 10:8:59:944:157 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:9:0:938:542 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 10:9:0:940:583 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 10:9:2:938:863 +Q5 finished at: 2022-4-24 10:9:2:939:825 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 10:9:2:940:413 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 10:9:22:938:995 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:9:22:939:336 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..a0000a13 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 10:9:26:964:197 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 10:9:26:969:658 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 10:9:27:964:218 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 10:9:27:966:724 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 10:9:29:964:531 +Q5 finished at: 2022-4-24 10:9:29:965:482 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 10:9:30:964:576 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 10:9:50:964:990 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 10:9:50:965:462 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..72427cd6 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:19:6:854:702 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 1:19:6:860:165 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:19:7:854:659 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 1:19:7:856:584 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 1:19:7:857:843 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 1:19:7:858:731 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 1:19:8:855:530 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 1:19:8:855:978 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 1:19:28:855:246 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 1:19:28:855:676 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..53df58a8 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:19:32:881:84 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 1:19:32:886:510 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:19:33:881:157 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 1:19:33:883:326 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 1:19:33:884:754 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 1:19:33:885:539 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 1:19:34:882:176 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 1:19:34:882:838 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 1:19:54:881:943 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 1:19:54:882:448 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_dda_write_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..fbcf7e54 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:19:58:906:479 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 1:19:58:911:735 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:19:59:906:547 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 1:19:59:908:593 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 1:19:59:909:805 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 1:20:0:907:646 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 1:20:0:908:275 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 1:20:1:906:750 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 1:20:21:907:316 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 1:20:21:907:698 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..a7ee55f1 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:21:17:988:790 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 1:21:17:994:171 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:21:18:988:793 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 1:21:18:989:926 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 1:21:18:991:145 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 1:21:18:991:805 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 1:21:19:989:720 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 1:21:19:990:377 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 1:21:39:989:592 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 1:21:39:990:0 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..15c4d111 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:20:25:934:498 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-24 1:20:25:935:455 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-24 1:20:25:936:37 + Q4-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q4 finished at: 2022-4-24 1:20:26:934:577 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-24 1:20:26:936:554 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-24 1:20:26:937:311 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 1:20:26:937:999 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 1:20:27:934:850 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-24 1:20:47:935:442 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-24 1:20:47:936:456 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 1:20:47:936:969 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..7a5e2671 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:20:51:962:220 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-24 1:20:51:963:639 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:20:52:962:285 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + (2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-24 1:20:52:964:527 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-24 1:20:52:965:349 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 1:20:52:965:915 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-24 1:20:53:962:741 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 1:20:53:963:357 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-24 1:21:13:962:832 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 1:21:13:963:232 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_mda_step_iat.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..90366d80 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:21:44:14:372 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-24 1:21:44:19:801 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:21:45:14:384 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 1:21:45:16:254 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 1:21:46:14:425 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 1:21:46:15:774 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-24 1:21:47:15:346 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-24 1:21:48:15:610 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-24 1:21:49:15:598 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 1:21:50:14:758 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 1:21:51:14:780 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 1:21:52:14:779 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 1:22:12:15:406 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 1:22:12:15:859 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..9c110b88 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:24:16:148:996 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 1:24:16:154:583 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:24:17:148:972 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 1:24:17:157:319 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 1:24:17:158:55 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-24 1:24:18:149:36 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-24 1:24:18:150:437 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-24 1:24:18:151:742 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 1:24:18:152:492 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-24 1:24:19:149:954 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-24 1:24:19:150:481 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-24 1:24:39:149:841 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-24 1:24:39:150:264 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..4b439c23 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:23:47:121:244 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 1:23:47:127:13 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:23:48:121:256 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 1:23:48:123:198 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 1:23:49:121:300 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-24 1:23:49:122:998 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 1:23:49:123:756 + Q8-T4 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-24 1:23:50:121:178 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-24 1:23:50:122:728 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 1:23:50:123:348 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-24 1:23:51:122:338 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 1:23:51:122:783 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-24 1:23:52:122:372 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-24 1:23:52:122:824 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-24 1:24:12:122:497 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-24 1:24:12:123:11 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..23950cc3 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:22:16:42:206 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-24 1:22:16:47:694 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:22:17:42:266 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 1:22:17:44:515 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 1:22:18:42:217 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 1:22:18:43:489 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-24 1:22:19:43:341 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-24 1:22:20:43:179 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-24 1:22:21:43:343 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 1:22:22:42:567 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 1:22:23:42:511 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 1:22:24:42:654 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-24 1:22:44:43:26 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 1:22:44:43:428 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..94a22b81 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:22:48:68:639 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-24 1:22:48:74:143 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:22:49:68:706 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-24 1:22:49:70:780 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 1:22:50:68:609 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-24 1:22:50:69:814 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-24 1:22:51:69:305 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-24 1:22:52:68:983 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-24 1:22:53:69:37 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 1:22:54:69:34 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 1:22:55:69:82 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 1:22:56:69:80 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 1:23:16:69:564 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 1:23:16:70:7 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..d6b5de48 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(100));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:24:43:175:952 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 1:24:43:181:560 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-24 1:24:43:182:733 + Q4-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q4 finished at: 2022-4-24 1:24:44:175:896 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-24 1:24:44:177:843 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-24 1:24:44:179:80 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 1:24:44:179:846 + Q8-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-24 1:24:45:175:884 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-24 1:24:45:177:235 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-24 1:24:45:178:369 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 1:24:45:178:817 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-24 1:24:46:177:73 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-24 1:24:46:177:842 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-24 1:25:6:176:756 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-24 1:25:6:177:171 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..82008fcf --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:23:20:96:863 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-24 1:23:20:102:378 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:23:21:97:161 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-24 1:23:21:98:394 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 1:23:21:99:581 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 1:23:21:100:657 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-24 1:23:21:101:876 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 1:23:21:102:609 + Q9-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q9 finished at: 2022-4-24 1:23:22:96:901 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-24 1:23:22:98:136 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-24 1:23:22:99:186 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-24 1:23:22:100:261 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-24 1:23:22:101:533 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 1:23:22:102:367 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-24 1:23:23:97:865 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-24 1:23:23:98:368 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-24 1:23:43:97:892 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-24 1:23:43:98:359 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..1b281760 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:18:40:827:983 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 1:18:40:833:191 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:18:41:828:61 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 1:18:41:830:359 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 1:18:41:831:54 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-24 1:18:42:829:199 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 1:18:42:829:952 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 1:19:2:828:613 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 1:19:2:829:7 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..687f1997 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:18:14:801:702 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 1:18:14:807:136 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:18:15:801:714 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 1:18:15:803:200 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 1:18:15:803:890 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-24 1:18:16:803:18 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 1:18:16:803:404 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 1:18:36:802:438 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 1:18:36:802:852 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 1:18:36:803:115 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..3c2a556e --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:4:30:13:342 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:4:30:19:112 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:4:31:13:311 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 1:4:31:15:550 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 1:4:31:16:721 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 1:4:33:13:530 +Q6 finished at: 2022-4-24 1:4:33:14:453 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 1:4:34:13:570 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-24 1:4:54:14:10 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 1:4:54:14:314 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..1d21c438 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:4:58:40:13 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:4:58:45:924 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:4:59:39:856 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 1:4:59:42:987 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 1:4:59:44:79 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 1:4:59:44:628 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-24 1:5:0:40:980 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 1:5:0:41:618 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-24 1:5:20:40:554 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 1:5:20:40:885 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..1c9cdaa9 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:5:24:66:193 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:5:24:71:824 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:5:25:66:236 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 1:5:25:68:300 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-24 1:5:26:67:15 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 1:5:26:67:627 + Q5 finished at: 2022-4-24 1:5:26:68:487 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 1:5:27:66:534 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 1:5:47:67:7 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 1:5:47:67:416 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_read_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..043a4a15 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:5:51:93:98 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 1:5:51:98:495 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:5:52:93:60 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 1:5:52:97:626 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 1:5:52:98:973 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-24 1:5:53:93:828 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 1:5:54:93:249 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 1:5:55:93:114 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 1:6:15:93:849 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 1:6:15:94:203 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_read_skew2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..3c7179db --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:7:11:171:436 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:7:11:177:148 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:7:12:171:448 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 1:7:12:173:610 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 1:7:12:174:452 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 1:7:13:172:670 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 1:7:13:173:271 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 1:7:14:171:485 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 1:7:34:172:277 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 1:7:34:172:639 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..1a84cfac --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:7:38:198:354 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:7:38:204:58 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:7:39:198:351 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 1:7:39:200:288 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 1:7:39:201:115 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 1:7:39:201:460 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 1:7:40:199:508 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 1:7:40:200:150 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 1:8:0:199:81 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 1:8:0:199:420 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..3bc7fc82 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:6:19:119:849 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-24 1:6:19:125:264 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:6:20:119:792 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-24 1:6:20:121:177 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-24 1:6:20:122:367 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 1:6:20:123:8 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-24 1:6:21:120:434 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 1:6:21:120:783 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-24 1:6:41:120:409 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 1:6:41:120:768 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..9d6ed583 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:6:45:144:897 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-24 1:6:45:150:279 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:6:46:144:841 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-24 1:6:46:146:514 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-24 1:6:46:147:95 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 1:6:46:147:591 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-24 1:6:47:145:620 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 1:6:47:145:972 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-24 1:7:7:145:687 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 1:7:7:146:6 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..1fd91e2d --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:3:35:956:885 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:3:35:962:563 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:3:36:956:836 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 1:3:36:958:768 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 1:3:36:959:795 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-24 1:3:37:957:436 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 1:3:38:957:58 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 1:3:39:956:984 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 1:3:59:957:579 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 1:3:59:957:901 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..b66f9449 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:4:3:987:262 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:4:3:992:966 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:4:4:987:218 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 1:4:4:989:255 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 1:4:4:990:222 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 1:4:4:990:767 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 1:4:5:988:77 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 1:4:5:988:624 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 1:4:25:987:883 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 1:4:25:988:201 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_mda_step_rat.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..33012019 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:8:4:224:336 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:8:4:229:978 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:8:5:224:326 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 1:8:5:226:668 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 1:8:5:227:813 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-24 1:8:6:224:334 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-24 1:8:6:225:834 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-24 1:8:6:226:979 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-24 1:8:7:225:323 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 1:8:7:225:864 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 1:8:8:224:757 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 1:8:9:224:640 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 1:8:29:225:386 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 1:8:29:225:759 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..d1b3d0b3 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN PESSIMISTIC;' + Q1 finished at: 2022-4-24 1:8:33:251:234 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-24 1:8:33:256:839 +Q3-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q3 finished at: 2022-4-24 1:8:34:251:254 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-24 1:8:34:253:931 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 1:8:35:251:251 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-24 1:8:35:252:723 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-24 1:8:35:253:765 + Q8-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-24 1:8:36:251:286 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-24 1:8:36:252:810 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-24 1:8:37:252:386 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-24 1:8:38:251:507 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 1:8:39:251:572 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-24 1:8:40:251:442 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 1:9:0:251:432 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-24 1:9:0:252:811 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-24 1:9:0:253:127 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..1b2dfdba --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:9:4:279:639 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:9:4:285:306 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:9:5:279:632 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-24 1:9:5:281:519 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-24 1:9:5:283:56 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-24 1:9:6:279:622 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-24 1:9:6:280:957 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-24 1:9:6:282:450 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-24 1:9:7:280:898 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 1:9:7:281:437 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 1:9:8:279:867 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 1:9:9:279:917 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-24 1:9:29:280:470 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 1:9:29:280:851 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..5a1469c5 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:9:33:302:533 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-24 1:9:33:303:460 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:9:34:302:666 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-24 1:9:34:304:341 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-24 1:9:34:306:205 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-24 1:9:35:302:525 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-24 1:9:35:303:203 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-24 1:9:35:304:611 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-24 1:9:36:303:676 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 1:9:36:304:229 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 1:9:37:302:791 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 1:9:38:302:920 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 1:9:58:303:559 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 1:9:58:303:917 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_sda_dirty_read.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..0760b7ac --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:0:27:781:816 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:0:27:787:644 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:0:28:781:836 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 1:0:28:783:70 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-24 1:0:29:781:713 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 1:0:30:781:674 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-24 1:0:50:782:546 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 1:0:50:782:845 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..db3fc6b8 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:1:22:830:901 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:1:22:836:184 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:1:23:830:952 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 1:1:23:832:685 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-24 1:1:24:832:238 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 1:1:25:830:821 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 1:1:26:831:218 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-24 1:1:46:831:398 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 1:1:46:831:690 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..e9fd1f5d --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:1:50:856:308 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:1:50:861:921 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:1:51:856:360 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 1:1:51:858:260 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 1:1:51:858:678 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-24 1:1:52:857:517 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 1:1:52:858:66 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-24 1:2:12:857:1 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 1:2:12:857:309 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..7fbd8632 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:3:8:930:487 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:3:8:936:147 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:3:9:930:483 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-24 1:3:10:931:132 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 1:3:10:931:656 + Q4 finished at: 2022-4-24 1:3:10:932:593 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 1:3:11:930:763 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 1:3:31:930:965 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 1:3:31:931:265 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..853d5fe5 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:0:54:806:140 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 1:0:54:811:704 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:0:55:806:165 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 1:0:55:807:982 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-24 1:0:56:806:831 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 1:0:57:806:336 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 1:0:58:806:19 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 1:1:18:806:789 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 1:1:18:807:106 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..5d4a94fe --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:2:16:883:192 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 1:2:16:888:221 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:2:17:882:95 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-24 1:2:17:883:471 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 1:2:17:883:996 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-24 1:2:18:882:829 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 1:2:18:883:240 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-24 1:2:38:882:764 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 1:2:38:883:163 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..3dc03d8b --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:2:42:905:751 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 1:2:42:910:973 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:2:43:905:732 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-24 1:2:43:907:534 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 1:2:43:908:77 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-24 1:2:44:906:388 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 1:2:44:906:768 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-24 1:3:4:906:294 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 1:3:4:906:695 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..af9d2081 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:13:10:513:221 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:13:10:518:905 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:13:11:513:238 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 1:13:11:515:237 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 1:13:12:514:3 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 1:13:12:514:562 + Q5 finished at: 2022-4-24 1:13:12:515:450 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 1:13:12:516:74 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 1:13:32:513:997 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 1:13:32:514:361 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..1c61f124 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:13:36:539:844 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:13:36:545:512 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:13:37:539:821 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 1:13:37:541:770 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-24 1:13:38:542:25 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-24 1:13:39:141:524 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..6048c9bd --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,33 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:14:3:565:928 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:14:3:571:582 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:14:4:565:926 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 1:14:4:567:466 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-24 1:14:5:568:65 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-24 1:14:6:167:551 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..e9b47ab9 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:14:31:591:970 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:14:31:597:768 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:14:32:591:872 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 1:14:32:593:241 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-24 1:14:33:593:808 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 1:14:33:594:655 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-24 1:14:34:293:487 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..ca5f51d4 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:14:57:616:575 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 1:14:57:622:129 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:14:58:616:550 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 1:14:58:618:34 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 1:14:58:619:178 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 1:15:0:616:912 +Q6 finished at: 2022-4-24 1:15:0:617:875 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 1:15:0:618:465 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 1:15:20:617:363 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 1:15:20:617:739 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..a64f0bb2 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:15:24:643:645 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 1:15:24:649:212 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:15:25:643:548 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 1:15:25:645:696 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 1:15:25:646:959 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 1:15:27:643:887 +Q6 finished at: 2022-4-24 1:15:27:644:793 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 1:15:28:643:954 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 1:15:48:644:844 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 1:15:48:645:303 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..b26e1c56 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:15:52:670:983 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:15:52:676:615 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:15:53:671:21 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 1:15:53:672:803 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 1:15:54:672:99 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 1:15:54:672:814 + Q5 finished at: 2022-4-24 1:15:54:673:610 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 1:15:55:671:383 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 1:16:15:671:757 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 1:16:15:672:207 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..c941d7a7 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:16:19:697:787 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:16:19:703:507 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:16:20:697:697 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 1:16:20:698:903 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 1:16:21:698:739 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 1:16:23:698:32 + Q5 finished at: 2022-4-24 1:16:23:698:961 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 1:16:23:699:573 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 1:16:43:698:539 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 1:16:43:698:965 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..99286983 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:16:47:723:563 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:16:47:729:240 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:16:48:723:598 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 1:16:48:725:445 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 1:16:49:724:619 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 1:16:49:725:273 + Q5 finished at: 2022-4-24 1:16:49:726:203 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 1:16:49:726:833 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 1:17:9:724:403 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 1:17:9:724:815 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..ec8288bc --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,40 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:17:13:750:833 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:17:13:756:605 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:17:14:750:840 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 1:17:14:753:835 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-24 1:17:15:750:818 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-24 1:17:15:752:321 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-24 1:17:16:752:979 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-24 1:17:17:652:569 + Q8 finished at: 2022-4-24 1:17:17:654:512 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..488aa752 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,40 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:17:42:777:749 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:17:42:783:376 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:17:43:777:729 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 1:17:43:779:127 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 1:17:44:777:759 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-24 1:17:46:779:65 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-24 1:17:47:779:419 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-24 1:17:48:679:507 + Q8 finished at: 2022-4-24 1:17:48:779:55 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..4d6360e1 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:10:2:328:872 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:10:2:334:575 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:10:3:328:851 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-24 1:10:4:328:898 + Q4 finished at: 2022-4-24 1:10:4:329:978 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 1:10:5:329:359 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-24 1:10:25:329:513 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-24 1:10:25:344:442 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 1:10:25:344:957 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..1678c620 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:10:29:355:248 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:10:29:360:974 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:10:30:355:261 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-24 1:10:31:355:459 + Q4 finished at: 2022-4-24 1:10:31:356:578 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 1:10:32:355:577 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-24 1:10:52:356:33 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-24 1:10:52:371:109 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 1:10:52:371:588 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_sda_full_write.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..dad24579 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:10:56:382:48 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:10:56:387:592 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:10:57:382:111 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-24 1:10:58:383:284 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 1:10:58:383:989 + Q4 finished at: 2022-4-24 1:10:58:384:768 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 1:10:59:382:353 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-24 1:11:19:382:768 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 1:11:19:383:128 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..fc74fdec --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:11:23:406:604 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:11:23:411:972 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:11:24:406:593 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-24 1:11:25:407:821 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 1:11:25:408:493 + Q4 finished at: 2022-4-24 1:11:25:409:317 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 1:11:25:409:838 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-24 1:11:45:407:234 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 1:11:45:407:575 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..b1a450da --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:12:44:486:941 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 1:12:44:492:940 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:12:45:486:863 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-24 1:12:46:487:861 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 1:12:46:488:445 + Q4 finished at: 2022-4-24 1:12:46:489:239 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 1:12:46:489:785 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 1:13:6:487:497 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 1:13:6:487:870 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..5d184529 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:11:49:431:580 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 1:11:49:437:49 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:11:50:431:582 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 1:11:50:433:514 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 1:11:52:431:871 +Q5 finished at: 2022-4-24 1:11:52:432:914 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 1:11:52:433:445 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 1:12:12:432:266 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 1:12:12:432:661 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..2856e08d --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT, v INT) PARTITION BY RANGE(v) (PARTITION p0 VALUES LESS THAN(2), PARTITION p1 VALUES LESS THAN(4));' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 1:12:16:456:6 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 1:12:16:461:463 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 1:12:17:455:971 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 1:12:17:458:256 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 1:12:19:456:325 +Q5 finished at: 2022-4-24 1:12:19:457:280 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 1:12:20:456:276 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 1:12:40:456:809 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 1:12:40:457:244 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/result_summary/read-committed_total-result.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..38745346 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/result_summary/repeatable-read_total-result.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..42d5fc7b --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_dist/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..36f98120 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:9:32:864:927 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 0:9:32:865:661 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:9:33:864:942 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 0:9:33:866:442 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 0:9:33:866:996 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:9:33:867:552 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 0:9:34:865:52 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:9:34:865:426 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:9:54:865:514 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:9:54:865:904 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..8bf3295b --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:9:58:890:590 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 0:9:58:891:234 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:9:59:890:484 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 0:9:59:893:563 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 0:9:59:894:69 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:9:59:894:614 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 0:10:0:890:847 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:10:0:891:445 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:10:20:891:95 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:10:20:891:496 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_dda_write_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..2497c6b7 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:10:24:914:745 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 0:10:24:915:476 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:10:25:914:653 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 0:10:25:916:377 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 0:10:25:916:962 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 0:10:26:915:14 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:10:26:915:697 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 0:10:27:915:62 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:10:47:915:325 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 0:10:47:915:730 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..3af21b8d --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:11:43:980:821 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 0:11:43:981:422 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:11:44:980:866 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 0:11:44:984:732 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 0:11:44:985:295 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:11:44:985:913 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 0:11:45:981:187 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:11:45:981:788 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:12:5:981:454 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:12:5:981:855 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..8a687096 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL PRIMARY KEY);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:10:51:927:440 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-24 0:10:51:928:684 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-24 0:10:51:929:232 + Q4-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q4 finished at: 2022-4-24 0:10:52:927:337 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-24 0:10:52:929:653 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-24 0:10:52:930:198 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 0:10:52:930:850 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:10:53:927:713 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-24 0:11:13:928:150 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-24 0:11:13:929:171 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 0:11:13:929:581 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..b7385115 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:11:17:955:259 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-24 0:11:17:956:668 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:11:18:955:242 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + (2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-24 0:11:18:956:622 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-24 0:11:18:957:422 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:11:18:958:10 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-24 0:11:19:955:694 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:11:19:956:246 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-24 0:11:39:955:855 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:11:39:956:283 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_mda_step_iat.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..df7e1216 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:12:10:6:598 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-24 0:12:10:7:263 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:12:11:6:570 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 0:12:11:8:717 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 0:12:12:6:598 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 0:12:12:7:264 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-24 0:12:13:6:924 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-24 0:12:14:6:916 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-24 0:12:15:7:1 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 0:12:16:6:961 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 0:12:17:6:937 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 0:12:18:6:971 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 0:12:38:7:270 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 0:12:38:7:667 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..9c75e855 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:14:42:135:76 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 0:14:42:135:914 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:14:43:134:907 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 0:14:43:140:534 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 0:14:43:141:122 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-24 0:14:44:134:872 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-24 0:14:44:135:759 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-24 0:14:44:136:449 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:14:44:137:178 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-24 0:14:45:135:299 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-24 0:14:45:135:858 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-24 0:15:5:135:666 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-24 0:15:5:136:110 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..a9f522aa --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:14:13:107:654 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 0:14:13:108:430 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:14:14:107:588 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 0:14:14:109:733 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 0:14:15:107:610 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-24 0:14:15:108:290 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 0:14:15:108:898 + Q8-T4 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-24 0:14:16:107:733 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-24 0:14:16:108:646 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:14:16:109:287 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-24 0:14:17:108:90 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 0:14:17:108:612 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-24 0:14:18:108:131 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-24 0:14:18:108:594 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-24 0:14:38:108:860 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-24 0:14:38:109:409 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..91d66bba --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:12:42:31:861 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-24 0:12:42:32:549 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:12:43:31:948 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 0:12:43:33:731 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 0:12:44:31:819 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 0:12:44:32:452 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-24 0:12:45:32:246 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-24 0:12:46:32:231 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-24 0:12:47:32:118 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 0:12:48:32:258 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 0:12:49:32:286 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 0:12:50:32:254 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-24 0:13:10:32:644 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 0:13:10:33:82 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..661a3583 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:13:14:55:961 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-24 0:13:14:56:852 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:13:15:55:946 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-24 0:13:15:57:941 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 0:13:16:55:995 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-24 0:13:16:56:662 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-24 0:13:17:56:226 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-24 0:13:18:56:286 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-24 0:13:19:56:343 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 0:13:20:56:302 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 0:13:21:56:446 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 0:13:22:56:410 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 0:13:42:56:774 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 0:13:42:57:205 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..e4759de8 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:15:9:160:788 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 0:15:9:161:494 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-24 0:15:9:162:72 + Q4-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q4 finished at: 2022-4-24 0:15:10:160:748 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-24 0:15:10:162:451 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-24 0:15:10:163:146 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 0:15:10:163:860 + Q8-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-24 0:15:11:160:853 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-24 0:15:11:161:732 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-24 0:15:11:162:455 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 0:15:11:162:982 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-24 0:15:12:161:160 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-24 0:15:12:161:868 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-24 0:15:32:161:412 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-24 0:15:32:161:849 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..765a1cfb --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:13:46:82:757 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-24 0:13:46:83:452 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:13:47:82:687 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-24 0:13:47:84:711 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 0:13:47:85:270 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 0:13:47:85:938 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-24 0:13:47:86:513 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 0:13:47:87:70 + Q9-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q9 finished at: 2022-4-24 0:13:48:82:699 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-24 0:13:48:83:410 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-24 0:13:48:83:995 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-24 0:13:48:84:563 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-24 0:13:48:85:84 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 0:13:48:85:631 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-24 0:13:49:83:128 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-24 0:13:49:83:618 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-24 0:14:9:83:695 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-24 0:14:9:84:159 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..3c2dbd98 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:9:6:839:913 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 0:9:6:840:633 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:9:7:839:815 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 0:9:7:841:133 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 0:9:7:841:697 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-24 0:9:8:840:215 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:9:8:840:816 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 0:9:28:840:193 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:9:28:840:604 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..407945ca --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:8:40:815:145 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 0:8:40:815:638 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:8:41:815:226 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 0:8:41:815:944 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 0:8:41:816:565 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-24 0:8:42:815:423 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:8:42:815:817 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 0:9:2:815:721 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:9:2:816:92 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:9:2:816:352 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..18ad308c --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-23 23:54:56:66:721 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 23:54:56:67:501 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-23 23:54:57:66:659 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 23:54:57:68:185 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-23 23:54:57:68:746 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 23:54:59:66:900 +Q6 finished at: 2022-4-23 23:54:59:67:252 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 23:55:0:66:917 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-23 23:55:20:67:224 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 23:55:20:67:558 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..5a70235d --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-23 23:55:24:91:489 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 23:55:24:92:157 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-23 23:55:25:91:521 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 23:55:25:92:880 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-23 23:55:25:93:398 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 23:55:25:93:854 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-23 23:55:26:91:733 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 23:55:26:92:222 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-23 23:55:46:92:236 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 23:55:46:92:562 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..be3097c8 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-23 23:55:50:115:673 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 23:55:50:116:299 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-23 23:55:51:115:792 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 23:55:51:118:121 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-23 23:55:52:116:9 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 23:55:52:116:602 + Q5 finished at: 2022-4-23 23:55:52:116:989 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-23 23:55:53:115:885 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-23 23:56:13:116:403 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 23:56:13:116:854 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_read_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..2431b950 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-23 23:56:17:141:969 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 23:56:17:142:587 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-23 23:56:18:140:739 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 23:56:18:141:479 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-23 23:56:18:142:2 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-23 23:56:19:140:996 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 23:56:20:141:8 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 23:56:21:140:664 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-23 23:56:41:141:403 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 23:56:41:141:727 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_read_skew2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..c362711b --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-23 23:57:37:214:215 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 23:57:37:214:886 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-23 23:57:38:214:178 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-23 23:57:38:215:703 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-23 23:57:38:216:144 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-23 23:57:39:214:470 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 23:57:39:215:2 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-23 23:57:40:214:207 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-23 23:58:0:214:830 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 23:58:0:215:153 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..841d6e9c --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-23 23:58:4:239:418 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 23:58:4:240:125 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-23 23:58:5:239:401 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-23 23:58:5:240:706 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-23 23:58:5:241:158 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 23:58:5:241:459 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-23 23:58:6:239:693 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 23:58:6:240:209 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-23 23:58:26:240:322 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 23:58:26:240:810 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..2e690b30 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-23 23:56:45:166:155 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-23 23:56:45:167:194 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-23 23:56:46:166:85 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-23 23:56:46:167:393 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-23 23:56:46:167:824 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 23:56:46:168:290 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-23 23:56:47:166:882 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 23:56:47:167:203 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-23 23:57:7:166:699 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 23:57:7:167:142 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..e9b537d4 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-23 23:57:11:189:899 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-23 23:57:11:195:211 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-23 23:57:12:189:920 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-23 23:57:12:192:243 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-23 23:57:12:192:936 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 23:57:12:193:580 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-23 23:57:13:190:668 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 23:57:13:191:68 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-23 23:57:33:190:546 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 23:57:33:190:881 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..d5ab6033 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-23 23:54:2:16:22 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 23:54:2:16:844 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-23 23:54:3:15:913 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 23:54:3:17:280 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-23 23:54:3:17:816 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-23 23:54:4:16:148 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 23:54:5:16:98 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 23:54:6:16:149 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-23 23:54:26:16:445 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 23:54:26:16:758 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..98ab9c6f --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-23 23:54:30:41:405 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 23:54:30:42:54 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-23 23:54:31:41:467 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 23:54:31:42:732 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-23 23:54:31:43:263 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 23:54:31:43:734 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-23 23:54:32:41:673 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-23 23:54:32:42:259 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-23 23:54:52:42:89 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-23 23:54:52:42:383 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_mda_step_rat.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..1a5eec63 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-23 23:58:30:266:696 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 23:58:30:267:366 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-23 23:58:31:266:680 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-23 23:58:31:267:843 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-23 23:58:31:268:622 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-23 23:58:32:266:648 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-23 23:58:32:267:367 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-23 23:58:32:267:993 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-23 23:58:33:267:34 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-23 23:58:33:267:544 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-23 23:58:34:266:994 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 23:58:35:266:931 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-23 23:58:55:267:596 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-23 23:58:55:267:913 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..0bcf670b --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN PESSIMISTIC;' + Q1 finished at: 2022-4-23 23:58:59:291:14 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-23 23:58:59:291:826 +Q3-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q3 finished at: 2022-4-23 23:59:0:290:960 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-23 23:59:0:292:332 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-23 23:59:1:291:73 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-23 23:59:1:291:913 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-23 23:59:1:292:611 + Q8-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-23 23:59:2:291:73 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-23 23:59:2:291:821 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-23 23:59:3:291:552 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-23 23:59:4:291:296 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 23:59:5:291:298 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-23 23:59:6:291:147 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-23 23:59:26:291:209 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-23 23:59:26:292:439 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-23 23:59:26:292:805 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..cff2d5bb --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-23 23:59:30:316:96 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-23 23:59:30:316:700 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-23 23:59:31:316:72 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-23 23:59:31:317:870 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-23 23:59:31:318:803 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-23 23:59:32:316:126 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-23 23:59:32:316:827 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-23 23:59:32:317:707 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-23 23:59:33:316:716 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-23 23:59:33:317:260 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-23 23:59:34:316:340 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-23 23:59:35:316:358 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-23 23:59:55:316:878 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-23 23:59:55:317:203 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..0d9855a1 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-23 23:59:59:340:77 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-23 23:59:59:340:941 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:0:0:340:92 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-24 0:0:0:341:982 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-24 0:0:0:343:85 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-24 0:0:1:340:69 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-24 0:0:1:340:711 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-24 0:0:1:341:809 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-24 0:0:2:340:863 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 0:0:2:341:402 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 0:0:3:340:553 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 0:0:4:340:378 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 0:0:24:340:951 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 0:0:24:341:299 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_sda_dirty_read.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..8efeda80 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-23 23:50:53:844:917 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 23:50:53:845:696 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-23 23:50:54:845:12 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-23 23:50:54:845:670 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-23 23:50:55:844:873 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 23:50:56:844:865 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-23 23:51:16:846:789 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-23 23:51:16:847:76 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..a9d6a4c8 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-23 23:51:48:894:837 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 23:51:48:895:468 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-23 23:51:49:894:775 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-23 23:51:49:896:290 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-23 23:51:50:895:49 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 23:51:51:894:830 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 23:51:52:894:951 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-23 23:52:12:895:446 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 23:52:12:895:785 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..b0cba149 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-23 23:52:16:919:353 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 23:52:16:919:931 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-23 23:52:17:919:394 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-23 23:52:17:920:137 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-23 23:52:17:920:554 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-23 23:52:18:919:653 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 23:52:18:920:228 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-23 23:52:38:920:223 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 23:52:38:920:643 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..12827dde --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-23 23:53:34:992:809 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-23 23:53:34:993:402 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-23 23:53:35:992:854 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-23 23:53:36:993:57 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-23 23:53:36:993:570 + Q4 finished at: 2022-4-23 23:53:36:994:74 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-23 23:53:37:992:967 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-23 23:53:57:993:429 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 23:53:57:993:734 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..8951cf77 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-23 23:51:20:870:655 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-23 23:51:20:871:234 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-23 23:51:21:870:709 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-23 23:51:21:871:918 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-23 23:51:22:871:9 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-23 23:51:23:870:869 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 23:51:24:870:643 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-23 23:51:44:871:205 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 23:51:44:871:485 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..add2e3ce --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-23 23:52:42:945:101 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-23 23:52:42:946:242 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-23 23:52:43:945:263 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-23 23:52:43:946:875 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-23 23:52:43:947:323 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-23 23:52:44:945:850 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 23:52:44:946:149 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-23 23:53:4:945:518 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 23:53:4:945:787 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..40cce817 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-23 23:53:8:968:522 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-23 23:53:8:973:825 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-23 23:53:9:968:624 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-23 23:53:9:969:725 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-23 23:53:9:970:192 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-23 23:53:10:969:15 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-23 23:53:10:969:323 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-23 23:53:30:969:61 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-23 23:53:30:969:372 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..56cc9fdb --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:3:36:539:377 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:3:36:540:22 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:3:37:539:279 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 0:3:37:541:10 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 0:3:38:539:554 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:3:38:540:74 + Q5 finished at: 2022-4-24 0:3:38:540:455 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:3:38:541:13 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:3:58:540:8 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:3:58:540:453 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..998f0177 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:4:2:564:772 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:4:2:565:398 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:4:3:564:805 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 0:4:3:566:645 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-24 0:4:4:565:869 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-24 0:4:5:165:760 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..0c8dea4c --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,33 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:4:29:589:478 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:4:29:590:162 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:4:30:589:555 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 0:4:30:590:452 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-24 0:4:31:590:416 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-24 0:4:32:190:288 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..81a057e0 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:4:57:614:102 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:4:57:614:819 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:4:58:614:98 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 0:4:58:614:804 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-24 0:4:59:615:143 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:4:59:615:860 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-24 0:5:0:314:906 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..ea6e1221 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:5:23:638:353 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 0:5:23:639:28 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:5:24:638:331 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 0:5:24:638:998 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 0:5:24:639:594 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 0:5:26:638:635 +Q6 finished at: 2022-4-24 0:5:26:638:995 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:5:26:639:629 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:5:46:638:972 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:5:46:639:341 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..94b095e8 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:5:50:665:569 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 0:5:50:666:289 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:5:51:665:569 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 0:5:51:666:217 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 0:5:51:666:743 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 0:5:53:665:901 +Q6 finished at: 2022-4-24 0:5:53:666:237 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:5:54:665:862 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:6:14:666:223 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:6:14:666:752 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..bd7a5d34 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:6:18:691:173 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:6:18:691:880 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:6:19:691:347 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 0:6:19:692:6 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 0:6:20:691:484 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:6:20:692:60 + Q5 finished at: 2022-4-24 0:6:20:692:358 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 0:6:21:691:399 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:6:41:691:790 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:6:41:692:249 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..d1b412f9 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:6:45:715:987 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:6:45:716:709 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:6:46:715:995 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 0:6:46:717:436 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 0:6:47:716:246 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:6:49:716:292 + Q5 finished at: 2022-4-24 0:6:49:716:786 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 0:6:49:717:273 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:7:9:716:688 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:7:9:717:45 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..9d7686ba --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:7:13:741:759 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:7:13:742:440 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:7:14:741:717 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 0:7:14:743:165 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 0:7:15:742:20 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:7:15:742:582 + Q5 finished at: 2022-4-24 0:7:15:742:862 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:7:15:743:287 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:7:35:742:362 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:7:35:742:747 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..00c24630 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,40 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:7:39:767:645 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:7:39:768:287 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:7:40:767:685 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 0:7:40:768:968 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-24 0:7:41:767:835 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-24 0:7:41:768:554 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-24 0:7:42:768:588 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-24 0:7:43:668:524 + Q8 finished at: 2022-4-24 0:7:43:669:779 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..b7b3abaf --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,40 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:8:8:792:786 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:8:8:793:425 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:8:9:792:809 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 0:8:9:793:475 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 0:8:10:792:777 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-24 0:8:12:793:228 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-24 0:8:13:793:843 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-24 0:8:14:693:681 + Q8 finished at: 2022-4-24 0:8:14:793:366 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..01950b11 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:0:28:365:229 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:0:28:366:24 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:0:29:365:242 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-24 0:0:30:365:319 + Q4 finished at: 2022-4-24 0:0:30:365:732 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:0:31:365:474 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-24 0:0:51:365:863 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-24 0:0:51:381:165 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:0:51:381:633 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..2f307746 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:0:55:391:591 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:0:55:392:245 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:0:56:391:570 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-24 0:0:57:391:843 + Q4 finished at: 2022-4-24 0:0:57:392:220 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:0:58:391:822 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-24 0:1:18:392:161 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-24 0:1:18:406:818 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:1:18:407:298 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_sda_full_write.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..c95371fd --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:1:22:416:68 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:1:22:416:857 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:1:23:416:7 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-24 0:1:24:416:231 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 0:1:24:416:799 + Q4 finished at: 2022-4-24 0:1:24:417:163 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 0:1:25:416:247 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-24 0:1:45:416:599 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:1:45:416:997 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..5fb41b93 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:1:49:440:600 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:1:49:441:357 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:1:50:440:541 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-24 0:1:51:440:829 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:1:51:441:529 + Q4 finished at: 2022-4-24 0:1:51:441:889 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 0:1:51:442:300 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-24 0:2:11:441:59 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:2:11:441:422 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..472aeb31 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:3:10:514:55 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:3:10:514:901 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:3:11:514:76 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-24 0:3:12:514:246 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:3:12:514:813 + Q4 finished at: 2022-4-24 0:3:12:515:166 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 0:3:12:515:582 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 0:3:32:514:584 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:3:32:514:944 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..c068425b --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:2:15:465:236 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 0:2:15:465:844 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:2:16:465:213 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 0:2:16:467:309 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 0:2:18:465:581 +Q5 finished at: 2022-4-24 0:2:18:465:916 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 0:2:18:466:353 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 0:2:38:465:820 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:2:38:466:189 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..455e0db0 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:2:42:490:352 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 0:2:42:490:965 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:2:43:490:264 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 0:2:43:491:693 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:2:45:490:487 +Q5 finished at: 2022-4-24 0:2:45:491:13 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:2:46:490:570 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 0:3:6:490:899 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:3:6:491:491 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_dda_read_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..2297092c --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:37:9:716:85 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 0:37:9:716:685 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:37:10:716:166 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 0:37:10:717:914 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 0:37:10:718:379 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:37:10:718:939 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 0:37:11:716:349 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:37:11:716:796 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:37:31:716:714 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:37:31:717:107 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_dda_read_write_skew1_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..c1c1a5da --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:37:35:741:626 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 0:37:35:742:212 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:37:36:741:658 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 0:37:36:743:7 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 0:37:36:743:505 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:37:36:744:175 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 0:37:37:742:11 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:37:37:742:590 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:37:57:742:194 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:37:57:742:585 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_dda_write_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..a9312b07 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:38:1:767:385 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 0:38:1:767:989 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:38:2:767:417 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 0:38:2:769:152 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 0:38:2:769:846 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 0:38:3:767:710 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:38:3:768:294 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 0:38:4:767:743 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:38:24:768:78 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 0:38:24:768:496 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_dda_write_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..14967613 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:39:20:848:393 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 0:39:20:849:28 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:39:21:848:409 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 0:39:21:849:830 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 0:39:21:850:413 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:39:21:850:996 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 0:39:22:848:619 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:39:22:849:211 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:39:42:849:56 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:39:42:849:464 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..5194a01f --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL PRIMARY KEY);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:38:28:794:46 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-24 0:38:28:795:259 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-24 0:38:28:795:813 + Q4-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q4 finished at: 2022-4-24 0:38:29:794:59 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-24 0:38:29:796:73 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-24 0:38:29:796:645 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 0:38:29:797:214 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:38:30:794:417 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-24 0:38:50:794:932 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-24 0:38:50:795:776 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 0:38:50:796:186 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..692aeb2b --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:38:54:822:67 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-24 0:38:54:823:693 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:38:55:822:13 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + (2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-24 0:38:55:823:699 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-24 0:38:55:824:560 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:38:55:825:196 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-24 0:38:56:822:577 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:38:56:823:229 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-24 0:39:16:823:180 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:39:16:823:624 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_mda_step_iat.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..f4281754 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:39:46:874:938 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-24 0:39:46:875:490 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:39:47:875:243 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 0:39:47:876:871 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 0:39:48:875:2 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 0:39:48:875:636 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-24 0:39:49:875:214 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-24 0:39:50:875:384 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-24 0:39:51:875:378 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 0:39:52:875:271 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 0:39:53:875:360 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 0:39:54:875:355 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 0:40:14:875:899 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 0:40:14:876:272 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..68074e5b --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:42:19:3:893 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 0:42:19:4:569 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:42:20:3:829 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 0:42:20:4:448 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 0:42:20:5:80 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-24 0:42:21:3:951 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-24 0:42:21:4:647 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-24 0:42:21:5:241 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:42:21:5:842 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-24 0:42:22:4:905 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-24 0:42:22:5:350 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-24 0:42:42:4:787 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-24 0:42:42:5:272 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..52d9e5b4 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:41:49:978:101 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 0:41:49:978:865 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:41:50:978:62 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 0:41:50:979:949 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 0:41:51:978:111 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-24 0:41:51:978:824 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 0:41:51:979:421 + Q8-T4 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-24 0:41:52:978:47 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-24 0:41:52:978:787 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:41:52:979:376 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-24 0:41:53:978:576 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 0:41:53:979:54 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-24 0:41:54:978:618 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-24 0:41:54:979:58 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-24 0:42:14:979:97 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-24 0:42:14:979:524 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..bd71390b --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:40:18:901:332 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-24 0:40:18:901:998 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:40:19:901:152 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 0:40:19:901:826 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 0:40:20:901:296 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 0:40:20:902:55 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-24 0:40:21:901:489 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-24 0:40:22:901:390 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-24 0:40:23:901:482 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 0:40:24:901:566 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 0:40:25:901:467 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 0:40:26:901:538 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-24 0:40:46:901:793 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 0:40:46:902:313 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..4a88443f --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:40:50:925:672 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-24 0:40:50:926:374 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:40:51:925:770 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-24 0:40:51:927:187 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 0:40:52:925:630 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-24 0:40:52:926:282 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-24 0:40:53:926:105 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-24 0:40:54:926:7 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-24 0:40:55:925:999 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 0:40:56:926:74 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 0:40:57:926:89 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 0:40:58:926:46 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 0:41:18:926:575 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 0:41:18:927:29 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..55e2ad2c --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:42:46:29:918 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 0:42:46:30:578 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-24 0:42:46:31:109 + Q4-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q4 finished at: 2022-4-24 0:42:47:29:902 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-24 0:42:47:31:289 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-24 0:42:47:31:825 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 0:42:47:32:413 + Q8-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-24 0:42:48:29:908 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-24 0:42:48:30:600 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-24 0:42:48:31:147 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 0:42:48:31:581 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-24 0:42:49:30:185 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-24 0:42:49:30:792 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-24 0:43:9:30:660 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-24 0:43:9:31:176 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..e5604551 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:41:22:952:430 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-24 0:41:22:953:122 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:41:23:952:392 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-24 0:41:23:953:994 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 0:41:23:954:588 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-24 0:41:23:955:145 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-24 0:41:23:955:632 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 0:41:23:956:270 + Q9-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q9 finished at: 2022-4-24 0:41:24:952:446 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-24 0:41:24:953:226 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-24 0:41:24:953:877 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-24 0:41:24:954:505 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-24 0:41:24:955:105 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 0:41:24:955:704 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-24 0:41:25:952:709 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-24 0:41:25:953:160 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-24 0:41:45:953:189 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-24 0:41:45:953:606 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_sda_lost_update_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..f58b141f --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:36:43:692:56 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 0:36:43:692:748 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:36:44:691:810 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 0:36:44:692:495 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 0:36:44:693:48 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-24 0:36:45:692:257 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:36:45:692:892 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 0:37:5:692:356 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:37:5:692:775 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..125ed853 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:36:17:666:583 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 0:36:17:667:148 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:36:18:666:614 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 0:36:18:667:315 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 0:36:18:668:6 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-24 0:36:19:666:866 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:36:19:667:276 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 0:36:39:667:185 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:36:39:667:563 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:36:39:667:819 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_double_write_skew1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..ff2af13d --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:22:32:915:650 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:22:32:916:430 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:22:33:915:591 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 0:22:33:916:938 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 0:22:33:917:476 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 0:22:35:915:774 +Q6 finished at: 2022-4-24 0:22:35:916:141 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:22:36:915:786 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-24 0:22:56:916:186 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:22:56:916:579 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_double_write_skew1_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..b159be92 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:23:0:940:851 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:23:0:941:543 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:23:1:940:866 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 0:23:1:942:38 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 0:23:1:942:571 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:23:1:943:31 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-24 0:23:2:941:257 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:23:2:941:782 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-24 0:23:22:941:516 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:23:22:941:836 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_double_write_skew2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..9bca5b98 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:23:26:965:755 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:23:26:966:440 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:23:27:965:742 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 0:23:27:967:100 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-24 0:23:28:965:908 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:23:28:966:438 + Q5 finished at: 2022-4-24 0:23:28:966:807 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 0:23:29:965:923 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:23:49:966:345 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:23:49:966:684 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_read_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..0d7ca664 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:23:53:991:54 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 0:23:53:991:796 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:23:54:990:992 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 0:23:54:992:539 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 0:23:54:993:7 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-24 0:23:55:991:149 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 0:23:56:991:236 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:23:57:991:7 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:24:17:991:745 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:24:17:992:68 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_read_skew2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..bf3aab6e --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:25:14:65:197 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:25:14:65:823 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:25:15:65:238 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 0:25:15:66:753 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 0:25:15:67:175 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 0:25:16:65:760 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:25:16:66:327 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 0:25:17:65:449 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:25:37:65:903 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:25:37:66:216 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_read_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..cda7d95d --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:25:41:90:479 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:25:41:91:81 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:25:42:90:508 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 0:25:42:91:682 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 0:25:42:92:119 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:25:42:92:415 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 0:25:43:90:790 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:25:43:91:290 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:26:3:91:171 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:26:3:91:497 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..6e74af17 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:24:22:15:47 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-24 0:24:22:16:50 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:24:23:14:950 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-24 0:24:23:16:89 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-24 0:24:23:16:600 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:24:23:17:53 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-24 0:24:24:15:696 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:24:24:16:13 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-24 0:24:44:15:723 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:24:44:16:150 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..92c802cf --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:24:48:39:935 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-24 0:24:48:45:197 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:24:49:39:973 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-24 0:24:49:41:296 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-24 0:24:49:41:784 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:24:49:42:279 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-24 0:24:50:40:417 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:24:50:40:764 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-24 0:25:10:40:586 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:25:10:40:897 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_write_read_skew.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..26d8a1cd --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:21:38:867:392 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:21:38:868:34 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:21:39:867:439 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 0:21:39:869:367 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 0:21:39:869:973 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-24 0:21:40:867:515 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 0:21:41:867:585 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:21:42:867:618 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:22:2:868:80 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:22:2:868:396 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_write_read_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..c3e5b7c3 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:22:6:892:657 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:22:6:893:460 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:22:7:892:373 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 0:22:7:893:728 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 0:22:7:894:253 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:22:7:894:693 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 0:22:8:892:785 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:22:8:893:357 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:22:28:892:846 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:22:28:893:128 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_mda_step_rat.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..79de48f1 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:26:7:114:858 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:26:7:115:640 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:26:8:114:804 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 0:26:8:116:264 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-24 0:26:8:116:839 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-24 0:26:9:114:869 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-24 0:26:9:115:638 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-24 0:26:9:116:218 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-24 0:26:10:115:197 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 0:26:10:115:739 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 0:26:11:115:92 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 0:26:12:115:76 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 0:26:32:115:766 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 0:26:32:116:80 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_mda_step_rat_long_fork.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..34a1b6af --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN PESSIMISTIC;' + Q1 finished at: 2022-4-24 0:26:36:140:637 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-24 0:26:36:141:431 +Q3-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q3 finished at: 2022-4-24 0:26:37:140:676 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-24 0:26:37:142:13 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 0:26:38:140:690 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-24 0:26:38:141:489 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-24 0:26:38:142:126 + Q8-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-24 0:26:39:140:681 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-24 0:26:39:141:397 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-24 0:26:40:141:226 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-24 0:26:41:140:920 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 0:26:42:141:9 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-24 0:26:43:140:862 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 0:27:3:140:853 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-24 0:27:3:142:45 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-24 0:27:3:142:350 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..4af161a3 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:27:7:167:109 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:27:7:167:721 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:27:8:167:54 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-24 0:27:8:168:432 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-24 0:27:8:169:322 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-24 0:27:9:167:81 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-24 0:27:9:167:782 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-24 0:27:9:168:691 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-24 0:27:10:167:865 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 0:27:10:168:376 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 0:27:11:167:277 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 0:27:12:167:393 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-24 0:27:32:167:449 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 0:27:32:167:813 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..53025a25 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:27:36:193:173 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-24 0:27:36:193:860 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:27:37:190:805 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-24 0:27:37:193:475 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-24 0:27:37:194:374 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-24 0:27:38:190:772 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-24 0:27:38:191:411 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-24 0:27:38:192:396 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-24 0:27:39:191:497 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-24 0:27:39:192:66 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-24 0:27:40:191:95 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-24 0:27:41:191:49 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-24 0:28:1:191:613 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-24 0:28:1:191:955 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_sda_dirty_read.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..6ee856ee --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:18:30:698:47 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:18:30:698:705 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:18:31:698:160 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 0:18:31:698:805 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-24 0:18:32:698:38 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:18:33:698:147 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-24 0:18:53:698:683 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 0:18:53:699:32 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_sda_intermediate_read.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..a97467d9 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:19:25:746:38 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:19:25:746:817 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:19:26:746:51 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 0:19:26:747:308 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-24 0:19:27:746:251 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:19:28:745:972 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:19:29:746:188 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-24 0:19:49:746:623 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:19:49:746:958 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_sda_intermediate_read_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..1bc4f4c4 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:19:53:770:524 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:19:53:771:169 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:19:54:770:565 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-24 0:19:54:771:834 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 0:19:54:772:104 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-24 0:19:55:770:758 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:19:55:771:269 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-24 0:20:15:771:173 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:20:15:771:492 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_sda_lost_self_update.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..9329e729 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:21:11:842:876 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:21:11:843:500 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:21:12:842:879 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-24 0:21:13:842:986 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 0:21:13:843:529 + Q4 finished at: 2022-4-24 0:21:13:843:955 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 0:21:14:843:58 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 0:21:34:843:181 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:21:34:843:546 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_sda_non_repeatable_read.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..ff96f7f2 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:18:57:721:530 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 0:18:57:722:151 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:18:58:721:571 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-24 0:18:58:723:527 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-24 0:18:59:721:766 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:19:0:721:711 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:19:1:721:525 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 0:19:21:722:104 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:19:21:722:408 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..c3ad8610 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:20:19:795:25 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 0:20:19:796:1 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:20:20:795:49 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-24 0:20:20:795:687 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 0:20:20:796:137 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-24 0:20:21:795:660 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:20:21:795:980 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-24 0:20:41:795:555 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:20:41:795:827 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..43790c11 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:20:45:818:878 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-24 0:20:45:824:55 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:20:46:818:927 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-24 0:20:46:821:87 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 0:20:46:821:596 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-24 0:20:47:819:529 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:20:47:819:843 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-24 0:21:7:819:293 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:21:7:819:589 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_double_write_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..f537723b --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:31:13:389:109 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:31:13:389:803 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:31:14:389:201 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-24 0:31:14:391:574 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-24 0:31:15:389:271 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:31:15:389:852 + Q5 finished at: 2022-4-24 0:31:15:390:170 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:31:15:390:642 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:31:35:389:593 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:31:35:389:948 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_full_write_skew_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..6ae0ba40 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:31:39:414:439 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:31:39:415:108 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:31:40:414:442 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 0:31:40:423:128 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-24 0:31:41:415:404 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-24 0:31:42:15:356 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_full_write_skew_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..e5151761 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,33 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:32:6:439:668 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:32:6:440:407 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:32:7:439:598 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 0:32:7:440:264 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-24 0:32:8:440:418 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-24 0:32:9:40:355 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_full_write_skew_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..16678aff --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:32:34:464:560 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:32:34:465:227 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:32:35:464:577 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 0:32:35:465:226 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-24 0:32:36:465:395 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:32:36:466:62 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-24 0:32:37:165:307 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_read_write_skew1_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..944d3891 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:33:0:489:788 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 0:33:0:490:347 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:33:1:489:782 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 0:33:1:490:476 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 0:33:1:490:946 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 0:33:3:490:44 +Q6 finished at: 2022-4-24 0:33:3:490:339 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:33:3:493:269 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:33:23:490:469 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:33:23:490:893 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_read_write_skew1_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..32294353 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:33:27:514:396 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-24 0:33:27:514:961 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:33:28:514:379 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 0:33:28:515:988 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-24 0:33:28:516:446 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 0:33:30:514:701 +Q6 finished at: 2022-4-24 0:33:30:515:30 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:33:31:514:662 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:33:51:515:38 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:33:51:515:421 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_read_write_skew2_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..d0a99545 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:33:55:539:980 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:33:55:540:730 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:33:56:540:17 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 0:33:56:541:460 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 0:33:57:540:234 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:33:57:540:867 + Q5 finished at: 2022-4-24 0:33:57:541:222 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-24 0:33:58:540:269 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:34:18:540:673 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:34:18:541:38 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_read_write_skew2_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..707eaca4 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:34:22:565:625 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:34:22:566:271 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:34:23:565:569 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 0:34:23:567:681 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-24 0:34:24:565:848 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:34:26:565:856 + Q5 finished at: 2022-4-24 0:34:26:566:215 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 0:34:26:566:733 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:34:46:566:259 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:34:46:566:748 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_read_write_skew2_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..863b88ff --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:34:50:591:434 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:34:50:592:203 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:34:51:591:339 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-24 0:34:51:592:829 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-24 0:34:52:591:663 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-24 0:34:52:592:349 + Q5 finished at: 2022-4-24 0:34:52:592:709 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:34:52:593:216 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-24 0:35:12:592:94 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-24 0:35:12:592:581 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_mda_step_wat_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..1ea9ca05 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,40 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:35:16:616:269 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:35:16:616:928 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:35:17:616:292 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 0:35:17:618:88 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-24 0:35:18:616:246 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-24 0:35:18:617:13 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-24 0:35:19:617:144 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-24 0:35:20:517:114 + Q8 finished at: 2022-4-24 0:35:20:518:295 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_mda_step_wat_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..29f4773c --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,40 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:35:45:642:400 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:35:45:643:179 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:35:46:642:365 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-24 0:35:46:643:34 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-24 0:35:47:642:328 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-24 0:35:49:642:762 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-24 0:35:50:643:381 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-24 0:35:51:543:286 + Q8 finished at: 2022-4-24 0:35:51:642:921 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.25-TiDB-v5.4.0]Deadlock found when trying to get lock; try restarting transaction + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_sda_dirty_write_1abort.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..06831831 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:28:5:214:848 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:28:5:215:496 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:28:6:214:831 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-24 0:28:7:214:958 + Q4 finished at: 2022-4-24 0:28:7:215:356 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:28:8:215:66 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-24 0:28:28:215:503 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-24 0:28:28:230:190 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:28:28:230:703 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_sda_dirty_write_2commit.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..73be7150 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:28:32:240:359 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:28:32:241:120 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:28:33:240:368 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-24 0:28:34:240:592 + Q4 finished at: 2022-4-24 0:28:34:240:937 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:28:35:240:544 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-24 0:28:55:240:874 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-24 0:28:55:255:637 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:28:55:256:192 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_sda_full_write.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..217fd621 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:28:59:267:499 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:28:59:268:147 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:29:0:267:491 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-24 0:29:1:267:729 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 0:29:1:268:300 + Q4 finished at: 2022-4-24 0:29:1:268:697 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 0:29:2:267:723 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-24 0:29:22:268:106 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:29:22:268:466 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_sda_full_write_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..69b84722 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:29:26:291:95 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:29:26:291:756 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:29:27:291:122 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-24 0:29:28:291:345 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:29:28:292:25 + Q4 finished at: 2022-4-24 0:29:28:292:335 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 0:29:28:292:858 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-24 0:29:48:291:810 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:29:48:292:161 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_sda_lost_self_update_committed.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..a0919606 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:30:47:363:713 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-24 0:30:47:364:368 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:30:48:363:755 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-24 0:30:49:363:937 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:30:49:364:553 + Q4 finished at: 2022-4-24 0:30:49:364:922 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-24 0:30:49:365:382 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 0:31:9:364:252 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:31:9:364:644 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_sda_lost_update_c1.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..c0750b4d --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:29:52:313:886 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 0:29:52:314:613 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:29:53:313:870 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 0:29:53:320:739 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-24 0:29:55:314:131 +Q5 finished at: 2022-4-24 0:29:55:314:471 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-24 0:29:55:314:927 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 0:30:15:314:452 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:30:15:314:819 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_sda_lost_update_c2.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..160a3beb --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-24 0:30:19:338:642 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-24 0:30:19:339:263 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-24 0:30:20:338:594 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-24 0:30:20:339:287 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-24 0:30:22:338:883 +Q5 finished at: 2022-4-24 0:30:22:339:190 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-24 0:30:23:338:892 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-24 0:30:43:339:299 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-24 0:30:43:339:701 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/result_summary/read-committed_total-result.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..38745346 --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/result_summary/repeatable-read_total-result.txt b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..42d5fc7b --- /dev/null +++ b/install/test_result/distributed_result/tidb_test/tidb_pessimistic_single/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/install/test_result/readme.txt b/install/test_result/readme.txt new file mode 100644 index 00000000..ef38964a --- /dev/null +++ b/install/test_result/readme.txt @@ -0,0 +1,19 @@ +test_cases: it inclucdes 33 test cases that show in the paper, and some other cases from known anomalies, and predicate anomalies. +centrailized_result: the result are from single machine node +distributed_result: the result are from the distributed environment + +Each database result includes +(1) a summary for all tested result in folder +(2) test results at different isolation levels + +Test case structure: +Preparation: delete and construct table and rows +Execution: expected execution sequence +Validation: all serializable result + +Test result structure: +Execution: request and real exeuction with timestamps +Result: consistent (rollback or serializable execution) and inconsistent (non-serializable execution) test result + +Test databases: +MySQL, MyRocks, TDSQL, SQL Server, TiDB, Oracle, Oceanbase, Greenplum, PostgreSQL, CockroachDB, MongoDB \ No newline at end of file diff --git a/install/test_result/test_cases/iat_dda_read_skew_committed.txt b/install/test_result/test_cases/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..6dc7af49 --- /dev/null +++ b/install/test_result/test_cases/iat_dda_read_skew_committed.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=1 WHERE k=1; +5-2-UPDATE t1 SET v=1 WHERE k=0; +6-2-COMMIT; +7-1-SELECT * from t1 WHERE k=1; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-0,0 +7-1,0 +9-0,1 1,1 + +2-0,1 +7-1,1 +9-0,1 1,1 +} \ No newline at end of file diff --git a/install/test_result/test_cases/iat_dda_read_write_skew1_committed.txt b/install/test_result/test_cases/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..794a5a36 --- /dev/null +++ b/install/test_result/test_cases/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=1; +5-2-UPDATE t1 SET v=1 WHERE k=0; +6-2-COMMIT; +7-1-UPDATE t1 SET v=1 WHERE k=1; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-0,0 +9-0,1 1,2 + +2-0,1 +9-0,1 1,1 +} diff --git a/install/test_result/test_cases/iat_dda_write_skew.txt b/install/test_result/test_cases/iat_dda_write_skew.txt new file mode 100644 index 00000000..744cb016 --- /dev/null +++ b/install/test_result/test_cases/iat_dda_write_skew.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where k=0; +3-2-BEGIN; +4-2-select * from t1 where k=1; +5-2-update t1 set v=1 where k=0; +6-1-update t1 set v=1 where k=1; +7-1-COMMIT; +8-2-COMMIT; +9-3-select * from t1 ORDER BY k; +8-3-COMMIT; + +serializable { +2-0,0 +4-1,1 +9-0,1 1,1 + +2-0,1 +4-1,0 +9-0,1 1,1 +} diff --git a/install/test_result/test_cases/iat_dda_write_skew_committed.txt b/install/test_result/test_cases/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..d897428d --- /dev/null +++ b/install/test_result/test_cases/iat_dda_write_skew_committed.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where k=0; +3-2-BEGIN; +4-2-select * from t1 where k=1; +5-2-update t1 set v=1 where k=0; +6-2-COMMIT; +7-1-update t1 set v=1 where k=1; +8-1-COMMIT; +9-3-select * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-0,0 +4-1,1 +9-0,1 1,1 + +2-0,1 +4-1,0 +9-0,1 1,1 +} diff --git a/install/test_result/test_cases/iat_dda_write_skew_predicate_based-intersecting_data.txt b/install/test_result/test_cases/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..e286f7b1 --- /dev/null +++ b/install/test_result/test_cases/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,31 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS mytab; +0-1-CREATE TABLE mytab(class int NOT NULL, value int NOT NULL); +0-1-INSERT INTO mytab VALUES (1, 10); +0-1-INSERT INTO mytab VALUES (1, 20); +0-1-INSERT INTO mytab VALUES (2, 100); +0-1-INSERT INTO mytab VALUES (2, 200); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT SUM(value) FROM mytab WHERE class = 1; +3-1-INSERT INTO mytab VALUES (2, 30); +4-2-BEGIN; +5-2-SELECT SUM(value) FROM mytab WHERE class = 2; +6-2-INSERT INTO mytab VALUES (1, 300); +7-2-COMMIT; +8-1-COMMIT; +9-3-SELECT SUM(value) FROM mytab WHERE class = 1; +10-3-SELECT SUM(value) FROM mytab WHERE class = 2; +12-3-COMMIT; + +serializable { +2-30, +5-330, +9-330, +10-330, + +2-330, +5-300, +9-330, +10-330, +} diff --git a/install/test_result/test_cases/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/install/test_result/test_cases/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..fe3720d6 --- /dev/null +++ b/install/test_result/test_cases/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,26 @@ +ParamNum:3 +0-1-DROP TABLE IF EXISTS account; +0-1-create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type)) +0-1-insert into account values ('kevin','saving', 500); +0-1-insert into account values ('kevin','checking', 500); +0-1-COMMIT; +1-1-BEGIN; +2-1-select type, balance from account where name = 'kevin'; +3-2-BEGIN; +4-2-select type, balance from account where name = 'kevin'; +5-2-update account set balance = balance + 900 where name = 'kevin' and type = 'saving'; +6-2-COMMIT; +7-1-update account set balance = balance + 900 where name = 'kevin' and type = 'checking'; +8-1-COMMIT: +9-3-select * from account; +10-3-COMMIT; + +serializable { +2-checking,500, saving,500, +4-checking,500, saving,1400, +9-kevin,checking,1400 kevin,saving,1400 + +2-checking,1400, saving,500, +4-checking,500, saving,500, +9-kevin,checking,1400 kevin,saving,1400 +} diff --git a/install/test_result/test_cases/iat_mda_step_iat.txt b/install/test_result/test_cases/iat_mda_step_iat.txt new file mode 100644 index 00000000..9f1a518a --- /dev/null +++ b/install/test_result/test_cases/iat_mda_step_iat.txt @@ -0,0 +1,53 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where k=2; +3-2-BEGIN; +4-2-select * from t1 where k=0; +5-3-BEGIN; +6-3-select * from t1 where k=1; +7-1-update t1 set v=1 where k=0; +8-2-update t1 set v=1 where k=1; +9-3-update t1 set v=1 where k=2; +10-1-COMMIT; +11-2-COMMIT; +12-3-COMMIT; +13-4-select * from t1 ORDER BY k; +14-4-COMMIT; + +serializable { +2-2,0 +4-0,1 +6-1,1 +13-0,1 1,1 2,1 + +2-2,0 +4-0,1 +6-1,0 +13-0,1 1,1 2,1 + +2-2,0 +4-0,0 +6-1,1 +13-0,1 1,1 2,1 + +2-2,1 +4-0,0 +6-1,1 +13-0,1 1,1 2,1 + +2-2,1 +4-0,1 +6-1,0 +13-0,1 1,1 2,1 + +2-2,1 +4-0,0 +6-1,0 +13-0,1 1,1 2,1 +} diff --git a/install/test_result/test_cases/iat_mda_step_iat_causality_violation_anomaly.txt b/install/test_result/test_cases/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..74f59396 --- /dev/null +++ b/install/test_result/test_cases/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,51 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where k=0; +3-2-BEGIN; +4-2-update t1 set v=1 where k=0; +5-2-commit; +6-3-BEGIN; +7-3-select * from t1 where k=0; +8-3-update t1 set v=1 where k=1; +9-3-commit; +10-1-select * from t1 where k=1; +11-1-commit; +12-4-select * from t1 ORDER BY k; +13-4-commit; + +serializable { +2-0,0 +7-0,1 +10-1,0 +12-0,1 1,1 + +2-0,0 +7-0,0 +10-1,0 +12-0,1 1,1 + +2-0,1 +7-0,1 +10-1,1 +12-0,1 1,1 + +2-0,1 +7-0,1 +10-1,0 +12-0,1 1,1 + +2-0,0 +7-0,0 +10-1,1 +12-0,1 1,1 + +2-0,1 +7-0,0 +10-1,1 +12-0,1 1,1 +} diff --git a/install/test_result/test_cases/iat_mda_step_iat_cross_phenomenon.txt b/install/test_result/test_cases/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..de6d8b92 --- /dev/null +++ b/install/test_result/test_cases/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,108 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where k=0; +3-2-BEGIN; +4-2-select * from t1 where k=1; +5-3-BEGIN; +6-3-update t1 set v=1 where k=0; +7-3-commit; +8-4-BEGIN; +9-4-update t1 set v=1 where k=1; +10-4-commit; +11-2-select * from t1 where k=0; +12-2-commit; +13-1-select * from t1 where k=1; +14-1-commit; +15-5-select * from t1 ORDER BY k; +16-5-COMMIT; + +serializable { +2-0,0 +4-1,0 +13-1,0 +11-0,0 +15-0,1 1,1 + +2-0,0 +4-1,1 +13-1,0 +11-0,0 +15-0,1 1,1 + +2-0,0 +4-1,0 +13-1,0 +11-0,1 +15-0,1 1,1 + +2-0,0 +4-1,1 +13-1,0 +11-0,1 +15-0,1 1,1 + +2-0,0 +4-1,0 +13-1,1 +11-0,0 +15-0,1 1,1 + +2-0,1 +4-1,0 +13-1,0 +11-0,0 +15-0,1 1,1 + +2-0,1 +4-1,0 +13-1,1 +11-0,0 +15-0,1 1,1 + +2-0,0 +4-1,1 +13-1,1 +11-0,0 +15-0,1 1,1 + +2-0,1 +4-1,0 +13-1,0 +11-0,1 +15-0,1 1,1 + +2-0,1 +4-1,1 +13-1,1 +11-0,1 +15-0,1 1,1 + +2-0,0 +4-1,1 +13-1,1 +11-0,1 +15-0,1 1,1 + +2-0,1 +4-1,1 +13-1,1 +11-0,0 +15-0,1 1,1 + +2-0,1 +4-1,1 +13-1,0 +11-0,1 +15-0,1 1,1 + +2-0,1 +4-1,0 +13-1,1 +11-0,1 +15-0,1 1,1 +} diff --git a/install/test_result/test_cases/iat_mda_step_iat_predicate_based_delete.txt b/install/test_result/test_cases/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..b9a1ea80 --- /dev/null +++ b/install/test_result/test_cases/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,53 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where k=2; +3-2-BEGIN; +4-2-select * from t1 where k=0; +5-3-BEGIN; +6-3-select * from t1 where k=1; +7-1-DELETE FROM t1 WHERE k=0; +8-2-DELETE FROM t1 WHERE k=1; +9-3-DELETE FROM t1 WHERE k=2; +10-1-COMMIT; +11-2-COMMIT; +12-3-COMMIT; +13-4-select * from t1; +14-4-COMMIT; + +serializable { +2-2,0 +4-null +6-null +13-null + +2-2,0 +4-null +6-1,0 +13-null + +2-2,0 +4-0,0 +6-null +13-null + +2-null +4-0,0 +6-1,1 +13-null + +2-null +4-null +6-1,0 +13-null + +2-null +4-0,0 +6-1,0 +13-null +} \ No newline at end of file diff --git a/install/test_result/test_cases/iat_mda_step_iat_predicate_based_insert.txt b/install/test_result/test_cases/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..3f683ea3 --- /dev/null +++ b/install/test_result/test_cases/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,50 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where k=2; +3-2-BEGIN; +4-2-select * from t1 where k=0; +5-3-BEGIN; +6-3-select * from t1 where k=1; +7-1-INSERT INTO t1 VALUES (0, 0); +8-2-INSERT INTO t1 VALUES (1, 0); +9-3-INSERT INTO t1 VALUES (2, 0); +10-1-COMMIT; +11-2-COMMIT; +12-3-COMMIT; +13-4-select * from t1 ORDER BY k; +14-4-COMMIT; + +serializable { +2-null +4-0,1 +6-1,1 +13-0,1 1,1 2,1 + +2-null +4-0,1 +6-null +13-0,1 1,1 2,1 + +2-null +4-null +6-1,1 +13-0,1 1,1 2,1 + +2-2,1 +4-null +6-1,1 +13-0,1 1,1 2,1 + +2-2,1 +4-0,1 +6-null +13-0,1 1,1 2,1 + +2-2,1 +4-null +6-null +13-0,1 1,1 2,1 +} diff --git a/install/test_result/test_cases/iat_mda_step_iat_read_only_transaction_anomaly.txt b/install/test_result/test_cases/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..05df640e --- /dev/null +++ b/install/test_result/test_cases/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,65 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where k=0; +3-1-select * from t1 where k=1; +4-2-BEGIN; +5-2-select * from t1 where k=1; +6-2-update t1 set v=20 where k=1; +7-2-commit; +8-3-BEGIN; +9-3-select * from t1 where k=0; +10-3-select * from t1 where k=1; +11-3-commit; +12-1-update t1 set v=11 where k=0; +13-1-commit; +14-3-select * from t1 ORDER BY k; +15-3-COMMIT; + +serializable { +2-0,0 +3-1,0 +5-1,0 +9-0,11 +10-1,20 +14-0,11 1,20 + +2-0,0 +3-1,0 +5-1,0 +9-0,11 +10-1,0 +14-0,11 1,20 + +2-0,0 +3-1,20 +5-1,0 +9-0,0 +10-1,20 +14-0,11 1,20 + +2-0,0 +3-1,20 +5-1,0 +9-0,11 +10-1,20 +14-0,11 1,20 + +2-0,0 +3-1,0 +5-1,0 +9-0,0 +10-1,0 +14-0,11 1,20 + +2-0,0 +3-1,20 +5-1,0 +9-0,0 +10-1,0 +14-0,11 1,20 +} diff --git a/install/test_result/test_cases/iat_mda_step_iat_uname_anomaly.txt b/install/test_result/test_cases/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..be4deaad --- /dev/null +++ b/install/test_result/test_cases/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,75 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where k=1; +3-2-BEGIN; +4-2-select * from t1 where k=0; +5-2-update t1 set v=1 where k=0; +6-2-select * from t1 where k=1; +7-2-update t1 set v=1 where k=1; +8-2-commit; +9-3-BEGIN; +10-3-select * from t1 where k=2; +11-3-update t1 set v=1 where k=2; +12-3-select * from t1 where k=0; +13-3-update t1 set v=2 where k=0; +14-3-commit; +15-1-select * from t1 where k=2; +16-1-commit; +17-4-select * from t1 ORDER BY k; +18-4-commit; + +serializable { +2-1,0 +4-0,0 +6-1,0 +10-2,0 +12-0,1 +15-2,0 +17-0,2 1,1 2,1 + +2-1,0 +4-0,2 +6-1,0 +10-2,0 +12-0,0 +15-2,0 +17-0,2 1,1 2,1 + +2-1,1 +4-0,0 +6-1,0 +10-2,0 +12-0,1 +15-2,0 +17-0,2 1,1 2,1 + +2-1,2 +4-0,0 +6-1,0 +10-2,0 +12-0,1 +15-2,2 +17-0,2 1,1 2,1 + +2-1,0 +4-0,2 +6-1,0 +10-2,0 +12-0,0 +15-2,1 +17-0,2 1,1 2,1 + +2-1,1 +4-0,2 +6-1,0 +10-2,0 +12-0,0 +15-2,1 +17-0,2 1,1 2,1 +} \ No newline at end of file diff --git a/install/test_result/test_cases/iat_sda_lost_update_committed.txt b/install/test_result/test_cases/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..b8ecf732 --- /dev/null +++ b/install/test_result/test_cases/iat_sda_lost_update_committed.txt @@ -0,0 +1,22 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-2-COMMIT; +6-1-UPDATE t1 SET v=1 WHERE k=0; +7-1-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +2-0,0 +8-0,2 + +2-0,2 +8-0,1 +} diff --git a/install/test_result/test_cases/iat_sda_non_repeatable_read_committed.txt b/install/test_result/test_cases/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..ab3a4efa --- /dev/null +++ b/install/test_result/test_cases/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=1 WHERE k=0; +5-2-COMMIT; +6-1-SELECT * from t1 WHERE k=0; +7-1-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +2-0,0 +6-0,0 +8-0,1 + +2-0,1 +6-0,1 +8-0,1 +} diff --git a/install/test_result/test_cases/rat_dda_double_write_skew1.txt b/install/test_result/test_cases/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..83deae26 --- /dev/null +++ b/install/test_result/test_cases/rat_dda_double_write_skew1.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-begin; +2-1-update t1 set v=1 where k=0; +3-2-begin; +4-2-update t1 set v=1 where k=1; +5-2-select * from t1 where k=0; +6-1-update t1 set v=2 where k=1; +7-2-commit; +8-1-commit; +9-3-SELECT * FROM t1 ORDER BY k; +10-3-COMMIT; + +serializable { +5-0,1 +9-0,1 1,1 + +5-0,0 +9-0,1 1,2 +} \ No newline at end of file diff --git a/install/test_result/test_cases/rat_dda_double_write_skew1_committed.txt b/install/test_result/test_cases/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..bbe68e15 --- /dev/null +++ b/install/test_result/test_cases/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-begin; +2-1-update t1 set v=1 where k=0; +3-2-begin; +4-2-update t1 set v=1 where k=1; +5-2-select * from t1 where k=0; +6-2-commit; +7-1-update t1 set v=2 where k=1; +8-1-commit; +9-3-SELECT * FROM t1 ORDER BY k; +10-3-COMMIT; + +serializable { +5-0,1 +9-0,1 1,1 + +5-0,0 +9-0,1 1,2 +} diff --git a/install/test_result/test_cases/rat_dda_double_write_skew2.txt b/install/test_result/test_cases/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..9e81e864 --- /dev/null +++ b/install/test_result/test_cases/rat_dda_double_write_skew2.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-begin; +2-1-update t1 set v=1 where k=0; +3-2-begin; +4-2-update t1 set v=1 where k=1; +5-2-update t1 set v=2 where k=0; +6-1-select * from t1 where k=1; +7-1-commit; +8-2-commit; +9-3-SELECT * FROM t1 ORDER BY k; +10-3-COMMIT; + +serializable { +6-1,0 +9-0,2 1,1 + +6-1,1 +9-0,1 1,1 +} \ No newline at end of file diff --git a/install/test_result/test_cases/rat_dda_read_skew.txt b/install/test_result/test_cases/rat_dda_read_skew.txt new file mode 100644 index 00000000..648f49b3 --- /dev/null +++ b/install/test_result/test_cases/rat_dda_read_skew.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=1 WHERE k=1; +5-2-UPDATE t1 SET v=1 WHERE k=0; +6-1-SELECT * from t1 WHERE k=1; +7-2-COMMIT; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-0,0 +6-1,0 +9-0,1 1,1 + +2-0,1 +6-1,1 +9-0,1 1,1 +} diff --git a/install/test_result/test_cases/rat_dda_read_skew2.txt b/install/test_result/test_cases/rat_dda_read_skew2.txt new file mode 100644 index 00000000..a3a4691d --- /dev/null +++ b/install/test_result/test_cases/rat_dda_read_skew2.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k=1; +5-2-SELECT * from t1 WHERE k=0; +6-1-UPDATE t1 SET v=1 WHERE k=1; +7-1-COMMIT; +8-2-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +4-1,1 +5-0,1 +9-0,1 1,1 + +4-1,0 +5-0,0 +9-0,1 1,1 +} diff --git a/install/test_result/test_cases/rat_dda_read_skew2_committed.txt b/install/test_result/test_cases/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..4a43fdbc --- /dev/null +++ b/install/test_result/test_cases/rat_dda_read_skew2_committed.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k=1; +5-2-SELECT * from t1 WHERE k=0; +6-2-COMMIT; +7-1-UPDATE t1 SET v=1 WHERE k=1; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +4-1,1 +5-0,1 +9-0,1 1,1 + +4-1,0 +5-0,0 +9-0,1 1,1 +} \ No newline at end of file diff --git a/install/test_result/test_cases/rat_dda_read_skew_predicate_based_delete.txt b/install/test_result/test_cases/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..efbe28e5 --- /dev/null +++ b/install/test_result/test_cases/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,27 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where v=0; +3-2-BEGIN; +4-2-DELETE FROM t1 WHERE k=1; +5-2-DELETE FROM t1 WHERE k=0; +6-2-COMMIT; +7-1-select * from t1 where v=0; +8-1-COMMIT: +9-3-select * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-null +7-null +9-null + + +2-0,0 1,0 +7-0,0 1,0 +9-null +} diff --git a/install/test_result/test_cases/rat_dda_read_skew_predicate_based_insert.txt b/install/test_result/test_cases/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..78b6e71a --- /dev/null +++ b/install/test_result/test_cases/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where v=0; +3-2-BEGIN; +4-2-insert into t1 values(1,0); +5-2-insert into t1 values(0,0); +6-2-COMMIT; +7-1-select * from t1 where v=0; +8-1-COMMIT: +9-3-select * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-null +7-null +9-0,0 1,0 + +2-0,0 1,0 +7-0,0 1,0 +9-0,0 1,0 +} diff --git a/install/test_result/test_cases/rat_dda_read_skew_predicate_based_insert_test.txt b/install/test_result/test_cases/rat_dda_read_skew_predicate_based_insert_test.txt new file mode 100644 index 00000000..a46aadab --- /dev/null +++ b/install/test_result/test_cases/rat_dda_read_skew_predicate_based_insert_test.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT SUM(v) FROM t1 WHERE k >= 1 ; +3-2-BEGIN; +4-2-insert into t1 values(0,1); +5-2-insert into t1 values(1,2); +6-2-COMMIT; +7-1-SELECT SUM(v) FROM t1 WHERE k <= 0; +8-1-COMMIT: +9-3-select * from t1 ORDER BY k; +10-3-COMMIT; + + +serializable { +2-, +7-, +9-0,1 1,2 + + +2-1 +7-2 +9-0,1 1,2 +} diff --git a/install/test_result/test_cases/rat_dda_write_read_skew.txt b/install/test_result/test_cases/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..90b9ada2 --- /dev/null +++ b/install/test_result/test_cases/rat_dda_write_read_skew.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-update t1 set v=1 where k=0; +3-2-BEGIN; +4-2-update t1 set v=1 where k=1; +5-2-select * from t1 where k=0; +6-1-select * from t1 where k=1; +7-2-COMMIT; +8-1-commit; +9-3-select * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +5-0,1 +6-1,0 +9-0,1 1,1 + +5-0,0 +6-1,1 +9-0,1 1,1 +} \ No newline at end of file diff --git a/install/test_result/test_cases/rat_dda_write_read_skew_committed.txt b/install/test_result/test_cases/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..764cb1a2 --- /dev/null +++ b/install/test_result/test_cases/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,29 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-update t1 set v=1 where k=0; +3-2-BEGIN; +4-2-update t1 set v=1 where k=1; +5-2-select * from t1 where k=0; +6-2-COMMIT; +7-1-select * from t1 where k=1; +8-1-COMMIT; +9-3-select * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +5-0,1 +7-1,0 +9-0,1 1,1 + +5-0,0 +7-1,1 +9-0,1 1,1 +} + + + diff --git a/install/test_result/test_cases/rat_mda_step_rat.txt b/install/test_result/test_cases/rat_mda_step_rat.txt new file mode 100644 index 00000000..6a3e0eb3 --- /dev/null +++ b/install/test_result/test_cases/rat_mda_step_rat.txt @@ -0,0 +1,53 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-update t1 set v=1 where k=0; +3-2-BEGIN; +4-2-update t1 set v=1 where k=1; +5-2-select * from t1 where k=0; +6-3-BEGIN; +7-3-update t1 set v=1 where k=2; +8-3-select * from t1 where k=1; +9-1-select * from t1 where k=2; +10-1-COMMIT; +11-2-COMMIT; +12-3-COMMIT; +13-4-select * from t1 ORDER BY k; +14-4-COMMIT; + +serializable { +5-0,1 +8-1,1 +9-2,0 +13-0,1 1,1 2,1 + +5-0,1 +8-1,0 +9-2,0 +13-0,1 1,1 2,1 + +5-0,0 +8-1,1 +9-2,0 +13-0,1 1,1 2,1 + +5-0,0 +8-1,1 +9-2,1 +13-0,1 1,1 2,1 + +5-0,1 +8-1,0 +9-2,1 +13-0,1 1,1 2,1 + +5-0,0 +8-1,0 +9-2,1 +13-0,1 1,1 2,1 +} diff --git a/install/test_result/test_cases/rat_mda_step_rat_long_fork.txt b/install/test_result/test_cases/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..9f0b1baa --- /dev/null +++ b/install/test_result/test_cases/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,108 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-commit; +1-4-BEGIN; +2-4-select * from t1 where k=0; +3-1-BEGIN; +4-1-update t1 set v=1 where k=0; +5-3-BEGIN; +6-3-select * from t1 where k=1; +7-3-select * from t1 where k=0; +8-2-BEGIN; +9-2-update t1 set v=1 where k=1; +10-4-select * from t1 where k=1; +11-1-commit; +12-2-commit; +13-3-commit; +14-4-commit; +15-4-select * from t1 ORDER BY k; +16-4-commit; + +serializable { +2-0,0 +6-1,0 +7-0,0 +10-1,0 +15-0,1 1,1 + +2-0,1 +6-1,0 +7-0,0 +10-1,1 +15-0,1 1,1 + +2-0,0 +6-1,1 +7-0,1 +10-1,0 +15-0,1 1,1 + +2-0,1 +6-1,1 +7-0,1 +10-1,1 +15-0,1 1,1 + +2-0,1 +6-1,0 +7-0,1 +10-1,0 +15-0,1 1,1 + +2-0,0 +6-1,1 +7-0,0 +10-1,1 +15-0,1 1,1 + +2-0,1 +6-1,1 +7-0,1 +10-1,0 +15-0,1 1,1 + +2-0,1 +6-1,0 +7-0,1 +10-1,1 +15-0,1 1,1 + +2-0,0 +6-1,1 +7-0,1 +10-1,1 +15-0,1 1,1 + +2-0,1 +6-1,1 +7-0,0 +10-1,1 +15-0,1 1,1 + +2-0,0 +6-1,0 +7-0,0 +10-1,1 +15-0,1 1,1 + +2-0,1 +6-1,0 +7-0,0 +10-1,0 +15-0,1 1,1 + +2-0,0 +6-1,0 +7-0,1 +10-1,0 +15-0,1 1,1 + +2-0,0 +6-1,1 +7-0,0 +10-1,0 +15-0,1 1,1 +} diff --git a/install/test_result/test_cases/rat_mda_step_rat_predicate_based_delete.txt b/install/test_result/test_cases/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..877ed9de --- /dev/null +++ b/install/test_result/test_cases/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,53 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 1); +0-1-INSERT INTO t1 VALUES (1, 1); +0-1-INSERT INTO t1 VALUES (2, 1); +0-1-COMMIT; +1-1-BEGIN; +2-1-DELETE FROM t1 WHERE k=0; +3-2-BEGIN; +4-2-DELETE FROM t1 WHERE k=1; +5-2-SELECT SUM(v) FROM t1 WHERE k = 0; +6-3-BEGIN; +7-3-DELETE FROM t1 WHERE k=2; +8-3-SELECT SUM(v) FROM t1 WHERE k = 1; +9-1-SELECT SUM(v) FROM t1 WHERE k = 2; +10-1-COMMIT; +11-2-COMMIT; +12-3-COMMIT; +13-4-select * from t1; +14-4-COMMIT; + +serializable { +5-, +8-, +9-1, +13-null + +5-, +8-1, +9-1, +13-null + +5-1, +8-, +9-1, +13-null + +5-1, +8-1, +9-, +13-null + +5-, +8-1, +9-, +13-null + +5-1, +8-1, +9-, +13-null +} diff --git a/install/test_result/test_cases/rat_mda_step_rat_predicate_based_insert.txt b/install/test_result/test_cases/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..06f68f2d --- /dev/null +++ b/install/test_result/test_cases/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,50 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-COMMIT; +1-1-BEGIN; +2-1-INSERT INTO t1 VALUES (0, 1); +3-2-BEGIN; +4-2-INSERT INTO t1 VALUES (1, 1); +5-2-SELECT SUM(v) FROM t1 WHERE k = 0; +6-3-BEGIN; +7-3-INSERT INTO t1 VALUES (2, 1); +8-3-SELECT SUM(v) FROM t1 WHERE k = 1; +9-1-SELECT SUM(v) FROM t1 WHERE k = 2; +10-1-COMMIT; +11-2-COMMIT; +12-3-COMMIT; +13-4-select * from t1 ORDER BY k; +14-4-COMMIT; + +serializable { +5-, +8-1, +9-1, +13-0,1 1,1 2,1 + +5-, +8-1, +9-, +13-0,1 1,1 2,1 + +5-, +8-, +9-1, +13-0,1 1,1 2,1 + +5-1, +8-, +9-1, +13-0,1 1,1 2,1 + +5-1, +8-1, +9-, +13-0,1 1,1 2,1 + +5-1, +8-, +9-, +13-0,1 1,1 2,1 +} diff --git a/install/test_result/test_cases/rat_sda_dirty_read.txt b/install/test_result/test_cases/rat_sda_dirty_read.txt new file mode 100644 index 00000000..51a54867 --- /dev/null +++ b/install/test_result/test_cases/rat_sda_dirty_read.txt @@ -0,0 +1,18 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k = 0; +5-1-ROLLBACK; +6-2-COMMIT; +7-3-SELECT * FROM t1; +8-3-COMMIT; + +serializable { +4-0,0 +7-0,0 +} diff --git a/install/test_result/test_cases/rat_sda_intermediate_read.txt b/install/test_result/test_cases/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..7054534f --- /dev/null +++ b/install/test_result/test_cases/rat_sda_intermediate_read.txt @@ -0,0 +1,23 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k=0; +5-1-UPDATE t1 SET v=2 WHERE k=0; +6-2-COMMIT; +7-1-COMMIT; +8-3-SELECT * from t1; +9-3-COMMIT; + +serializable { +4-0,2 +8-0,2 + +4-0,0 +8-0,2 +} + diff --git a/install/test_result/test_cases/rat_sda_intermediate_read_committed.txt b/install/test_result/test_cases/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..cd9132fe --- /dev/null +++ b/install/test_result/test_cases/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,23 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k=0; +5-2-COMMIT; +6-1-UPDATE t1 SET v=2 WHERE k=0; +7-1-COMMIT; +8-3-SELECT * from t1; +9-3-COMMIT; + +serializable { +4-0,2 +8-0,2 + +4-0,0 +8-0,2 +} + diff --git a/install/test_result/test_cases/rat_sda_lost_self_update.txt b/install/test_result/test_cases/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..31745804 --- /dev/null +++ b/install/test_result/test_cases/rat_sda_lost_self_update.txt @@ -0,0 +1,22 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-1-SELECT * from t1 WHERE k=0; +6-1-COMMIT; +7-2-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +5-0,1 +8-0,2 + +5-0,1 +8-0,1 +} diff --git a/install/test_result/test_cases/rat_sda_non_repeatable_read.txt b/install/test_result/test_cases/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..18d8be0b --- /dev/null +++ b/install/test_result/test_cases/rat_sda_non_repeatable_read.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN;; +4-2-UPDATE t1 SET v=1 WHERE k=0; +5-1-SELECT * from t1 WHERE k=0; +6-2-COMMIT; +7-1-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +2-0,0 +5-0,0 +8-0,1 + +2-0,1 +5-0,1 +8-0,1 +} \ No newline at end of file diff --git a/install/test_result/test_cases/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/install/test_result/test_cases/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..0ae57913 --- /dev/null +++ b/install/test_result/test_cases/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE v=0; +3-2-BEGIN; +4-2-DELETE FROM t1 WHERE k=0; +5-2-COMMIT; +6-1-SELECT * from t1 WHERE v=0; +7-1-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +2-null +6-null +8-0,0 + +2-0,0 +6-0,0 +8-null +} diff --git a/install/test_result/test_cases/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/install/test_result/test_cases/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..408f7737 --- /dev/null +++ b/install/test_result/test_cases/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,23 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE v=0; +3-2-BEGIN; +4-2-INSERT INTO t1 VALUES (0, 0); +5-2-COMMIT; +6-1-SELECT * from t1 WHERE v=0; +7-1-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +2-null +6-null +8-0,0 + +2-0,0 +6-0,0 +8-0,0 +} diff --git a/install/test_result/test_cases/wat_dda_double_write_skew2_committed.txt b/install/test_result/test_cases/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..c925c802 --- /dev/null +++ b/install/test_result/test_cases/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-begin; +2-1-update t1 set v=1 where k=0; +3-2-begin; +4-2-update t1 set v=1 where k=1; +5-2-update t1 set v=2 where k=0; +6-2-commit; +7-1-select * from t1 where k=1; +8-1-commit; +9-3-SELECT * FROM t1 ORDER BY k; +10-3-COMMIT; + +serializable { +7-1,0 +9-0,2 1,1 + +7-1,1 +9-0,1 1,1 +} \ No newline at end of file diff --git a/install/test_result/test_cases/wat_dda_full_write_skew_c1.txt b/install/test_result/test_cases/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..2ad62d13 --- /dev/null +++ b/install/test_result/test_cases/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,22 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=1; +5-2-UPDATE t1 SET v=2 WHERE k=0; +6-1-UPDATE t1 SET v=1 WHERE k=1; +7-1-COMMIT; +8-2-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +9-0,1 1,1 + +9-0,2 1,2 +} diff --git a/install/test_result/test_cases/wat_dda_full_write_skew_c2.txt b/install/test_result/test_cases/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..e047cc73 --- /dev/null +++ b/install/test_result/test_cases/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,22 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=1; +5-2-UPDATE t1 SET v=2 WHERE k=0; +6-1-UPDATE t1 SET v=1 WHERE k=1; +7-2-COMMIT; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +9-0,1 1,1 + +9-0,2 1,2 +} diff --git a/install/test_result/test_cases/wat_dda_full_write_skew_committed.txt b/install/test_result/test_cases/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..de5b71d0 --- /dev/null +++ b/install/test_result/test_cases/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,22 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=1; +5-2-UPDATE t1 SET v=2 WHERE k=0; +6-2-COMMIT; +7-1-UPDATE t1 SET v=1 WHERE k=1; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +9-0,1 1,1 + +9-0,2 1,2 +} diff --git a/install/test_result/test_cases/wat_dda_read_write_skew1_c1.txt b/install/test_result/test_cases/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..e129c548 --- /dev/null +++ b/install/test_result/test_cases/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=1; +5-2-UPDATE t1 SET v=1 WHERE k=0; +6-1-UPDATE t1 SET v=1 WHERE k=1; +7-1-COMMIT; +8-2-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-0,0 +9-0,1 1,2 + +2-0,1 +9-0,1 1,1 +} diff --git a/install/test_result/test_cases/wat_dda_read_write_skew1_c2.txt b/install/test_result/test_cases/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..ad1a73ee --- /dev/null +++ b/install/test_result/test_cases/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=1; +5-2-UPDATE t1 SET v=1 WHERE k=0; +6-1-UPDATE t1 SET v=1 WHERE k=1; +7-2-COMMIT; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-0,0 +9-0,1 1,2 + +2-0,1 +9-0,1 1,1 +} diff --git a/install/test_result/test_cases/wat_dda_read_write_skew2_c1.txt b/install/test_result/test_cases/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..2b92f31a --- /dev/null +++ b/install/test_result/test_cases/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k=1; +5-2-UPDATE t1 SET v=2 WHERE k=0; +6-1-UPDATE t1 SET v=1 WHERE k=1; +7-1-COMMIT; +8-2-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +4-1,1 +9-0,2 1,1 + +4-1,0 +9-0,1 1,1 +} diff --git a/install/test_result/test_cases/wat_dda_read_write_skew2_c2.txt b/install/test_result/test_cases/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..8c9f9aa6 --- /dev/null +++ b/install/test_result/test_cases/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k=1; +5-2-UPDATE t1 SET v=2 WHERE k=0; +6-1-UPDATE t1 SET v=1 WHERE k=1; +7-2-COMMIT; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +4-1,1 +9-0,2 1,1 + +4-1,0 +9-0,1 1,1 +} diff --git a/install/test_result/test_cases/wat_dda_read_write_skew2_committed.txt b/install/test_result/test_cases/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..ade01f80 --- /dev/null +++ b/install/test_result/test_cases/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k=1; +5-2-UPDATE t1 SET v=2 WHERE k=0; +6-2-COMMIT; +7-1-UPDATE t1 SET v=1 WHERE k=1; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +4-1,1 +9-0,2 1,1 + +4-1,0 +9-0,1 1,1 +} diff --git a/install/test_result/test_cases/wat_mda_step_wat_c1.txt b/install/test_result/test_cases/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..1a57bfed --- /dev/null +++ b/install/test_result/test_cases/wat_mda_step_wat_c1.txt @@ -0,0 +1,35 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-update t1 set v=1 where k=0; +3-2-BEGIN; +4-2-update t1 set v=2 where k=1; +5-2-update t1 set v=2 where k=0; +6-3-BEGIN; +7-3-update t1 set v=3 where k=2; +8-3-update t1 set v=3 where k=1; +9-1-update t1 set v=1 where k=2; +10-1-COMMIT; +11-2-COMMIT; +12-3-COMMIT; +13-4-select * from t1 ORDER BY k; +14-4-COMMIT; + +serializable { +13-0,2 1,3 2,3 + +13-0,2 1,2 2,3 + +13-0,1 1,3 2,3 + +13-0,1 1,3 2,1 + +13-0,2 1,2 2,1 + +13-0,1 1,2 2,1 +} diff --git a/install/test_result/test_cases/wat_mda_step_wat_c2.txt b/install/test_result/test_cases/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..df78d474 --- /dev/null +++ b/install/test_result/test_cases/wat_mda_step_wat_c2.txt @@ -0,0 +1,35 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-update t1 set v=1 where k=0; +3-2-BEGIN; +4-2-update t1 set v=2 where k=1; +5-3-BEGIN; +6-2-update t1 set v=2 where k=0; +7-3-update t1 set v=3 where k=2; +8-3-update t1 set v=3 where k=1; +9-1-update t1 set v=1 where k=2; +10-2-COMMIT; +11-1-COMMIT; +12-3-COMMIT; +13-4-select * from t1 ORDER BY k; +14-4-COMMIT; + +serializable { +13-0,2 1,3 2,3 + +13-0,2 1,2 2,3 + +13-0,1 1,3 2,3 + +13-0,1 1,3 2,1 + +13-0,2 1,2 2,1 + +13-0,1 1,2 2,1 +} diff --git a/install/test_result/test_cases/wat_sda_dirty_write_1abort.txt b/install/test_result/test_cases/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..3a0a598e --- /dev/null +++ b/install/test_result/test_cases/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,20 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-1-ROLLBACK; +6-2-COMMIT; +7-3-SELECT * FROM t1; +8-3-DROP TABLE IF EXISTS t1; +9-3-COMMIT; + +serializable { +7-0,1 + +7-0,2 +} \ No newline at end of file diff --git a/install/test_result/test_cases/wat_sda_dirty_write_2commit.txt b/install/test_result/test_cases/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..736f479f --- /dev/null +++ b/install/test_result/test_cases/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,21 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-1-COMMIT; +6-2-COMMIT; +7-3-SELECT * FROM t1; +8-3-DROP TABLE IF EXISTS t1; +9-3-COMMIT; + + +serializable { +7-0,1 + +7-0,2 +} diff --git a/install/test_result/test_cases/wat_sda_full_write.txt b/install/test_result/test_cases/wat_sda_full_write.txt new file mode 100644 index 00000000..c4c9ceaf --- /dev/null +++ b/install/test_result/test_cases/wat_sda_full_write.txt @@ -0,0 +1,20 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-1-UPDATE t1 SET v=3 WHERE k=0; +6-1-COMMIT; +7-2-COMMIT; +8-3-SELECT * from t1; +9-3-COMMIT; + +serializable { +8-0,2 + +8-0,3 +} diff --git a/install/test_result/test_cases/wat_sda_full_write_committed.txt b/install/test_result/test_cases/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..97b442de --- /dev/null +++ b/install/test_result/test_cases/wat_sda_full_write_committed.txt @@ -0,0 +1,20 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-2-COMMIT; +6-1-UPDATE t1 SET v=3 WHERE k=0; +7-1-COMMIT; +8-3-SELECT * from t1; +9-3-COMMIT; + +serializable { +8-0,2 + +8-0,3 +} \ No newline at end of file diff --git a/install/test_result/test_cases/wat_sda_lost_self_update_committed.txt b/install/test_result/test_cases/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..7b8a0059 --- /dev/null +++ b/install/test_result/test_cases/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,22 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-2-COMMIT; +6-1-SELECT * from t1 WHERE k=0; +7-1-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +6-0,1 +8-0,2 + +6-0,1 +8-0,1 +} diff --git a/install/test_result/test_cases/wat_sda_lost_update_c1.txt b/install/test_result/test_cases/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..5bc21686 --- /dev/null +++ b/install/test_result/test_cases/wat_sda_lost_update_c1.txt @@ -0,0 +1,22 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-1-UPDATE t1 SET v=1 WHERE k=0; +6-1-COMMIT; +7-2-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +2-0,0 +8-0,2 + +2-0,2 +8-0,1 +} \ No newline at end of file diff --git a/install/test_result/test_cases/wat_sda_lost_update_c2.txt b/install/test_result/test_cases/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..90c6cc76 --- /dev/null +++ b/install/test_result/test_cases/wat_sda_lost_update_c2.txt @@ -0,0 +1,22 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-1-UPDATE t1 SET v=1 WHERE k=0; +6-2-COMMIT; +7-1-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +2-0,0 +8-0,2 + +2-0,2 +8-0,1 +} \ No newline at end of file diff --git a/install/test_result/test_cases_pred/iat_dda_read_skew_committed_pred_delete.txt b/install/test_result/test_cases_pred/iat_dda_read_skew_committed_pred_delete.txt new file mode 100644 index 00000000..c0455a91 --- /dev/null +++ b/install/test_result/test_cases_pred/iat_dda_read_skew_committed_pred_delete.txt @@ -0,0 +1,29 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (3, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k>0 and k<2; +3-2-BEGIN; +4-2-DELETE FROM t1 WHERE k=3; +5-2-DELETE FROM t1 WHERE k=1; +6-2-COMMIT; +7-1-SELECT * from t1 WHERE k>2 and k<4; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-null +7-null +9-0,0 2,0 4,0 + +2-1,0 +7-3,0 +9-0,0 2,0 4,0 +} \ No newline at end of file diff --git a/install/test_result/test_cases_pred/iat_dda_read_skew_committed_pred_insert.txt b/install/test_result/test_cases_pred/iat_dda_read_skew_committed_pred_insert.txt new file mode 100644 index 00000000..075fc22f --- /dev/null +++ b/install/test_result/test_cases_pred/iat_dda_read_skew_committed_pred_insert.txt @@ -0,0 +1,27 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k>0 and k<2; +3-2-BEGIN; +4-2-INSERT INTO t1 VALUES (3, 0); +5-2-INSERT INTO t1 VALUES (1, 0); +6-2-COMMIT; +7-1-SELECT * from t1 WHERE k>2 and k<4; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-null +7-null +9-0,0 1,0 2,0 3,0 4,0 + +2-1,0 +7-3,0 +9-0,0 1,0 2,0 3,0 4,0 +} diff --git a/install/test_result/test_cases_pred/iat_dda_read_write_skew1_committed_pred_delete.txt b/install/test_result/test_cases_pred/iat_dda_read_write_skew1_committed_pred_delete.txt new file mode 100644 index 00000000..c71cf792 --- /dev/null +++ b/install/test_result/test_cases_pred/iat_dda_read_write_skew1_committed_pred_delete.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (3, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k>0 and k<2; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=3; +5-2-DELETE FROM t1 WHERE k=1; +6-2-COMMIT; +7-1-UPDATE t1 SET v=1 WHERE k=3; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-1,0 +9-0,0 2,0 3,2 + +2-null +9-0,0 2,0 3,1 +} diff --git a/install/test_result/test_cases_pred/iat_dda_read_write_skew1_committed_pred_insert.txt b/install/test_result/test_cases_pred/iat_dda_read_write_skew1_committed_pred_insert.txt new file mode 100644 index 00000000..5f70a267 --- /dev/null +++ b/install/test_result/test_cases_pred/iat_dda_read_write_skew1_committed_pred_insert.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (3, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k>0 and k<2; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=3; +5-2-INSERT INTO t1 VALUES (1, 0); +6-2-COMMIT; +7-1-UPDATE t1 SET v=1 WHERE k=3; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-null +9-0,0 1,0 2,0 3,2 + +2-1,0 +9-0,0 1,0 2,0 3,1 +} + diff --git a/install/test_result/test_cases_pred/iat_dda_write_skew_committed_pred_delete.txt b/install/test_result/test_cases_pred/iat_dda_write_skew_committed_pred_delete.txt new file mode 100644 index 00000000..b52d79ab --- /dev/null +++ b/install/test_result/test_cases_pred/iat_dda_write_skew_committed_pred_delete.txt @@ -0,0 +1,28 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (3, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where k>0 and k<2; +3-2-BEGIN; +4-2-select * from t1 where k>2 and k<4; +5-2-DELETE FROM t1 WHERE k=1; +6-2-COMMIT; +7-1-DELETE FROM t1 WHERE k=3; +8-1-COMMIT; +9-3-select * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-1,0 +4-null +9-0,0 2,0 + +2-null +4-3,0 +9-0,0 2,0 +} diff --git a/install/test_result/test_cases_pred/iat_dda_write_skew_committed_pred_insert.txt b/install/test_result/test_cases_pred/iat_dda_write_skew_committed_pred_insert.txt new file mode 100644 index 00000000..1baa9499 --- /dev/null +++ b/install/test_result/test_cases_pred/iat_dda_write_skew_committed_pred_insert.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where k>0 and k<2; +3-2-BEGIN; +4-2-select * from t1 where k>2 and k<4; +5-2-INSERT INTO t1 VALUES (1, 0); +6-2-COMMIT; +7-1-INSERT INTO t1 VALUES (3, 0); +8-1-COMMIT; +9-3-select * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-null +4-3,0 +9-0,0 1,0 2,0 3,0 + +2-1,0 +4-null +9-0,0 1,0 2,0 3,0 +} diff --git a/install/test_result/test_cases_pred/iat_dda_write_skew_pred_delete.txt b/install/test_result/test_cases_pred/iat_dda_write_skew_pred_delete.txt new file mode 100644 index 00000000..d1a09e58 --- /dev/null +++ b/install/test_result/test_cases_pred/iat_dda_write_skew_pred_delete.txt @@ -0,0 +1,30 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (3, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where k>0 and k<2; +3-2-BEGIN; +4-2-select * from t1 where k>2 and k<4; +5-2-DELETE FROM t1 WHERE k=1; +6-1-DELETE FROM t1 WHERE k=3; +7-1-COMMIT; +8-2-COMMIT; +9-3-select * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-1,0 +4-null +9-0,0 2,0 4,0 + +2-null +4-3,0 +9-0,0 2,0 4,0 +} + diff --git a/install/test_result/test_cases_pred/iat_dda_write_skew_pred_insert.txt b/install/test_result/test_cases_pred/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..11c8e15d --- /dev/null +++ b/install/test_result/test_cases_pred/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,28 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where k>0 and k<2; +3-2-BEGIN; +4-2-select * from t1 where k>2 and k<4; +5-2-INSERT INTO t1 VALUES (1, 0); +6-1-INSERT INTO t1 VALUES (3, 0); +7-1-COMMIT; +8-2-COMMIT; +9-3-select * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-null +4-3,0 +9-0,0 1,0 2,0 3,0 4,0 + +2-1,0 +4-null +9-0,0 1,0 2,0 3,0 4,0 +} + diff --git a/install/test_result/test_cases_pred/iat_mda_step_iat_pred_delete.txt b/install/test_result/test_cases_pred/iat_mda_step_iat_pred_delete.txt new file mode 100644 index 00000000..ea822ec7 --- /dev/null +++ b/install/test_result/test_cases_pred/iat_mda_step_iat_pred_delete.txt @@ -0,0 +1,57 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (3, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-INSERT INTO t1 VALUES (5, 0); +0-1-INSERT INTO t1 VALUES (6, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where k>0 and k<2; +3-2-BEGIN; +4-2-select * from t1 where k>2 and k<4; +5-3-BEGIN; +6-3-select * from t1 where k>4 and k<6; +7-2-DELETE FROM t1 WHERE k=1; +8-3-DELETE FROM t1 WHERE k=3; +9-1-DELETE FROM t1 WHERE k=5; +10-1-COMMIT; +11-2-COMMIT; +12-3-COMMIT; +13-4-select * from t1 ORDER BY k; +14-4-COMMIT; + +serializable { +2-1,0 +4-3,0 +6-null +13-0,0 2,0 4,0 6,0 + +2-1,0 +4-null +6-null +13-0,0 2,0 4,0 6,0 + +2-null +4-3,0 +6-null +13-0,0 2,0 4,0 6,0 + +2-null +4-3,0 +6-5,0 +13-0,0 2,0 4,0 6,0 + +2-null +4-null +6-5,0 +13-0,0 2,0 4,0 6,0 + +2-1,0 +4-null +6-5,0 +13-0,0 2,0 4,0 6,0 +} diff --git a/install/test_result/test_cases_pred/iat_mda_step_iat_pred_insert.txt b/install/test_result/test_cases_pred/iat_mda_step_iat_pred_insert.txt new file mode 100644 index 00000000..5a2a7cc6 --- /dev/null +++ b/install/test_result/test_cases_pred/iat_mda_step_iat_pred_insert.txt @@ -0,0 +1,54 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-INSERT INTO t1 VALUES (6, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where k>0 and k<2; +3-2-BEGIN; +4-2-select * from t1 where k>2 and k<4; +5-3-BEGIN; +6-3-select * from t1 where k>4 and k<6; +7-2-INSERT INTO t1 VALUES (1, 0); +8-3-INSERT INTO t1 VALUES (3, 0); +9-1-INSERT INTO t1 VALUES (5, 0); +10-1-COMMIT; +11-2-COMMIT; +12-3-COMMIT; +13-4-select * from t1 ORDER BY k; +14-4-COMMIT; + +serializable { +2-null +4-null +6-5,0 +13-0,0 1,0 2,0 3,0 4,0 5,0 6,0 + +2-null +4-3,0 +6-5,0 +13-0,0 1,0 2,0 3,0 4,0 5,0 6,0 + +2-1,0 +4-null +6-5,0 +13-0,0 1,0 2,0 3,0 4,0 5,0 6,0 + +2-1,0 +4-null +6-null +13-0,0 1,0 2,0 3,0 4,0 5,0 6,0 + +2-null +4-3,0 +6-null +13-0,0 1,0 2,0 3,0 4,0 5,0 6,0 + +2-1,0 +4-3,0 +6-null +13-0,0 1,0 2,0 3,0 4,0 5,0 6,0 +} diff --git a/install/test_result/test_cases_pred/iat_sda_non_repeatable_read_committed_pred_delete.txt b/install/test_result/test_cases_pred/iat_sda_non_repeatable_read_committed_pred_delete.txt new file mode 100644 index 00000000..3996f9eb --- /dev/null +++ b/install/test_result/test_cases_pred/iat_sda_non_repeatable_read_committed_pred_delete.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k>0 and k<2; +3-2-BEGIN; +4-2-DELETE FROM t1 WHERE k=1; +5-2-COMMIT; +6-1-SELECT * from t1 WHERE k>0 and k<2; +7-1-COMMIT; +8-3-SELECT * FROM t1 ORDER BY k; +9-3-COMMIT; + +serializable { +2-null +6-null +8-0,0 2,0 + +2-1,0 +6-1,0 +8-0,0 2,0 +} diff --git a/install/test_result/test_cases_pred/iat_sda_non_repeatable_read_committed_pred_insert.txt b/install/test_result/test_cases_pred/iat_sda_non_repeatable_read_committed_pred_insert.txt new file mode 100644 index 00000000..d093e123 --- /dev/null +++ b/install/test_result/test_cases_pred/iat_sda_non_repeatable_read_committed_pred_insert.txt @@ -0,0 +1,25 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k>0 and k<2; +3-2-BEGIN; +4-2-INSERT INTO t1 VALUES (1, 0); +5-2-COMMIT; +6-1-SELECT * from t1 WHERE k>0 and k<2; +7-1-COMMIT; +8-3-SELECT * FROM t1 ORDER BY k; +9-3-COMMIT; + +serializable { +2-null +6-null +8-0,0 1,0 2,0 + +2-1,0 +6-1,0 +8-0,0 1,0 2,0 +} diff --git a/install/test_result/test_cases_pred/rat_dda_double_write_skew1_committed_pred_delete.txt b/install/test_result/test_cases_pred/rat_dda_double_write_skew1_committed_pred_delete.txt new file mode 100644 index 00000000..2e39bbcd --- /dev/null +++ b/install/test_result/test_cases_pred/rat_dda_double_write_skew1_committed_pred_delete.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (3, 0); +0-1-COMMIT; +1-1-begin; +2-1-DELETE FROM t1 WHERE k=1; +3-2-begin; +4-2-update t1 set v=1 where k=3; +5-2-select * from t1 where k>0 and k<2; +6-2-commit; +7-1-update t1 set v=2 where k=3; +8-1-commit; +9-3-SELECT * FROM t1 ORDER BY k; +10-3-COMMIT; + +serializable { +5-1,0 +9-0,0 2,0 3,2 + +5-null +9-0,0 2,0 3,1 +} diff --git a/install/test_result/test_cases_pred/rat_dda_double_write_skew1_committed_pred_insert.txt b/install/test_result/test_cases_pred/rat_dda_double_write_skew1_committed_pred_insert.txt new file mode 100644 index 00000000..89cf24f4 --- /dev/null +++ b/install/test_result/test_cases_pred/rat_dda_double_write_skew1_committed_pred_insert.txt @@ -0,0 +1,25 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (3, 0); +0-1-COMMIT; +1-1-begin; +2-1-INSERT INTO t1 VALUES (1, 0); +3-2-begin; +4-2-update t1 set v=1 where k=3; +5-2-select * from t1 where k>0 and k<2; +6-2-commit; +7-1-update t1 set v=2 where k=3; +8-1-commit; +9-3-SELECT * FROM t1 ORDER BY k; +10-3-COMMIT; + +serializable { +5-1,0 +9-0,0 1,0 2,0 3,1 + +5-null +9-0,0 1,0 2,0 3,2 +} diff --git a/install/test_result/test_cases_pred/rat_dda_double_write_skew1_pred_delete.txt b/install/test_result/test_cases_pred/rat_dda_double_write_skew1_pred_delete.txt new file mode 100644 index 00000000..14934abb --- /dev/null +++ b/install/test_result/test_cases_pred/rat_dda_double_write_skew1_pred_delete.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (3, 0); +0-1-COMMIT; +1-1-begin; +2-1-DELETE FROM t1 WHERE k=1; +3-2-begin; +4-2-update t1 set v=1 where k=3; +5-2-select * from t1 where k>0 and k<2; +6-1-update t1 set v=2 where k=3; +7-2-commit; +8-1-commit; +9-3-SELECT * FROM t1 ORDER BY k; +10-3-COMMIT; + +serializable { +5-1,0 +9-0,0 2,0 3,2 + +5-null +9-0,0 2,0 3,1 +} \ No newline at end of file diff --git a/install/test_result/test_cases_pred/rat_dda_double_write_skew1_pred_insert.txt b/install/test_result/test_cases_pred/rat_dda_double_write_skew1_pred_insert.txt new file mode 100644 index 00000000..b6f8be28 --- /dev/null +++ b/install/test_result/test_cases_pred/rat_dda_double_write_skew1_pred_insert.txt @@ -0,0 +1,25 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (3, 0); +0-1-COMMIT; +1-1-begin; +2-1-INSERT INTO t1 VALUES (1, 0); +3-2-begin; +4-2-update t1 set v=1 where k=3; +5-2-select * from t1 where k>0 and k<2; +6-1-update t1 set v=2 where k=3; +7-2-commit; +8-1-commit; +9-3-SELECT * FROM t1 ORDER BY k; +10-3-COMMIT; + +serializable { +5-1,0 +9-0,0 1,0 2,0 3,1 + +5-null +9-0,0 1,0 2,0 3,2 +} \ No newline at end of file diff --git a/install/test_result/test_cases_pred/rat_dda_double_write_skew2_pred_delete.txt b/install/test_result/test_cases_pred/rat_dda_double_write_skew2_pred_delete.txt new file mode 100644 index 00000000..df1bd0c1 --- /dev/null +++ b/install/test_result/test_cases_pred/rat_dda_double_write_skew2_pred_delete.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (3, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-COMMIT; +1-1-begin; +2-1-update t1 set v=1 where k=1; +3-2-begin; +4-2-DELETE FROM t1 WHERE k=3; +5-2-update t1 set v=2 where k=1; +6-1-select * from t1 where k>2 and k<4; +7-1-commit; +8-2-commit; +9-3-SELECT * FROM t1 ORDER BY k; +10-3-COMMIT; + +serializable { +6-3,0 +9-1,2 2,0 4,0 + +6-null +9-1,1 2,0 4,0 +} \ No newline at end of file diff --git a/install/test_result/test_cases_pred/rat_dda_double_write_skew2_pred_insert.txt b/install/test_result/test_cases_pred/rat_dda_double_write_skew2_pred_insert.txt new file mode 100644 index 00000000..d957b3b8 --- /dev/null +++ b/install/test_result/test_cases_pred/rat_dda_double_write_skew2_pred_insert.txt @@ -0,0 +1,25 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-COMMIT; +1-1-begin; +2-1-update t1 set v=1 where k=1; +3-2-begin; +4-2-INSERT INTO t1 VALUES (3, 0); +5-2-update t1 set v=2 where k=1; +6-1-select * from t1 where k>2 and k<4; +7-1-commit; +8-2-commit; +9-3-SELECT * FROM t1 ORDER BY k; +10-3-COMMIT; + +serializable { +6-null +9-1,2 2,0 3,0 4,0 + +6-3,0 +9-1,1 2,0 3,0 4,0 +} \ No newline at end of file diff --git a/install/test_result/test_cases_pred/rat_dda_read_skew2_committed_pred_delete.txt b/install/test_result/test_cases_pred/rat_dda_read_skew2_committed_pred_delete.txt new file mode 100644 index 00000000..2f9f5ff2 --- /dev/null +++ b/install/test_result/test_cases_pred/rat_dda_read_skew2_committed_pred_delete.txt @@ -0,0 +1,29 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (3, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-DELETE FROM t1 WHERE k=1; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k>2 and k<4; +5-2-SELECT * from t1 WHERE k>0 and k<2; +6-2-COMMIT; +7-1-DELETE FROM t1 WHERE k=3; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +4-null +5-null +9-0,0 2,0 4,0 + +4-3,0 +5-1,0 +9-0,0 2,0 4,0 +} \ No newline at end of file diff --git a/install/test_result/test_cases_pred/rat_dda_read_skew2_committed_pred_insert.txt b/install/test_result/test_cases_pred/rat_dda_read_skew2_committed_pred_insert.txt new file mode 100644 index 00000000..a46b66ab --- /dev/null +++ b/install/test_result/test_cases_pred/rat_dda_read_skew2_committed_pred_insert.txt @@ -0,0 +1,27 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-INSERT INTO t1 VALUES (1, 0); +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k>2 and k<4; +5-2-SELECT * from t1 WHERE k>0 and k<2; +6-2-COMMIT; +7-1-INSERT INTO t1 VALUES (3, 0); +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +4-null +5-null +9-0,0 1,0 2,0 3,0 4,0 + +4-3,0 +5-1,0 +9-0,0 1,0 2,0 3,0 4,0 +} \ No newline at end of file diff --git a/install/test_result/test_cases_pred/rat_dda_read_skew2_pred_delete.txt b/install/test_result/test_cases_pred/rat_dda_read_skew2_pred_delete.txt new file mode 100644 index 00000000..4bb25619 --- /dev/null +++ b/install/test_result/test_cases_pred/rat_dda_read_skew2_pred_delete.txt @@ -0,0 +1,29 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (3, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-DELETE FROM t1 WHERE k=1; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k>2 and k<4; +5-2-SELECT * from t1 WHERE k>0 and k<2; +6-1-DELETE FROM t1 WHERE k=3; +7-1-COMMIT; +8-2-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +4-null +5-null +9-0,0 2,0 4,0 + +4-3,0 +5-1,0 +9-0,0 2,0 4,0 +} \ No newline at end of file diff --git a/install/test_result/test_cases_pred/rat_dda_read_skew2_pred_insert.txt b/install/test_result/test_cases_pred/rat_dda_read_skew2_pred_insert.txt new file mode 100644 index 00000000..c7d1e308 --- /dev/null +++ b/install/test_result/test_cases_pred/rat_dda_read_skew2_pred_insert.txt @@ -0,0 +1,27 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-INSERT INTO t1 VALUES (1, 0); +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k>2 and k<4; +5-2-SELECT * from t1 WHERE k>0 and k<2; +6-1-INSERT INTO t1 VALUES (3, 0); +7-1-COMMIT; +8-2-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +4-null +5-null +9-0,0 1,0 2,0 3,0 4,0 + +4-3,0 +5-1,0 +9-0,0 1,0 2,0 3,0 4,0 +} \ No newline at end of file diff --git a/install/test_result/test_cases_pred/rat_dda_read_skew_pred_delete.txt b/install/test_result/test_cases_pred/rat_dda_read_skew_pred_delete.txt new file mode 100644 index 00000000..623afee5 --- /dev/null +++ b/install/test_result/test_cases_pred/rat_dda_read_skew_pred_delete.txt @@ -0,0 +1,29 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (3, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k>0 and k<2; +3-2-BEGIN; +4-2-DELETE FROM t1 WHERE k=3; +5-2-DELETE FROM t1 WHERE k=1; +6-1-SELECT * from t1 WHERE k>2 and k<4; +7-2-COMMIT; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-null +6-null +9-0,0 2,0 4,0 + +2-1,0 +6-3,0 +9-0,0 2,0 4,0 +} diff --git a/install/test_result/test_cases_pred/rat_dda_read_skew_pred_insert.txt b/install/test_result/test_cases_pred/rat_dda_read_skew_pred_insert.txt new file mode 100644 index 00000000..2f874bd1 --- /dev/null +++ b/install/test_result/test_cases_pred/rat_dda_read_skew_pred_insert.txt @@ -0,0 +1,27 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k>0 and k<2; +3-2-BEGIN; +4-2-INSERT INTO t1 VALUES (3, 0); +5-2-INSERT INTO t1 VALUES (1, 0); +6-1-SELECT * from t1 WHERE k>2 and k<4; +7-2-COMMIT; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-null +6-null +9-0,0 1,0 2,0 3,0 4,0 + +2-1,0 +6-3,0 +9-0,0 1,0 2,0 3,0 4,0 +} diff --git a/install/test_result/test_cases_pred/rat_dda_write_read_skew_committed_pred_delete.txt b/install/test_result/test_cases_pred/rat_dda_write_read_skew_committed_pred_delete.txt new file mode 100644 index 00000000..4249f743 --- /dev/null +++ b/install/test_result/test_cases_pred/rat_dda_write_read_skew_committed_pred_delete.txt @@ -0,0 +1,32 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (3, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-DELETE FROM t1 WHERE k=1; +3-2-BEGIN; +4-2-DELETE FROM t1 WHERE k=3; +5-2-select * from t1 where k>0 and k<2; +6-2-COMMIT; +7-1-select * from t1 where k>2 and k<4; +8-1-COMMIT; +9-3-select * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +5-1,0 +7-null +9-0,0 2,0 4,0 + +5-null +7-3,0 +9-0,0 2,0 4,0 +} + + + diff --git a/install/test_result/test_cases_pred/rat_dda_write_read_skew_committed_pred_insert.txt b/install/test_result/test_cases_pred/rat_dda_write_read_skew_committed_pred_insert.txt new file mode 100644 index 00000000..79f44430 --- /dev/null +++ b/install/test_result/test_cases_pred/rat_dda_write_read_skew_committed_pred_insert.txt @@ -0,0 +1,30 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-INSERT INTO t1 VALUES (1, 0); +3-2-BEGIN; +4-2-INSERT INTO t1 VALUES (3, 0); +5-2-select * from t1 where k>0 and k<2; +6-2-COMMIT; +7-1-select * from t1 where k>2 and k<4; +8-1-COMMIT; +9-3-select * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +5-1,0 +7-null +9-0,0 1,0 2,0 3,0 4,0 + +5-null +7-3,0 +9-0,0 1,0 2,0 3,0 4,0 +} + + + diff --git a/install/test_result/test_cases_pred/rat_dda_write_read_skew_pred_delete.txt b/install/test_result/test_cases_pred/rat_dda_write_read_skew_pred_delete.txt new file mode 100644 index 00000000..a6d31aee --- /dev/null +++ b/install/test_result/test_cases_pred/rat_dda_write_read_skew_pred_delete.txt @@ -0,0 +1,29 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (3, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-DELETE FROM t1 WHERE k=1; +3-2-BEGIN; +4-2-DELETE FROM t1 WHERE k=3; +5-2-select * from t1 where k>0 and k<2; +6-1-select * from t1 where k>2 and k<4; +7-2-COMMIT; +8-1-commit; +9-3-select * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +5-1,0 +6-null +9-0,0 2,0 4,0 + +5-null +6-3,0 +9-0,0 2,0 4,0 +} diff --git a/install/test_result/test_cases_pred/rat_dda_write_read_skew_pred_insert.txt b/install/test_result/test_cases_pred/rat_dda_write_read_skew_pred_insert.txt new file mode 100644 index 00000000..55f79d69 --- /dev/null +++ b/install/test_result/test_cases_pred/rat_dda_write_read_skew_pred_insert.txt @@ -0,0 +1,28 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-INSERT INTO t1 VALUES (1, 0); +3-2-BEGIN; +4-2-INSERT INTO t1 VALUES (3, 0); +5-2-select * from t1 where k>0 and k<2; +6-1-select * from t1 where k>2 and k<4; +7-2-COMMIT; +8-1-commit; +9-3-select * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +5-1,0 +6-null +9-0,0 1,0 2,0 3,0 4,0 + +5-null +6-3,0 +9-0,0 1,0 2,0 3,0 4,0 +} + diff --git a/install/test_result/test_cases_pred/rat_mda_step_rat_pred_delete.txt b/install/test_result/test_cases_pred/rat_mda_step_rat_pred_delete.txt new file mode 100644 index 00000000..5c009cdd --- /dev/null +++ b/install/test_result/test_cases_pred/rat_mda_step_rat_pred_delete.txt @@ -0,0 +1,57 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (3, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-INSERT INTO t1 VALUES (5, 0); +0-1-INSERT INTO t1 VALUES (6, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-DELETE FROM t1 WHERE k=1; +3-2-BEGIN; +4-2-DELETE FROM t1 WHERE k=3; +5-2-select * from t1 where k>0 and k<2; +6-3-BEGIN; +7-3-DELETE FROM t1 WHERE k=5; +8-3-select * from t1 where k>2 and k<4; +9-1-select * from t1 where k>4 and k<6; +10-1-COMMIT; +11-2-COMMIT; +12-3-COMMIT; +13-4-select * from t1 ORDER BY k; +14-4-COMMIT; + +serializable { +5-null +8-null +9-5,0 +13-0,0 2,0 4,0 6,0 + +5-null +8-3,0 +9-5,0 +13-0,0 2,0 4,0 6,0 + +5-1,0 +8-null +9-null +13-0,0 2,0 4,0 6,0 + +5-1,0 +8-null +9-5,0 +13-0,0 2,0 4,0 6,0 + +5-1,0 +8-3,0 +9-null +13-0,0 2,0 4,0 6,0 + +5-null +8-3,0 +9-null +13-0,0 2,0 4,0 6,0 +} diff --git a/install/test_result/test_cases_pred/rat_mda_step_rat_pred_insert.txt b/install/test_result/test_cases_pred/rat_mda_step_rat_pred_insert.txt new file mode 100644 index 00000000..b405fedd --- /dev/null +++ b/install/test_result/test_cases_pred/rat_mda_step_rat_pred_insert.txt @@ -0,0 +1,54 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-INSERT INTO t1 VALUES (6, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-INSERT INTO t1 VALUES (1, 0); +3-2-BEGIN; +4-2-INSERT INTO t1 VALUES (3, 0); +5-2-select * from t1 where k>0 and k<2; +6-3-BEGIN; +7-3-INSERT INTO t1 VALUES (5, 0); +8-3-select * from t1 where k>2 and k<4; +9-1-select * from t1 where k>4 and k<6; +10-1-COMMIT; +11-2-COMMIT; +12-3-COMMIT; +13-4-select * from t1 ORDER BY k; +14-4-COMMIT; + +serializable { +5-1,0 +8-3,0 +9-null +13-0,0 1,0 2,0 3,0 4,0 5,0 6,0 + +5-1,0 +8-null +9-null +13-0,0 1,0 2,0 3,0 4,0 5,0 6,0 + +5-null +8-3,0 +9-null +13-0,0 1,0 2,0 3,0 4,0 5,0 6,0 + +5-null +8-3,0 +9-5,0 +13-0,0 1,0 2,0 3,0 4,0 5,0 6,0 + +5-null +8-null +9-5,0 +13-0,0 1,0 2,0 3,0 4,0 5,0 6,0 + +5-1,0 +8-null +9-5,0 +13-0,0 1,0 2,0 3,0 4,0 5,0 6,0 +} diff --git a/install/test_result/test_cases_pred/rat_sda_dirty_read_pred_delete.txt b/install/test_result/test_cases_pred/rat_sda_dirty_read_pred_delete.txt new file mode 100644 index 00000000..8d57fc06 --- /dev/null +++ b/install/test_result/test_cases_pred/rat_sda_dirty_read_pred_delete.txt @@ -0,0 +1,20 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-DELETE FROM t1 WHERE k=1; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k>0 and k<2; +5-1-ROLLBACK; +6-2-COMMIT; +7-3-SELECT * FROM t1 ORDER BY k; +8-3-COMMIT; + +serializable { +4-1,0 +7-0,0 1,0 2,0 +} diff --git a/install/test_result/test_cases_pred/rat_sda_dirty_read_pred_insert.txt b/install/test_result/test_cases_pred/rat_sda_dirty_read_pred_insert.txt new file mode 100644 index 00000000..c0c81e63 --- /dev/null +++ b/install/test_result/test_cases_pred/rat_sda_dirty_read_pred_insert.txt @@ -0,0 +1,19 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-INSERT INTO t1 VALUES (1, 0); +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k>0 and k<2; +5-1-ROLLBACK; +6-2-COMMIT; +7-3-SELECT * FROM t1 ORDER BY k; +8-3-COMMIT; + +serializable { +4-null +7-0,0 2,0 +} diff --git a/install/test_result/test_cases_pred/rat_sda_intermediate_read_committed_pred_delete.txt b/install/test_result/test_cases_pred/rat_sda_intermediate_read_committed_pred_delete.txt new file mode 100644 index 00000000..d133774d --- /dev/null +++ b/install/test_result/test_cases_pred/rat_sda_intermediate_read_committed_pred_delete.txt @@ -0,0 +1,25 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-DELETE FROM t1 WHERE k=1; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k>0 and k<2; +5-2-COMMIT; +6-1-INSERT INTO t1 VALUES (1, 1); +7-1-COMMIT; +8-3-SELECT * from t1 ORDER BY k; +9-3-COMMIT; + +serializable { +4-1,0 +8-0,0 1,1 2,0 + +4-1,1 +8-0,0 1,1 2,0 +} + diff --git a/install/test_result/test_cases_pred/rat_sda_intermediate_read_committed_pred_insert.txt b/install/test_result/test_cases_pred/rat_sda_intermediate_read_committed_pred_insert.txt new file mode 100644 index 00000000..5ecc1cd4 --- /dev/null +++ b/install/test_result/test_cases_pred/rat_sda_intermediate_read_committed_pred_insert.txt @@ -0,0 +1,21 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-INSERT INTO t1 VALUES (1, 0); +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k>0 and k<2; +5-2-COMMIT; +6-1-DELETE FROM t1 WHERE k=1; +7-1-COMMIT; +8-3-SELECT * from t1; +9-3-COMMIT; + +serializable { +4-null +8-0,0 2,0 +} + diff --git a/install/test_result/test_cases_pred/rat_sda_intermediate_read_pred_delete.txt b/install/test_result/test_cases_pred/rat_sda_intermediate_read_pred_delete.txt new file mode 100644 index 00000000..af4e80c6 --- /dev/null +++ b/install/test_result/test_cases_pred/rat_sda_intermediate_read_pred_delete.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-DELETE FROM t1 WHERE k=1; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k>0 and k<2; +5-1-INSERT INTO t1 VALUES (1, 1); +6-2-COMMIT; +7-1-COMMIT; +8-3-SELECT * from t1 ORDER BY k; +9-3-COMMIT; + +serializable { +4-1,0 +8-0,0 1,1 2,0 + +4-1,1 +8-0,0 1,1 2,0 +} diff --git a/install/test_result/test_cases_pred/rat_sda_intermediate_read_pred_insert.txt b/install/test_result/test_cases_pred/rat_sda_intermediate_read_pred_insert.txt new file mode 100644 index 00000000..cfb9d64f --- /dev/null +++ b/install/test_result/test_cases_pred/rat_sda_intermediate_read_pred_insert.txt @@ -0,0 +1,21 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-INSERT INTO t1 VALUES (1, 0); +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k>0 and k<2; +5-1-DELETE FROM t1 WHERE k=1; +6-2-COMMIT; +7-1-COMMIT; +8-3-SELECT * from t1 ORDER BY k; +9-3-COMMIT; + +serializable { +4-null +8-0,0 2,0 +} + diff --git a/install/test_result/test_cases_pred/rat_sda_non_repeatable_read_pred_delete.txt b/install/test_result/test_cases_pred/rat_sda_non_repeatable_read_pred_delete.txt new file mode 100644 index 00000000..110ef8fa --- /dev/null +++ b/install/test_result/test_cases_pred/rat_sda_non_repeatable_read_pred_delete.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k>0 and k<2; +3-2-BEGIN;; +4-2-DELETE FROM t1 WHERE k=1; +5-1-SELECT * from t1 WHERE k>0 and k<2; +6-2-COMMIT; +7-1-COMMIT; +8-3-SELECT * FROM t1 ORDER BY k; +9-3-COMMIT; + +serializable { +2-null +5-null +8-0,0 2,0 + +2-1,0 +5-1,0 +8-0,0 2,0 +} \ No newline at end of file diff --git a/install/test_result/test_cases_pred/rat_sda_non_repeatable_read_pred_insert.txt b/install/test_result/test_cases_pred/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..74a9a5fd --- /dev/null +++ b/install/test_result/test_cases_pred/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,25 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k>0 and k<2; +3-2-BEGIN;; +4-2-INSERT INTO t1 VALUES (1, 0); +5-1-SELECT * from t1 WHERE k>0 and k<2; +6-2-COMMIT; +7-1-COMMIT; +8-3-SELECT * FROM t1 ORDER BY k; +9-3-COMMIT; + +serializable { +2-null +5-null +8-0,0 1,0 2,0 + +2-1,0 +5-1,0 +8-0,0 1,0 2,0 +} \ No newline at end of file diff --git a/install/test_result/test_cases_pred/wat_dda_double_write_skew2_committed_pred_delete.txt b/install/test_result/test_cases_pred/wat_dda_double_write_skew2_committed_pred_delete.txt new file mode 100644 index 00000000..59726af8 --- /dev/null +++ b/install/test_result/test_cases_pred/wat_dda_double_write_skew2_committed_pred_delete.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (3, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-COMMIT; +1-1-begin; +2-1-update t1 set v=1 where k=01; +3-2-begin; +4-2-DELETE FROM t1 WHERE k=3; +5-2-update t1 set v=2 where k=1; +6-2-commit; +7-1-select * from t1 where k>2 and k<4; +8-1-commit; +9-3-SELECT * FROM t1 ORDER BY k; +10-3-COMMIT; + +serializable { +7-3,0 +9-1,2 2,0 4,0 + +7-null +9-1,1 2,0 4,0 +} \ No newline at end of file diff --git a/install/test_result/test_cases_pred/wat_dda_double_write_skew2_committed_pred_insert.txt b/install/test_result/test_cases_pred/wat_dda_double_write_skew2_committed_pred_insert.txt new file mode 100644 index 00000000..ced4fb61 --- /dev/null +++ b/install/test_result/test_cases_pred/wat_dda_double_write_skew2_committed_pred_insert.txt @@ -0,0 +1,25 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-COMMIT; +1-1-begin; +2-1-update t1 set v=1 where k=1; +3-2-begin; +4-2-INSERT INTO t1 VALUES (3, 0); +5-2-update t1 set v=2 where k=1; +6-2-commit; +7-1-select * from t1 where k>2 and k<4; +8-1-commit; +9-3-SELECT * FROM t1 ORDER BY k; +10-3-COMMIT; + +serializable { +7-null +9-1,2 2,0 3,0 4,0 + +7-3,0 +9-1,1 2,0 3,0 4,0 +} \ No newline at end of file diff --git a/install/test_result/test_cases_pred/wat_dda_read_write_skew1_c1_pred_delete.txt b/install/test_result/test_cases_pred/wat_dda_read_write_skew1_c1_pred_delete.txt new file mode 100644 index 00000000..50802dd2 --- /dev/null +++ b/install/test_result/test_cases_pred/wat_dda_read_write_skew1_c1_pred_delete.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (3, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k>0 and k<2; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=3; +5-2-DELETE FROM t1 WHERE k=1; +6-1-UPDATE t1 SET v=1 WHERE k=3; +7-1-COMMIT; +8-2-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-1,0 +9-0,0 2,0 3,2 + +2-null +9-0,0 2,0 3,1 +} diff --git a/install/test_result/test_cases_pred/wat_dda_read_write_skew1_c1_pred_insert.txt b/install/test_result/test_cases_pred/wat_dda_read_write_skew1_c1_pred_insert.txt new file mode 100644 index 00000000..1c1cbb3f --- /dev/null +++ b/install/test_result/test_cases_pred/wat_dda_read_write_skew1_c1_pred_insert.txt @@ -0,0 +1,25 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (3, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k>0 and k<2; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=3; +5-2-INSERT INTO t1 VALUES (1, 0); +6-1-UPDATE t1 SET v=1 WHERE k=3; +7-1-COMMIT; +8-2-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-null +9-0,0 1,0 2,0 3,2 + +2-1,0 +9-0,0 1,0 2,0 3,1 +} diff --git a/install/test_result/test_cases_pred/wat_dda_read_write_skew2_c1_pred_delete.txt b/install/test_result/test_cases_pred/wat_dda_read_write_skew2_c1_pred_delete.txt new file mode 100644 index 00000000..7402019b --- /dev/null +++ b/install/test_result/test_cases_pred/wat_dda_read_write_skew2_c1_pred_delete.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (3, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=1; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k>2 and k<4; +5-2-UPDATE t1 SET v=2 WHERE k=1; +6-1-DELETE FROM t1 WHERE k=3; +7-1-COMMIT; +8-2-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +4-null +9-1,2 2,0 4,0 + +4-3,0 +9-1,1 2,0 4,0 +} diff --git a/install/test_result/test_cases_pred/wat_dda_read_write_skew2_c1_pred_insert.txt b/install/test_result/test_cases_pred/wat_dda_read_write_skew2_c1_pred_insert.txt new file mode 100644 index 00000000..76891b99 --- /dev/null +++ b/install/test_result/test_cases_pred/wat_dda_read_write_skew2_c1_pred_insert.txt @@ -0,0 +1,25 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=1; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k>2 and k<4; +5-2-UPDATE t1 SET v=2 WHERE k=1; +6-1-INSERT INTO t1 VALUES (3, 0); +7-1-COMMIT; +8-2-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +4-3,0 +9-1,2 2,0 3,0 4,0 + +4-null +9-1,1 2,0 3,0 4,0 +} diff --git a/install/test_result/test_cases_pred/wat_dda_read_write_skew2_committed_pred_delete.txt b/install/test_result/test_cases_pred/wat_dda_read_write_skew2_committed_pred_delete.txt new file mode 100644 index 00000000..73bea307 --- /dev/null +++ b/install/test_result/test_cases_pred/wat_dda_read_write_skew2_committed_pred_delete.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (3, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=1; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k>2 and k<4; +5-2-UPDATE t1 SET v=2 WHERE k=1; +6-2-COMMIT; +7-1-DELETE FROM t1 WHERE k=3; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +4-null +9-1,2 2,0 4,0 + +4-3,0 +9-1,1 2,0 4,0 +} diff --git a/install/test_result/test_cases_pred/wat_dda_read_write_skew2_committed_pred_insert.txt b/install/test_result/test_cases_pred/wat_dda_read_write_skew2_committed_pred_insert.txt new file mode 100644 index 00000000..a70dfd51 --- /dev/null +++ b/install/test_result/test_cases_pred/wat_dda_read_write_skew2_committed_pred_insert.txt @@ -0,0 +1,25 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-INSERT INTO t1 VALUES (4, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=1; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k>2 and k<4; +5-2-UPDATE t1 SET v=2 WHERE k=1; +6-2-COMMIT; +7-1-INSERT INTO t1 VALUES (3, 0); +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +4-3,0 +9-1,2 2,0 3,0 4,0 + +4-null +9-1,1 2,0 3,0 4,0 +} diff --git a/install/test_result/test_cases_pred/wat_sda_lost_self_update_committed_pred_delete.txt b/install/test_result/test_cases_pred/wat_sda_lost_self_update_committed_pred_delete.txt new file mode 100644 index 00000000..98f36e9e --- /dev/null +++ b/install/test_result/test_cases_pred/wat_sda_lost_self_update_committed_pred_delete.txt @@ -0,0 +1,23 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 1); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-DELETE FROM t1 WHERE k=1; +5-2-COMMIT; +6-1-SELECT * from t1 WHERE v>0; +7-1-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +6-0,1 +8-0,1 + +6-0,1 1,1 +8-0,1 +} \ No newline at end of file diff --git a/install/test_result/test_cases_pred/wat_sda_lost_self_update_committed_pred_insert.txt b/install/test_result/test_cases_pred/wat_sda_lost_self_update_committed_pred_insert.txt new file mode 100644 index 00000000..d5cdb8f2 --- /dev/null +++ b/install/test_result/test_cases_pred/wat_sda_lost_self_update_committed_pred_insert.txt @@ -0,0 +1,22 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-INSERT INTO t1 VALUES (1, 1); +5-2-COMMIT; +6-1-SELECT * from t1 WHERE v>0; +7-1-COMMIT; +8-3-SELECT * FROM t1 ORDER BY k; +9-3-COMMIT; + +serializable { +6-0,1 +8-0,1 1,1 + +6-0,1 1,1 +8-0,1 1,1 +} diff --git a/js/algolia-search.js b/js/algolia-search.js new file mode 100644 index 00000000..01a5f0b0 --- /dev/null +++ b/js/algolia-search.js @@ -0,0 +1,124 @@ +/* global instantsearch, algoliasearch, CONFIG */ + +document.addEventListener('DOMContentLoaded', () => { + const algoliaSettings = CONFIG.algolia; + const { indexName, appID, apiKey } = algoliaSettings; + + let search = instantsearch({ + indexName, + searchClient : algoliasearch(appID, apiKey), + searchFunction: helper => { + let searchInput = document.querySelector('.search-input'); + if (searchInput.value) { + helper.search(); + } + } + }); + + window.pjax && search.on('render', () => { + window.pjax.refresh(document.getElementById('algolia-hits')); + }); + + // Registering Widgets + search.addWidgets([ + instantsearch.widgets.configure({ + hitsPerPage: algoliaSettings.hits.per_page || 10 + }), + + instantsearch.widgets.searchBox({ + container : '.search-input-container', + placeholder : algoliaSettings.labels.input_placeholder, + // Hide default icons of algolia search + showReset : false, + showSubmit : false, + showLoadingIndicator: false, + cssClasses : { + input: 'search-input' + } + }), + + instantsearch.widgets.stats({ + container: '#algolia-stats', + templates: { + text: data => { + let stats = algoliaSettings.labels.hits_stats + .replace(/\$\{hits}/, data.nbHits) + .replace(/\$\{time}/, data.processingTimeMS); + return `${stats} + + Algolia + +
`; + } + } + }), + + instantsearch.widgets.hits({ + container: '#algolia-hits', + templates: { + item: data => { + let link = data.permalink ? data.permalink : CONFIG.root + data.path; + return `${data._highlightResult.title.value}`; + }, + empty: data => { + return `
+ ${algoliaSettings.labels.hits_empty.replace(/\$\{query}/, data.query)} +
`; + } + }, + cssClasses: { + item: 'algolia-hit-item' + } + }), + + instantsearch.widgets.pagination({ + container: '#algolia-pagination', + scrollTo : false, + showFirst: false, + showLast : false, + templates: { + first : '', + last : '', + previous: '', + next : '' + }, + cssClasses: { + root : 'pagination', + item : 'pagination-item', + link : 'page-number', + selectedItem: 'current', + disabledItem: 'disabled-item' + } + }) + ]); + + search.start(); + + // Handle and trigger popup window + document.querySelectorAll('.popup-trigger').forEach(element => { + element.addEventListener('click', () => { + document.body.style.overflow = 'hidden'; + document.querySelector('.search-pop-overlay').classList.add('search-active'); + document.querySelector('.search-input').focus(); + }); + }); + + // Monitor main search box + const onPopupClose = () => { + document.body.style.overflow = ''; + document.querySelector('.search-pop-overlay').classList.remove('search-active'); + }; + + document.querySelector('.search-pop-overlay').addEventListener('click', event => { + if (event.target === document.querySelector('.search-pop-overlay')) { + onPopupClose(); + } + }); + document.querySelector('.popup-btn-close').addEventListener('click', onPopupClose); + window.addEventListener('pjax:success', onPopupClose); + window.addEventListener('keyup', event => { + if (event.key === 'Escape') { + onPopupClose(); + } + }); +}); diff --git a/js/bookmark.js b/js/bookmark.js new file mode 100644 index 00000000..7c2438e1 --- /dev/null +++ b/js/bookmark.js @@ -0,0 +1,56 @@ +/* global CONFIG */ + +document.addEventListener('DOMContentLoaded', () => { + 'use strict'; + + var doSaveScroll = () => { + localStorage.setItem('bookmark' + location.pathname, window.scrollY); + }; + + var scrollToMark = () => { + var top = localStorage.getItem('bookmark' + location.pathname); + top = parseInt(top, 10); + // If the page opens with a specific hash, just jump out + if (!isNaN(top) && location.hash === '') { + // Auto scroll to the position + window.anime({ + targets : document.scrollingElement, + duration : 200, + easing : 'linear', + scrollTop: top + }); + } + }; + // Register everything + var init = function(trigger) { + // Create a link element + var link = document.querySelector('.book-mark-link'); + // Scroll event + window.addEventListener('scroll', () => link.classList.toggle('book-mark-link-fixed', window.scrollY === 0)); + // Register beforeunload event when the trigger is auto + if (trigger === 'auto') { + // Register beforeunload event + window.addEventListener('beforeunload', doSaveScroll); + window.addEventListener('pjax:send', doSaveScroll); + } + // Save the position by clicking the icon + link.addEventListener('click', () => { + doSaveScroll(); + window.anime({ + targets : link, + duration: 200, + easing : 'linear', + top : -30, + complete: () => { + setTimeout(() => { + link.style.top = ''; + }, 400); + } + }); + }); + scrollToMark(); + window.addEventListener('pjax:success', scrollToMark); + }; + + init(CONFIG.bookmark.save); +}); diff --git a/js/local-search.js b/js/local-search.js new file mode 100644 index 00000000..31f945fd --- /dev/null +++ b/js/local-search.js @@ -0,0 +1,278 @@ +/* global CONFIG */ + +document.addEventListener('DOMContentLoaded', () => { + // Popup Window + let isfetched = false; + let datas; + let isXml = true; + // Search DB path + let searchPath = CONFIG.path; + if (searchPath.length === 0) { + searchPath = 'search.xml'; + } else if (searchPath.endsWith('json')) { + isXml = false; + } + const input = document.querySelector('.search-input'); + const resultContent = document.getElementById('search-result'); + + const getIndexByWord = (word, text, caseSensitive) => { + if (CONFIG.localsearch.unescape) { + let div = document.createElement('div'); + div.innerText = word; + word = div.innerHTML; + } + let wordLen = word.length; + if (wordLen === 0) return []; + let startPosition = 0; + let position = []; + let index = []; + if (!caseSensitive) { + text = text.toLowerCase(); + word = word.toLowerCase(); + } + while ((position = text.indexOf(word, startPosition)) > -1) { + index.push({ position, word }); + startPosition = position + wordLen; + } + return index; + }; + + // Merge hits into slices + const mergeIntoSlice = (start, end, index, searchText) => { + let item = index[index.length - 1]; + let { position, word } = item; + let hits = []; + let searchTextCountInSlice = 0; + while (position + word.length <= end && index.length !== 0) { + if (word === searchText) { + searchTextCountInSlice++; + } + hits.push({ + position, + length: word.length + }); + let wordEnd = position + word.length; + + // Move to next position of hit + index.pop(); + while (index.length !== 0) { + item = index[index.length - 1]; + position = item.position; + word = item.word; + if (wordEnd > position) { + index.pop(); + } else { + break; + } + } + } + return { + hits, + start, + end, + searchTextCount: searchTextCountInSlice + }; + }; + + // Highlight title and content + const highlightKeyword = (text, slice) => { + let result = ''; + let prevEnd = slice.start; + slice.hits.forEach(hit => { + result += text.substring(prevEnd, hit.position); + let end = hit.position + hit.length; + result += `${text.substring(hit.position, end)}`; + prevEnd = end; + }); + result += text.substring(prevEnd, slice.end); + return result; + }; + + const inputEventFunction = () => { + if (!isfetched) return; + let searchText = input.value.trim().toLowerCase(); + let keywords = searchText.split(/[-\s]+/); + if (keywords.length > 1) { + keywords.push(searchText); + } + let resultItems = []; + if (searchText.length > 0) { + // Perform local searching + datas.forEach(({ title, content, url }) => { + let titleInLowerCase = title.toLowerCase(); + let contentInLowerCase = content.toLowerCase(); + let indexOfTitle = []; + let indexOfContent = []; + let searchTextCount = 0; + keywords.forEach(keyword => { + indexOfTitle = indexOfTitle.concat(getIndexByWord(keyword, titleInLowerCase, false)); + indexOfContent = indexOfContent.concat(getIndexByWord(keyword, contentInLowerCase, false)); + }); + + // Show search results + if (indexOfTitle.length > 0 || indexOfContent.length > 0) { + let hitCount = indexOfTitle.length + indexOfContent.length; + // Sort index by position of keyword + [indexOfTitle, indexOfContent].forEach(index => { + index.sort((itemLeft, itemRight) => { + if (itemRight.position !== itemLeft.position) { + return itemRight.position - itemLeft.position; + } + return itemLeft.word.length - itemRight.word.length; + }); + }); + + let slicesOfTitle = []; + if (indexOfTitle.length !== 0) { + let tmp = mergeIntoSlice(0, title.length, indexOfTitle, searchText); + searchTextCount += tmp.searchTextCountInSlice; + slicesOfTitle.push(tmp); + } + + let slicesOfContent = []; + while (indexOfContent.length !== 0) { + let item = indexOfContent[indexOfContent.length - 1]; + let { position, word } = item; + // Cut out 100 characters + let start = position - 20; + let end = position + 80; + if (start < 0) { + start = 0; + } + if (end < position + word.length) { + end = position + word.length; + } + if (end > content.length) { + end = content.length; + } + let tmp = mergeIntoSlice(start, end, indexOfContent, searchText); + searchTextCount += tmp.searchTextCountInSlice; + slicesOfContent.push(tmp); + } + + // Sort slices in content by search text's count and hits' count + slicesOfContent.sort((sliceLeft, sliceRight) => { + if (sliceLeft.searchTextCount !== sliceRight.searchTextCount) { + return sliceRight.searchTextCount - sliceLeft.searchTextCount; + } else if (sliceLeft.hits.length !== sliceRight.hits.length) { + return sliceRight.hits.length - sliceLeft.hits.length; + } + return sliceLeft.start - sliceRight.start; + }); + + // Select top N slices in content + let upperBound = parseInt(CONFIG.localsearch.top_n_per_article, 10); + if (upperBound >= 0) { + slicesOfContent = slicesOfContent.slice(0, upperBound); + } + + let resultItem = ''; + + if (slicesOfTitle.length !== 0) { + resultItem += `
  • ${highlightKeyword(title, slicesOfTitle[0])}`; + } else { + resultItem += `
  • ${title}`; + } + + slicesOfContent.forEach(slice => { + resultItem += `

    ${highlightKeyword(content, slice)}...

    `; + }); + + resultItem += '
  • '; + resultItems.push({ + item: resultItem, + id : resultItems.length, + hitCount, + searchTextCount + }); + } + }); + } + if (keywords.length === 1 && keywords[0] === '') { + resultContent.innerHTML = '
    '; + } else if (resultItems.length === 0) { + resultContent.innerHTML = '
    '; + } else { + resultItems.sort((resultLeft, resultRight) => { + if (resultLeft.searchTextCount !== resultRight.searchTextCount) { + return resultRight.searchTextCount - resultLeft.searchTextCount; + } else if (resultLeft.hitCount !== resultRight.hitCount) { + return resultRight.hitCount - resultLeft.hitCount; + } + return resultRight.id - resultLeft.id; + }); + resultContent.innerHTML = ``; + window.pjax && window.pjax.refresh(resultContent); + } + }; + + const fetchData = () => { + fetch(CONFIG.root + searchPath) + .then(response => response.text()) + .then(res => { + // Get the contents from search data + isfetched = true; + datas = isXml ? [...new DOMParser().parseFromString(res, 'text/xml').querySelectorAll('entry')].map(element => { + return { + title : element.querySelector('title').textContent, + content: element.querySelector('content').textContent, + url : element.querySelector('url').textContent + }; + }) : JSON.parse(res); + // Only match articles with not empty titles + datas = datas.filter(data => data.title).map(data => { + data.title = data.title.trim(); + data.content = data.content ? data.content.trim().replace(/<[^>]+>/g, '') : ''; + data.url = decodeURIComponent(data.url).replace(/\/{2,}/g, '/'); + return data; + }); + // Remove loading animation + document.getElementById('no-result').innerHTML = ''; + inputEventFunction(); + }); + }; + + if (CONFIG.localsearch.preload) { + fetchData(); + } + + if (CONFIG.localsearch.trigger === 'auto') { + input.addEventListener('input', inputEventFunction); + } else { + document.querySelector('.search-icon').addEventListener('click', inputEventFunction); + input.addEventListener('keypress', event => { + if (event.key === 'Enter') { + inputEventFunction(); + } + }); + } + + // Handle and trigger popup window + document.querySelectorAll('.popup-trigger').forEach(element => { + element.addEventListener('click', () => { + document.body.style.overflow = 'hidden'; + document.querySelector('.search-pop-overlay').classList.add('search-active'); + input.focus(); + if (!isfetched) fetchData(); + }); + }); + + // Monitor main search box + const onPopupClose = () => { + document.body.style.overflow = ''; + document.querySelector('.search-pop-overlay').classList.remove('search-active'); + }; + + document.querySelector('.search-pop-overlay').addEventListener('click', event => { + if (event.target === document.querySelector('.search-pop-overlay')) { + onPopupClose(); + } + }); + document.querySelector('.popup-btn-close').addEventListener('click', onPopupClose); + window.addEventListener('pjax:success', onPopupClose); + window.addEventListener('keyup', event => { + if (event.key === 'Escape') { + onPopupClose(); + } + }); +}); diff --git a/js/motion.js b/js/motion.js new file mode 100644 index 00000000..026199aa --- /dev/null +++ b/js/motion.js @@ -0,0 +1,177 @@ +/* global NexT, CONFIG, Velocity */ + +if (window.$ && window.$.Velocity) window.Velocity = window.$.Velocity; + +NexT.motion = {}; + +NexT.motion.integrator = { + queue : [], + cursor: -1, + init : function() { + this.queue = []; + this.cursor = -1; + return this; + }, + add: function(fn) { + this.queue.push(fn); + return this; + }, + next: function() { + this.cursor++; + var fn = this.queue[this.cursor]; + typeof fn === 'function' && fn(NexT.motion.integrator); + }, + bootstrap: function() { + this.next(); + } +}; + +NexT.motion.middleWares = { + logo: function(integrator) { + var sequence = []; + var brand = document.querySelector('.brand'); + var image = document.querySelector('.custom-logo-image'); + var title = document.querySelector('.site-title'); + var subtitle = document.querySelector('.site-subtitle'); + var logoLineTop = document.querySelector('.logo-line-before i'); + var logoLineBottom = document.querySelector('.logo-line-after i'); + + brand && sequence.push({ + e: brand, + p: {opacity: 1}, + o: {duration: 200} + }); + + function getMistLineSettings(element, translateX) { + return { + e: element, + p: {translateX}, + o: { + duration : 500, + sequenceQueue: false + } + }; + } + + function pushImageToSequence() { + sequence.push({ + e: image, + p: {opacity: 1, top: 0}, + o: {duration: 200} + }); + } + + CONFIG.scheme === 'Mist' && logoLineTop && logoLineBottom + && sequence.push( + getMistLineSettings(logoLineTop, '100%'), + getMistLineSettings(logoLineBottom, '-100%') + ); + + CONFIG.scheme === 'Muse' && image && pushImageToSequence(); + + title && sequence.push({ + e: title, + p: {opacity: 1, top: 0}, + o: {duration: 200} + }); + + subtitle && sequence.push({ + e: subtitle, + p: {opacity: 1, top: 0}, + o: {duration: 200} + }); + + (CONFIG.scheme === 'Pisces' || CONFIG.scheme === 'Gemini') && image && pushImageToSequence(); + + if (sequence.length > 0) { + sequence[sequence.length - 1].o.complete = function() { + integrator.next(); + }; + Velocity.RunSequence(sequence); + } else { + integrator.next(); + } + + if (CONFIG.motion.async) { + integrator.next(); + } + }, + + menu: function(integrator) { + Velocity(document.querySelectorAll('.menu-item'), 'transition.slideDownIn', { + display : null, + duration: 200, + complete: function() { + integrator.next(); + } + }); + + if (CONFIG.motion.async) { + integrator.next(); + } + }, + + subMenu: function(integrator) { + var subMenuItem = document.querySelectorAll('.sub-menu .menu-item'); + if (subMenuItem.length > 0) { + subMenuItem.forEach(element => { + element.style.opacity = 1; + }); + } + integrator.next(); + }, + + postList: function(integrator) { + var postBlock = document.querySelectorAll('.post-block, .pagination, .comments'); + var postBlockTransition = CONFIG.motion.transition.post_block; + var postHeader = document.querySelectorAll('.post-header'); + var postHeaderTransition = CONFIG.motion.transition.post_header; + var postBody = document.querySelectorAll('.post-body'); + var postBodyTransition = CONFIG.motion.transition.post_body; + var collHeader = document.querySelectorAll('.collection-header'); + var collHeaderTransition = CONFIG.motion.transition.coll_header; + + if (postBlock.length > 0) { + var postMotionOptions = window.postMotionOptions || { + stagger : 100, + drag : true, + complete: function() { + integrator.next(); + } + }; + + if (CONFIG.motion.transition.post_block) { + Velocity(postBlock, 'transition.' + postBlockTransition, postMotionOptions); + } + if (CONFIG.motion.transition.post_header) { + Velocity(postHeader, 'transition.' + postHeaderTransition, postMotionOptions); + } + if (CONFIG.motion.transition.post_body) { + Velocity(postBody, 'transition.' + postBodyTransition, postMotionOptions); + } + if (CONFIG.motion.transition.coll_header) { + Velocity(collHeader, 'transition.' + collHeaderTransition, postMotionOptions); + } + } + if (CONFIG.scheme === 'Pisces' || CONFIG.scheme === 'Gemini') { + integrator.next(); + } + }, + + sidebar: function(integrator) { + var sidebarAffix = document.querySelector('.sidebar-inner'); + var sidebarAffixTransition = CONFIG.motion.transition.sidebar; + // Only for Pisces | Gemini. + if (sidebarAffixTransition && (CONFIG.scheme === 'Pisces' || CONFIG.scheme === 'Gemini')) { + Velocity(sidebarAffix, 'transition.' + sidebarAffixTransition, { + display : null, + duration: 200, + complete: function() { + // After motion complete need to remove transform from sidebar to let affix work on Pisces | Gemini. + sidebarAffix.style.transform = 'initial'; + } + }); + } + integrator.next(); + } +}; diff --git a/js/next-boot.js b/js/next-boot.js new file mode 100644 index 00000000..52ec9aec --- /dev/null +++ b/js/next-boot.js @@ -0,0 +1,114 @@ +/* global NexT, CONFIG, Velocity */ + +NexT.boot = {}; + +NexT.boot.registerEvents = function() { + + NexT.utils.registerScrollPercent(); + NexT.utils.registerCanIUseTag(); + + // Mobile top menu bar. + document.querySelector('.site-nav-toggle .toggle').addEventListener('click', () => { + event.currentTarget.classList.toggle('toggle-close'); + var siteNav = document.querySelector('.site-nav'); + var animateAction = siteNav.classList.contains('site-nav-on') ? 'slideUp' : 'slideDown'; + + if (typeof Velocity === 'function') { + Velocity(siteNav, animateAction, { + duration: 200, + complete: function() { + siteNav.classList.toggle('site-nav-on'); + } + }); + } else { + siteNav.classList.toggle('site-nav-on'); + } + }); + + var TAB_ANIMATE_DURATION = 200; + document.querySelectorAll('.sidebar-nav li').forEach((element, index) => { + element.addEventListener('click', event => { + var item = event.currentTarget; + var activeTabClassName = 'sidebar-nav-active'; + var activePanelClassName = 'sidebar-panel-active'; + if (item.classList.contains(activeTabClassName)) return; + + var targets = document.querySelectorAll('.sidebar-panel'); + var target = targets[index]; + var currentTarget = targets[1 - index]; + window.anime({ + targets : currentTarget, + duration: TAB_ANIMATE_DURATION, + easing : 'linear', + opacity : 0, + complete: () => { + // Prevent adding TOC to Overview if Overview was selected when close & open sidebar. + currentTarget.classList.remove(activePanelClassName); + target.style.opacity = 0; + target.classList.add(activePanelClassName); + window.anime({ + targets : target, + duration: TAB_ANIMATE_DURATION, + easing : 'linear', + opacity : 1 + }); + } + }); + + [...item.parentNode.children].forEach(element => { + element.classList.remove(activeTabClassName); + }); + item.classList.add(activeTabClassName); + }); + }); + + window.addEventListener('resize', NexT.utils.initSidebarDimension); + + window.addEventListener('hashchange', () => { + var tHash = location.hash; + if (tHash !== '' && !tHash.match(/%\S{2}/)) { + var target = document.querySelector(`.tabs ul.nav-tabs li a[href="${tHash}"]`); + target && target.click(); + } + }); +}; + +NexT.boot.refresh = function() { + + /** + * Register JS handlers by condition option. + * Need to add config option in Front-End at 'layout/_partials/head.swig' file. + */ + CONFIG.fancybox && NexT.utils.wrapImageWithFancyBox(); + CONFIG.mediumzoom && window.mediumZoom('.post-body :not(a) > img, .post-body > img'); + CONFIG.lazyload && window.lozad('.post-body img').observe(); + CONFIG.pangu && window.pangu.spacingPage(); + + CONFIG.exturl && NexT.utils.registerExtURL(); + CONFIG.copycode.enable && NexT.utils.registerCopyCode(); + NexT.utils.registerTabsTag(); + NexT.utils.registerActiveMenuItem(); + NexT.utils.registerLangSelect(); + NexT.utils.registerSidebarTOC(); + NexT.utils.wrapTableWithBox(); + NexT.utils.registerVideoIframe(); +}; + +NexT.boot.motion = function() { + // Define Motion Sequence & Bootstrap Motion. + if (CONFIG.motion.enable) { + NexT.motion.integrator + .add(NexT.motion.middleWares.logo) + .add(NexT.motion.middleWares.menu) + .add(NexT.motion.middleWares.postList) + .add(NexT.motion.middleWares.sidebar) + .bootstrap(); + } + NexT.utils.updateSidebarPosition(); +}; + +document.addEventListener('DOMContentLoaded', () => { + NexT.boot.registerEvents(); + NexT.boot.refresh(); + NexT.boot.motion(); +}); diff --git a/js/schemes/muse.js b/js/schemes/muse.js new file mode 100644 index 00000000..f4be56df --- /dev/null +++ b/js/schemes/muse.js @@ -0,0 +1,113 @@ +/* global NexT, CONFIG, Velocity */ + +document.addEventListener('DOMContentLoaded', () => { + + var isRight = CONFIG.sidebar.position === 'right'; + var SIDEBAR_WIDTH = CONFIG.sidebar.width || 320; + var SIDEBAR_DISPLAY_DURATION = 200; + var mousePos = {}; + + var sidebarToggleLines = { + lines: document.querySelector('.sidebar-toggle'), + init : function() { + this.lines.classList.remove('toggle-arrow', 'toggle-close'); + }, + arrow: function() { + this.lines.classList.remove('toggle-close'); + this.lines.classList.add('toggle-arrow'); + }, + close: function() { + this.lines.classList.remove('toggle-arrow'); + this.lines.classList.add('toggle-close'); + } + }; + + var sidebarToggleMotion = { + sidebarEl : document.querySelector('.sidebar'), + isSidebarVisible: false, + init : function() { + sidebarToggleLines.init(); + + window.addEventListener('mousedown', this.mousedownHandler.bind(this)); + window.addEventListener('mouseup', this.mouseupHandler.bind(this)); + document.querySelector('#sidebar-dimmer').addEventListener('click', this.clickHandler.bind(this)); + document.querySelector('.sidebar-toggle').addEventListener('click', this.clickHandler.bind(this)); + document.querySelector('.sidebar-toggle').addEventListener('mouseenter', this.mouseEnterHandler.bind(this)); + document.querySelector('.sidebar-toggle').addEventListener('mouseleave', this.mouseLeaveHandler.bind(this)); + window.addEventListener('sidebar:show', this.showSidebar.bind(this)); + window.addEventListener('sidebar:hide', this.hideSidebar.bind(this)); + }, + mousedownHandler: function(event) { + mousePos.X = event.pageX; + mousePos.Y = event.pageY; + }, + mouseupHandler: function(event) { + var deltaX = event.pageX - mousePos.X; + var deltaY = event.pageY - mousePos.Y; + var clickingBlankPart = Math.sqrt((deltaX * deltaX) + (deltaY * deltaY)) < 20 && event.target.matches('.main'); + if (this.isSidebarVisible && (clickingBlankPart || event.target.matches('img.medium-zoom-image, .fancybox img'))) { + this.hideSidebar(); + } + }, + clickHandler: function() { + this.isSidebarVisible ? this.hideSidebar() : this.showSidebar(); + }, + mouseEnterHandler: function() { + if (!this.isSidebarVisible) { + sidebarToggleLines.arrow(); + } + }, + mouseLeaveHandler: function() { + if (!this.isSidebarVisible) { + sidebarToggleLines.init(); + } + }, + showSidebar: function() { + this.isSidebarVisible = true; + this.sidebarEl.classList.add('sidebar-active'); + if (typeof Velocity === 'function') { + Velocity(document.querySelectorAll('.sidebar .motion-element'), isRight ? 'transition.slideRightIn' : 'transition.slideLeftIn', { + stagger: 50, + drag : true + }); + } + + sidebarToggleLines.close(); + NexT.utils.isDesktop() && window.anime(Object.assign({ + targets : document.body, + duration: SIDEBAR_DISPLAY_DURATION, + easing : 'linear' + }, isRight ? { + 'padding-right': SIDEBAR_WIDTH + } : { + 'padding-left': SIDEBAR_WIDTH + })); + }, + hideSidebar: function() { + this.isSidebarVisible = false; + this.sidebarEl.classList.remove('sidebar-active'); + + sidebarToggleLines.init(); + NexT.utils.isDesktop() && window.anime(Object.assign({ + targets : document.body, + duration: SIDEBAR_DISPLAY_DURATION, + easing : 'linear' + }, isRight ? { + 'padding-right': 0 + } : { + 'padding-left': 0 + })); + } + }; + sidebarToggleMotion.init(); + + function updateFooterPosition() { + var footer = document.querySelector('.footer'); + var containerHeight = document.querySelector('.header').offsetHeight + document.querySelector('.main').offsetHeight + footer.offsetHeight; + footer.classList.toggle('footer-fixed', containerHeight <= window.innerHeight); + } + + updateFooterPosition(); + window.addEventListener('resize', updateFooterPosition); + window.addEventListener('scroll', updateFooterPosition); +}); diff --git a/js/schemes/pisces.js b/js/schemes/pisces.js new file mode 100644 index 00000000..41633eac --- /dev/null +++ b/js/schemes/pisces.js @@ -0,0 +1,86 @@ +/* global NexT, CONFIG */ + +var Affix = { + init: function(element, options) { + this.element = element; + this.offset = options || 0; + this.affixed = null; + this.unpin = null; + this.pinnedOffset = null; + this.checkPosition(); + window.addEventListener('scroll', this.checkPosition.bind(this)); + window.addEventListener('click', this.checkPositionWithEventLoop.bind(this)); + window.matchMedia('(min-width: 992px)').addListener(event => { + if (event.matches) { + this.offset = NexT.utils.getAffixParam(); + this.checkPosition(); + } + }); + }, + getState: function(scrollHeight, height, offsetTop, offsetBottom) { + let scrollTop = window.scrollY; + let targetHeight = window.innerHeight; + if (offsetTop != null && this.affixed === 'top') { + if (document.querySelector('.content-wrap').offsetHeight < offsetTop) return 'top'; + return scrollTop < offsetTop ? 'top' : false; + } + if (this.affixed === 'bottom') { + if (offsetTop != null) return this.unpin <= this.element.getBoundingClientRect().top ? false : 'bottom'; + return scrollTop + targetHeight <= scrollHeight - offsetBottom ? false : 'bottom'; + } + let initializing = this.affixed === null; + let colliderTop = initializing ? scrollTop : this.element.getBoundingClientRect().top + scrollTop; + let colliderHeight = initializing ? targetHeight : height; + if (offsetTop != null && scrollTop <= offsetTop) return 'top'; + if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom'; + return false; + }, + getPinnedOffset: function() { + if (this.pinnedOffset) return this.pinnedOffset; + this.element.classList.remove('affix-top', 'affix-bottom'); + this.element.classList.add('affix'); + return (this.pinnedOffset = this.element.getBoundingClientRect().top); + }, + checkPositionWithEventLoop() { + setTimeout(this.checkPosition.bind(this), 1); + }, + checkPosition: function() { + if (window.getComputedStyle(this.element).display === 'none') return; + let height = this.element.offsetHeight; + let { offset } = this; + let offsetTop = offset.top; + let offsetBottom = offset.bottom; + let { scrollHeight } = document.body; + let affix = this.getState(scrollHeight, height, offsetTop, offsetBottom); + if (this.affixed !== affix) { + if (this.unpin != null) this.element.style.top = ''; + let affixType = 'affix' + (affix ? '-' + affix : ''); + this.affixed = affix; + this.unpin = affix === 'bottom' ? this.getPinnedOffset() : null; + this.element.classList.remove('affix', 'affix-top', 'affix-bottom'); + this.element.classList.add(affixType); + } + if (affix === 'bottom') { + this.element.style.top = scrollHeight - height - offsetBottom + 'px'; + } + } +}; + +NexT.utils.getAffixParam = function() { + const sidebarOffset = CONFIG.sidebar.offset || 12; + + let headerOffset = document.querySelector('.header-inner').offsetHeight; + let footerOffset = document.querySelector('.footer').offsetHeight; + + document.querySelector('.sidebar').style.marginTop = headerOffset + sidebarOffset + 'px'; + + return { + top : headerOffset, + bottom: footerOffset + }; +}; + +document.addEventListener('DOMContentLoaded', () => { + + Affix.init(document.querySelector('.sidebar-inner'), NexT.utils.getAffixParam()); +}); diff --git a/js/utils.js b/js/utils.js new file mode 100644 index 00000000..74a6dfd5 --- /dev/null +++ b/js/utils.js @@ -0,0 +1,415 @@ +/* global NexT, CONFIG */ + +HTMLElement.prototype.wrap = function(wrapper) { + this.parentNode.insertBefore(wrapper, this); + this.parentNode.removeChild(this); + wrapper.appendChild(this); +}; + +NexT.utils = { + + /** + * Wrap images with fancybox. + */ + wrapImageWithFancyBox: function() { + document.querySelectorAll('.post-body :not(a) > img, .post-body > img').forEach(element => { + var $image = $(element); + var imageLink = $image.attr('data-src') || $image.attr('src'); + var $imageWrapLink = $image.wrap(``).parent('a'); + if ($image.is('.post-gallery img')) { + $imageWrapLink.attr('data-fancybox', 'gallery').attr('rel', 'gallery'); + } else if ($image.is('.group-picture img')) { + $imageWrapLink.attr('data-fancybox', 'group').attr('rel', 'group'); + } else { + $imageWrapLink.attr('data-fancybox', 'default').attr('rel', 'default'); + } + + var imageTitle = $image.attr('title') || $image.attr('alt'); + if (imageTitle) { + $imageWrapLink.append(`

    ${imageTitle}

    `); + // Make sure img title tag will show correctly in fancybox + $imageWrapLink.attr('title', imageTitle).attr('data-caption', imageTitle); + } + }); + + $.fancybox.defaults.hash = false; + $('.fancybox').fancybox({ + loop : true, + helpers: { + overlay: { + locked: false + } + } + }); + }, + + registerExtURL: function() { + document.querySelectorAll('span.exturl').forEach(element => { + let link = document.createElement('a'); + // https://stackoverflow.com/questions/30106476/using-javascripts-atob-to-decode-base64-doesnt-properly-decode-utf-8-strings + link.href = decodeURIComponent(atob(element.dataset.url).split('').map(c => { + return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2); + }).join('')); + link.rel = 'noopener external nofollow noreferrer'; + link.target = '_blank'; + link.className = element.className; + link.title = element.title; + link.innerHTML = element.innerHTML; + element.parentNode.replaceChild(link, element); + }); + }, + + /** + * One-click copy code support. + */ + registerCopyCode: function() { + document.querySelectorAll('figure.highlight').forEach(element => { + const box = document.createElement('div'); + element.wrap(box); + box.classList.add('highlight-container'); + box.insertAdjacentHTML('beforeend', '
    '); + var button = element.parentNode.querySelector('.copy-btn'); + button.addEventListener('click', event => { + var target = event.currentTarget; + var code = [...target.parentNode.querySelectorAll('.code .line')].map(line => line.innerText).join('\n'); + var ta = document.createElement('textarea'); + ta.style.top = window.scrollY + 'px'; // Prevent page scrolling + ta.style.position = 'absolute'; + ta.style.opacity = '0'; + ta.readOnly = true; + ta.value = code; + document.body.append(ta); + const selection = document.getSelection(); + const selected = selection.rangeCount > 0 ? selection.getRangeAt(0) : false; + ta.select(); + ta.setSelectionRange(0, code.length); + ta.readOnly = false; + var result = document.execCommand('copy'); + if (CONFIG.copycode.show_result) { + target.querySelector('i').className = result ? 'fa fa-check fa-fw' : 'fa fa-times fa-fw'; + } + ta.blur(); // For iOS + target.blur(); + if (selected) { + selection.removeAllRanges(); + selection.addRange(selected); + } + document.body.removeChild(ta); + }); + button.addEventListener('mouseleave', event => { + setTimeout(() => { + event.target.querySelector('i').className = 'fa fa-clipboard fa-fw'; + }, 300); + }); + }); + }, + + wrapTableWithBox: function() { + document.querySelectorAll('table').forEach(element => { + const box = document.createElement('div'); + box.className = 'table-container'; + element.wrap(box); + }); + }, + + registerVideoIframe: function() { + document.querySelectorAll('iframe').forEach(element => { + const supported = [ + 'www.youtube.com', + 'player.vimeo.com', + 'player.youku.com', + 'player.bilibili.com', + 'www.tudou.com' + ].some(host => element.src.includes(host)); + if (supported && !element.parentNode.matches('.video-container')) { + const box = document.createElement('div'); + box.className = 'video-container'; + element.wrap(box); + let width = Number(element.width); + let height = Number(element.height); + if (width && height) { + element.parentNode.style.paddingTop = (height / width * 100) + '%'; + } + } + }); + }, + + registerScrollPercent: function() { + var THRESHOLD = 50; + var backToTop = document.querySelector('.back-to-top'); + var readingProgressBar = document.querySelector('.reading-progress-bar'); + // For init back to top in sidebar if page was scrolled after page refresh. + window.addEventListener('scroll', () => { + if (backToTop || readingProgressBar) { + var docHeight = document.querySelector('.container').offsetHeight; + var winHeight = window.innerHeight; + var contentVisibilityHeight = docHeight > winHeight ? docHeight - winHeight : document.body.scrollHeight - winHeight; + var scrollPercent = Math.min(100 * window.scrollY / contentVisibilityHeight, 100); + if (backToTop) { + backToTop.classList.toggle('back-to-top-on', window.scrollY > THRESHOLD); + backToTop.querySelector('span').innerText = Math.round(scrollPercent) + '%'; + } + if (readingProgressBar) { + readingProgressBar.style.width = scrollPercent.toFixed(2) + '%'; + } + } + }); + + backToTop && backToTop.addEventListener('click', () => { + window.anime({ + targets : document.scrollingElement, + duration : 500, + easing : 'linear', + scrollTop: 0 + }); + }); + }, + + /** + * Tabs tag listener (without twitter bootstrap). + */ + registerTabsTag: function() { + // Binding `nav-tabs` & `tab-content` by real time permalink changing. + document.querySelectorAll('.tabs ul.nav-tabs .tab').forEach(element => { + element.addEventListener('click', event => { + event.preventDefault(); + var target = event.currentTarget; + // Prevent selected tab to select again. + if (!target.classList.contains('active')) { + // Add & Remove active class on `nav-tabs` & `tab-content`. + [...target.parentNode.children].forEach(element => { + element.classList.remove('active'); + }); + target.classList.add('active'); + var tActive = document.getElementById(target.querySelector('a').getAttribute('href').replace('#', '')); + [...tActive.parentNode.children].forEach(element => { + element.classList.remove('active'); + }); + tActive.classList.add('active'); + // Trigger event + tActive.dispatchEvent(new Event('tabs:click', { + bubbles: true + })); + } + }); + }); + + window.dispatchEvent(new Event('tabs:register')); + }, + + registerCanIUseTag: function() { + // Get responsive height passed from iframe. + window.addEventListener('message', ({ data }) => { + if ((typeof data === 'string') && data.includes('ciu_embed')) { + var featureID = data.split(':')[1]; + var height = data.split(':')[2]; + document.querySelector(`iframe[data-feature=${featureID}]`).style.height = parseInt(height, 10) + 5 + 'px'; + } + }, false); + }, + + registerActiveMenuItem: function() { + document.querySelectorAll('.menu-item').forEach(element => { + var target = element.querySelector('a[href]'); + if (!target) return; + var isSamePath = target.pathname === location.pathname || target.pathname === location.pathname.replace('index.html', ''); + var isSubPath = !CONFIG.root.startsWith(target.pathname) && location.pathname.startsWith(target.pathname); + element.classList.toggle('menu-item-active', target.hostname === location.hostname && (isSamePath || isSubPath)); + }); + }, + + registerLangSelect: function() { + let selects = document.querySelectorAll('.lang-select'); + selects.forEach(sel => { + sel.value = CONFIG.page.lang; + sel.addEventListener('change', () => { + let target = sel.options[sel.selectedIndex]; + document.querySelectorAll('.lang-select-label span').forEach(span => span.innerText = target.text); + let url = target.dataset.href; + window.pjax ? window.pjax.loadUrl(url) : window.location.href = url; + }); + }); + }, + + registerSidebarTOC: function() { + const navItems = document.querySelectorAll('.post-toc li'); + const sections = [...navItems].map(element => { + var link = element.querySelector('a.nav-link'); + var target = document.getElementById(decodeURI(link.getAttribute('href')).replace('#', '')); + // TOC item animation navigate. + link.addEventListener('click', event => { + event.preventDefault(); + var offset = target.getBoundingClientRect().top + window.scrollY; + window.anime({ + targets : document.scrollingElement, + duration : 500, + easing : 'linear', + scrollTop: offset + 10 + }); + }); + return target; + }); + + var tocElement = document.querySelector('.post-toc-wrap'); + function activateNavByIndex(target) { + if (target.classList.contains('active-current')) return; + + document.querySelectorAll('.post-toc .active').forEach(element => { + element.classList.remove('active', 'active-current'); + }); + target.classList.add('active', 'active-current'); + var parent = target.parentNode; + while (!parent.matches('.post-toc')) { + if (parent.matches('li')) parent.classList.add('active'); + parent = parent.parentNode; + } + // Scrolling to center active TOC element if TOC content is taller then viewport. + window.anime({ + targets : tocElement, + duration : 200, + easing : 'linear', + scrollTop: tocElement.scrollTop - (tocElement.offsetHeight / 2) + target.getBoundingClientRect().top - tocElement.getBoundingClientRect().top + }); + } + + function findIndex(entries) { + let index = 0; + let entry = entries[index]; + if (entry.boundingClientRect.top > 0) { + index = sections.indexOf(entry.target); + return index === 0 ? 0 : index - 1; + } + for (; index < entries.length; index++) { + if (entries[index].boundingClientRect.top <= 0) { + entry = entries[index]; + } else { + return sections.indexOf(entry.target); + } + } + return sections.indexOf(entry.target); + } + + function createIntersectionObserver(marginTop) { + marginTop = Math.floor(marginTop + 10000); + let intersectionObserver = new IntersectionObserver((entries, observe) => { + let scrollHeight = document.documentElement.scrollHeight + 100; + if (scrollHeight > marginTop) { + observe.disconnect(); + createIntersectionObserver(scrollHeight); + return; + } + let index = findIndex(entries); + activateNavByIndex(navItems[index]); + }, { + rootMargin: marginTop + 'px 0px -100% 0px', + threshold : 0 + }); + sections.forEach(element => { + element && intersectionObserver.observe(element); + }); + } + createIntersectionObserver(document.documentElement.scrollHeight); + }, + + hasMobileUA: function() { + let ua = navigator.userAgent; + let pa = /iPad|iPhone|Android|Opera Mini|BlackBerry|webOS|UCWEB|Blazer|PSP|IEMobile|Symbian/g; + return pa.test(ua); + }, + + isTablet: function() { + return window.screen.width < 992 && window.screen.width > 767 && this.hasMobileUA(); + }, + + isMobile: function() { + return window.screen.width < 767 && this.hasMobileUA(); + }, + + isDesktop: function() { + return !this.isTablet() && !this.isMobile(); + }, + + supportsPDFs: function() { + let ua = navigator.userAgent; + let isFirefoxWithPDFJS = ua.includes('irefox') && parseInt(ua.split('rv:')[1].split('.')[0], 10) > 18; + let supportsPdfMimeType = typeof navigator.mimeTypes['application/pdf'] !== 'undefined'; + let isIOS = /iphone|ipad|ipod/i.test(ua.toLowerCase()); + return isFirefoxWithPDFJS || (supportsPdfMimeType && !isIOS); + }, + + /** + * Init Sidebar & TOC inner dimensions on all pages and for all schemes. + * Need for Sidebar/TOC inner scrolling if content taller then viewport. + */ + initSidebarDimension: function() { + var sidebarNav = document.querySelector('.sidebar-nav'); + var sidebarNavHeight = sidebarNav.style.display !== 'none' ? sidebarNav.offsetHeight : 0; + var sidebarOffset = CONFIG.sidebar.offset || 12; + var sidebarb2tHeight = CONFIG.back2top.enable && CONFIG.back2top.sidebar ? document.querySelector('.back-to-top').offsetHeight : 0; + var sidebarSchemePadding = (CONFIG.sidebar.padding * 2) + sidebarNavHeight + sidebarb2tHeight; + // Margin of sidebar b2t: -4px -10px -18px, brings a different of 22px. + if (CONFIG.scheme === 'Pisces' || CONFIG.scheme === 'Gemini') sidebarSchemePadding += (sidebarOffset * 2) - 22; + // Initialize Sidebar & TOC Height. + var sidebarWrapperHeight = document.body.offsetHeight - sidebarSchemePadding + 'px'; + document.querySelector('.site-overview-wrap').style.maxHeight = sidebarWrapperHeight; + document.querySelector('.post-toc-wrap').style.maxHeight = sidebarWrapperHeight; + }, + + updateSidebarPosition: function() { + var sidebarNav = document.querySelector('.sidebar-nav'); + var hasTOC = document.querySelector('.post-toc'); + if (hasTOC) { + sidebarNav.style.display = ''; + sidebarNav.classList.add('motion-element'); + document.querySelector('.sidebar-nav-toc').click(); + } else { + sidebarNav.style.display = 'none'; + sidebarNav.classList.remove('motion-element'); + document.querySelector('.sidebar-nav-overview').click(); + } + NexT.utils.initSidebarDimension(); + if (!this.isDesktop() || CONFIG.scheme === 'Pisces' || CONFIG.scheme === 'Gemini') return; + // Expand sidebar on post detail page by default, when post has a toc. + var display = CONFIG.page.sidebar; + if (typeof display !== 'boolean') { + // There's no definition sidebar in the page front-matter. + display = CONFIG.sidebar.display === 'always' || (CONFIG.sidebar.display === 'post' && hasTOC); + } + if (display) { + window.dispatchEvent(new Event('sidebar:show')); + } + }, + + getScript: function(url, callback, condition) { + if (condition) { + callback(); + } else { + var script = document.createElement('script'); + script.onload = script.onreadystatechange = function(_, isAbort) { + if (isAbort || !script.readyState || /loaded|complete/.test(script.readyState)) { + script.onload = script.onreadystatechange = null; + script = undefined; + if (!isAbort && callback) setTimeout(callback, 0); + } + }; + script.src = url; + document.head.appendChild(script); + } + }, + + loadComments: function(element, callback) { + if (!CONFIG.comments.lazyload || !element) { + callback(); + return; + } + let intersectionObserver = new IntersectionObserver((entries, observer) => { + let entry = entries[0]; + if (entry.isIntersecting) { + callback(); + observer.disconnect(); + } + }); + intersectionObserver.observe(element); + return intersectionObserver; + } +}; diff --git a/lib/anime.min.js b/lib/anime.min.js new file mode 100644 index 00000000..99b263aa --- /dev/null +++ b/lib/anime.min.js @@ -0,0 +1,8 @@ +/* + * anime.js v3.1.0 + * (c) 2019 Julian Garnier + * Released under the MIT license + * animejs.com + */ + +!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):n.anime=e()}(this,function(){"use strict";var n={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},e={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},r=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective"],t={CSS:{},springs:{}};function a(n,e,r){return Math.min(Math.max(n,e),r)}function o(n,e){return n.indexOf(e)>-1}function u(n,e){return n.apply(null,e)}var i={arr:function(n){return Array.isArray(n)},obj:function(n){return o(Object.prototype.toString.call(n),"Object")},pth:function(n){return i.obj(n)&&n.hasOwnProperty("totalLength")},svg:function(n){return n instanceof SVGElement},inp:function(n){return n instanceof HTMLInputElement},dom:function(n){return n.nodeType||i.svg(n)},str:function(n){return"string"==typeof n},fnc:function(n){return"function"==typeof n},und:function(n){return void 0===n},hex:function(n){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(n)},rgb:function(n){return/^rgb/.test(n)},hsl:function(n){return/^hsl/.test(n)},col:function(n){return i.hex(n)||i.rgb(n)||i.hsl(n)},key:function(r){return!n.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&"targets"!==r&&"keyframes"!==r}};function c(n){var e=/\(([^)]+)\)/.exec(n);return e?e[1].split(",").map(function(n){return parseFloat(n)}):[]}function s(n,e){var r=c(n),o=a(i.und(r[0])?1:r[0],.1,100),u=a(i.und(r[1])?100:r[1],.1,100),s=a(i.und(r[2])?10:r[2],.1,100),f=a(i.und(r[3])?0:r[3],.1,100),l=Math.sqrt(u/o),d=s/(2*Math.sqrt(u*o)),p=d<1?l*Math.sqrt(1-d*d):0,h=1,v=d<1?(d*l-f)/p:-f+l;function g(n){var r=e?e*n/1e3:n;return r=d<1?Math.exp(-r*d*l)*(h*Math.cos(p*r)+v*Math.sin(p*r)):(h+v*r)*Math.exp(-r*l),0===n||1===n?n:1-r}return e?g:function(){var e=t.springs[n];if(e)return e;for(var r=0,a=0;;)if(1===g(r+=1/6)){if(++a>=16)break}else a=0;var o=r*(1/6)*1e3;return t.springs[n]=o,o}}function f(n){return void 0===n&&(n=10),function(e){return Math.round(e*n)*(1/n)}}var l,d,p=function(){var n=11,e=1/(n-1);function r(n,e){return 1-3*e+3*n}function t(n,e){return 3*e-6*n}function a(n){return 3*n}function o(n,e,o){return((r(e,o)*n+t(e,o))*n+a(e))*n}function u(n,e,o){return 3*r(e,o)*n*n+2*t(e,o)*n+a(e)}return function(r,t,a,i){if(0<=r&&r<=1&&0<=a&&a<=1){var c=new Float32Array(n);if(r!==t||a!==i)for(var s=0;s=.001?function(n,e,r,t){for(var a=0;a<4;++a){var i=u(e,r,t);if(0===i)return e;e-=(o(e,r,t)-n)/i}return e}(t,l,r,a):0===d?l:function(n,e,r,t,a){for(var u,i,c=0;(u=o(i=e+(r-e)/2,t,a)-n)>0?r=i:e=i,Math.abs(u)>1e-7&&++c<10;);return i}(t,i,i+e,r,a)}}}(),h=(l={linear:function(){return function(n){return n}}},d={Sine:function(){return function(n){return 1-Math.cos(n*Math.PI/2)}},Circ:function(){return function(n){return 1-Math.sqrt(1-n*n)}},Back:function(){return function(n){return n*n*(3*n-2)}},Bounce:function(){return function(n){for(var e,r=4;n<((e=Math.pow(2,--r))-1)/11;);return 1/Math.pow(4,3-r)-7.5625*Math.pow((3*e-2)/22-n,2)}},Elastic:function(n,e){void 0===n&&(n=1),void 0===e&&(e=.5);var r=a(n,1,10),t=a(e,.1,2);return function(n){return 0===n||1===n?n:-r*Math.pow(2,10*(n-1))*Math.sin((n-1-t/(2*Math.PI)*Math.asin(1/r))*(2*Math.PI)/t)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach(function(n,e){d[n]=function(){return function(n){return Math.pow(n,e+2)}}}),Object.keys(d).forEach(function(n){var e=d[n];l["easeIn"+n]=e,l["easeOut"+n]=function(n,r){return function(t){return 1-e(n,r)(1-t)}},l["easeInOut"+n]=function(n,r){return function(t){return t<.5?e(n,r)(2*t)/2:1-e(n,r)(-2*t+2)/2}}}),l);function v(n,e){if(i.fnc(n))return n;var r=n.split("(")[0],t=h[r],a=c(n);switch(r){case"spring":return s(n,e);case"cubicBezier":return u(p,a);case"steps":return u(f,a);default:return u(t,a)}}function g(n){try{return document.querySelectorAll(n)}catch(n){return}}function m(n,e){for(var r=n.length,t=arguments.length>=2?arguments[1]:void 0,a=[],o=0;o1&&(r-=1),r<1/6?n+6*(e-n)*r:r<.5?e:r<2/3?n+(e-n)*(2/3-r)*6:n}if(0==u)e=r=t=i;else{var f=i<.5?i*(1+u):i+u-i*u,l=2*i-f;e=s(l,f,o+1/3),r=s(l,f,o),t=s(l,f,o-1/3)}return"rgba("+255*e+","+255*r+","+255*t+","+c+")"}(n):void 0;var e,r,t,a}function C(n){var e=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(n);if(e)return e[1]}function B(n,e){return i.fnc(n)?n(e.target,e.id,e.total):n}function P(n,e){return n.getAttribute(e)}function I(n,e,r){if(M([r,"deg","rad","turn"],C(e)))return e;var a=t.CSS[e+r];if(!i.und(a))return a;var o=document.createElement(n.tagName),u=n.parentNode&&n.parentNode!==document?n.parentNode:document.body;u.appendChild(o),o.style.position="absolute",o.style.width=100+r;var c=100/o.offsetWidth;u.removeChild(o);var s=c*parseFloat(e);return t.CSS[e+r]=s,s}function T(n,e,r){if(e in n.style){var t=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),a=n.style[e]||getComputedStyle(n).getPropertyValue(t)||"0";return r?I(n,a,r):a}}function D(n,e){return i.dom(n)&&!i.inp(n)&&(P(n,e)||i.svg(n)&&n[e])?"attribute":i.dom(n)&&M(r,e)?"transform":i.dom(n)&&"transform"!==e&&T(n,e)?"css":null!=n[e]?"object":void 0}function E(n){if(i.dom(n)){for(var e,r=n.style.transform||"",t=/(\w+)\(([^)]*)\)/g,a=new Map;e=t.exec(r);)a.set(e[1],e[2]);return a}}function F(n,e,r,t){var a,u=o(e,"scale")?1:0+(o(a=e,"translate")||"perspective"===a?"px":o(a,"rotate")||o(a,"skew")?"deg":void 0),i=E(n).get(e)||u;return r&&(r.transforms.list.set(e,i),r.transforms.last=e),t?I(n,i,t):i}function N(n,e,r,t){switch(D(n,e)){case"transform":return F(n,e,t,r);case"css":return T(n,e,r);case"attribute":return P(n,e);default:return n[e]||0}}function A(n,e){var r=/^(\*=|\+=|-=)/.exec(n);if(!r)return n;var t=C(n)||0,a=parseFloat(e),o=parseFloat(n.replace(r[0],""));switch(r[0][0]){case"+":return a+o+t;case"-":return a-o+t;case"*":return a*o+t}}function L(n,e){if(i.col(n))return O(n);if(/\s/g.test(n))return n;var r=C(n),t=r?n.substr(0,n.length-r.length):n;return e?t+e:t}function j(n,e){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function S(n){for(var e,r=n.points,t=0,a=0;a0&&(t+=j(e,o)),e=o}return t}function q(n){if(n.getTotalLength)return n.getTotalLength();switch(n.tagName.toLowerCase()){case"circle":return o=n,2*Math.PI*P(o,"r");case"rect":return 2*P(a=n,"width")+2*P(a,"height");case"line":return j({x:P(t=n,"x1"),y:P(t,"y1")},{x:P(t,"x2"),y:P(t,"y2")});case"polyline":return S(n);case"polygon":return r=(e=n).points,S(e)+j(r.getItem(r.numberOfItems-1),r.getItem(0))}var e,r,t,a,o}function $(n,e){var r=e||{},t=r.el||function(n){for(var e=n.parentNode;i.svg(e)&&i.svg(e.parentNode);)e=e.parentNode;return e}(n),a=t.getBoundingClientRect(),o=P(t,"viewBox"),u=a.width,c=a.height,s=r.viewBox||(o?o.split(" "):[0,0,u,c]);return{el:t,viewBox:s,x:s[0]/1,y:s[1]/1,w:u/s[2],h:c/s[3]}}function X(n,e){function r(r){void 0===r&&(r=0);var t=e+r>=1?e+r:0;return n.el.getPointAtLength(t)}var t=$(n.el,n.svg),a=r(),o=r(-1),u=r(1);switch(n.property){case"x":return(a.x-t.x)*t.w;case"y":return(a.y-t.y)*t.h;case"angle":return 180*Math.atan2(u.y-o.y,u.x-o.x)/Math.PI}}function Y(n,e){var r=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,t=L(i.pth(n)?n.totalLength:n,e)+"";return{original:t,numbers:t.match(r)?t.match(r).map(Number):[0],strings:i.str(n)||e?t.split(r):[]}}function Z(n){return m(n?y(i.arr(n)?n.map(b):b(n)):[],function(n,e,r){return r.indexOf(n)===e})}function Q(n){var e=Z(n);return e.map(function(n,r){return{target:n,id:r,total:e.length,transforms:{list:E(n)}}})}function V(n,e){var r=x(e);if(/^spring/.test(r.easing)&&(r.duration=s(r.easing)),i.arr(n)){var t=n.length;2===t&&!i.obj(n[0])?n={value:n}:i.fnc(e.duration)||(r.duration=e.duration/t)}var a=i.arr(n)?n:[n];return a.map(function(n,r){var t=i.obj(n)&&!i.pth(n)?n:{value:n};return i.und(t.delay)&&(t.delay=r?0:e.delay),i.und(t.endDelay)&&(t.endDelay=r===a.length-1?e.endDelay:0),t}).map(function(n){return k(n,r)})}function z(n,e){var r=[],t=e.keyframes;for(var a in t&&(e=k(function(n){for(var e=m(y(n.map(function(n){return Object.keys(n)})),function(n){return i.key(n)}).reduce(function(n,e){return n.indexOf(e)<0&&n.push(e),n},[]),r={},t=function(t){var a=e[t];r[a]=n.map(function(n){var e={};for(var r in n)i.key(r)?r==a&&(e.value=n[r]):e[r]=n[r];return e})},a=0;a-1&&(_.splice(o,1),r=_.length)}else a.tick(e);t++}n()}else U=cancelAnimationFrame(U)}return n}();function rn(r){void 0===r&&(r={});var t,o=0,u=0,i=0,c=0,s=null;function f(n){var e=window.Promise&&new Promise(function(n){return s=n});return n.finished=e,e}var l,d,p,h,v,g,y,b,M=(d=w(n,l=r),p=w(e,l),h=z(p,l),v=Q(l.targets),g=W(v,h),y=J(g,p),b=K,K++,k(d,{id:b,children:[],animatables:v,animations:g,duration:y.duration,delay:y.delay,endDelay:y.endDelay}));f(M);function x(){var n=M.direction;"alternate"!==n&&(M.direction="normal"!==n?"normal":"reverse"),M.reversed=!M.reversed,t.forEach(function(n){return n.reversed=M.reversed})}function O(n){return M.reversed?M.duration-n:n}function C(){o=0,u=O(M.currentTime)*(1/rn.speed)}function B(n,e){e&&e.seek(n-e.timelineOffset)}function P(n){for(var e=0,r=M.animations,t=r.length;e2||(b=Math.round(b*p)/p)),h.push(b)}var k=d.length;if(k){g=d[0];for(var O=0;O0&&(M.began=!0,I("begin")),!M.loopBegan&&M.currentTime>0&&(M.loopBegan=!0,I("loopBegin")),d<=r&&0!==M.currentTime&&P(0),(d>=l&&M.currentTime!==e||!e)&&P(e),d>r&&d=e&&(u=0,M.remaining&&!0!==M.remaining&&M.remaining--,M.remaining?(o=i,I("loopComplete"),M.loopBegan=!1,"alternate"===M.direction&&x()):(M.paused=!0,M.completed||(M.completed=!0,I("loopComplete"),I("complete"),!M.passThrough&&"Promise"in window&&(s(),f(M)))))}return M.reset=function(){var n=M.direction;M.passThrough=!1,M.currentTime=0,M.progress=0,M.paused=!0,M.began=!1,M.loopBegan=!1,M.changeBegan=!1,M.completed=!1,M.changeCompleted=!1,M.reversePlayback=!1,M.reversed="reverse"===n,M.remaining=M.loop,t=M.children;for(var e=c=t.length;e--;)M.children[e].reset();(M.reversed&&!0!==M.loop||"alternate"===n&&1===M.loop)&&M.remaining++,P(M.reversed?M.duration:0)},M.set=function(n,e){return R(n,e),M},M.tick=function(n){i=n,o||(o=i),T((i+(u-o))*rn.speed)},M.seek=function(n){T(O(n))},M.pause=function(){M.paused=!0,C()},M.play=function(){M.paused&&(M.completed&&M.reset(),M.paused=!1,_.push(M),C(),U||en())},M.reverse=function(){x(),C()},M.restart=function(){M.reset(),M.play()},M.reset(),M.autoplay&&M.play(),M}function tn(n,e){for(var r=e.length;r--;)M(n,e[r].animatable.target)&&e.splice(r,1)}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",function(){document.hidden?(_.forEach(function(n){return n.pause()}),nn=_.slice(0),rn.running=_=[]):nn.forEach(function(n){return n.play()})}),rn.version="3.1.0",rn.speed=1,rn.running=_,rn.remove=function(n){for(var e=Z(n),r=_.length;r--;){var t=_[r],a=t.animations,o=t.children;tn(e,a);for(var u=o.length;u--;){var i=o[u],c=i.animations;tn(e,c),c.length||i.children.length||o.splice(u,1)}a.length||o.length||t.pause()}},rn.get=N,rn.set=R,rn.convertPx=I,rn.path=function(n,e){var r=i.str(n)?g(n)[0]:n,t=e||100;return function(n){return{property:n,el:r,svg:$(r),totalLength:q(r)*(t/100)}}},rn.setDashoffset=function(n){var e=q(n);return n.setAttribute("stroke-dasharray",e),e},rn.stagger=function(n,e){void 0===e&&(e={});var r=e.direction||"normal",t=e.easing?v(e.easing):null,a=e.grid,o=e.axis,u=e.from||0,c="first"===u,s="center"===u,f="last"===u,l=i.arr(n),d=l?parseFloat(n[0]):parseFloat(n),p=l?parseFloat(n[1]):0,h=C(l?n[1]:n)||0,g=e.start||0+(l?d:0),m=[],y=0;return function(n,e,i){if(c&&(u=0),s&&(u=(i-1)/2),f&&(u=i-1),!m.length){for(var v=0;v-1&&_.splice(o,1);for(var s=0;sli{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{-webkit-filter:none;filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\f26e"}.fa-accessible-icon:before{content:"\f368"}.fa-accusoft:before{content:"\f369"}.fa-acquisitions-incorporated:before{content:"\f6af"}.fa-ad:before{content:"\f641"}.fa-address-book:before{content:"\f2b9"}.fa-address-card:before{content:"\f2bb"}.fa-adjust:before{content:"\f042"}.fa-adn:before{content:"\f170"}.fa-adobe:before{content:"\f778"}.fa-adversal:before{content:"\f36a"}.fa-affiliatetheme:before{content:"\f36b"}.fa-air-freshener:before{content:"\f5d0"}.fa-airbnb:before{content:"\f834"}.fa-algolia:before{content:"\f36c"}.fa-align-center:before{content:"\f037"}.fa-align-justify:before{content:"\f039"}.fa-align-left:before{content:"\f036"}.fa-align-right:before{content:"\f038"}.fa-alipay:before{content:"\f642"}.fa-allergies:before{content:"\f461"}.fa-amazon:before{content:"\f270"}.fa-amazon-pay:before{content:"\f42c"}.fa-ambulance:before{content:"\f0f9"}.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-amilia:before{content:"\f36d"}.fa-anchor:before{content:"\f13d"}.fa-android:before{content:"\f17b"}.fa-angellist:before{content:"\f209"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-down:before{content:"\f107"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angry:before{content:"\f556"}.fa-angrycreative:before{content:"\f36e"}.fa-angular:before{content:"\f420"}.fa-ankh:before{content:"\f644"}.fa-app-store:before{content:"\f36f"}.fa-app-store-ios:before{content:"\f370"}.fa-apper:before{content:"\f371"}.fa-apple:before{content:"\f179"}.fa-apple-alt:before{content:"\f5d1"}.fa-apple-pay:before{content:"\f415"}.fa-archive:before{content:"\f187"}.fa-archway:before{content:"\f557"}.fa-arrow-alt-circle-down:before{content:"\f358"}.fa-arrow-alt-circle-left:before{content:"\f359"}.fa-arrow-alt-circle-right:before{content:"\f35a"}.fa-arrow-alt-circle-up:before{content:"\f35b"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-down:before{content:"\f063"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrows-alt:before{content:"\f0b2"}.fa-arrows-alt-h:before{content:"\f337"}.fa-arrows-alt-v:before{content:"\f338"}.fa-artstation:before{content:"\f77a"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asterisk:before{content:"\f069"}.fa-asymmetrik:before{content:"\f372"}.fa-at:before{content:"\f1fa"}.fa-atlas:before{content:"\f558"}.fa-atlassian:before{content:"\f77b"}.fa-atom:before{content:"\f5d2"}.fa-audible:before{content:"\f373"}.fa-audio-description:before{content:"\f29e"}.fa-autoprefixer:before{content:"\f41c"}.fa-avianex:before{content:"\f374"}.fa-aviato:before{content:"\f421"}.fa-award:before{content:"\f559"}.fa-aws:before{content:"\f375"}.fa-baby:before{content:"\f77c"}.fa-baby-carriage:before{content:"\f77d"}.fa-backspace:before{content:"\f55a"}.fa-backward:before{content:"\f04a"}.fa-bacon:before{content:"\f7e5"}.fa-bahai:before{content:"\f666"}.fa-balance-scale:before{content:"\f24e"}.fa-balance-scale-left:before{content:"\f515"}.fa-balance-scale-right:before{content:"\f516"}.fa-ban:before{content:"\f05e"}.fa-band-aid:before{content:"\f462"}.fa-bandcamp:before{content:"\f2d5"}.fa-barcode:before{content:"\f02a"}.fa-bars:before{content:"\f0c9"}.fa-baseball-ball:before{content:"\f433"}.fa-basketball-ball:before{content:"\f434"}.fa-bath:before{content:"\f2cd"}.fa-battery-empty:before{content:"\f244"}.fa-battery-full:before{content:"\f240"}.fa-battery-half:before{content:"\f242"}.fa-battery-quarter:before{content:"\f243"}.fa-battery-three-quarters:before{content:"\f241"}.fa-battle-net:before{content:"\f835"}.fa-bed:before{content:"\f236"}.fa-beer:before{content:"\f0fc"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-bell:before{content:"\f0f3"}.fa-bell-slash:before{content:"\f1f6"}.fa-bezier-curve:before{content:"\f55b"}.fa-bible:before{content:"\f647"}.fa-bicycle:before{content:"\f206"}.fa-biking:before{content:"\f84a"}.fa-bimobject:before{content:"\f378"}.fa-binoculars:before{content:"\f1e5"}.fa-biohazard:before{content:"\f780"}.fa-birthday-cake:before{content:"\f1fd"}.fa-bitbucket:before{content:"\f171"}.fa-bitcoin:before{content:"\f379"}.fa-bity:before{content:"\f37a"}.fa-black-tie:before{content:"\f27e"}.fa-blackberry:before{content:"\f37b"}.fa-blender:before{content:"\f517"}.fa-blender-phone:before{content:"\f6b6"}.fa-blind:before{content:"\f29d"}.fa-blog:before{content:"\f781"}.fa-blogger:before{content:"\f37c"}.fa-blogger-b:before{content:"\f37d"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-bold:before{content:"\f032"}.fa-bolt:before{content:"\f0e7"}.fa-bomb:before{content:"\f1e2"}.fa-bone:before{content:"\f5d7"}.fa-bong:before{content:"\f55c"}.fa-book:before{content:"\f02d"}.fa-book-dead:before{content:"\f6b7"}.fa-book-medical:before{content:"\f7e6"}.fa-book-open:before{content:"\f518"}.fa-book-reader:before{content:"\f5da"}.fa-bookmark:before{content:"\f02e"}.fa-bootstrap:before{content:"\f836"}.fa-border-all:before{content:"\f84c"}.fa-border-none:before{content:"\f850"}.fa-border-style:before{content:"\f853"}.fa-bowling-ball:before{content:"\f436"}.fa-box:before{content:"\f466"}.fa-box-open:before{content:"\f49e"}.fa-box-tissue:before{content:"\f95b"}.fa-boxes:before{content:"\f468"}.fa-braille:before{content:"\f2a1"}.fa-brain:before{content:"\f5dc"}.fa-bread-slice:before{content:"\f7ec"}.fa-briefcase:before{content:"\f0b1"}.fa-briefcase-medical:before{content:"\f469"}.fa-broadcast-tower:before{content:"\f519"}.fa-broom:before{content:"\f51a"}.fa-brush:before{content:"\f55d"}.fa-btc:before{content:"\f15a"}.fa-buffer:before{content:"\f837"}.fa-bug:before{content:"\f188"}.fa-building:before{content:"\f1ad"}.fa-bullhorn:before{content:"\f0a1"}.fa-bullseye:before{content:"\f140"}.fa-burn:before{content:"\f46a"}.fa-buromobelexperte:before{content:"\f37f"}.fa-bus:before{content:"\f207"}.fa-bus-alt:before{content:"\f55e"}.fa-business-time:before{content:"\f64a"}.fa-buy-n-large:before{content:"\f8a6"}.fa-buysellads:before{content:"\f20d"}.fa-calculator:before{content:"\f1ec"}.fa-calendar:before{content:"\f133"}.fa-calendar-alt:before{content:"\f073"}.fa-calendar-check:before{content:"\f274"}.fa-calendar-day:before{content:"\f783"}.fa-calendar-minus:before{content:"\f272"}.fa-calendar-plus:before{content:"\f271"}.fa-calendar-times:before{content:"\f273"}.fa-calendar-week:before{content:"\f784"}.fa-camera:before{content:"\f030"}.fa-camera-retro:before{content:"\f083"}.fa-campground:before{content:"\f6bb"}.fa-canadian-maple-leaf:before{content:"\f785"}.fa-candy-cane:before{content:"\f786"}.fa-cannabis:before{content:"\f55f"}.fa-capsules:before{content:"\f46b"}.fa-car:before{content:"\f1b9"}.fa-car-alt:before{content:"\f5de"}.fa-car-battery:before{content:"\f5df"}.fa-car-crash:before{content:"\f5e1"}.fa-car-side:before{content:"\f5e4"}.fa-caravan:before{content:"\f8ff"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-caret-square-down:before{content:"\f150"}.fa-caret-square-left:before{content:"\f191"}.fa-caret-square-right:before{content:"\f152"}.fa-caret-square-up:before{content:"\f151"}.fa-caret-up:before{content:"\f0d8"}.fa-carrot:before{content:"\f787"}.fa-cart-arrow-down:before{content:"\f218"}.fa-cart-plus:before{content:"\f217"}.fa-cash-register:before{content:"\f788"}.fa-cat:before{content:"\f6be"}.fa-cc-amazon-pay:before{content:"\f42d"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-apple-pay:before{content:"\f416"}.fa-cc-diners-club:before{content:"\f24c"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-cc-visa:before{content:"\f1f0"}.fa-centercode:before{content:"\f380"}.fa-centos:before{content:"\f789"}.fa-certificate:before{content:"\f0a3"}.fa-chair:before{content:"\f6c0"}.fa-chalkboard:before{content:"\f51b"}.fa-chalkboard-teacher:before{content:"\f51c"}.fa-charging-station:before{content:"\f5e7"}.fa-chart-area:before{content:"\f1fe"}.fa-chart-bar:before{content:"\f080"}.fa-chart-line:before{content:"\f201"}.fa-chart-pie:before{content:"\f200"}.fa-check:before{content:"\f00c"}.fa-check-circle:before{content:"\f058"}.fa-check-double:before{content:"\f560"}.fa-check-square:before{content:"\f14a"}.fa-cheese:before{content:"\f7ef"}.fa-chess:before{content:"\f439"}.fa-chess-bishop:before{content:"\f43a"}.fa-chess-board:before{content:"\f43c"}.fa-chess-king:before{content:"\f43f"}.fa-chess-knight:before{content:"\f441"}.fa-chess-pawn:before{content:"\f443"}.fa-chess-queen:before{content:"\f445"}.fa-chess-rook:before{content:"\f447"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-down:before{content:"\f078"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-chevron-up:before{content:"\f077"}.fa-child:before{content:"\f1ae"}.fa-chrome:before{content:"\f268"}.fa-chromecast:before{content:"\f838"}.fa-church:before{content:"\f51d"}.fa-circle:before{content:"\f111"}.fa-circle-notch:before{content:"\f1ce"}.fa-city:before{content:"\f64f"}.fa-clinic-medical:before{content:"\f7f2"}.fa-clipboard:before{content:"\f328"}.fa-clipboard-check:before{content:"\f46c"}.fa-clipboard-list:before{content:"\f46d"}.fa-clock:before{content:"\f017"}.fa-clone:before{content:"\f24d"}.fa-closed-captioning:before{content:"\f20a"}.fa-cloud:before{content:"\f0c2"}.fa-cloud-download-alt:before{content:"\f381"}.fa-cloud-meatball:before{content:"\f73b"}.fa-cloud-moon:before{content:"\f6c3"}.fa-cloud-moon-rain:before{content:"\f73c"}.fa-cloud-rain:before{content:"\f73d"}.fa-cloud-showers-heavy:before{content:"\f740"}.fa-cloud-sun:before{content:"\f6c4"}.fa-cloud-sun-rain:before{content:"\f743"}.fa-cloud-upload-alt:before{content:"\f382"}.fa-cloudscale:before{content:"\f383"}.fa-cloudsmith:before{content:"\f384"}.fa-cloudversify:before{content:"\f385"}.fa-cocktail:before{content:"\f561"}.fa-code:before{content:"\f121"}.fa-code-branch:before{content:"\f126"}.fa-codepen:before{content:"\f1cb"}.fa-codiepie:before{content:"\f284"}.fa-coffee:before{content:"\f0f4"}.fa-cog:before{content:"\f013"}.fa-cogs:before{content:"\f085"}.fa-coins:before{content:"\f51e"}.fa-columns:before{content:"\f0db"}.fa-comment:before{content:"\f075"}.fa-comment-alt:before{content:"\f27a"}.fa-comment-dollar:before{content:"\f651"}.fa-comment-dots:before{content:"\f4ad"}.fa-comment-medical:before{content:"\f7f5"}.fa-comment-slash:before{content:"\f4b3"}.fa-comments:before{content:"\f086"}.fa-comments-dollar:before{content:"\f653"}.fa-compact-disc:before{content:"\f51f"}.fa-compass:before{content:"\f14e"}.fa-compress:before{content:"\f066"}.fa-compress-alt:before{content:"\f422"}.fa-compress-arrows-alt:before{content:"\f78c"}.fa-concierge-bell:before{content:"\f562"}.fa-confluence:before{content:"\f78d"}.fa-connectdevelop:before{content:"\f20e"}.fa-contao:before{content:"\f26d"}.fa-cookie:before{content:"\f563"}.fa-cookie-bite:before{content:"\f564"}.fa-copy:before{content:"\f0c5"}.fa-copyright:before{content:"\f1f9"}.fa-cotton-bureau:before{content:"\f89e"}.fa-couch:before{content:"\f4b8"}.fa-cpanel:before{content:"\f388"}.fa-creative-commons:before{content:"\f25e"}.fa-creative-commons-by:before{content:"\f4e7"}.fa-creative-commons-nc:before{content:"\f4e8"}.fa-creative-commons-nc-eu:before{content:"\f4e9"}.fa-creative-commons-nc-jp:before{content:"\f4ea"}.fa-creative-commons-nd:before{content:"\f4eb"}.fa-creative-commons-pd:before{content:"\f4ec"}.fa-creative-commons-pd-alt:before{content:"\f4ed"}.fa-creative-commons-remix:before{content:"\f4ee"}.fa-creative-commons-sa:before{content:"\f4ef"}.fa-creative-commons-sampling:before{content:"\f4f0"}.fa-creative-commons-sampling-plus:before{content:"\f4f1"}.fa-creative-commons-share:before{content:"\f4f2"}.fa-creative-commons-zero:before{content:"\f4f3"}.fa-credit-card:before{content:"\f09d"}.fa-critical-role:before{content:"\f6c9"}.fa-crop:before{content:"\f125"}.fa-crop-alt:before{content:"\f565"}.fa-cross:before{content:"\f654"}.fa-crosshairs:before{content:"\f05b"}.fa-crow:before{content:"\f520"}.fa-crown:before{content:"\f521"}.fa-crutch:before{content:"\f7f7"}.fa-css3:before{content:"\f13c"}.fa-css3-alt:before{content:"\f38b"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-cut:before{content:"\f0c4"}.fa-cuttlefish:before{content:"\f38c"}.fa-d-and-d:before{content:"\f38d"}.fa-d-and-d-beyond:before{content:"\f6ca"}.fa-dailymotion:before{content:"\f952"}.fa-dashcube:before{content:"\f210"}.fa-database:before{content:"\f1c0"}.fa-deaf:before{content:"\f2a4"}.fa-delicious:before{content:"\f1a5"}.fa-democrat:before{content:"\f747"}.fa-deploydog:before{content:"\f38e"}.fa-deskpro:before{content:"\f38f"}.fa-desktop:before{content:"\f108"}.fa-dev:before{content:"\f6cc"}.fa-deviantart:before{content:"\f1bd"}.fa-dharmachakra:before{content:"\f655"}.fa-dhl:before{content:"\f790"}.fa-diagnoses:before{content:"\f470"}.fa-diaspora:before{content:"\f791"}.fa-dice:before{content:"\f522"}.fa-dice-d20:before{content:"\f6cf"}.fa-dice-d6:before{content:"\f6d1"}.fa-dice-five:before{content:"\f523"}.fa-dice-four:before{content:"\f524"}.fa-dice-one:before{content:"\f525"}.fa-dice-six:before{content:"\f526"}.fa-dice-three:before{content:"\f527"}.fa-dice-two:before{content:"\f528"}.fa-digg:before{content:"\f1a6"}.fa-digital-ocean:before{content:"\f391"}.fa-digital-tachograph:before{content:"\f566"}.fa-directions:before{content:"\f5eb"}.fa-discord:before{content:"\f392"}.fa-discourse:before{content:"\f393"}.fa-disease:before{content:"\f7fa"}.fa-divide:before{content:"\f529"}.fa-dizzy:before{content:"\f567"}.fa-dna:before{content:"\f471"}.fa-dochub:before{content:"\f394"}.fa-docker:before{content:"\f395"}.fa-dog:before{content:"\f6d3"}.fa-dollar-sign:before{content:"\f155"}.fa-dolly:before{content:"\f472"}.fa-dolly-flatbed:before{content:"\f474"}.fa-donate:before{content:"\f4b9"}.fa-door-closed:before{content:"\f52a"}.fa-door-open:before{content:"\f52b"}.fa-dot-circle:before{content:"\f192"}.fa-dove:before{content:"\f4ba"}.fa-download:before{content:"\f019"}.fa-draft2digital:before{content:"\f396"}.fa-drafting-compass:before{content:"\f568"}.fa-dragon:before{content:"\f6d5"}.fa-draw-polygon:before{content:"\f5ee"}.fa-dribbble:before{content:"\f17d"}.fa-dribbble-square:before{content:"\f397"}.fa-dropbox:before{content:"\f16b"}.fa-drum:before{content:"\f569"}.fa-drum-steelpan:before{content:"\f56a"}.fa-drumstick-bite:before{content:"\f6d7"}.fa-drupal:before{content:"\f1a9"}.fa-dumbbell:before{content:"\f44b"}.fa-dumpster:before{content:"\f793"}.fa-dumpster-fire:before{content:"\f794"}.fa-dungeon:before{content:"\f6d9"}.fa-dyalog:before{content:"\f399"}.fa-earlybirds:before{content:"\f39a"}.fa-ebay:before{content:"\f4f4"}.fa-edge:before{content:"\f282"}.fa-edit:before{content:"\f044"}.fa-egg:before{content:"\f7fb"}.fa-eject:before{content:"\f052"}.fa-elementor:before{content:"\f430"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-ello:before{content:"\f5f1"}.fa-ember:before{content:"\f423"}.fa-empire:before{content:"\f1d1"}.fa-envelope:before{content:"\f0e0"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-text:before{content:"\f658"}.fa-envelope-square:before{content:"\f199"}.fa-envira:before{content:"\f299"}.fa-equals:before{content:"\f52c"}.fa-eraser:before{content:"\f12d"}.fa-erlang:before{content:"\f39d"}.fa-ethereum:before{content:"\f42e"}.fa-ethernet:before{content:"\f796"}.fa-etsy:before{content:"\f2d7"}.fa-euro-sign:before{content:"\f153"}.fa-evernote:before{content:"\f839"}.fa-exchange-alt:before{content:"\f362"}.fa-exclamation:before{content:"\f12a"}.fa-exclamation-circle:before{content:"\f06a"}.fa-exclamation-triangle:before{content:"\f071"}.fa-expand:before{content:"\f065"}.fa-expand-alt:before{content:"\f424"}.fa-expand-arrows-alt:before{content:"\f31e"}.fa-expeditedssl:before{content:"\f23e"}.fa-external-link-alt:before{content:"\f35d"}.fa-external-link-square-alt:before{content:"\f360"}.fa-eye:before{content:"\f06e"}.fa-eye-dropper:before{content:"\f1fb"}.fa-eye-slash:before{content:"\f070"}.fa-facebook:before{content:"\f09a"}.fa-facebook-f:before{content:"\f39e"}.fa-facebook-messenger:before{content:"\f39f"}.fa-facebook-square:before{content:"\f082"}.fa-fan:before{content:"\f863"}.fa-fantasy-flight-games:before{content:"\f6dc"}.fa-fast-backward:before{content:"\f049"}.fa-fast-forward:before{content:"\f050"}.fa-faucet:before{content:"\f905"}.fa-fax:before{content:"\f1ac"}.fa-feather:before{content:"\f52d"}.fa-feather-alt:before{content:"\f56b"}.fa-fedex:before{content:"\f797"}.fa-fedora:before{content:"\f798"}.fa-female:before{content:"\f182"}.fa-fighter-jet:before{content:"\f0fb"}.fa-figma:before{content:"\f799"}.fa-file:before{content:"\f15b"}.fa-file-alt:before{content:"\f15c"}.fa-file-archive:before{content:"\f1c6"}.fa-file-audio:before{content:"\f1c7"}.fa-file-code:before{content:"\f1c9"}.fa-file-contract:before{content:"\f56c"}.fa-file-csv:before{content:"\f6dd"}.fa-file-download:before{content:"\f56d"}.fa-file-excel:before{content:"\f1c3"}.fa-file-export:before{content:"\f56e"}.fa-file-image:before{content:"\f1c5"}.fa-file-import:before{content:"\f56f"}.fa-file-invoice:before{content:"\f570"}.fa-file-invoice-dollar:before{content:"\f571"}.fa-file-medical:before{content:"\f477"}.fa-file-medical-alt:before{content:"\f478"}.fa-file-pdf:before{content:"\f1c1"}.fa-file-powerpoint:before{content:"\f1c4"}.fa-file-prescription:before{content:"\f572"}.fa-file-signature:before{content:"\f573"}.fa-file-upload:before{content:"\f574"}.fa-file-video:before{content:"\f1c8"}.fa-file-word:before{content:"\f1c2"}.fa-fill:before{content:"\f575"}.fa-fill-drip:before{content:"\f576"}.fa-film:before{content:"\f008"}.fa-filter:before{content:"\f0b0"}.fa-fingerprint:before{content:"\f577"}.fa-fire:before{content:"\f06d"}.fa-fire-alt:before{content:"\f7e4"}.fa-fire-extinguisher:before{content:"\f134"}.fa-firefox:before{content:"\f269"}.fa-firefox-browser:before{content:"\f907"}.fa-first-aid:before{content:"\f479"}.fa-first-order:before{content:"\f2b0"}.fa-first-order-alt:before{content:"\f50a"}.fa-firstdraft:before{content:"\f3a1"}.fa-fish:before{content:"\f578"}.fa-fist-raised:before{content:"\f6de"}.fa-flag:before{content:"\f024"}.fa-flag-checkered:before{content:"\f11e"}.fa-flag-usa:before{content:"\f74d"}.fa-flask:before{content:"\f0c3"}.fa-flickr:before{content:"\f16e"}.fa-flipboard:before{content:"\f44d"}.fa-flushed:before{content:"\f579"}.fa-fly:before{content:"\f417"}.fa-folder:before{content:"\f07b"}.fa-folder-minus:before{content:"\f65d"}.fa-folder-open:before{content:"\f07c"}.fa-folder-plus:before{content:"\f65e"}.fa-font:before{content:"\f031"}.fa-font-awesome:before{content:"\f2b4"}.fa-font-awesome-alt:before{content:"\f35c"}.fa-font-awesome-flag:before{content:"\f425"}.fa-font-awesome-logo-full:before{content:"\f4e6"}.fa-fonticons:before{content:"\f280"}.fa-fonticons-fi:before{content:"\f3a2"}.fa-football-ball:before{content:"\f44e"}.fa-fort-awesome:before{content:"\f286"}.fa-fort-awesome-alt:before{content:"\f3a3"}.fa-forumbee:before{content:"\f211"}.fa-forward:before{content:"\f04e"}.fa-foursquare:before{content:"\f180"}.fa-free-code-camp:before{content:"\f2c5"}.fa-freebsd:before{content:"\f3a4"}.fa-frog:before{content:"\f52e"}.fa-frown:before{content:"\f119"}.fa-frown-open:before{content:"\f57a"}.fa-fulcrum:before{content:"\f50b"}.fa-funnel-dollar:before{content:"\f662"}.fa-futbol:before{content:"\f1e3"}.fa-galactic-republic:before{content:"\f50c"}.fa-galactic-senate:before{content:"\f50d"}.fa-gamepad:before{content:"\f11b"}.fa-gas-pump:before{content:"\f52f"}.fa-gavel:before{content:"\f0e3"}.fa-gem:before{content:"\f3a5"}.fa-genderless:before{content:"\f22d"}.fa-get-pocket:before{content:"\f265"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-ghost:before{content:"\f6e2"}.fa-gift:before{content:"\f06b"}.fa-gifts:before{content:"\f79c"}.fa-git:before{content:"\f1d3"}.fa-git-alt:before{content:"\f841"}.fa-git-square:before{content:"\f1d2"}.fa-github:before{content:"\f09b"}.fa-github-alt:before{content:"\f113"}.fa-github-square:before{content:"\f092"}.fa-gitkraken:before{content:"\f3a6"}.fa-gitlab:before{content:"\f296"}.fa-gitter:before{content:"\f426"}.fa-glass-cheers:before{content:"\f79f"}.fa-glass-martini:before{content:"\f000"}.fa-glass-martini-alt:before{content:"\f57b"}.fa-glass-whiskey:before{content:"\f7a0"}.fa-glasses:before{content:"\f530"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-globe:before{content:"\f0ac"}.fa-globe-africa:before{content:"\f57c"}.fa-globe-americas:before{content:"\f57d"}.fa-globe-asia:before{content:"\f57e"}.fa-globe-europe:before{content:"\f7a2"}.fa-gofore:before{content:"\f3a7"}.fa-golf-ball:before{content:"\f450"}.fa-goodreads:before{content:"\f3a8"}.fa-goodreads-g:before{content:"\f3a9"}.fa-google:before{content:"\f1a0"}.fa-google-drive:before{content:"\f3aa"}.fa-google-play:before{content:"\f3ab"}.fa-google-plus:before{content:"\f2b3"}.fa-google-plus-g:before{content:"\f0d5"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-wallet:before{content:"\f1ee"}.fa-gopuram:before{content:"\f664"}.fa-graduation-cap:before{content:"\f19d"}.fa-gratipay:before{content:"\f184"}.fa-grav:before{content:"\f2d6"}.fa-greater-than:before{content:"\f531"}.fa-greater-than-equal:before{content:"\f532"}.fa-grimace:before{content:"\f57f"}.fa-grin:before{content:"\f580"}.fa-grin-alt:before{content:"\f581"}.fa-grin-beam:before{content:"\f582"}.fa-grin-beam-sweat:before{content:"\f583"}.fa-grin-hearts:before{content:"\f584"}.fa-grin-squint:before{content:"\f585"}.fa-grin-squint-tears:before{content:"\f586"}.fa-grin-stars:before{content:"\f587"}.fa-grin-tears:before{content:"\f588"}.fa-grin-tongue:before{content:"\f589"}.fa-grin-tongue-squint:before{content:"\f58a"}.fa-grin-tongue-wink:before{content:"\f58b"}.fa-grin-wink:before{content:"\f58c"}.fa-grip-horizontal:before{content:"\f58d"}.fa-grip-lines:before{content:"\f7a4"}.fa-grip-lines-vertical:before{content:"\f7a5"}.fa-grip-vertical:before{content:"\f58e"}.fa-gripfire:before{content:"\f3ac"}.fa-grunt:before{content:"\f3ad"}.fa-guitar:before{content:"\f7a6"}.fa-gulp:before{content:"\f3ae"}.fa-h-square:before{content:"\f0fd"}.fa-hacker-news:before{content:"\f1d4"}.fa-hacker-news-square:before{content:"\f3af"}.fa-hackerrank:before{content:"\f5f7"}.fa-hamburger:before{content:"\f805"}.fa-hammer:before{content:"\f6e3"}.fa-hamsa:before{content:"\f665"}.fa-hand-holding:before{content:"\f4bd"}.fa-hand-holding-heart:before{content:"\f4be"}.fa-hand-holding-medical:before{content:"\f95c"}.fa-hand-holding-usd:before{content:"\f4c0"}.fa-hand-holding-water:before{content:"\f4c1"}.fa-hand-lizard:before{content:"\f258"}.fa-hand-middle-finger:before{content:"\f806"}.fa-hand-paper:before{content:"\f256"}.fa-hand-peace:before{content:"\f25b"}.fa-hand-point-down:before{content:"\f0a7"}.fa-hand-point-left:before{content:"\f0a5"}.fa-hand-point-right:before{content:"\f0a4"}.fa-hand-point-up:before{content:"\f0a6"}.fa-hand-pointer:before{content:"\f25a"}.fa-hand-rock:before{content:"\f255"}.fa-hand-scissors:before{content:"\f257"}.fa-hand-sparkles:before{content:"\f95d"}.fa-hand-spock:before{content:"\f259"}.fa-hands:before{content:"\f4c2"}.fa-hands-helping:before{content:"\f4c4"}.fa-hands-wash:before{content:"\f95e"}.fa-handshake:before{content:"\f2b5"}.fa-handshake-alt-slash:before{content:"\f95f"}.fa-handshake-slash:before{content:"\f960"}.fa-hanukiah:before{content:"\f6e6"}.fa-hard-hat:before{content:"\f807"}.fa-hashtag:before{content:"\f292"}.fa-hat-cowboy:before{content:"\f8c0"}.fa-hat-cowboy-side:before{content:"\f8c1"}.fa-hat-wizard:before{content:"\f6e8"}.fa-hdd:before{content:"\f0a0"}.fa-head-side-cough:before{content:"\f961"}.fa-head-side-cough-slash:before{content:"\f962"}.fa-head-side-mask:before{content:"\f963"}.fa-head-side-virus:before{content:"\f964"}.fa-heading:before{content:"\f1dc"}.fa-headphones:before{content:"\f025"}.fa-headphones-alt:before{content:"\f58f"}.fa-headset:before{content:"\f590"}.fa-heart:before{content:"\f004"}.fa-heart-broken:before{content:"\f7a9"}.fa-heartbeat:before{content:"\f21e"}.fa-helicopter:before{content:"\f533"}.fa-highlighter:before{content:"\f591"}.fa-hiking:before{content:"\f6ec"}.fa-hippo:before{content:"\f6ed"}.fa-hips:before{content:"\f452"}.fa-hire-a-helper:before{content:"\f3b0"}.fa-history:before{content:"\f1da"}.fa-hockey-puck:before{content:"\f453"}.fa-holly-berry:before{content:"\f7aa"}.fa-home:before{content:"\f015"}.fa-hooli:before{content:"\f427"}.fa-hornbill:before{content:"\f592"}.fa-horse:before{content:"\f6f0"}.fa-horse-head:before{content:"\f7ab"}.fa-hospital:before{content:"\f0f8"}.fa-hospital-alt:before{content:"\f47d"}.fa-hospital-symbol:before{content:"\f47e"}.fa-hospital-user:before{content:"\f80d"}.fa-hot-tub:before{content:"\f593"}.fa-hotdog:before{content:"\f80f"}.fa-hotel:before{content:"\f594"}.fa-hotjar:before{content:"\f3b1"}.fa-hourglass:before{content:"\f254"}.fa-hourglass-end:before{content:"\f253"}.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-start:before{content:"\f251"}.fa-house-damage:before{content:"\f6f1"}.fa-house-user:before{content:"\f965"}.fa-houzz:before{content:"\f27c"}.fa-hryvnia:before{content:"\f6f2"}.fa-html5:before{content:"\f13b"}.fa-hubspot:before{content:"\f3b2"}.fa-i-cursor:before{content:"\f246"}.fa-ice-cream:before{content:"\f810"}.fa-icicles:before{content:"\f7ad"}.fa-icons:before{content:"\f86d"}.fa-id-badge:before{content:"\f2c1"}.fa-id-card:before{content:"\f2c2"}.fa-id-card-alt:before{content:"\f47f"}.fa-ideal:before{content:"\f913"}.fa-igloo:before{content:"\f7ae"}.fa-image:before{content:"\f03e"}.fa-images:before{content:"\f302"}.fa-imdb:before{content:"\f2d8"}.fa-inbox:before{content:"\f01c"}.fa-indent:before{content:"\f03c"}.fa-industry:before{content:"\f275"}.fa-infinity:before{content:"\f534"}.fa-info:before{content:"\f129"}.fa-info-circle:before{content:"\f05a"}.fa-instagram:before{content:"\f16d"}.fa-instagram-square:before{content:"\f955"}.fa-intercom:before{content:"\f7af"}.fa-internet-explorer:before{content:"\f26b"}.fa-invision:before{content:"\f7b0"}.fa-ioxhost:before{content:"\f208"}.fa-italic:before{content:"\f033"}.fa-itch-io:before{content:"\f83a"}.fa-itunes:before{content:"\f3b4"}.fa-itunes-note:before{content:"\f3b5"}.fa-java:before{content:"\f4e4"}.fa-jedi:before{content:"\f669"}.fa-jedi-order:before{content:"\f50e"}.fa-jenkins:before{content:"\f3b6"}.fa-jira:before{content:"\f7b1"}.fa-joget:before{content:"\f3b7"}.fa-joint:before{content:"\f595"}.fa-joomla:before{content:"\f1aa"}.fa-journal-whills:before{content:"\f66a"}.fa-js:before{content:"\f3b8"}.fa-js-square:before{content:"\f3b9"}.fa-jsfiddle:before{content:"\f1cc"}.fa-kaaba:before{content:"\f66b"}.fa-kaggle:before{content:"\f5fa"}.fa-key:before{content:"\f084"}.fa-keybase:before{content:"\f4f5"}.fa-keyboard:before{content:"\f11c"}.fa-keycdn:before{content:"\f3ba"}.fa-khanda:before{content:"\f66d"}.fa-kickstarter:before{content:"\f3bb"}.fa-kickstarter-k:before{content:"\f3bc"}.fa-kiss:before{content:"\f596"}.fa-kiss-beam:before{content:"\f597"}.fa-kiss-wink-heart:before{content:"\f598"}.fa-kiwi-bird:before{content:"\f535"}.fa-korvue:before{content:"\f42f"}.fa-landmark:before{content:"\f66f"}.fa-language:before{content:"\f1ab"}.fa-laptop:before{content:"\f109"}.fa-laptop-code:before{content:"\f5fc"}.fa-laptop-house:before{content:"\f966"}.fa-laptop-medical:before{content:"\f812"}.fa-laravel:before{content:"\f3bd"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-laugh:before{content:"\f599"}.fa-laugh-beam:before{content:"\f59a"}.fa-laugh-squint:before{content:"\f59b"}.fa-laugh-wink:before{content:"\f59c"}.fa-layer-group:before{content:"\f5fd"}.fa-leaf:before{content:"\f06c"}.fa-leanpub:before{content:"\f212"}.fa-lemon:before{content:"\f094"}.fa-less:before{content:"\f41d"}.fa-less-than:before{content:"\f536"}.fa-less-than-equal:before{content:"\f537"}.fa-level-down-alt:before{content:"\f3be"}.fa-level-up-alt:before{content:"\f3bf"}.fa-life-ring:before{content:"\f1cd"}.fa-lightbulb:before{content:"\f0eb"}.fa-line:before{content:"\f3c0"}.fa-link:before{content:"\f0c1"}.fa-linkedin:before{content:"\f08c"}.fa-linkedin-in:before{content:"\f0e1"}.fa-linode:before{content:"\f2b8"}.fa-linux:before{content:"\f17c"}.fa-lira-sign:before{content:"\f195"}.fa-list:before{content:"\f03a"}.fa-list-alt:before{content:"\f022"}.fa-list-ol:before{content:"\f0cb"}.fa-list-ul:before{content:"\f0ca"}.fa-location-arrow:before{content:"\f124"}.fa-lock:before{content:"\f023"}.fa-lock-open:before{content:"\f3c1"}.fa-long-arrow-alt-down:before{content:"\f309"}.fa-long-arrow-alt-left:before{content:"\f30a"}.fa-long-arrow-alt-right:before{content:"\f30b"}.fa-long-arrow-alt-up:before{content:"\f30c"}.fa-low-vision:before{content:"\f2a8"}.fa-luggage-cart:before{content:"\f59d"}.fa-lungs:before{content:"\f604"}.fa-lungs-virus:before{content:"\f967"}.fa-lyft:before{content:"\f3c3"}.fa-magento:before{content:"\f3c4"}.fa-magic:before{content:"\f0d0"}.fa-magnet:before{content:"\f076"}.fa-mail-bulk:before{content:"\f674"}.fa-mailchimp:before{content:"\f59e"}.fa-male:before{content:"\f183"}.fa-mandalorian:before{content:"\f50f"}.fa-map:before{content:"\f279"}.fa-map-marked:before{content:"\f59f"}.fa-map-marked-alt:before{content:"\f5a0"}.fa-map-marker:before{content:"\f041"}.fa-map-marker-alt:before{content:"\f3c5"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-markdown:before{content:"\f60f"}.fa-marker:before{content:"\f5a1"}.fa-mars:before{content:"\f222"}.fa-mars-double:before{content:"\f227"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mask:before{content:"\f6fa"}.fa-mastodon:before{content:"\f4f6"}.fa-maxcdn:before{content:"\f136"}.fa-mdb:before{content:"\f8ca"}.fa-medal:before{content:"\f5a2"}.fa-medapps:before{content:"\f3c6"}.fa-medium:before{content:"\f23a"}.fa-medium-m:before{content:"\f3c7"}.fa-medkit:before{content:"\f0fa"}.fa-medrt:before{content:"\f3c8"}.fa-meetup:before{content:"\f2e0"}.fa-megaport:before{content:"\f5a3"}.fa-meh:before{content:"\f11a"}.fa-meh-blank:before{content:"\f5a4"}.fa-meh-rolling-eyes:before{content:"\f5a5"}.fa-memory:before{content:"\f538"}.fa-mendeley:before{content:"\f7b3"}.fa-menorah:before{content:"\f676"}.fa-mercury:before{content:"\f223"}.fa-meteor:before{content:"\f753"}.fa-microblog:before{content:"\f91a"}.fa-microchip:before{content:"\f2db"}.fa-microphone:before{content:"\f130"}.fa-microphone-alt:before{content:"\f3c9"}.fa-microphone-alt-slash:before{content:"\f539"}.fa-microphone-slash:before{content:"\f131"}.fa-microscope:before{content:"\f610"}.fa-microsoft:before{content:"\f3ca"}.fa-minus:before{content:"\f068"}.fa-minus-circle:before{content:"\f056"}.fa-minus-square:before{content:"\f146"}.fa-mitten:before{content:"\f7b5"}.fa-mix:before{content:"\f3cb"}.fa-mixcloud:before{content:"\f289"}.fa-mixer:before{content:"\f956"}.fa-mizuni:before{content:"\f3cc"}.fa-mobile:before{content:"\f10b"}.fa-mobile-alt:before{content:"\f3cd"}.fa-modx:before{content:"\f285"}.fa-monero:before{content:"\f3d0"}.fa-money-bill:before{content:"\f0d6"}.fa-money-bill-alt:before{content:"\f3d1"}.fa-money-bill-wave:before{content:"\f53a"}.fa-money-bill-wave-alt:before{content:"\f53b"}.fa-money-check:before{content:"\f53c"}.fa-money-check-alt:before{content:"\f53d"}.fa-monument:before{content:"\f5a6"}.fa-moon:before{content:"\f186"}.fa-mortar-pestle:before{content:"\f5a7"}.fa-mosque:before{content:"\f678"}.fa-motorcycle:before{content:"\f21c"}.fa-mountain:before{content:"\f6fc"}.fa-mouse:before{content:"\f8cc"}.fa-mouse-pointer:before{content:"\f245"}.fa-mug-hot:before{content:"\f7b6"}.fa-music:before{content:"\f001"}.fa-napster:before{content:"\f3d2"}.fa-neos:before{content:"\f612"}.fa-network-wired:before{content:"\f6ff"}.fa-neuter:before{content:"\f22c"}.fa-newspaper:before{content:"\f1ea"}.fa-nimblr:before{content:"\f5a8"}.fa-node:before{content:"\f419"}.fa-node-js:before{content:"\f3d3"}.fa-not-equal:before{content:"\f53e"}.fa-notes-medical:before{content:"\f481"}.fa-npm:before{content:"\f3d4"}.fa-ns8:before{content:"\f3d5"}.fa-nutritionix:before{content:"\f3d6"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-oil-can:before{content:"\f613"}.fa-old-republic:before{content:"\f510"}.fa-om:before{content:"\f679"}.fa-opencart:before{content:"\f23d"}.fa-openid:before{content:"\f19b"}.fa-opera:before{content:"\f26a"}.fa-optin-monster:before{content:"\f23c"}.fa-orcid:before{content:"\f8d2"}.fa-osi:before{content:"\f41a"}.fa-otter:before{content:"\f700"}.fa-outdent:before{content:"\f03b"}.fa-page4:before{content:"\f3d7"}.fa-pagelines:before{content:"\f18c"}.fa-pager:before{content:"\f815"}.fa-paint-brush:before{content:"\f1fc"}.fa-paint-roller:before{content:"\f5aa"}.fa-palette:before{content:"\f53f"}.fa-palfed:before{content:"\f3d8"}.fa-pallet:before{content:"\f482"}.fa-paper-plane:before{content:"\f1d8"}.fa-paperclip:before{content:"\f0c6"}.fa-parachute-box:before{content:"\f4cd"}.fa-paragraph:before{content:"\f1dd"}.fa-parking:before{content:"\f540"}.fa-passport:before{content:"\f5ab"}.fa-pastafarianism:before{content:"\f67b"}.fa-paste:before{content:"\f0ea"}.fa-patreon:before{content:"\f3d9"}.fa-pause:before{content:"\f04c"}.fa-pause-circle:before{content:"\f28b"}.fa-paw:before{content:"\f1b0"}.fa-paypal:before{content:"\f1ed"}.fa-peace:before{content:"\f67c"}.fa-pen:before{content:"\f304"}.fa-pen-alt:before{content:"\f305"}.fa-pen-fancy:before{content:"\f5ac"}.fa-pen-nib:before{content:"\f5ad"}.fa-pen-square:before{content:"\f14b"}.fa-pencil-alt:before{content:"\f303"}.fa-pencil-ruler:before{content:"\f5ae"}.fa-penny-arcade:before{content:"\f704"}.fa-people-arrows:before{content:"\f968"}.fa-people-carry:before{content:"\f4ce"}.fa-pepper-hot:before{content:"\f816"}.fa-percent:before{content:"\f295"}.fa-percentage:before{content:"\f541"}.fa-periscope:before{content:"\f3da"}.fa-person-booth:before{content:"\f756"}.fa-phabricator:before{content:"\f3db"}.fa-phoenix-framework:before{content:"\f3dc"}.fa-phoenix-squadron:before{content:"\f511"}.fa-phone:before{content:"\f095"}.fa-phone-alt:before{content:"\f879"}.fa-phone-slash:before{content:"\f3dd"}.fa-phone-square:before{content:"\f098"}.fa-phone-square-alt:before{content:"\f87b"}.fa-phone-volume:before{content:"\f2a0"}.fa-photo-video:before{content:"\f87c"}.fa-php:before{content:"\f457"}.fa-pied-piper:before{content:"\f2ae"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-pied-piper-hat:before{content:"\f4e5"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-square:before{content:"\f91e"}.fa-piggy-bank:before{content:"\f4d3"}.fa-pills:before{content:"\f484"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-p:before{content:"\f231"}.fa-pinterest-square:before{content:"\f0d3"}.fa-pizza-slice:before{content:"\f818"}.fa-place-of-worship:before{content:"\f67f"}.fa-plane:before{content:"\f072"}.fa-plane-arrival:before{content:"\f5af"}.fa-plane-departure:before{content:"\f5b0"}.fa-plane-slash:before{content:"\f969"}.fa-play:before{content:"\f04b"}.fa-play-circle:before{content:"\f144"}.fa-playstation:before{content:"\f3df"}.fa-plug:before{content:"\f1e6"}.fa-plus:before{content:"\f067"}.fa-plus-circle:before{content:"\f055"}.fa-plus-square:before{content:"\f0fe"}.fa-podcast:before{content:"\f2ce"}.fa-poll:before{content:"\f681"}.fa-poll-h:before{content:"\f682"}.fa-poo:before{content:"\f2fe"}.fa-poo-storm:before{content:"\f75a"}.fa-poop:before{content:"\f619"}.fa-portrait:before{content:"\f3e0"}.fa-pound-sign:before{content:"\f154"}.fa-power-off:before{content:"\f011"}.fa-pray:before{content:"\f683"}.fa-praying-hands:before{content:"\f684"}.fa-prescription:before{content:"\f5b1"}.fa-prescription-bottle:before{content:"\f485"}.fa-prescription-bottle-alt:before{content:"\f486"}.fa-print:before{content:"\f02f"}.fa-procedures:before{content:"\f487"}.fa-product-hunt:before{content:"\f288"}.fa-project-diagram:before{content:"\f542"}.fa-pump-medical:before{content:"\f96a"}.fa-pump-soap:before{content:"\f96b"}.fa-pushed:before{content:"\f3e1"}.fa-puzzle-piece:before{content:"\f12e"}.fa-python:before{content:"\f3e2"}.fa-qq:before{content:"\f1d6"}.fa-qrcode:before{content:"\f029"}.fa-question:before{content:"\f128"}.fa-question-circle:before{content:"\f059"}.fa-quidditch:before{content:"\f458"}.fa-quinscape:before{content:"\f459"}.fa-quora:before{content:"\f2c4"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-quran:before{content:"\f687"}.fa-r-project:before{content:"\f4f7"}.fa-radiation:before{content:"\f7b9"}.fa-radiation-alt:before{content:"\f7ba"}.fa-rainbow:before{content:"\f75b"}.fa-random:before{content:"\f074"}.fa-raspberry-pi:before{content:"\f7bb"}.fa-ravelry:before{content:"\f2d9"}.fa-react:before{content:"\f41b"}.fa-reacteurope:before{content:"\f75d"}.fa-readme:before{content:"\f4d5"}.fa-rebel:before{content:"\f1d0"}.fa-receipt:before{content:"\f543"}.fa-record-vinyl:before{content:"\f8d9"}.fa-recycle:before{content:"\f1b8"}.fa-red-river:before{content:"\f3e3"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-alien:before{content:"\f281"}.fa-reddit-square:before{content:"\f1a2"}.fa-redhat:before{content:"\f7bc"}.fa-redo:before{content:"\f01e"}.fa-redo-alt:before{content:"\f2f9"}.fa-registered:before{content:"\f25d"}.fa-remove-format:before{content:"\f87d"}.fa-renren:before{content:"\f18b"}.fa-reply:before{content:"\f3e5"}.fa-reply-all:before{content:"\f122"}.fa-replyd:before{content:"\f3e6"}.fa-republican:before{content:"\f75e"}.fa-researchgate:before{content:"\f4f8"}.fa-resolving:before{content:"\f3e7"}.fa-restroom:before{content:"\f7bd"}.fa-retweet:before{content:"\f079"}.fa-rev:before{content:"\f5b2"}.fa-ribbon:before{content:"\f4d6"}.fa-ring:before{content:"\f70b"}.fa-road:before{content:"\f018"}.fa-robot:before{content:"\f544"}.fa-rocket:before{content:"\f135"}.fa-rocketchat:before{content:"\f3e8"}.fa-rockrms:before{content:"\f3e9"}.fa-route:before{content:"\f4d7"}.fa-rss:before{content:"\f09e"}.fa-rss-square:before{content:"\f143"}.fa-ruble-sign:before{content:"\f158"}.fa-ruler:before{content:"\f545"}.fa-ruler-combined:before{content:"\f546"}.fa-ruler-horizontal:before{content:"\f547"}.fa-ruler-vertical:before{content:"\f548"}.fa-running:before{content:"\f70c"}.fa-rupee-sign:before{content:"\f156"}.fa-sad-cry:before{content:"\f5b3"}.fa-sad-tear:before{content:"\f5b4"}.fa-safari:before{content:"\f267"}.fa-salesforce:before{content:"\f83b"}.fa-sass:before{content:"\f41e"}.fa-satellite:before{content:"\f7bf"}.fa-satellite-dish:before{content:"\f7c0"}.fa-save:before{content:"\f0c7"}.fa-schlix:before{content:"\f3ea"}.fa-school:before{content:"\f549"}.fa-screwdriver:before{content:"\f54a"}.fa-scribd:before{content:"\f28a"}.fa-scroll:before{content:"\f70e"}.fa-sd-card:before{content:"\f7c2"}.fa-search:before{content:"\f002"}.fa-search-dollar:before{content:"\f688"}.fa-search-location:before{content:"\f689"}.fa-search-minus:before{content:"\f010"}.fa-search-plus:before{content:"\f00e"}.fa-searchengin:before{content:"\f3eb"}.fa-seedling:before{content:"\f4d8"}.fa-sellcast:before{content:"\f2da"}.fa-sellsy:before{content:"\f213"}.fa-server:before{content:"\f233"}.fa-servicestack:before{content:"\f3ec"}.fa-shapes:before{content:"\f61f"}.fa-share:before{content:"\f064"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-share-square:before{content:"\f14d"}.fa-shekel-sign:before{content:"\f20b"}.fa-shield-alt:before{content:"\f3ed"}.fa-shield-virus:before{content:"\f96c"}.fa-ship:before{content:"\f21a"}.fa-shipping-fast:before{content:"\f48b"}.fa-shirtsinbulk:before{content:"\f214"}.fa-shoe-prints:before{content:"\f54b"}.fa-shopify:before{content:"\f957"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-shopping-cart:before{content:"\f07a"}.fa-shopware:before{content:"\f5b5"}.fa-shower:before{content:"\f2cc"}.fa-shuttle-van:before{content:"\f5b6"}.fa-sign:before{content:"\f4d9"}.fa-sign-in-alt:before{content:"\f2f6"}.fa-sign-language:before{content:"\f2a7"}.fa-sign-out-alt:before{content:"\f2f5"}.fa-signal:before{content:"\f012"}.fa-signature:before{content:"\f5b7"}.fa-sim-card:before{content:"\f7c4"}.fa-simplybuilt:before{content:"\f215"}.fa-sistrix:before{content:"\f3ee"}.fa-sitemap:before{content:"\f0e8"}.fa-sith:before{content:"\f512"}.fa-skating:before{content:"\f7c5"}.fa-sketch:before{content:"\f7c6"}.fa-skiing:before{content:"\f7c9"}.fa-skiing-nordic:before{content:"\f7ca"}.fa-skull:before{content:"\f54c"}.fa-skull-crossbones:before{content:"\f714"}.fa-skyatlas:before{content:"\f216"}.fa-skype:before{content:"\f17e"}.fa-slack:before{content:"\f198"}.fa-slack-hash:before{content:"\f3ef"}.fa-slash:before{content:"\f715"}.fa-sleigh:before{content:"\f7cc"}.fa-sliders-h:before{content:"\f1de"}.fa-slideshare:before{content:"\f1e7"}.fa-smile:before{content:"\f118"}.fa-smile-beam:before{content:"\f5b8"}.fa-smile-wink:before{content:"\f4da"}.fa-smog:before{content:"\f75f"}.fa-smoking:before{content:"\f48d"}.fa-smoking-ban:before{content:"\f54d"}.fa-sms:before{content:"\f7cd"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-snowboarding:before{content:"\f7ce"}.fa-snowflake:before{content:"\f2dc"}.fa-snowman:before{content:"\f7d0"}.fa-snowplow:before{content:"\f7d2"}.fa-soap:before{content:"\f96e"}.fa-socks:before{content:"\f696"}.fa-solar-panel:before{content:"\f5ba"}.fa-sort:before{content:"\f0dc"}.fa-sort-alpha-down:before{content:"\f15d"}.fa-sort-alpha-down-alt:before{content:"\f881"}.fa-sort-alpha-up:before{content:"\f15e"}.fa-sort-alpha-up-alt:before{content:"\f882"}.fa-sort-amount-down:before{content:"\f160"}.fa-sort-amount-down-alt:before{content:"\f884"}.fa-sort-amount-up:before{content:"\f161"}.fa-sort-amount-up-alt:before{content:"\f885"}.fa-sort-down:before{content:"\f0dd"}.fa-sort-numeric-down:before{content:"\f162"}.fa-sort-numeric-down-alt:before{content:"\f886"}.fa-sort-numeric-up:before{content:"\f163"}.fa-sort-numeric-up-alt:before{content:"\f887"}.fa-sort-up:before{content:"\f0de"}.fa-soundcloud:before{content:"\f1be"}.fa-sourcetree:before{content:"\f7d3"}.fa-spa:before{content:"\f5bb"}.fa-space-shuttle:before{content:"\f197"}.fa-speakap:before{content:"\f3f3"}.fa-speaker-deck:before{content:"\f83c"}.fa-spell-check:before{content:"\f891"}.fa-spider:before{content:"\f717"}.fa-spinner:before{content:"\f110"}.fa-splotch:before{content:"\f5bc"}.fa-spotify:before{content:"\f1bc"}.fa-spray-can:before{content:"\f5bd"}.fa-square:before{content:"\f0c8"}.fa-square-full:before{content:"\f45c"}.fa-square-root-alt:before{content:"\f698"}.fa-squarespace:before{content:"\f5be"}.fa-stack-exchange:before{content:"\f18d"}.fa-stack-overflow:before{content:"\f16c"}.fa-stackpath:before{content:"\f842"}.fa-stamp:before{content:"\f5bf"}.fa-star:before{content:"\f005"}.fa-star-and-crescent:before{content:"\f699"}.fa-star-half:before{content:"\f089"}.fa-star-half-alt:before{content:"\f5c0"}.fa-star-of-david:before{content:"\f69a"}.fa-star-of-life:before{content:"\f621"}.fa-staylinked:before{content:"\f3f5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-steam-symbol:before{content:"\f3f6"}.fa-step-backward:before{content:"\f048"}.fa-step-forward:before{content:"\f051"}.fa-stethoscope:before{content:"\f0f1"}.fa-sticker-mule:before{content:"\f3f7"}.fa-sticky-note:before{content:"\f249"}.fa-stop:before{content:"\f04d"}.fa-stop-circle:before{content:"\f28d"}.fa-stopwatch:before{content:"\f2f2"}.fa-stopwatch-20:before{content:"\f96f"}.fa-store:before{content:"\f54e"}.fa-store-alt:before{content:"\f54f"}.fa-store-alt-slash:before{content:"\f970"}.fa-store-slash:before{content:"\f971"}.fa-strava:before{content:"\f428"}.fa-stream:before{content:"\f550"}.fa-street-view:before{content:"\f21d"}.fa-strikethrough:before{content:"\f0cc"}.fa-stripe:before{content:"\f429"}.fa-stripe-s:before{content:"\f42a"}.fa-stroopwafel:before{content:"\f551"}.fa-studiovinari:before{content:"\f3f8"}.fa-stumbleupon:before{content:"\f1a4"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-subscript:before{content:"\f12c"}.fa-subway:before{content:"\f239"}.fa-suitcase:before{content:"\f0f2"}.fa-suitcase-rolling:before{content:"\f5c1"}.fa-sun:before{content:"\f185"}.fa-superpowers:before{content:"\f2dd"}.fa-superscript:before{content:"\f12b"}.fa-supple:before{content:"\f3f9"}.fa-surprise:before{content:"\f5c2"}.fa-suse:before{content:"\f7d6"}.fa-swatchbook:before{content:"\f5c3"}.fa-swift:before{content:"\f8e1"}.fa-swimmer:before{content:"\f5c4"}.fa-swimming-pool:before{content:"\f5c5"}.fa-symfony:before{content:"\f83d"}.fa-synagogue:before{content:"\f69b"}.fa-sync:before{content:"\f021"}.fa-sync-alt:before{content:"\f2f1"}.fa-syringe:before{content:"\f48e"}.fa-table:before{content:"\f0ce"}.fa-table-tennis:before{content:"\f45d"}.fa-tablet:before{content:"\f10a"}.fa-tablet-alt:before{content:"\f3fa"}.fa-tablets:before{content:"\f490"}.fa-tachometer-alt:before{content:"\f3fd"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-tape:before{content:"\f4db"}.fa-tasks:before{content:"\f0ae"}.fa-taxi:before{content:"\f1ba"}.fa-teamspeak:before{content:"\f4f9"}.fa-teeth:before{content:"\f62e"}.fa-teeth-open:before{content:"\f62f"}.fa-telegram:before{content:"\f2c6"}.fa-telegram-plane:before{content:"\f3fe"}.fa-temperature-high:before{content:"\f769"}.fa-temperature-low:before{content:"\f76b"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-tenge:before{content:"\f7d7"}.fa-terminal:before{content:"\f120"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-th:before{content:"\f00a"}.fa-th-large:before{content:"\f009"}.fa-th-list:before{content:"\f00b"}.fa-the-red-yeti:before{content:"\f69d"}.fa-theater-masks:before{content:"\f630"}.fa-themeco:before{content:"\f5c6"}.fa-themeisle:before{content:"\f2b2"}.fa-thermometer:before{content:"\f491"}.fa-thermometer-empty:before{content:"\f2cb"}.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-think-peaks:before{content:"\f731"}.fa-thumbs-down:before{content:"\f165"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbtack:before{content:"\f08d"}.fa-ticket-alt:before{content:"\f3ff"}.fa-times:before{content:"\f00d"}.fa-times-circle:before{content:"\f057"}.fa-tint:before{content:"\f043"}.fa-tint-slash:before{content:"\f5c7"}.fa-tired:before{content:"\f5c8"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-toilet:before{content:"\f7d8"}.fa-toilet-paper:before{content:"\f71e"}.fa-toilet-paper-slash:before{content:"\f972"}.fa-toolbox:before{content:"\f552"}.fa-tools:before{content:"\f7d9"}.fa-tooth:before{content:"\f5c9"}.fa-torah:before{content:"\f6a0"}.fa-torii-gate:before{content:"\f6a1"}.fa-tractor:before{content:"\f722"}.fa-trade-federation:before{content:"\f513"}.fa-trademark:before{content:"\f25c"}.fa-traffic-light:before{content:"\f637"}.fa-trailer:before{content:"\f941"}.fa-train:before{content:"\f238"}.fa-tram:before{content:"\f7da"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-trash:before{content:"\f1f8"}.fa-trash-alt:before{content:"\f2ed"}.fa-trash-restore:before{content:"\f829"}.fa-trash-restore-alt:before{content:"\f82a"}.fa-tree:before{content:"\f1bb"}.fa-trello:before{content:"\f181"}.fa-tripadvisor:before{content:"\f262"}.fa-trophy:before{content:"\f091"}.fa-truck:before{content:"\f0d1"}.fa-truck-loading:before{content:"\f4de"}.fa-truck-monster:before{content:"\f63b"}.fa-truck-moving:before{content:"\f4df"}.fa-truck-pickup:before{content:"\f63c"}.fa-tshirt:before{content:"\f553"}.fa-tty:before{content:"\f1e4"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-tv:before{content:"\f26c"}.fa-twitch:before{content:"\f1e8"}.fa-twitter:before{content:"\f099"}.fa-twitter-square:before{content:"\f081"}.fa-typo3:before{content:"\f42b"}.fa-uber:before{content:"\f402"}.fa-ubuntu:before{content:"\f7df"}.fa-uikit:before{content:"\f403"}.fa-umbraco:before{content:"\f8e8"}.fa-umbrella:before{content:"\f0e9"}.fa-umbrella-beach:before{content:"\f5ca"}.fa-underline:before{content:"\f0cd"}.fa-undo:before{content:"\f0e2"}.fa-undo-alt:before{content:"\f2ea"}.fa-uniregistry:before{content:"\f404"}.fa-unity:before{content:"\f949"}.fa-universal-access:before{content:"\f29a"}.fa-university:before{content:"\f19c"}.fa-unlink:before{content:"\f127"}.fa-unlock:before{content:"\f09c"}.fa-unlock-alt:before{content:"\f13e"}.fa-untappd:before{content:"\f405"}.fa-upload:before{content:"\f093"}.fa-ups:before{content:"\f7e0"}.fa-usb:before{content:"\f287"}.fa-user:before{content:"\f007"}.fa-user-alt:before{content:"\f406"}.fa-user-alt-slash:before{content:"\f4fa"}.fa-user-astronaut:before{content:"\f4fb"}.fa-user-check:before{content:"\f4fc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-clock:before{content:"\f4fd"}.fa-user-cog:before{content:"\f4fe"}.fa-user-edit:before{content:"\f4ff"}.fa-user-friends:before{content:"\f500"}.fa-user-graduate:before{content:"\f501"}.fa-user-injured:before{content:"\f728"}.fa-user-lock:before{content:"\f502"}.fa-user-md:before{content:"\f0f0"}.fa-user-minus:before{content:"\f503"}.fa-user-ninja:before{content:"\f504"}.fa-user-nurse:before{content:"\f82f"}.fa-user-plus:before{content:"\f234"}.fa-user-secret:before{content:"\f21b"}.fa-user-shield:before{content:"\f505"}.fa-user-slash:before{content:"\f506"}.fa-user-tag:before{content:"\f507"}.fa-user-tie:before{content:"\f508"}.fa-user-times:before{content:"\f235"}.fa-users:before{content:"\f0c0"}.fa-users-cog:before{content:"\f509"}.fa-usps:before{content:"\f7e1"}.fa-ussunnah:before{content:"\f407"}.fa-utensil-spoon:before{content:"\f2e5"}.fa-utensils:before{content:"\f2e7"}.fa-vaadin:before{content:"\f408"}.fa-vector-square:before{content:"\f5cb"}.fa-venus:before{content:"\f221"}.fa-venus-double:before{content:"\f226"}.fa-venus-mars:before{content:"\f228"}.fa-viacoin:before{content:"\f237"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-vial:before{content:"\f492"}.fa-vials:before{content:"\f493"}.fa-viber:before{content:"\f409"}.fa-video:before{content:"\f03d"}.fa-video-slash:before{content:"\f4e2"}.fa-vihara:before{content:"\f6a7"}.fa-vimeo:before{content:"\f40a"}.fa-vimeo-square:before{content:"\f194"}.fa-vimeo-v:before{content:"\f27d"}.fa-vine:before{content:"\f1ca"}.fa-virus:before{content:"\f974"}.fa-virus-slash:before{content:"\f975"}.fa-viruses:before{content:"\f976"}.fa-vk:before{content:"\f189"}.fa-vnv:before{content:"\f40b"}.fa-voicemail:before{content:"\f897"}.fa-volleyball-ball:before{content:"\f45f"}.fa-volume-down:before{content:"\f027"}.fa-volume-mute:before{content:"\f6a9"}.fa-volume-off:before{content:"\f026"}.fa-volume-up:before{content:"\f028"}.fa-vote-yea:before{content:"\f772"}.fa-vr-cardboard:before{content:"\f729"}.fa-vuejs:before{content:"\f41f"}.fa-walking:before{content:"\f554"}.fa-wallet:before{content:"\f555"}.fa-warehouse:before{content:"\f494"}.fa-water:before{content:"\f773"}.fa-wave-square:before{content:"\f83e"}.fa-waze:before{content:"\f83f"}.fa-weebly:before{content:"\f5cc"}.fa-weibo:before{content:"\f18a"}.fa-weight:before{content:"\f496"}.fa-weight-hanging:before{content:"\f5cd"}.fa-weixin:before{content:"\f1d7"}.fa-whatsapp:before{content:"\f232"}.fa-whatsapp-square:before{content:"\f40c"}.fa-wheelchair:before{content:"\f193"}.fa-whmcs:before{content:"\f40d"}.fa-wifi:before{content:"\f1eb"}.fa-wikipedia-w:before{content:"\f266"}.fa-wind:before{content:"\f72e"}.fa-window-close:before{content:"\f410"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-windows:before{content:"\f17a"}.fa-wine-bottle:before{content:"\f72f"}.fa-wine-glass:before{content:"\f4e3"}.fa-wine-glass-alt:before{content:"\f5ce"}.fa-wix:before{content:"\f5cf"}.fa-wizards-of-the-coast:before{content:"\f730"}.fa-wolf-pack-battalion:before{content:"\f514"}.fa-won-sign:before{content:"\f159"}.fa-wordpress:before{content:"\f19a"}.fa-wordpress-simple:before{content:"\f411"}.fa-wpbeginner:before{content:"\f297"}.fa-wpexplorer:before{content:"\f2de"}.fa-wpforms:before{content:"\f298"}.fa-wpressr:before{content:"\f3e4"}.fa-wrench:before{content:"\f0ad"}.fa-x-ray:before{content:"\f497"}.fa-xbox:before{content:"\f412"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-y-combinator:before{content:"\f23b"}.fa-yahoo:before{content:"\f19e"}.fa-yammer:before{content:"\f840"}.fa-yandex:before{content:"\f413"}.fa-yandex-international:before{content:"\f414"}.fa-yarn:before{content:"\f7e3"}.fa-yelp:before{content:"\f1e9"}.fa-yen-sign:before{content:"\f157"}.fa-yin-yang:before{content:"\f6ad"}.fa-yoast:before{content:"\f2b1"}.fa-youtube:before{content:"\f167"}.fa-youtube-square:before{content:"\f431"}.fa-zhihu:before{content:"\f63f"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:400;font-display:block;src:url(../webfonts/fa-brands-400.eot);src:url(../webfonts/fa-brands-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-brands-400.woff2) format("woff2"),url(../webfonts/fa-brands-400.woff) format("woff"),url(../webfonts/fa-brands-400.ttf) format("truetype"),url(../webfonts/fa-brands-400.svg#fontawesome) format("svg")}.fab{font-family:"Font Awesome 5 Brands"}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:400;font-display:block;src:url(../webfonts/fa-regular-400.eot);src:url(../webfonts/fa-regular-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-regular-400.woff2) format("woff2"),url(../webfonts/fa-regular-400.woff) format("woff"),url(../webfonts/fa-regular-400.ttf) format("truetype"),url(../webfonts/fa-regular-400.svg#fontawesome) format("svg")}.fab,.far{font-weight:400}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:900;font-display:block;src:url(../webfonts/fa-solid-900.eot);src:url(../webfonts/fa-solid-900.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.woff) format("woff"),url(../webfonts/fa-solid-900.ttf) format("truetype"),url(../webfonts/fa-solid-900.svg#fontawesome) format("svg")}.fa,.far,.fas{font-family:"Font Awesome 5 Free"}.fa,.fas{font-weight:900} \ No newline at end of file diff --git a/lib/font-awesome/webfonts/fa-brands-400.woff2 b/lib/font-awesome/webfonts/fa-brands-400.woff2 new file mode 100644 index 00000000..141a90a9 Binary files /dev/null and b/lib/font-awesome/webfonts/fa-brands-400.woff2 differ diff --git a/lib/font-awesome/webfonts/fa-regular-400.woff2 b/lib/font-awesome/webfonts/fa-regular-400.woff2 new file mode 100644 index 00000000..7e0118e5 Binary files /dev/null and b/lib/font-awesome/webfonts/fa-regular-400.woff2 differ diff --git a/lib/font-awesome/webfonts/fa-solid-900.woff2 b/lib/font-awesome/webfonts/fa-solid-900.woff2 new file mode 100644 index 00000000..978a681a Binary files /dev/null and b/lib/font-awesome/webfonts/fa-solid-900.woff2 differ diff --git a/lib/velocity/velocity.min.js b/lib/velocity/velocity.min.js new file mode 100644 index 00000000..58244c80 --- /dev/null +++ b/lib/velocity/velocity.min.js @@ -0,0 +1,4 @@ +/*! VelocityJS.org (1.2.2). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */ +/*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */ +!function(e){function t(e){var t=e.length,r=$.type(e);return"function"===r||$.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in e}if(!e.jQuery){var $=function(e,t){return new $.fn.init(e,t)};$.isWindow=function(e){return null!=e&&e==e.window},$.type=function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?a[o.call(e)]||"object":typeof e},$.isArray=Array.isArray||function(e){return"array"===$.type(e)},$.isPlainObject=function(e){var t;if(!e||"object"!==$.type(e)||e.nodeType||$.isWindow(e))return!1;try{if(e.constructor&&!n.call(e,"constructor")&&!n.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}for(t in e);return void 0===t||n.call(e,t)},$.each=function(e,r,a){var n,o=0,i=e.length,s=t(e);if(a){if(s)for(;i>o&&(n=r.apply(e[o],a),n!==!1);o++);else for(o in e)if(n=r.apply(e[o],a),n===!1)break}else if(s)for(;i>o&&(n=r.call(e[o],o,e[o]),n!==!1);o++);else for(o in e)if(n=r.call(e[o],o,e[o]),n===!1)break;return e},$.data=function(e,t,a){if(void 0===a){var n=e[$.expando],o=n&&r[n];if(void 0===t)return o;if(o&&t in o)return o[t]}else if(void 0!==t){var n=e[$.expando]||(e[$.expando]=++$.uuid);return r[n]=r[n]||{},r[n][t]=a,a}},$.removeData=function(e,t){var a=e[$.expando],n=a&&r[a];n&&$.each(t,function(e,t){delete n[t]})},$.extend=function(){var e,t,r,a,n,o,i=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof i&&(u=i,i=arguments[s]||{},s++),"object"!=typeof i&&"function"!==$.type(i)&&(i={}),s===l&&(i=this,s--);l>s;s++)if(null!=(n=arguments[s]))for(a in n)e=i[a],r=n[a],i!==r&&(u&&r&&($.isPlainObject(r)||(t=$.isArray(r)))?(t?(t=!1,o=e&&$.isArray(e)?e:[]):o=e&&$.isPlainObject(e)?e:{},i[a]=$.extend(u,o,r)):void 0!==r&&(i[a]=r));return i},$.queue=function(e,r,a){function n(e,r){var a=r||[];return null!=e&&(t(Object(e))?!function(e,t){for(var r=+t.length,a=0,n=e.length;r>a;)e[n++]=t[a++];if(r!==r)for(;void 0!==t[a];)e[n++]=t[a++];return e.length=n,e}(a,"string"==typeof e?[e]:e):[].push.call(a,e)),a}if(e){r=(r||"fx")+"queue";var o=$.data(e,r);return a?(!o||$.isArray(a)?o=$.data(e,r,n(a)):o.push(a),o):o||[]}},$.dequeue=function(e,t){$.each(e.nodeType?[e]:e,function(e,r){t=t||"fx";var a=$.queue(r,t),n=a.shift();"inprogress"===n&&(n=a.shift()),n&&("fx"===t&&a.unshift("inprogress"),n.call(r,function(){$.dequeue(r,t)}))})},$.fn=$.prototype={init:function(e){if(e.nodeType)return this[0]=e,this;throw new Error("Not a DOM node.")},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(e.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(e.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function e(){for(var e=this.offsetParent||document;e&&"html"===!e.nodeType.toLowerCase&&"static"===e.style.position;)e=e.offsetParent;return e||document}var t=this[0],e=e.apply(t),r=this.offset(),a=/^(?:body|html)$/i.test(e.nodeName)?{top:0,left:0}:$(e).offset();return r.top-=parseFloat(t.style.marginTop)||0,r.left-=parseFloat(t.style.marginLeft)||0,e.style&&(a.top+=parseFloat(e.style.borderTopWidth)||0,a.left+=parseFloat(e.style.borderLeftWidth)||0),{top:r.top-a.top,left:r.left-a.left}}};var r={};$.expando="velocity"+(new Date).getTime(),$.uuid=0;for(var a={},n=a.hasOwnProperty,o=a.toString,i="Boolean Number String Function Array Date RegExp Object Error".split(" "),s=0;sn;++n){var o=u(r,e,a);if(0===o)return r;var i=l(r,e,a)-t;r-=i/o}return r}function p(){for(var t=0;b>t;++t)w[t]=l(t*x,e,a)}function f(t,r,n){var o,i,s=0;do i=r+(n-r)/2,o=l(i,e,a)-t,o>0?n=i:r=i;while(Math.abs(o)>h&&++s=y?c(t,s):0==l?s:f(t,r,r+x)}function g(){V=!0,(e!=r||a!=n)&&p()}var m=4,y=.001,h=1e-7,v=10,b=11,x=1/(b-1),S="Float32Array"in t;if(4!==arguments.length)return!1;for(var P=0;4>P;++P)if("number"!=typeof arguments[P]||isNaN(arguments[P])||!isFinite(arguments[P]))return!1;e=Math.min(e,1),a=Math.min(a,1),e=Math.max(e,0),a=Math.max(a,0);var w=S?new Float32Array(b):new Array(b),V=!1,C=function(t){return V||g(),e===r&&a===n?t:0===t?0:1===t?1:l(d(t),r,n)};C.getControlPoints=function(){return[{x:e,y:r},{x:a,y:n}]};var T="generateBezier("+[e,r,a,n]+")";return C.toString=function(){return T},C}function u(e,t){var r=e;return g.isString(e)?v.Easings[e]||(r=!1):r=g.isArray(e)&&1===e.length?s.apply(null,e):g.isArray(e)&&2===e.length?b.apply(null,e.concat([t])):g.isArray(e)&&4===e.length?l.apply(null,e):!1,r===!1&&(r=v.Easings[v.defaults.easing]?v.defaults.easing:h),r}function c(e){if(e){var t=(new Date).getTime(),r=v.State.calls.length;r>1e4&&(v.State.calls=n(v.State.calls));for(var o=0;r>o;o++)if(v.State.calls[o]){var s=v.State.calls[o],l=s[0],u=s[2],f=s[3],d=!!f,m=null;f||(f=v.State.calls[o][3]=t-16);for(var y=Math.min((t-f)/u.duration,1),h=0,b=l.length;b>h;h++){var S=l[h],w=S.element;if(i(w)){var V=!1;if(u.display!==a&&null!==u.display&&"none"!==u.display){if("flex"===u.display){var C=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];$.each(C,function(e,t){x.setPropertyValue(w,"display",t)})}x.setPropertyValue(w,"display",u.display)}u.visibility!==a&&"hidden"!==u.visibility&&x.setPropertyValue(w,"visibility",u.visibility);for(var T in S)if("element"!==T){var k=S[T],A,F=g.isString(k.easing)?v.Easings[k.easing]:k.easing;if(1===y)A=k.endValue;else{var E=k.endValue-k.startValue;if(A=k.startValue+E*F(y,u,E),!d&&A===k.currentValue)continue}if(k.currentValue=A,"tween"===T)m=A;else{if(x.Hooks.registered[T]){var j=x.Hooks.getRoot(T),H=i(w).rootPropertyValueCache[j];H&&(k.rootPropertyValue=H)}var N=x.setPropertyValue(w,T,k.currentValue+(0===parseFloat(A)?"":k.unitType),k.rootPropertyValue,k.scrollData);x.Hooks.registered[T]&&(i(w).rootPropertyValueCache[j]=x.Normalizations.registered[j]?x.Normalizations.registered[j]("extract",null,N[1]):N[1]),"transform"===N[0]&&(V=!0)}}u.mobileHA&&i(w).transformCache.translate3d===a&&(i(w).transformCache.translate3d="(0px, 0px, 0px)",V=!0),V&&x.flushTransformCache(w)}}u.display!==a&&"none"!==u.display&&(v.State.calls[o][2].display=!1),u.visibility!==a&&"hidden"!==u.visibility&&(v.State.calls[o][2].visibility=!1),u.progress&&u.progress.call(s[1],s[1],y,Math.max(0,f+u.duration-t),f,m),1===y&&p(o)}}v.State.isTicking&&P(c)}function p(e,t){if(!v.State.calls[e])return!1;for(var r=v.State.calls[e][0],n=v.State.calls[e][1],o=v.State.calls[e][2],s=v.State.calls[e][4],l=!1,u=0,c=r.length;c>u;u++){var p=r[u].element;if(t||o.loop||("none"===o.display&&x.setPropertyValue(p,"display",o.display),"hidden"===o.visibility&&x.setPropertyValue(p,"visibility",o.visibility)),o.loop!==!0&&($.queue(p)[1]===a||!/\.velocityQueueEntryFlag/i.test($.queue(p)[1]))&&i(p)){i(p).isAnimating=!1,i(p).rootPropertyValueCache={};var f=!1;$.each(x.Lists.transforms3D,function(e,t){var r=/^scale/.test(t)?1:0,n=i(p).transformCache[t];i(p).transformCache[t]!==a&&new RegExp("^\\("+r+"[^.]").test(n)&&(f=!0,delete i(p).transformCache[t])}),o.mobileHA&&(f=!0,delete i(p).transformCache.translate3d),f&&x.flushTransformCache(p),x.Values.removeClass(p,"velocity-animating")}if(!t&&o.complete&&!o.loop&&u===c-1)try{o.complete.call(n,n)}catch(d){setTimeout(function(){throw d},1)}s&&o.loop!==!0&&s(n),i(p)&&o.loop===!0&&!t&&($.each(i(p).tweensContainer,function(e,t){/^rotate/.test(e)&&360===parseFloat(t.endValue)&&(t.endValue=0,t.startValue=360),/^backgroundPosition/.test(e)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)}),v(p,"reverse",{loop:!0,delay:o.delay})),o.queue!==!1&&$.dequeue(p,o.queue)}v.State.calls[e]=!1;for(var g=0,m=v.State.calls.length;m>g;g++)if(v.State.calls[g]!==!1){l=!0;break}l===!1&&(v.State.isTicking=!1,delete v.State.calls,v.State.calls=[])}var f=function(){if(r.documentMode)return r.documentMode;for(var e=7;e>4;e--){var t=r.createElement("div");if(t.innerHTML="",t.getElementsByTagName("span").length)return t=null,e}return a}(),d=function(){var e=0;return t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(t){var r=(new Date).getTime(),a;return a=Math.max(0,16-(r-e)),e=r+a,setTimeout(function(){t(r+a)},a)}}(),g={isString:function(e){return"string"==typeof e},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},isNode:function(e){return e&&e.nodeType},isNodeList:function(e){return"object"==typeof e&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(e))&&e.length!==a&&(0===e.length||"object"==typeof e[0]&&e[0].nodeType>0)},isWrapped:function(e){return e&&(e.jquery||t.Zepto&&t.Zepto.zepto.isZ(e))},isSVG:function(e){return t.SVGElement&&e instanceof t.SVGElement},isEmptyObject:function(e){for(var t in e)return!1;return!0}},$,m=!1;if(e.fn&&e.fn.jquery?($=e,m=!0):$=t.Velocity.Utilities,8>=f&&!m)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=f)return void(jQuery.fn.velocity=jQuery.fn.animate);var y=400,h="swing",v={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:r.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:$,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:y,easing:h,begin:a,complete:a,progress:a,display:a,visibility:a,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(e){$.data(e,"velocity",{isSVG:g.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};t.pageYOffset!==a?(v.State.scrollAnchor=t,v.State.scrollPropertyLeft="pageXOffset",v.State.scrollPropertyTop="pageYOffset"):(v.State.scrollAnchor=r.documentElement||r.body.parentNode||r.body,v.State.scrollPropertyLeft="scrollLeft",v.State.scrollPropertyTop="scrollTop");var b=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,r,a){var n={x:t.x+a.dx*r,v:t.v+a.dv*r,tension:t.tension,friction:t.friction};return{dx:n.v,dv:e(n)}}function r(r,a){var n={dx:r.v,dv:e(r)},o=t(r,.5*a,n),i=t(r,.5*a,o),s=t(r,a,i),l=1/6*(n.dx+2*(o.dx+i.dx)+s.dx),u=1/6*(n.dv+2*(o.dv+i.dv)+s.dv);return r.x=r.x+l*a,r.v=r.v+u*a,r}return function a(e,t,n){var o={x:-1,v:0,tension:null,friction:null},i=[0],s=0,l=1e-4,u=.016,c,p,f;for(e=parseFloat(e)||500,t=parseFloat(t)||20,n=n||null,o.tension=e,o.friction=t,c=null!==n,c?(s=a(e,t),p=s/n*u):p=u;;)if(f=r(f||o,p),i.push(1+f.x),s+=16,!(Math.abs(f.x)>l&&Math.abs(f.v)>l))break;return c?function(e){return i[e*(i.length-1)|0]}:s}}();v.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},$.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(e,t){v.Easings[t[0]]=l.apply(null,t[1])});var x=v.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e=0;e=f)switch(e){case"name":return"filter";case"extract":var a=r.toString().match(/alpha\(opacity=(.*)\)/i);return r=a?a[1]/100:1;case"inject":return t.style.zoom=1,parseFloat(r)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(r),10)+")"}else switch(e){case"name":return"opacity";case"extract":return r;case"inject":return r}}},register:function(){9>=f||v.State.isGingerbread||(x.Lists.transformsBase=x.Lists.transformsBase.concat(x.Lists.transforms3D));for(var e=0;en&&(n=1),o=!/(\d)$/i.test(n);break;case"skew":o=!/(deg|\d)$/i.test(n);break;case"rotate":o=!/(deg|\d)$/i.test(n)}return o||(i(r).transformCache[t]="("+n+")"),i(r).transformCache[t]}}}();for(var e=0;e=f||3!==o.split(" ").length||(o+=" 1"),o;case"inject":return 8>=f?4===n.split(" ").length&&(n=n.split(/\s+/).slice(0,3).join(" ")):3===n.split(" ").length&&(n+=" 1"),(8>=f?"rgb":"rgba")+"("+n.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})},SVGAttribute:function(e){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(f||v.State.isAndroid&&!v.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(e)},prefixCheck:function(e){if(v.State.prefixMatches[e])return[v.State.prefixMatches[e],!0];for(var t=["","Webkit","Moz","ms","O"],r=0,a=t.length;a>r;r++){var n;if(n=0===r?e:t[r]+e.replace(/^\w/,function(e){return e.toUpperCase()}),g.isString(v.State.prefixElement.style[n]))return v.State.prefixMatches[e]=n,[n,!0]}return[e,!1]}},Values:{hexToRgb:function(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,a;return e=e.replace(t,function(e,t,r,a){return t+t+r+r+a+a}),a=r.exec(e),a?[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]:[0,0,0]},isCSSNullValue:function(e){return 0==e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){var t=e&&e.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(e,t){e.classList?e.classList.add(t):e.className+=(e.className.length?" ":"")+t},removeClass:function(e,t){e.classList?e.classList.remove(t):e.className=e.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(e,r,n,o){function s(e,r){function n(){u&&x.setPropertyValue(e,"display","none")}var l=0;if(8>=f)l=$.css(e,r);else{var u=!1;if(/^(width|height)$/.test(r)&&0===x.getPropertyValue(e,"display")&&(u=!0,x.setPropertyValue(e,"display",x.Values.getDisplayType(e))),!o){if("height"===r&&"border-box"!==x.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var c=e.offsetHeight-(parseFloat(x.getPropertyValue(e,"borderTopWidth"))||0)-(parseFloat(x.getPropertyValue(e,"borderBottomWidth"))||0)-(parseFloat(x.getPropertyValue(e,"paddingTop"))||0)-(parseFloat(x.getPropertyValue(e,"paddingBottom"))||0);return n(),c}if("width"===r&&"border-box"!==x.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var p=e.offsetWidth-(parseFloat(x.getPropertyValue(e,"borderLeftWidth"))||0)-(parseFloat(x.getPropertyValue(e,"borderRightWidth"))||0)-(parseFloat(x.getPropertyValue(e,"paddingLeft"))||0)-(parseFloat(x.getPropertyValue(e,"paddingRight"))||0);return n(),p}}var d;d=i(e)===a?t.getComputedStyle(e,null):i(e).computedStyle?i(e).computedStyle:i(e).computedStyle=t.getComputedStyle(e,null),"borderColor"===r&&(r="borderTopColor"),l=9===f&&"filter"===r?d.getPropertyValue(r):d[r],(""===l||null===l)&&(l=e.style[r]),n()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(r)){var g=s(e,"position");("fixed"===g||"absolute"===g&&/top|left/i.test(r))&&(l=$(e).position()[r]+"px")}return l}var l;if(x.Hooks.registered[r]){var u=r,c=x.Hooks.getRoot(u);n===a&&(n=x.getPropertyValue(e,x.Names.prefixCheck(c)[0])),x.Normalizations.registered[c]&&(n=x.Normalizations.registered[c]("extract",e,n)),l=x.Hooks.extractValue(u,n)}else if(x.Normalizations.registered[r]){var p,d;p=x.Normalizations.registered[r]("name",e),"transform"!==p&&(d=s(e,x.Names.prefixCheck(p)[0]),x.Values.isCSSNullValue(d)&&x.Hooks.templates[r]&&(d=x.Hooks.templates[r][1])),l=x.Normalizations.registered[r]("extract",e,d)}if(!/^[\d-]/.test(l))if(i(e)&&i(e).isSVG&&x.Names.SVGAttribute(r))if(/^(height|width)$/i.test(r))try{l=e.getBBox()[r]}catch(g){l=0}else l=e.getAttribute(r);else l=s(e,x.Names.prefixCheck(r)[0]);return x.Values.isCSSNullValue(l)&&(l=0),v.debug>=2&&console.log("Get "+r+": "+l),l},setPropertyValue:function(e,r,a,n,o){var s=r;if("scroll"===r)o.container?o.container["scroll"+o.direction]=a:"Left"===o.direction?t.scrollTo(a,o.alternateValue):t.scrollTo(o.alternateValue,a);else if(x.Normalizations.registered[r]&&"transform"===x.Normalizations.registered[r]("name",e))x.Normalizations.registered[r]("inject",e,a),s="transform",a=i(e).transformCache[r];else{if(x.Hooks.registered[r]){var l=r,u=x.Hooks.getRoot(r);n=n||x.getPropertyValue(e,u),a=x.Hooks.injectValue(l,a,n),r=u}if(x.Normalizations.registered[r]&&(a=x.Normalizations.registered[r]("inject",e,a),r=x.Normalizations.registered[r]("name",e)),s=x.Names.prefixCheck(r)[0],8>=f)try{e.style[s]=a}catch(c){v.debug&&console.log("Browser does not support ["+a+"] for ["+s+"]")}else i(e)&&i(e).isSVG&&x.Names.SVGAttribute(r)?e.setAttribute(r,a):e.style[s]=a;v.debug>=2&&console.log("Set "+r+" ("+s+"): "+a)}return[s,a]},flushTransformCache:function(e){function t(t){return parseFloat(x.getPropertyValue(e,t))}var r="";if((f||v.State.isAndroid&&!v.State.isChrome)&&i(e).isSVG){var a={translate:[t("translateX"),t("translateY")],skewX:[t("skewX")],skewY:[t("skewY")],scale:1!==t("scale")?[t("scale"),t("scale")]:[t("scaleX"),t("scaleY")],rotate:[t("rotateZ"),0,0]};$.each(i(e).transformCache,function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),a[e]&&(r+=e+"("+a[e].join(" ")+") ",delete a[e])})}else{var n,o;$.each(i(e).transformCache,function(t){return n=i(e).transformCache[t],"transformPerspective"===t?(o=n,!0):(9===f&&"rotateZ"===t&&(t="rotate"),void(r+=t+n+" "))}),o&&(r="perspective"+o+" "+r)}x.setPropertyValue(e,"transform",r)}};x.Hooks.register(),x.Normalizations.register(),v.hook=function(e,t,r){var n=a;return e=o(e),$.each(e,function(e,o){if(i(o)===a&&v.init(o),r===a)n===a&&(n=v.CSS.getPropertyValue(o,t));else{var s=v.CSS.setPropertyValue(o,t,r);"transform"===s[0]&&v.CSS.flushTransformCache(o),n=s}}),n};var S=function(){function e(){return l?T.promise||null:f}function n(){function e(e){function p(e,t){var r=a,i=a,s=a;return g.isArray(e)?(r=e[0],!g.isArray(e[1])&&/^[\d-]/.test(e[1])||g.isFunction(e[1])||x.RegEx.isHex.test(e[1])?s=e[1]:(g.isString(e[1])&&!x.RegEx.isHex.test(e[1])||g.isArray(e[1]))&&(i=t?e[1]:u(e[1],o.duration),e[2]!==a&&(s=e[2]))):r=e,t||(i=i||o.easing),g.isFunction(r)&&(r=r.call(n,w,P)),g.isFunction(s)&&(s=s.call(n,w,P)),[r||0,i,s]}function f(e,t){var r,a;return a=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(e){return r=e,""}),r||(r=x.Values.getUnitType(e)),[a,r]}function d(){var e={myParent:n.parentNode||r.body,position:x.getPropertyValue(n,"position"),fontSize:x.getPropertyValue(n,"fontSize")},a=e.position===N.lastPosition&&e.myParent===N.lastParent,o=e.fontSize===N.lastFontSize;N.lastParent=e.myParent,N.lastPosition=e.position,N.lastFontSize=e.fontSize;var s=100,l={};if(o&&a)l.emToPx=N.lastEmToPx,l.percentToPxWidth=N.lastPercentToPxWidth,l.percentToPxHeight=N.lastPercentToPxHeight;else{var u=i(n).isSVG?r.createElementNS("http://www.w3.org/2000/svg","rect"):r.createElement("div");v.init(u),e.myParent.appendChild(u),$.each(["overflow","overflowX","overflowY"],function(e,t){v.CSS.setPropertyValue(u,t,"hidden")}),v.CSS.setPropertyValue(u,"position",e.position),v.CSS.setPropertyValue(u,"fontSize",e.fontSize),v.CSS.setPropertyValue(u,"boxSizing","content-box"),$.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(e,t){v.CSS.setPropertyValue(u,t,s+"%")}),v.CSS.setPropertyValue(u,"paddingLeft",s+"em"),l.percentToPxWidth=N.lastPercentToPxWidth=(parseFloat(x.getPropertyValue(u,"width",null,!0))||1)/s,l.percentToPxHeight=N.lastPercentToPxHeight=(parseFloat(x.getPropertyValue(u,"height",null,!0))||1)/s,l.emToPx=N.lastEmToPx=(parseFloat(x.getPropertyValue(u,"paddingLeft"))||1)/s,e.myParent.removeChild(u)}return null===N.remToPx&&(N.remToPx=parseFloat(x.getPropertyValue(r.body,"fontSize"))||16),null===N.vwToPx&&(N.vwToPx=parseFloat(t.innerWidth)/100,N.vhToPx=parseFloat(t.innerHeight)/100),l.remToPx=N.remToPx,l.vwToPx=N.vwToPx,l.vhToPx=N.vhToPx,v.debug>=1&&console.log("Unit ratios: "+JSON.stringify(l),n),l}if(o.begin&&0===w)try{o.begin.call(m,m)}catch(y){setTimeout(function(){throw y},1)}if("scroll"===k){var S=/^x$/i.test(o.axis)?"Left":"Top",V=parseFloat(o.offset)||0,C,A,F;o.container?g.isWrapped(o.container)||g.isNode(o.container)?(o.container=o.container[0]||o.container,C=o.container["scroll"+S],F=C+$(n).position()[S.toLowerCase()]+V):o.container=null:(C=v.State.scrollAnchor[v.State["scrollProperty"+S]],A=v.State.scrollAnchor[v.State["scrollProperty"+("Left"===S?"Top":"Left")]],F=$(n).offset()[S.toLowerCase()]+V),s={scroll:{rootPropertyValue:!1,startValue:C,currentValue:C,endValue:F,unitType:"",easing:o.easing,scrollData:{container:o.container,direction:S,alternateValue:A}},element:n},v.debug&&console.log("tweensContainer (scroll): ",s.scroll,n)}else if("reverse"===k){if(!i(n).tweensContainer)return void $.dequeue(n,o.queue);"none"===i(n).opts.display&&(i(n).opts.display="auto"),"hidden"===i(n).opts.visibility&&(i(n).opts.visibility="visible"),i(n).opts.loop=!1,i(n).opts.begin=null,i(n).opts.complete=null,b.easing||delete o.easing,b.duration||delete o.duration,o=$.extend({},i(n).opts,o);var E=$.extend(!0,{},i(n).tweensContainer);for(var j in E)if("element"!==j){var H=E[j].startValue;E[j].startValue=E[j].currentValue=E[j].endValue,E[j].endValue=H,g.isEmptyObject(b)||(E[j].easing=o.easing),v.debug&&console.log("reverse tweensContainer ("+j+"): "+JSON.stringify(E[j]),n)}s=E}else if("start"===k){var E;i(n).tweensContainer&&i(n).isAnimating===!0&&(E=i(n).tweensContainer),$.each(h,function(e,t){if(RegExp("^"+x.Lists.colors.join("$|^")+"$").test(e)){var r=p(t,!0),n=r[0],o=r[1],i=r[2];if(x.RegEx.isHex.test(n)){for(var s=["Red","Green","Blue"],l=x.Values.hexToRgb(n),u=i?x.Values.hexToRgb(i):a,c=0;cO;O++){var z={delay:F.delay,progress:F.progress};O===R-1&&(z.display=F.display,z.visibility=F.visibility,z.complete=F.complete),S(m,"reverse",z)}return e()}};v=$.extend(S,v),v.animate=S;var P=t.requestAnimationFrame||d;return v.State.isMobile||r.hidden===a||r.addEventListener("visibilitychange",function(){r.hidden?(P=function(e){return setTimeout(function(){e(!0)},16)},c()):P=t.requestAnimationFrame||d}),e.Velocity=v,e!==t&&(e.fn.velocity=S,e.fn.velocity.defaults=v.defaults),$.each(["Down","Up"],function(e,t){v.Redirects["slide"+t]=function(e,r,n,o,i,s){var l=$.extend({},r),u=l.begin,c=l.complete,p={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},f={};l.display===a&&(l.display="Down"===t?"inline"===v.CSS.Values.getDisplayType(e)?"inline-block":"block":"none"),l.begin=function(){u&&u.call(i,i);for(var r in p){f[r]=e.style[r];var a=v.CSS.getPropertyValue(e,r);p[r]="Down"===t?[a,0]:[0,a]}f.overflow=e.style.overflow,e.style.overflow="hidden"},l.complete=function(){for(var t in f)e.style[t]=f[t];c&&c.call(i,i),s&&s.resolver(i)},v(e,p,l)}}),$.each(["In","Out"],function(e,t){v.Redirects["fade"+t]=function(e,r,n,o,i,s){var l=$.extend({},r),u={opacity:"In"===t?1:0},c=l.complete;l.complete=n!==o-1?l.begin=null:function(){c&&c.call(i,i),s&&s.resolver(i)},l.display===a&&(l.display="In"===t?"auto":"none"),v(this,u,l)}}),v}(window.jQuery||window.Zepto||window,window,document)}); \ No newline at end of file diff --git a/lib/velocity/velocity.ui.min.js b/lib/velocity/velocity.ui.min.js new file mode 100644 index 00000000..87069453 --- /dev/null +++ b/lib/velocity/velocity.ui.min.js @@ -0,0 +1,2 @@ +/* VelocityJS.org UI Pack (5.0.4). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License. Portions copyright Daniel Eden, Christian Pucci. */ +!function(t){"function"==typeof require&&"object"==typeof exports?module.exports=t():"function"==typeof define&&define.amd?define(["velocity"],t):t()}(function(){return function(t,a,e,r){function n(t,a){var e=[];return t&&a?($.each([t,a],function(t,a){var r=[];$.each(a,function(t,a){for(;a.toString().length<5;)a="0"+a;r.push(a)}),e.push(r.join(""))}),parseFloat(e[0])>parseFloat(e[1])):!1}if(!t.Velocity||!t.Velocity.Utilities)return void(a.console&&console.log("Velocity UI Pack: Velocity must be loaded first. Aborting."));var i=t.Velocity,$=i.Utilities,s=i.version,o={major:1,minor:1,patch:0};if(n(o,s)){var l="Velocity UI Pack: You need to update Velocity (jquery.velocity.js) to a newer version. Visit http://github.com/julianshapiro/velocity.";throw alert(l),new Error(l)}i.RegisterEffect=i.RegisterUI=function(t,a){function e(t,a,e,r){var n=0,s;$.each(t.nodeType?[t]:t,function(t,a){r&&(e+=t*r),s=a.parentNode,$.each(["height","paddingTop","paddingBottom","marginTop","marginBottom"],function(t,e){n+=parseFloat(i.CSS.getPropertyValue(a,e))})}),i.animate(s,{height:("In"===a?"+":"-")+"="+n},{queue:!1,easing:"ease-in-out",duration:e*("In"===a?.6:1)})}return i.Redirects[t]=function(n,s,o,l,c,u){function f(){s.display!==r&&"none"!==s.display||!/Out$/.test(t)||$.each(c.nodeType?[c]:c,function(t,a){i.CSS.setPropertyValue(a,"display","none")}),s.complete&&s.complete.call(c,c),u&&u.resolver(c||n)}var p=o===l-1;a.defaultDuration="function"==typeof a.defaultDuration?a.defaultDuration.call(c,c):parseFloat(a.defaultDuration);for(var d=0;d1&&($.each(a.reverse(),function(t,e){var r=a[t+1];if(r){var n=e.o||e.options,s=r.o||r.options,o=n&&n.sequenceQueue===!1?"begin":"complete",l=s&&s[o],c={};c[o]=function(){var t=r.e||r.elements,a=t.nodeType?[t]:t;l&&l.call(a,a),i(e)},r.o?r.o=$.extend({},s,c):r.options=$.extend({},s,c)}}),a.reverse()),i(a[0])}}(window.jQuery||window.Zepto||window,window,document)}); \ No newline at end of file diff --git a/result/index.html b/result/index.html new file mode 100644 index 00000000..8882186c --- /dev/null +++ b/result/index.html @@ -0,0 +1,1897 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Result | 3TS-Coo | 3TS + + + + + + + + + + + + + +
    +
    + +
    +
    + + + + + +
    + + + + + + + + +
    + +
    + +
    +
    + + +
    + + 0% +
    + + +
    +
    +
    + + + + +
    + + + + + +
    +
    + +

    Result +

    + + + +
    + + + + +
    +

    Interesting results

    Please check out the below results of Oracle 21.3.0, TDSQL 2.0.1, and PostgreSQL 12.4.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    No.1234567891011121314151617181920212223242526272829303132333435
    Databases
    Versions
    Report date
    Test caseDirty ReadNon-repeatable ReadIntermediate ReadIntermediate Read CommittedLost Self UpdateWrite-read SkewWrite-read Skew CommittedDouble-write Skew 1Double-writeSkew 1 CommittedDouble-write Skew 2Read SkewRead Skew 2Read Skew 2 CommittedStep RATDirty WriteFull-writeFull-write CommittedLost UpdateLost Self Update CommittedDouble-write Skew 2 CommittedFull-write SkewFull-write Skew CommittedRead-write Skew 1Read-write Skew 2Read-write Skew 2 CommittedStep WATNon-repeatable Read CommittedLost Update CommittedRead Skew CommittedRead-writeSkew 1 CommittedWrite SkewWrite Skew CommittedStep IATNon-repeatable Read PredicateWrite Skew Predicate
    Oracle
    v21.3.0
    2022.05.26
    SERPPPPRAARRRPPPARRRRRRDDRRRDPRPRARRPR
    RCPPPPPAPPPPPPPAPPPAPPDDAAADAAAAAAAPA
    TDSQL
    v2.0.1
    2022.05.26
    SERPPPPPRRRRRRRRRPPPRPRDDRRRDPRRRRRRPR
    RRPPPPPAPPPPPPPAPPPAPPDDAAADPAPAAAAPA
    RCPPPPPAPPPPPPPAPPPAPPDDAAADAAAAAAAPA
    PostgreSQL
    v12.4
    2022.05.26
    SERPPPPRRRRRRPPPRRRRRRRDDRRRDPRPRRRRPR
    RRPPPPRAARRRPPPARRRRRRDDRRRDPRPRAAAPA
    RCPPPPPAPPPPPPPAPPPAPPDDAAADAAAAAAAPA
    + +

    Tested results

    The below is the result of checking MySQL 8.0.20, MyRocks 8.0.26, SQL Server 15.0, TiDB 4.0.5/5.4.0, Oracle 12.1.0, OceanBase XE 2.2.50, OceanBase CE 3.1.2, Greenplum 6.20, CockroachDB 19.2.2, and MongoDB 4.4.4.

    + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    No.123456789101112131415161718192021222324252627282930313233
    Databases
    Versions
    Report date
    Test caseDirty ReadNon-repeatable ReadIntermediate ReadIntermediate Read CommittedLost Self UpdateWrite-read SkewWrite-read Skew CommittedDouble-write Skew 1Double-writeSkew 1 CommittedDouble-write Skew 2Read SkewRead Skew 2Read Skew 2 CommittedStep RATDirty WriteFull-writeFull-write CommittedLost UpdateLost Self Update CommittedDouble-write Skew 2 CommittedFull-write SkewFull-write Skew CommittedRead-write Skew 1Read-write Skew 2Read-write Skew 2 CommittedStep WATNon-repeatable Read CommittedLost Update CommittedRead Skew CommittedRead-writeSkew 1 CommittedWrite SkewWrite Skew CommittedStep IAT
    MySQL
    v8.0.20
    2022.04.30
    SERPPPPPDDDDDDDDDPPPDPDDDDDDDPDDDDDD
    RRPPPPPAPPPPPPPAPPPAPPDDAAADPAPAAAA
    RCPPPPPAPPPPPPPAPPPAPPDDAAADAAAAAAA
    RUAAAAPAAAAAAAAAPPPAPADDAAADAAAAAAA
    MyRocks
    v8.0.26
    2022.04.30
    SERPPPPPDDDDDDDDDPPPDPDDDDDDDPDDDDDD
    RRPPPPPAPPPPPPPAPPPAPPDDAAADPAPAAAA
    RCPPPPPAPPPPPPPAPPPAPPDDAAADAAAAAAA
    RUAAAAPAAAAAAAAAPPPAPADDAAADAAAAAAA
    SQL Server
    v15.0
    2022.04.30
    SERPPPPPDDDDDDDDDPPPPPDDDDDDDPPDDDDD
    SIPPPPRAARRRPPPARRRRRRDDRRRDPRPRAAA
    RRPPPPPDDDDDDDDDPPPPPDDDDDDDPPDDDDD
    RCPAPPPDDDDDAAADPPPAPDDDAAADAAAAAAA
    RUAAAAPAAAAAAAAAPPPAPADDAAADAAAAAAA
    TiDB
    v4.0.5/v5.4.0
    2022.04.30
    OPTPPPPRAARRRPPPARRRRRRRRRRRRPRPRAAA
    RRPPPPPAAPPPPPPAPPPAPPDDAAADPAPAAAA
    RCPPPPPAPPPPPPPAPPPAPPDDAAADAAAAAAA
    Oracle
    v12.1.0
    2022.04.30
    SERPPPPRAARRRPPPARRRRRRDDRRRDPRPRARR
    RCPPPPPAPPPPPPPAPPPAPPDDAAADAAAAAAA
    OceanBase
    XE v2.2.50
    2022.04.30
    SERPPPPRAARRRPPPARRRRRRTTRRRTPRPRAAA
    RRPPPPRAARRRPPPARRRRRRTTRRRTPRPRAAA
    RCPPPPPAPPPPPPPAPPPAPPTTAAATAAAAAAA
    OceanBase
    CE v3.1.0
    2022.04.30
    RRPPPPPAPPPPPPPAPPPAPPTTAAATAAAAAAA
    RCPPPPPAPPPPPPPAPPPAPPTTAAATAAAAAAA
    Greenplum
    v6.20.0
    2022.04.30
    SERPPPPRAARRRPPPARRRRRRDDRRRDPRPRAAA
    RCPPPPPAPPPPPPPAPPPAPPDDAAAPAAAAAAA
    CockroachDB
    v19.2.2
    2022.04.30
    SERPPPPPPPRRPPPPPPPPRPPDDRRRDPRPRRRR
    MongoDB
    v4.4.4
    2022.04.30
    SIPPPPPAARRRPPPARRRRRRRRRRRRPRPRAAA
    +
    + +
    + + + +
    + + + + + + + +
    + + + + +
    + + + + + + + + +
    +
    + +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/result/result/crdb_19.2.2/result_summary/serializable_total-result.txt b/result/result/crdb_19.2.2/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..63240c80 --- /dev/null +++ b/result/result/crdb_19.2.2/result_summary/serializable_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Avoid + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Avoid + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Avoid + +rat_mda_step_rat_predicate_based_insert: Avoid + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +iat_mda_step_iat_predicate_based_delete: Rollback + +iat_mda_step_iat_predicate_based_insert: Rollback + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Rollback + diff --git a/result/result/crdb_19.2.2/serializable/iat_dda_read_skew_committed.txt b/result/result/crdb_19.2.2/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..da1d915e --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:6:619:49 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:53:6:622:619 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:6:720:978 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:53:6:724:491 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:53:6:727:692 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:53:6:730:895 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 16:53:6:823:571 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:53:6:825:405 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:53:6:828:827 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/iat_dda_read_write_skew1_committed.txt b/result/result/crdb_19.2.2/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..70d32f52 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:7:145:274 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:53:7:148:534 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:7:247:353 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:53:7:250:486 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:53:7:253:575 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:53:7:256:516 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889587.144869253,0 too old; wrote at 1648889587.246952816,1 errcode: HY000 +Q7 failed at: 2022-4-2 16:53:8:48:989 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889587.144869253,0 too old; wrote at 1648889587.246952816,1 + diff --git a/result/result/crdb_19.2.2/serializable/iat_dda_write_skew.txt b/result/result/crdb_19.2.2/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..c8c75c64 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/iat_dda_write_skew.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:8:400:595 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:53:8:403:821 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:8:500:401 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:53:8:503:880 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:53:8:507:190 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 16:53:8:601:965 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-2 16:53:8:703:2 +Q7 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=8947d20d key=/Table/330/1/1/0 rw=true pri=0.04650676 stat=PENDING epo=0 ts=1648889588.50002684 errcode: HY000 +Q7 failed at: 2022-4-2 16:53:9:306:390 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=8947d20d key=/Table/330/1/1/0 rw=true pri=0.04650676 stat=PENDING epo=0 ts=1648889588.50002684 + diff --git a/result/result/crdb_19.2.2/serializable/iat_dda_write_skew_committed.txt b/result/result/crdb_19.2.2/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..3b4c03ff --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:11:383:976 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:53:11:387:951 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:11:483:991 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:53:11:487:620 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:53:11:491:337 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:53:11:495:486 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 16:53:11:585:833 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=27646345 key=/Table/333/1/1/0 rw=true pri=0.01261970 stat=PENDING epo=0 ts=1648889591.48360386 errcode: HY000 +Q8 failed at: 2022-4-2 16:53:12:390:533 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=27646345 key=/Table/333/1/1/0 rw=true pri=0.01261970 stat=PENDING epo=0 ts=1648889591.48360386 + diff --git a/result/result/crdb_19.2.2/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/result/result/crdb_19.2.2/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..3f1e9364 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,71 @@ +#### db_type: crdb #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:9:553:603 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 16:53:9:557:927 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 16:53:9:560:904 + Q4-T2 execute sql: 'BEGIN TRANSACTION;' + Q4 finished at: 2022-4-2 16:53:9:653:444 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:53:9:755:484 + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 16:53:9:763:506 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 16:53:9:766:343 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:53:9:769:535 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 16:53:9:773:367 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 16:53:9:776:569 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/result/result/crdb_19.2.2/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..49077e81 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:10:48:555 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 16:53:10:52:730 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:10:148:628 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 16:53:10:153:630 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 16:53:10:170:832 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:53:10:174:944 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-2 16:53:10:250:997 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=c6ca7478 key=/Table/332/1/"kevin"/"checking"/0 rw=true pri=0.06037639 stat=PENDING epo=0 ts=16 errcode: HY000 +Q8 failed at: 2022-4-2 16:53:11:55:114 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=c6ca7478 key=/Table/332/1/"kevin"/"checking"/0 rw=true pri=0.06037639 stat=PENDING epo=0 ts=16 + diff --git a/result/result/crdb_19.2.2/serializable/iat_mda_step_iat.txt b/result/result/crdb_19.2.2/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..c9156645 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/iat_mda_step_iat.txt @@ -0,0 +1,90 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:12:714:385 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 16:53:12:717:793 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:12:814:282 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 16:53:12:817:887 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-2 16:53:12:916:503 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 16:53:12:920:179 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 16:53:13:16:387 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 16:53:13:116:164 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 16:53:13:216:323 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-2 16:53:13:317:177 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:53:13:516:406 + Q11 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=bc65461d key=/Table/334/1/1/0 rw=true pri=0.00452134 stat=PENDING epo=0 ts=1648889592.91615675 errcode: HY000 + Q11 failed at: 2022-4-2 16:53:14:517:981 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=bc65461d key=/Table/334/1/1/0 rw=true pri=0.00452134 stat=PENDING epo=0 ts=1648889592.91615675 + diff --git a/result/result/crdb_19.2.2/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/result/result/crdb_19.2.2/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..af310a1f --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,105 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:20:506:798 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:53:20:510:541 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:20:605:331 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 16:53:20:609:906 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 16:53:20:613:911 + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-2 16:53:20:708:644 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 16:53:20:712:234 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 16:53:20:716:229 + Q9-T3 execute sql: 'COMMIT TRANSACTION;' + Q9 finished at: 2022-4-2 16:53:20:719:599 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 16:53:20:810:537 +Q11-T1 execute sql: 'COMMIT TRANSACTION;' +Q11 finished at: 2022-4-2 16:53:20:812:290 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 16:53:20:815:850 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/iat_mda_step_iat_cross_phenomenon.txt b/result/result/crdb_19.2.2/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..180d08f7 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,206 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:19:677:63 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:53:19:681:657 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:19:776:517 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:53:19:780:669 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-2 16:53:19:873:76 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 16:53:19:876:915 + Q7-T3 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:53:19:880:466 + Q8-T4 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-2 16:53:19:976:338 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 16:53:19:979:715 + Q10-T4 execute sql: 'COMMIT TRANSACTION;' + Q10 finished at: 2022-4-2 16:53:19:982:881 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 16:53:20:75:321 + Q12-T2 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:53:20:77:211 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 16:53:20:173:706 +Q14-T1 execute sql: 'COMMIT TRANSACTION;' +Q14 finished at: 2022-4-2 16:53:20:175:621 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 16:53:20:180:642 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/iat_mda_step_iat_predicate_based_delete.txt b/result/result/crdb_19.2.2/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..fb54777c --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,90 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:14:846:121 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 16:53:14:849:986 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:14:945:358 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 16:53:14:949:504 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-2 16:53:15:45:108 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 16:53:15:49:342 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 16:53:15:151:612 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 16:53:15:248:369 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 16:53:15:348:54 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-2 16:53:15:448:324 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:53:15:647:444 + Q11 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=28793754 key=/Table/335/1/1 rw=true pri=0.03177472 stat=PENDING epo=0 ts=1648889595.044727208, errcode: HY000 + Q11 failed at: 2022-4-2 16:53:16:650:0 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=28793754 key=/Table/335/1/1 rw=true pri=0.03177472 stat=PENDING epo=0 ts=1648889595.044727208, + diff --git a/result/result/crdb_19.2.2/serializable/iat_mda_step_iat_predicate_based_insert.txt b/result/result/crdb_19.2.2/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..e5d92f92 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,87 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:16:948:897 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 16:53:16:961:521 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:17:48:486 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 16:53:17:52:290 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-2 16:53:17:148:412 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 16:53:17:152:120 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 16:53:17:250:314 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 16:53:17:351:85 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 16:53:17:450:336 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-2 16:53:17:552:164 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:53:17:751:324 + Q11 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=56c02bb7 key=/Table/336/1/1/0 rw=true pri=0.00554938 stat=PENDING epo=0 ts=1648889597.14800837 errcode: HY000 + Q11 failed at: 2022-4-2 16:53:18:752:22 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=56c02bb7 key=/Table/336/1/1/0 rw=true pri=0.00554938 stat=PENDING epo=0 ts=1648889597.14800837 + diff --git a/result/result/crdb_19.2.2/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/result/result/crdb_19.2.2/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..e2d25f5c --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,121 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:21:147:87 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 16:53:21:151:376 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 16:53:21:155:190 + Q4-T2 execute sql: 'BEGIN TRANSACTION;' + Q4 finished at: 2022-4-2 16:53:21:246:842 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 16:53:21:250:476 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 16:53:21:253:908 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:53:21:257:421 + Q8-T3 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-2 16:53:21:349:72 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 16:53:21:353:526 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 16:53:21:356:956 + Q11-T3 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-2 16:53:21:358:628 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-2 16:53:21:454:623 +Q13-T1 execute sql: 'COMMIT TRANSACTION;' +Q13 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=fda15299 key=/Table/340/1/0/0 rw=true pri=0.01143240 stat=PENDING epo=0 ts=1648889601.34859007 errcode: HY000 +Q13 failed at: 2022-4-2 16:53:22:759:597 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=fda15299 key=/Table/340/1/0/0 rw=true pri=0.01143240 stat=PENDING epo=0 ts=1648889601.34859007 + diff --git a/result/result/crdb_19.2.2/serializable/iat_mda_step_iat_uname_anomaly.txt b/result/result/crdb_19.2.2/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..b9814723 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,161 @@ +#### db_type: crdb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:19:32:345 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 16:53:19:35:955 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:19:132:460 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 16:53:19:136:690 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:53:19:140:56 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 16:53:19:144:462 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-2 16:53:19:147:665 + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-2 16:53:19:150:542 + Q9-T3 execute sql: 'BEGIN TRANSACTION;' + Q9 finished at: 2022-4-2 16:53:19:232:785 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 16:53:19:236:461 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-2 16:53:19:239:523 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 16:53:19:243:290 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 16:53:19:246:559 + Q14-T3 execute sql: 'COMMIT TRANSACTION;' + Q14 finished at: 2022-4-2 16:53:19:250:546 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 16:53:19:334:943 +Q16-T1 execute sql: 'COMMIT TRANSACTION;' +Q16 finished at: 2022-4-2 16:53:19:337:19 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 16:53:19:341:278 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/iat_sda_lost_update_committed.txt b/result/result/crdb_19.2.2/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..b96c3930 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: crdb #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:5:486:810 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 16:53:5:490:194 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:5:586:870 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 16:53:5:590:159 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 16:53:5:597:748 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889585.486334849,0 too old; wrote at 1648889585.586497792,1 errcode: HY000 +Q6 failed at: 2022-4-2 16:53:6:291:46 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889585.486334849,0 too old; wrote at 1648889585.586497792,1 + diff --git a/result/result/crdb_19.2.2/serializable/iat_sda_non_repeatable_read_committed.txt b/result/result/crdb_19.2.2/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..a8fe60af --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,57 @@ +#### db_type: crdb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 17:11:2:974:620 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 17:11:2:987:952 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 17:11:3:69:739 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 17:11:3:76:433 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 17:11:3:80:252 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 17:11:3:172:212 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 17:11:3:175:236 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 17:11:3:179:334 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/rat_dda_double_write_skew1.txt b/result/result/crdb_19.2.2/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..b60794da --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,34 @@ +#### db_type: crdb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:35:843:731 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:35:848:536 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:35:943:160 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:35:947:281 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q6 finished at: 2022-4-2 16:52:36:59:421 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:36:246:191 + Q5 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=6dfc20ac key=/Table/297/1/1/0 rw=true pri=0.01388052 stat=ABORTED epo=0 ts=1648889555.942584994 errcode: HY000 + Q5 failed at: 2022-4-2 16:52:36:576:336 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=6dfc20ac key=/Table/297/1/1/0 rw=true pri=0.01388052 stat=ABORTED epo=0 ts=1648889555.942584994 + diff --git a/result/result/crdb_19.2.2/serializable/rat_dda_double_write_skew1_committed.txt b/result/result/crdb_19.2.2/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..ce138127 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:36:906:164 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:36:910:645 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:37:6:93 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:37:9:779 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 16:52:37:119:777 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:37:123:752 +Q7 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_ABORT_SPAN): "sql txn" id=74990123 key=/Table/298/1/0/0 rw=true pri=0.01323698 stat=ABORTED epo=0 ts=1648889557.005586845,1 o errcode: HY000 +Q7 failed at: 2022-4-2 16:52:37:832:763 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_ABORT_SPAN): "sql txn" id=74990123 key=/Table/298/1/0/0 rw=true pri=0.01323698 stat=ABORTED epo=0 ts=1648889557.005586845,1 o + diff --git a/result/result/crdb_19.2.2/serializable/rat_dda_double_write_skew2.txt b/result/result/crdb_19.2.2/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..a1906abf --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,53 @@ +#### db_type: crdb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:38:176:466 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:38:180:183 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:38:276:786 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:38:280:743 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 16:52:38:378:469 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:38:382:239 + Q5 finished at: 2022-4-2 16:52:38:390:589 + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-2 16:52:38:483:60 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:52:38:486:960 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/rat_dda_read_skew.txt b/result/result/crdb_19.2.2/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..3fceb3a6 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/rat_dda_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:38:808:758 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:52:38:812:426 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:38:908:512 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:38:912:320 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:52:38:915:832 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 16:52:39:11:248 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:52:39:110:523 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:39:208:728 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:52:39:212:592 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/rat_dda_read_skew2.txt b/result/result/crdb_19.2.2/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..5c81b566 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:40:581:343 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:40:584:775 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:40:681:552 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:52:40:685:445 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 16:52:40:783:156 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:40:787:95 + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 16:52:40:794:871 + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-2 16:52:40:881:336 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:52:40:896:759 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/rat_dda_read_skew2_committed.txt b/result/result/crdb_19.2.2/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..556ef637 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:41:217:439 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:41:221:680 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:41:317:547 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:52:41:321:482 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 16:52:41:419:20 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:41:422:969 + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 16:52:41:430:871 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:41:432:972 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:52:41:436:425 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/rat_dda_read_skew_predicate_based_delete.txt b/result/result/crdb_19.2.2/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..f7b52476 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:39:525:393 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 16:52:39:529:591 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:39:623:985 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:39:628:603 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:52:39:640:990 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:39:644:745 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 16:52:39:725:617 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:39:727:575 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 16:52:39:730:764 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/rat_dda_read_skew_predicate_based_insert.txt b/result/result/crdb_19.2.2/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..7d892e39 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,58 @@ +#### db_type: crdb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:40:29:59 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 16:52:40:39:609 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:40:128:893 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 16:52:40:132:102 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 16:52:40:134:933 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:40:138:58 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 16:52:40:249:669 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:40:251:983 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 16:52:40:255:335 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/rat_dda_write_read_skew.txt b/result/result/crdb_19.2.2/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..9ee7ba9f --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:34:530:528 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:34:534:579 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:34:630:662 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:34:634:645 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 16:52:34:732:539 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:34:933:761 + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 16:52:34:942:919 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:52:34:963:972 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:52:34:970:209 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/rat_dda_write_read_skew_committed.txt b/result/result/crdb_19.2.2/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..de802241 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: crdb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:35:306:802 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:35:310:707 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:35:406:781 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:35:411:616 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 16:52:35:507:707 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:35:512:969 + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 16:52:35:520:904 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:35:524:857 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:52:35:528:228 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/rat_mda_step_rat.txt b/result/result/crdb_19.2.2/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..6188472f --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: crdb #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:41:759:44 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:41:762:637 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:41:858:928 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:41:863:128 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:41:961:857 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 16:52:41:969:486 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-2 16:52:42:61:131 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-2 16:52:42:65:429 + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + (3) expected_result: + (0,0) + (4) expected_result: + (0,0) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 16:52:42:74:447 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-2 16:52:42:166:622 + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 16:52:42:175:58 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:52:42:263:624 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 16:52:42:268:672 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/rat_mda_step_rat_long_fork.txt b/result/result/crdb_19.2.2/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..8fdbeba7 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,206 @@ +#### db_type: crdb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN TRANSACTION;' + Q1 finished at: 2022-4-2 17:27:5:712:79 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 17:27:5:726:913 +Q3-T1 execute sql: 'BEGIN TRANSACTION;' +Q3 finished at: 2022-4-2 17:27:5:806:747 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 17:27:5:813:256 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-2 17:27:5:906:907 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 17:27:5:912:640 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute sql: 'BEGIN TRANSACTION;' + Q8 finished at: 2022-4-2 17:27:6:7:141 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 17:27:6:12:179 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 17:27:6:110:283 +Q11-T1 execute sql: 'COMMIT TRANSACTION;' +Q11 finished at: 2022-4-2 17:27:6:209:42 + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + *(7) expected_result: + (0,1) + *(8) expected_result: + (0,1) + *(9) expected_result: + (0,1) + (10) expected_result: + (0,0) + (11) expected_result: + (0,0) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + (14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 17:27:6:217:667 + Q12-T2 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 17:27:6:312:35 + Q13-T3 execute sql: 'COMMIT TRANSACTION;' + Q13 finished at: 2022-4-2 17:27:6:407:35 + Q14-T4 execute sql: 'COMMIT TRANSACTION;' + Q14 finished at: 2022-4-2 17:27:6:410:227 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 17:27:6:415:876 + +The current result is consistent with the [(13) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/rat_mda_step_rat_predicate_based_delete.txt b/result/result/crdb_19.2.2/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..969ce569 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,108 @@ +#### db_type: crdb #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:43:636:278 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:43:641:204 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:43:735:949 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:43:740:773 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:43:836:102 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 16:52:43:841:389 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-2 16:52:43:940:639 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-2 16:52:43:946:302 + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 16:52:43:952:913 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-2 16:52:44:38:381 + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 16:52:44:45:341 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:52:44:138:47 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 16:52:44:141:809 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/rat_mda_step_rat_predicate_based_insert.txt b/result/result/crdb_19.2.2/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..a33c8c47 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,105 @@ +#### db_type: crdb #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:44:445:477 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 16:52:44:454:239 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:44:545:188 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 16:52:44:549:659 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:44:645:752 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 16:52:44:651:894 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 16:52:44:747:897 +Q10-T1 execute sql: 'COMMIT TRANSACTION;' +Q10 finished at: 2022-4-2 16:52:44:752:774 + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 16:52:44:759:643 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-2 16:52:44:847:478 + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + (4) expected_result: + (,) + *(5) expected_result: + (1,) + (6) expected_result: + (,) + + Q8 finished at: 2022-4-2 16:52:44:872:86 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:52:44:947:943 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 16:52:44:951:764 + +The current result is consistent with the [(5) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/rat_sda_dirty_read.txt b/result/result/crdb_19.2.2/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..8494439b --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,44 @@ +#### db_type: crdb #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:30:123:669 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:30:131:464 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:30:217:226 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 16:52:30:335:656 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:30:417:922 +Q5 finished at: 2022-4-2 16:52:30:514:207 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 16:52:30:519:396 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/rat_sda_intermediate_read.txt b/result/result/crdb_19.2.2/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..92fc2d2c --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:31:565:893 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:31:570:753 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:31:666:67 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 16:52:31:765:904 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:31:965:271 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 16:52:31:973:611 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:31:976:572 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 16:52:31:980:356 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/rat_sda_intermediate_read_committed.txt b/result/result/crdb_19.2.2/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..b6301d37 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:32:294:584 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:32:299:673 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:32:394:636 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 16:52:32:496:908 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:32:501:408 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 16:52:32:509:523 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 16:52:32:511:834 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 16:52:32:515:124 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/rat_sda_lost_self_update.txt b/result/result/crdb_19.2.2/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..210509ba --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:33:904:863 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:33:909:653 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:34:5:399 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 16:52:34:106:576 +Q6-T1 execute sql: 'COMMIT TRANSACTION;' +Q6 finished at: 2022-4-2 16:52:34:111:258 + Q4 finished at: 2022-4-2 16:52:34:117:225 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:52:34:207:471 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 16:52:34:213:48 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/rat_sda_non_repeatable_read.txt b/result/result/crdb_19.2.2/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..6edfa97f --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,57 @@ +#### db_type: crdb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 17:3:16:212:181 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 17:3:16:226:708 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 17:3:16:307:584 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 17:3:16:314:243 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 17:3:16:407:747 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 17:3:16:508:114 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 17:3:16:604:887 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 17:3:16:609:389 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/result/result/crdb_19.2.2/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..99d97dbd --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,57 @@ +#### db_type: crdb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:32:824:457 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 16:52:32:828:771 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:32:924:263 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 16:52:32:929:870 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 16:52:32:933:787 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 16:52:33:26:448 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:33:29:15 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 16:52:33:32:509 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/result/result/crdb_19.2.2/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..6a859974 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,56 @@ +#### db_type: crdb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:33:385:681 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 16:52:33:399:667 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:33:485:555 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 16:52:33:489:411 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 16:52:33:493:43 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 16:52:33:587:210 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:33:589:858 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 16:52:33:593:715 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/wat_dda_double_write_skew2_committed.txt b/result/result/crdb_19.2.2/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..1d9fe1ad --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,53 @@ +#### db_type: crdb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:50:472:711 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:50:476:546 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:50:573:57 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:50:576:493 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 16:52:50:671:334 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:50:675:357 + Q5 finished at: 2022-4-2 16:52:50:682:789 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:50:687:384 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 16:52:50:690:695 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/wat_dda_full_write_skew_c1.txt b/result/result/crdb_19.2.2/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..c4888768 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: crdb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:51:31:130 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:51:34:372 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:51:131:333 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:51:135:368 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 16:52:51:251:927 + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-2 16:52:51:334:959 +Q6 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=a169cc1e key=/Table/316/1/0/0 rw=true pri=0.00752718 stat=ABORTED epo=0 ts=1648889571.030721457 errcode: HY000 +Q6 failed at: 2022-4-2 16:52:51:846:79 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=a169cc1e key=/Table/316/1/0/0 rw=true pri=0.00752718 stat=ABORTED epo=0 ts=1648889571.030721457 + diff --git a/result/result/crdb_19.2.2/serializable/wat_dda_full_write_skew_c2.txt b/result/result/crdb_19.2.2/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..f215eea5 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,34 @@ +#### db_type: crdb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:52:189:799 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:52:193:155 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:52:289:670 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:52:292:897 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 16:52:52:398:920 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:52:52:492:639 +Q6 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=2eaf352b key=/Table/317/1/0/0 rw=true pri=0.00510947 stat=ABORTED epo=0 ts=1648889572.189359556 errcode: HY000 +Q6 failed at: 2022-4-2 16:52:52:992:684 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=2eaf352b key=/Table/317/1/0/0 rw=true pri=0.00510947 stat=ABORTED epo=0 ts=1648889572.189359556 + diff --git a/result/result/crdb_19.2.2/serializable/wat_dda_full_write_skew_committed.txt b/result/result/crdb_19.2.2/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..9247baee --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,34 @@ +#### db_type: crdb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:53:325:159 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:53:329:229 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:53:432:990 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:53:436:234 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 16:52:53:536:572 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:53:539:534 +Q7 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=e329b49a key=/Table/318/1/0/0 rw=true pri=0.00928901 stat=ABORTED epo=0 ts=1648889573.324600888 errcode: HY000 +Q7 failed at: 2022-4-2 16:52:54:227:705 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=e329b49a key=/Table/318/1/0/0 rw=true pri=0.00928901 stat=ABORTED epo=0 ts=1648889573.324600888 + diff --git a/result/result/crdb_19.2.2/serializable/wat_dda_read_write_skew1_c1.txt b/result/result/crdb_19.2.2/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..ffeefd9a --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:54:555:746 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:52:54:559:501 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:54:655:902 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:54:659:146 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:52:54:662:213 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute sql: 'COMMIT TRANSACTION;' + Q8 finished at: 2022-4-2 16:52:54:859:363 +Q6 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889574.555247881,0 too old; wrote at 1648889574.655508025,1 errcode: HY000 +Q6 failed at: 2022-4-2 16:52:55:468:761 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889574.555247881,0 too old; wrote at 1648889574.655508025,1 + diff --git a/result/result/crdb_19.2.2/serializable/wat_dda_read_write_skew1_c2.txt b/result/result/crdb_19.2.2/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..697c113f --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:55:812:679 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 16:52:55:816:529 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:55:912:464 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:52:55:916:58 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 16:52:55:918:987 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:52:56:114:906 +Q6 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889575.812167779,0 too old; wrote at 1648889575.911965607,1 errcode: HY000 +Q6 failed at: 2022-4-2 16:52:56:724:661 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889575.812167779,0 too old; wrote at 1648889575.911965607,1 + diff --git a/result/result/crdb_19.2.2/serializable/wat_dda_read_write_skew2_c1.txt b/result/result/crdb_19.2.2/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..938a005e --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:57:81:303 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:57:85:211 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:57:180:891 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:52:57:184:569 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 16:52:57:282:373 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:57:286:335 + Q5 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889577.180503439,0 too old; wrote at 1648889577.180503439,2 errcode: HY000 + Q5 failed at: 2022-4-2 16:52:57:795:551 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889577.180503439,0 too old; wrote at 1648889577.180503439,2 + diff --git a/result/result/crdb_19.2.2/serializable/wat_dda_read_write_skew2_c2.txt b/result/result/crdb_19.2.2/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..d2748e59 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:58:126:383 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:58:129:711 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:58:229:101 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:52:58:232:499 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 16:52:58:327:904 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:58:533:580 + Q5 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889578.228739680,0 too old; wrote at 1648889578.228739680,2 errcode: HY000 + Q5 failed at: 2022-4-2 16:52:59:44:731 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889578.228739680,0 too old; wrote at 1648889578.228739680,2 + diff --git a/result/result/crdb_19.2.2/serializable/wat_dda_read_write_skew2_committed.txt b/result/result/crdb_19.2.2/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..db5a2aa9 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: crdb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:59:371:862 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:59:375:572 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:59:471:508 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 16:52:59:490:17 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 16:52:59:574:538 +Q8-T1 execute sql: 'COMMIT TRANSACTION;' +Q8 finished at: 2022-4-2 16:52:59:578:375 + Q5 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889579.471137871,0 too old; wrote at 1648889579.471137871,2 errcode: HY000 + Q5 failed at: 2022-4-2 16:53:0:88:400 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889579.471137871,0 too old; wrote at 1648889579.471137871,2 + diff --git a/result/result/crdb_19.2.2/serializable/wat_mda_step_wat_c1.txt b/result/result/crdb_19.2.2/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..f0389c2c --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: crdb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:0:452:107 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:53:0:455:384 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:0:552:119 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:53:0:555:491 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN TRANSACTION;' + Q6 finished at: 2022-4-2 16:53:0:652:3 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 16:53:0:655:276 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 16:53:0:762:614 + Q11-T2 execute sql: 'COMMIT TRANSACTION;' + Q11 finished at: 2022-4-2 16:53:0:854:432 + Q8 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=e76ccdd4 key=/Table/324/1/2/0 rw=true pri=0.00480525 stat=ABORTED epo=0 ts=1648889580.651684517 errcode: HY000 + Q8 failed at: 2022-4-2 16:53:1:555:694 +Q9 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_ABORT_SPAN): "sql txn" id=7a95c40f key=/Table/324/1/0/0 rw=true pri=0.01270054 stat=ABORTED epo=0 ts=1648889580.651684517,1 o errcode: HY000 +Q9 failed at: 2022-4-2 16:53:1:662:239 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=e76ccdd4 key=/Table/324/1/2/0 rw=true pri=0.00480525 stat=ABORTED epo=0 ts=1648889580.651684517 + diff --git a/result/result/crdb_19.2.2/serializable/wat_mda_step_wat_c2.txt b/result/result/crdb_19.2.2/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..cef6b97a --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,42 @@ +#### db_type: crdb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:53:2:11:895 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:53:2:15:947 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:53:2:113:226 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 16:53:2:117:345 + Q5-T3 execute sql: 'BEGIN TRANSACTION;' + Q5 finished at: 2022-4-2 16:53:2:210:128 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 16:53:2:414:924 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 finished at: 2022-4-2 16:53:2:520:958 + Q12-T3 execute sql: 'COMMIT TRANSACTION;' + Q12 finished at: 2022-4-2 16:53:2:814:848 + Q6 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=e7f9c264 key=/Table/325/1/1/0 rw=true pri=0.00574430 stat=ABORTED epo=0 ts=1648889582.112823795 errcode: HY000 + Q6 failed at: 2022-4-2 16:53:3:114:416 +Q9 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889582.011428435,0 too old; wrote at 1648889582.209768259,1 errcode: HY000 +Q9 failed at: 2022-4-2 16:53:3:724:704 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: TransactionAbortedError(ABORT_REASON_PUSHER_ABORTED): "sql txn" id=e7f9c264 key=/Table/325/1/1/0 rw=true pri=0.00574430 stat=ABORTED epo=0 ts=1648889582.112823795 + diff --git a/result/result/crdb_19.2.2/serializable/wat_sda_dirty_write_1abort.txt b/result/result/crdb_19.2.2/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..92d8a128 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,43 @@ +#### db_type: crdb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:45:269:798 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:45:273:620 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:45:369:781 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 16:52:45:473:538 + Q4 finished at: 2022-4-2 16:52:45:478:464 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:45:572:576 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 16:52:45:576:368 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 16:52:45:664:625 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/wat_sda_dirty_write_2commit.txt b/result/result/crdb_19.2.2/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..714c1f7f --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,43 @@ +#### db_type: crdb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 17:5:35:407:121 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 17:5:35:414:26 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 17:5:35:502:377 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'COMMIT TRANSACTION;' +Q5 finished at: 2022-4-2 17:5:35:606:400 + Q4 finished at: 2022-4-2 17:5:35:618:397 + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 17:5:35:704:339 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 17:5:35:717:642 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 17:5:35:812:352 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/wat_sda_full_write.txt b/result/result/crdb_19.2.2/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..efa1e3e5 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/wat_sda_full_write.txt @@ -0,0 +1,43 @@ +#### db_type: crdb #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:46:431:18 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:46:434:925 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:46:531:264 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 16:52:46:633:72 +Q6-T1 execute sql: 'COMMIT TRANSACTION;' +Q6 finished at: 2022-4-2 16:52:46:660:813 + Q4 finished at: 2022-4-2 16:52:46:668:526 + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:52:46:732:830 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 16:52:46:736:459 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/wat_sda_full_write_committed.txt b/result/result/crdb_19.2.2/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..8bba31e4 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,43 @@ +#### db_type: crdb #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:47:67:354 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:47:71:395 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:47:167:615 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 16:52:47:274:472 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:47:278:240 + Q4 finished at: 2022-4-2 16:52:47:285:416 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 16:52:47:289:56 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 16:52:47:291:951 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/wat_sda_lost_self_update_committed.txt b/result/result/crdb_19.2.2/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..6fb6a10e --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,50 @@ +#### db_type: crdb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:49:915:427 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 16:52:49:918:994 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:50:17:366 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 16:52:50:115:468 +Q7-T1 execute sql: 'COMMIT TRANSACTION;' +Q7 finished at: 2022-4-2 16:52:50:119:496 + Q4 finished at: 2022-4-2 16:52:50:131:463 + Q5-T2 execute sql: 'COMMIT TRANSACTION;' + Q5 finished at: 2022-4-2 16:52:50:135:699 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 16:52:50:139:273 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/crdb_19.2.2/serializable/wat_sda_lost_update_c1.txt b/result/result/crdb_19.2.2/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..14d3f34e --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,38 @@ +#### db_type: crdb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:47:611:890 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 16:52:47:616:239 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:47:712:408 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 16:52:47:716:327 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute sql: 'COMMIT TRANSACTION;' + Q7 finished at: 2022-4-2 16:52:47:914:368 +Q5 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889567.611475606,0 too old; wrote at 1648889567.711824399,1 errcode: HY000 +Q5 failed at: 2022-4-2 16:52:48:423:981 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889567.611475606,0 too old; wrote at 1648889567.711824399,1 + diff --git a/result/result/crdb_19.2.2/serializable/wat_sda_lost_update_c2.txt b/result/result/crdb_19.2.2/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..9ea41593 --- /dev/null +++ b/result/result/crdb_19.2.2/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,38 @@ +#### db_type: crdb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN TRANSACTION;' +Q1 finished at: 2022-4-2 16:52:48:747:850 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 16:52:48:751:882 + Q3-T2 execute sql: 'BEGIN TRANSACTION;' + Q3 finished at: 2022-4-2 16:52:48:847:508 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 16:52:48:851:303 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute sql: 'COMMIT TRANSACTION;' + Q6 finished at: 2022-4-2 16:52:49:53:829 +Q5 failed reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889568.747395113,0 too old; wrote at 1648889568.847053441,1 errcode: HY000 +Q5 failed at: 2022-4-2 16:52:49:564:48 + +Test Result: Rollback +Reason: Server error [SQL state: 40001]: restart transaction: TransactionRetryWithProtoRefreshError: WriteTooOldError: write at timestamp 1648889568.747395113,0 too old; wrote at 1648889568.847053441,1 + diff --git a/result/result/gp_6.20.0/read-committed/iat_dda_read_skew_committed.txt b/result/result/gp_6.20.0/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..b6985d44 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:57:12:824:612 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:57:12:836:415 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:57:13:824:601 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:57:13:838:35 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:57:13:844:653 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:57:13:861:813 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 12:57:14:830:225 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:57:14:831:814 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:57:24:833:421 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:57:24:833:635 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/iat_dda_read_write_skew1_committed.txt b/result/result/gp_6.20.0/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..64be99f9 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:57:28:891:725 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:57:28:902:737 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:57:29:891:689 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:57:29:905:956 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:57:29:913:3 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:57:29:934:634 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 12:57:30:898:664 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:57:30:912:990 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:57:40:900:16 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:57:40:900:220 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/iat_dda_write_skew.txt b/result/result/gp_6.20.0/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..92de881c --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:57:44:954:218 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:57:44:965:161 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:57:45:954:211 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:57:45:966:381 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:57:45:973:199 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:57:47:971:687 +Q6 finished at: 2022-4-11 12:57:47:976:856 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:57:47:987:530 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:57:57:962:623 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:57:57:962:815 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/iat_dda_write_skew_committed.txt b/result/result/gp_6.20.0/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..0eb68f98 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:58:34:214:936 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:58:34:226:988 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:58:35:214:931 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:58:35:229:13 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:58:35:235:678 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:58:35:253:244 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 12:58:36:221:808 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:58:36:239:644 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:58:46:223:202 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:58:46:223:390 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/result/result/gp_6.20.0/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..ee29034a --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:58:2:27:841 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-11 12:58:2:40:668 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-11 12:58:2:47:702 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-11 12:58:3:27:832 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-11 12:58:3:43:541 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-11 12:58:3:49:83 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:58:3:60:256 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:58:4:38:820 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-11 12:58:14:36:252 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-11 12:58:14:41:574 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:58:14:41:767 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/result/result/gp_6.20.0/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..00fa66da --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:58:18:132:300 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-11 12:58:18:152:908 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:58:19:132:287 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-11 12:58:19:151:431 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-11 12:58:19:160:654 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:58:19:180:65 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-11 12:58:20:141:752 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:58:20:155:678 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-11 12:58:30:141:896 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:58:30:142:205 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/iat_mda_step_iat.txt b/result/result/gp_6.20.0/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..703e462b --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: gp #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:58:50:295:955 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-11 12:58:50:309:8 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:58:51:295:964 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:58:51:308:413 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:58:52:295:957 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 12:58:52:307:56 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-11 12:58:53:303:46 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:58:56:308:676 + Q8 finished at: 2022-4-11 12:58:56:314:21 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:58:57:318:846 + Q9 finished at: 2022-4-11 12:58:57:324:197 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:58:58:317:573 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 12:59:8:313:72 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:59:8:313:297 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/result/result/gp_6.20.0/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..f8111cf1 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:0:32:676:97 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:0:32:687:336 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:0:33:676:115 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 13:0:33:688:652 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 13:0:33:705:569 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 13:0:34:676:103 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 13:0:34:687:346 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-11 13:0:34:694:145 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 13:0:34:708:150 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-11 13:0:35:681:898 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-11 13:0:35:683:602 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-11 13:0:45:684:686 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-11 13:0:45:686:324 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/result/result/gp_6.20.0/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..9c5d4d22 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:0:13:587:775 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 13:0:13:599:304 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 13:0:14:587:773 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 13:0:14:600:200 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 13:0:15:587:790 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-11 13:0:15:600:92 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:0:15:614:753 + Q8-T4 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 13:0:16:587:806 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-11 13:0:16:601:195 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 13:0:16:621:377 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-11 13:0:17:593:523 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 13:0:17:595:211 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-11 13:0:18:593:442 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-11 13:0:18:595:73 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-11 13:0:28:604:844 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 13:0:28:605:94 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/result/result/gp_6.20.0/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..940d1826 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:59:12:391:894 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-11 12:59:12:405:321 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:59:13:391:881 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:59:13:403:845 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:59:14:391:879 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 12:59:14:402:767 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-11 12:59:15:399:318 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:59:18:408:286 + Q8 finished at: 2022-4-11 12:59:18:413:359 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:59:19:410:954 + Q9 finished at: 2022-4-11 12:59:19:415:820 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:59:20:407:94 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-11 12:59:30:399:762 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:59:30:399:982 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/result/result/gp_6.20.0/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..bab370fb --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:59:34:442:817 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-11 12:59:34:455:886 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:59:35:442:810 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-11 12:59:35:454:769 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:59:36:442:825 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-11 12:59:36:454:141 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-11 12:59:37:452:621 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:59:40:454:709 + Q8 finished at: 2022-4-11 12:59:40:460:817 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:59:41:459:30 + Q9 finished at: 2022-4-11 12:59:41:464:939 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:59:42:459:789 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 12:59:52:451:683 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:59:52:451:913 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/result/result/gp_6.20.0/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..1f35803c --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 13:0:49:745:803 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 13:0:49:756:794 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-11 13:0:49:762:113 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-11 13:0:50:745:818 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-11 13:0:50:757:8 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-11 13:0:50:764:51 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 13:0:50:784:126 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 13:0:51:745:834 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-11 13:0:51:756:937 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-11 13:0:51:762:302 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 13:0:51:763:961 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-11 13:0:52:752:819 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-11 13:0:52:779:326 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-11 13:1:2:751:335 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-11 13:1:2:752:897 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/iat_mda_step_iat_uname_anomaly.txt b/result/result/gp_6.20.0/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..aaba9d81 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:59:56:520:289 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-11 12:59:56:532:261 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:59:57:520:310 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-11 12:59:57:532:451 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:59:57:539:348 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 12:59:57:544:663 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-11 12:59:57:551:283 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:59:57:564:423 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-11 12:59:58:520:304 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-11 12:59:58:533:161 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-11 12:59:58:539:707 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-11 12:59:58:544:765 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-11 12:59:58:551:89 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:59:58:562:80 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-11 12:59:59:527:889 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-11 12:59:59:529:518 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-11 13:0:9:528:928 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-11 13:0:9:529:148 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/iat_sda_lost_update_committed.txt b/result/result/gp_6.20.0/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..b53235ef --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:56:56:760:790 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 12:56:56:771:607 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:56:57:760:786 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 12:56:57:774:778 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:56:57:790:899 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-11 12:56:58:767:808 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:56:58:780:903 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:57:8:768:445 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:57:8:768:629 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/iat_sda_non_repeatable_read_committed.txt b/result/result/gp_6.20.0/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..00313de2 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:56:40:695:132 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:56:40:706:456 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:56:41:695:147 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 12:56:41:715:677 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:56:41:727:347 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-11 12:56:42:701:59 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:56:42:702:672 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:56:52:710:383 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:56:52:710:592 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:56:52:710:762 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/rat_dda_double_write_skew1.txt b/result/result/gp_6.20.0/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..9f06ada5 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,67 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:27:22:891:679 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:27:22:904:191 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:27:23:891:667 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:27:23:905:272 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:27:23:913:682 +Q6-T1 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:27:25:910:859 +Q6 finished at: 2022-4-11 12:27:25:917:647 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:27:26:909:471 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:27:36:900:27 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,2) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,2) + + Q10 finished at: 2022-4-11 12:27:36:905:218 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:27:36:905:412 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/read-committed/rat_dda_double_write_skew1_committed.txt b/result/result/gp_6.20.0/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..67c508fa --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,67 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:27:40:986:935 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:27:40:999:448 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:27:41:986:896 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:27:42:6:552 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:27:42:12:749 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:27:42:29:768 +Q7-T1 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-11 12:27:42:995:398 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:27:43:19:82 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:27:52:995:249 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,2) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,2) + + Q10 finished at: 2022-4-11 12:27:53:0:336 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:27:53:0:541 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/read-committed/rat_dda_double_write_skew2.txt b/result/result/gp_6.20.0/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..17f1165a --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,67 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:27:57:124:301 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:27:57:136:830 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:27:58:124:285 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:27:58:138:424 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 12:27:59:131:141 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:27:59:150:438 + Q5 finished at: 2022-4-11 12:27:59:156:776 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:28:0:174:342 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:28:10:132:716 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 12:28:10:137:842 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:28:10:138:37 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/read-committed/rat_dda_read_skew.txt b/result/result/gp_6.20.0/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..ae56cb79 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:28:14:209:141 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:28:14:220:192 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:28:15:209:145 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:28:15:223:42 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:28:15:229:202 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 12:28:16:214:668 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:28:17:229:82 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:28:18:210:853 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:28:28:217:417 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:28:28:217:636 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/read-committed/rat_dda_read_skew2.txt b/result/result/gp_6.20.0/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..6007c42f --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:29:4:416:265 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:29:4:428:685 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:29:5:416:273 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:29:5:432:430 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:29:5:437:250 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 12:29:6:423:165 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:29:6:439:77 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:29:7:417:821 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:29:17:424:729 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:29:17:424:951 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/read-committed/rat_dda_read_skew2_committed.txt b/result/result/gp_6.20.0/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..469436d7 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:29:21:481:608 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:29:21:493:978 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:29:22:481:594 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:29:22:494:30 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:29:22:498:786 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:29:22:500:516 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 12:29:23:488:522 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:29:23:513:26 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:29:33:490:41 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:29:33:490:277 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/result/result/gp_6.20.0/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..91d11a13 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:28:32:276:152 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-11 12:28:32:289:396 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:28:33:276:168 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:28:33:287:901 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:28:33:293:696 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:28:33:317:498 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-11 12:28:34:283:500 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:28:34:285:109 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-11 12:28:44:284:608 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:28:44:284:818 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/result/result/gp_6.20.0/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..5b0a7b5c --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:28:48:332:127 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-11 12:28:48:345:381 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:28:49:332:137 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-11 12:28:49:347:26 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-11 12:28:49:359:723 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:28:49:377:865 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (1,0) (0,0) + (1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-11 12:28:50:339:522 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:28:50:341:300 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-11 12:29:0:340:613 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:29:0:340:825 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/rat_dda_write_read_skew.txt b/result/result/gp_6.20.0/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..15f720fb --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,72 @@ +#### db_type: gp #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:26:48:619:914 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:26:48:632:521 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:26:49:619:905 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:26:49:632:16 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:26:49:638:334 +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 12:26:50:626:913 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:26:51:634:706 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:26:52:639:176 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:27:2:629:0 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 12:27:2:634:428 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:27:2:634:648 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/rat_dda_write_read_skew_committed.txt b/result/result/gp_6.20.0/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..e4e305aa --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,74 @@ +#### db_type: gp #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:27:6:782:146 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:27:6:794:893 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:27:7:782:184 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:27:7:795:507 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:27:7:801:792 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:27:7:815:66 +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 12:27:8:789:99 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:27:8:807:443 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:27:18:790:633 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 12:27:18:796:196 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:27:18:796:423 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/read-committed/rat_mda_step_rat.txt b/result/result/gp_6.20.0/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..3a3e1153 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,147 @@ +#### db_type: gp #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:29:37:624:541 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:29:37:637:247 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:29:38:624:552 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:29:38:636:695 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:29:38:642:930 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 12:29:39:624:553 + Q7-T3 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-11 12:29:39:637:370 + Q8-T3 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-11 12:29:39:644:47 +Q9-T1 execute sql: 'SELECT * FROM t3 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-11 12:29:40:633:658 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:29:40:651:684 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:29:41:635:472 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:29:42:638:795 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + *(6) expected_result: + (0,1) + + Q13 finished at: 2022-4-11 12:29:52:642:211 + Q14-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + + Q14 finished at: 2022-4-11 12:29:52:647:726 + Q15-T4 execute sql: 'SELECT * FROM t3 ORDER BY k;' + current_result: + (2,1) + *(1) expected_result: + (2,1) + *(2) expected_result: + (2,1) + *(3) expected_result: + (2,1) + *(4) expected_result: + (2,1) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + + Q15 finished at: 2022-4-11 12:29:52:653:273 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 12:29:52:653:624 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/rat_mda_step_rat_long_fork.txt b/result/result/gp_6.20.0/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..31fd4b13 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN' + Q1 finished at: 2022-4-11 12:29:56:716:583 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-11 12:29:56:728:78 +Q3-T1 execute opt: 'BEGIN' +Q3 finished at: 2022-4-11 12:29:57:716:572 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-11 12:29:57:730:595 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:29:58:716:574 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-11 12:29:58:727:790 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 12:29:58:733:578 + Q8-T2 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 12:29:59:716:602 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-11 12:30:0:722:308 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-11 12:30:1:731:342 + Q9 finished at: 2022-4-11 12:30:1:740:282 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:30:2:734:326 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-11 12:30:3:718:331 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:30:13:718:302 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-11 12:30:13:724:159 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 12:30:13:725:890 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/result/result/gp_6.20.0/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..c6fdda55 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,147 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:30:17:849:106 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:30:17:861:243 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:30:18:849:89 + Q4-T2 execute sql: 'DELETE FROM t2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:30:18:860:686 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-11 12:30:18:868:872 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 12:30:19:849:103 + Q7-T3 execute sql: 'DELETE FROM t3 WHERE k=2;' + Q7 finished at: 2022-4-11 12:30:19:861:17 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t2 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-11 12:30:19:870:547 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t3 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-11 12:30:20:859:958 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:30:20:874:557 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:30:21:862:557 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:30:22:866:921 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-11 12:30:32:856:984 + Q14-T4 execute sql: 'SELECT * FROM t2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q14 finished at: 2022-4-11 12:30:32:864:698 + Q15-T4 execute sql: 'SELECT * FROM t3;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q15 finished at: 2022-4-11 12:30:32:872:245 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 12:30:32:873:820 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/result/result/gp_6.20.0/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..47c93493 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:30:36:910:79 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-11 12:30:36:924:326 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:30:37:910:54 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-11 12:30:37:920:583 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-11 12:30:37:928:228 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 12:30:38:910:66 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-11 12:30:38:921:47 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-11 12:30:38:929:41 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-11 12:30:39:923:369 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:30:39:936:799 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:30:40:921:702 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:30:41:921:472 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 12:30:51:918:607 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:30:51:920:192 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/rat_sda_dirty_read.txt b/result/result/gp_6.20.0/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..7d20b6e2 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: gp #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:24:50:95:376 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:24:50:108:195 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:24:51:95:357 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:24:51:114:278 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-11 12:24:52:97:77 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:24:53:96:940 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 12:25:3:110:845 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:25:3:111:27 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/read-committed/rat_sda_intermediate_read.txt b/result/result/gp_6.20.0/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..e3cf2923 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:25:25:241:31 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:25:25:253:513 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:25:26:241:12 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:25:26:251:576 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-11 12:25:27:247:909 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:25:28:242:588 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:25:29:259:82 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-11 12:25:39:248:524 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:25:39:248:706 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/read-committed/rat_sda_intermediate_read_committed.txt b/result/result/gp_6.20.0/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..df059c11 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:25:43:309:658 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:25:43:322:103 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:25:44:309:659 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:25:44:320:175 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:25:44:321:665 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-11 12:25:45:316:573 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:25:45:332:82 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-11 12:25:55:317:153 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:25:55:317:334 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/read-committed/rat_sda_lost_self_update.txt b/result/result/gp_6.20.0/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..adc2ebce --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:26:31:496:312 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:26:31:508:775 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:26:32:496:289 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-11 12:26:33:501:763 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-11 12:26:33:519:780 + Q4 finished at: 2022-4-11 12:26:33:528:677 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:26:34:511:691 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:26:44:503:899 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:26:44:504:88 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/read-committed/rat_sda_non_repeatable_read.txt b/result/result/gp_6.20.0/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..0f92c2a0 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:25:7:176:922 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:25:7:188:12 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:25:8:176:914 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 12:25:8:191:523 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-11 12:25:9:182:541 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:25:10:195:946 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:25:11:178:573 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:25:21:184:595 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:25:21:184:779 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/result/result/gp_6.20.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..32fd6117 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:25:59:375:160 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 12:25:59:389:560 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:26:0:375:154 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-11 12:26:0:386:776 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:26:0:409:85 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-11 12:26:1:382:552 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:26:1:384:170 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-11 12:26:11:382:638 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:26:11:382:827 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/result/result/gp_6.20.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..dc23ada2 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:26:15:427:112 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 12:26:15:440:834 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:26:16:427:264 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-11 12:26:16:442:948 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:26:16:458:141 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-11 12:26:17:434:517 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:26:17:436:124 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-11 12:26:27:434:713 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:26:27:434:894 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/wat_dda_double_write_skew2_committed.txt b/result/result/gp_6.20.0/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..1df88bfc --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,67 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:44:48:698:135 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:44:48:710:664 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:44:49:698:149 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:44:49:710:580 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 12:44:50:705:10 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:44:50:716:500 + Q5 finished at: 2022-4-11 12:44:50:723:168 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:44:50:735:376 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:45:0:707:137 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 12:45:0:712:461 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:45:0:712:644 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/read-committed/wat_dda_full_write_skew_c1.txt b/result/result/gp_6.20.0/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..4393731b --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:45:4:800:874 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:45:4:813:547 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:45:5:800:891 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:45:5:813:537 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 12:45:7:318:489 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-11 12:45:27:405:777 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/result/result/gp_6.20.0/read-committed/wat_dda_full_write_skew_c2.txt b/result/result/gp_6.20.0/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..76421f95 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:45:31:494:447 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:45:31:506:904 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:45:32:494:457 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:45:32:508:343 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 12:45:34:13:59 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-11 12:45:54:99:341 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/result/result/gp_6.20.0/read-committed/wat_dda_full_write_skew_committed.txt b/result/result/gp_6.20.0/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..6d3b6948 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:45:58:184:883 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:45:58:197:534 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:45:59:184:886 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:45:59:199:26 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 12:46:0:703:824 +Q7 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q7 failed at: 2022-4-11 12:46:20:889:734 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/result/result/gp_6.20.0/read-committed/wat_dda_read_write_skew1_c1.txt b/result/result/gp_6.20.0/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..5008ea7f --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:46:24:982:105 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:46:24:993:109 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:46:25:982:142 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:46:25:995:970 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:46:26:10:163 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:46:27:999:579 +Q6 finished at: 2022-4-11 12:46:28:10:408 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:46:28:27:112 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:46:37:990:499 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:46:37:990:716 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/wat_dda_read_write_skew1_c2.txt b/result/result/gp_6.20.0/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..96f7a007 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:46:42:87:134 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:46:42:98:402 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:46:43:87:121 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:46:43:101:238 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:46:43:108:7 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:46:45:111:223 +Q6 finished at: 2022-4-11 12:46:45:116:517 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:46:46:113:20 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:46:56:95:411 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:46:56:95:632 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/wat_dda_read_write_skew2_c1.txt b/result/result/gp_6.20.0/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..1cf1917e --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:47:0:161:609 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:47:0:174:224 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:47:1:161:607 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:47:1:174:977 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 12:47:2:168:480 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:47:2:184:748 + Q5 finished at: 2022-4-11 12:47:2:190:185 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:47:3:186:317 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:47:13:169:895 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:47:13:170:104 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/wat_dda_read_write_skew2_c2.txt b/result/result/gp_6.20.0/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..ed090d74 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:47:17:233:611 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:47:17:246:271 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:47:18:233:562 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:47:18:244:549 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 12:47:19:240:425 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:47:21:246:438 + Q5 finished at: 2022-4-11 12:47:21:252:95 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:47:21:265:337 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:47:31:241:859 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:47:31:242:207 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/wat_dda_read_write_skew2_committed.txt b/result/result/gp_6.20.0/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..35516b2f --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:47:35:303:274 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:47:35:315:853 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:47:36:303:277 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:47:36:316:164 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 12:47:37:310:111 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:47:37:322:263 + Q5 finished at: 2022-4-11 12:47:37:327:895 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:47:37:339:976 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:47:47:311:744 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:47:47:311:975 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/wat_mda_step_wat_c1.txt b/result/result/gp_6.20.0/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..46c5a4d2 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 10:20:57:467:238 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 10:20:57:481:193 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 10:20:58:467:214 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 10:20:58:489:466 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 10:20:59:467:220 + Q7-T3 execute sql: 'UPDATE t3 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 10:20:59:489:312 + Q8-T3 execute sql: 'UPDATE t2 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected errcode: 40P01 + Q8 failed at: 2022-4-18 10:21:1:294:582 + Q5 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q5 failed at: 2022-4-18 10:21:18:994:830 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-18 10:21:21:372:464 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/result/result/gp_6.20.0/read-committed/wat_mda_step_wat_c2.txt b/result/result/gp_6.20.0/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..e032ea6f --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 10:20:17:994:618 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 10:20:18:8:721 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 10:20:18:994:599 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 10:20:19:20:289 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 10:20:19:994:719 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t3 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 10:20:22:9:184 + Q8-T3 execute sql: 'UPDATE t2 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected errcode: 40P01 + Q8 failed at: 2022-4-18 10:20:23:814:261 + Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q6 failed at: 2022-4-18 10:20:41:599:828 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-18 10:20:43:899:746 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/result/result/gp_6.20.0/read-committed/wat_sda_dirty_write_1abort.txt b/result/result/gp_6.20.0/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..953e4592 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:42:50:137:988 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:42:50:150:890 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:42:51:137:963 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-11 12:42:52:139:961 + Q4 finished at: 2022-4-11 12:42:52:149:614 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:42:53:152:119 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-11 12:43:3:162:715 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-11 12:43:3:188:644 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:43:3:188:910 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/read-committed/wat_sda_dirty_write_2commit.txt b/result/result/gp_6.20.0/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..7338eb48 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:43:7:239:57 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:43:7:251:435 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:43:8:238:853 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-11 12:43:9:254:358 + Q4 finished at: 2022-4-11 12:43:9:263:507 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:43:10:255:567 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-11 12:43:20:246:673 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-11 12:43:20:265:739 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:43:20:265:942 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/read-committed/wat_sda_full_write.txt b/result/result/gp_6.20.0/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..a66f25cd --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:43:24:316:654 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:43:24:329:552 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:43:25:316:501 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-11 12:43:26:323:243 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-11 12:43:26:335:503 + Q4 finished at: 2022-4-11 12:43:26:345:44 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:43:27:342:123 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-11 12:43:37:323:986 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:43:37:324:162 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/read-committed/wat_sda_full_write_committed.txt b/result/result/gp_6.20.0/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..5c10574f --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:43:41:378:669 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:43:41:391:394 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:43:42:378:656 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-11 12:43:43:386:754 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:43:43:411:554 + Q4 finished at: 2022-4-11 12:43:43:420:732 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:43:43:432:831 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-11 12:43:53:386:144 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:43:53:386:345 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/read-committed/wat_sda_lost_self_update_committed.txt b/result/result/gp_6.20.0/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..024990d2 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:44:32:587:289 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:44:32:599:761 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:44:33:587:292 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-11 12:44:34:592:579 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:44:34:607:481 + Q4 finished at: 2022-4-11 12:44:34:616:636 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:44:34:629:835 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:44:44:594:675 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:44:44:594:974 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/read-committed/wat_sda_lost_update_c1.txt b/result/result/gp_6.20.0/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..787d7383 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:43:57:463:501 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 12:43:57:474:623 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:43:58:463:495 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 12:43:58:477:357 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:44:0:492:231 +Q5 finished at: 2022-4-11 12:44:0:497:768 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-11 12:44:0:509:12 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:44:10:471:185 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:44:10:471:368 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/read-committed/wat_sda_lost_update_c2.txt b/result/result/gp_6.20.0/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..96bfee69 --- /dev/null +++ b/result/result/gp_6.20.0/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:44:14:524:775 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 12:44:14:535:860 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:44:15:524:733 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 12:44:15:539:234 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:44:17:538:894 +Q5 finished at: 2022-4-11 12:44:17:544:151 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:44:18:536:518 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:44:28:532:175 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:44:28:532:591 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/result_summary/read-committed_total-result.txt b/result/result/gp_6.20.0/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..18ad6ce8 --- /dev/null +++ b/result/result/gp_6.20.0/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Avoid + +wat_mda_step_wat_c2: Avoid + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/result/result/gp_6.20.0/result_summary/serializable_total-result.txt b/result/result/gp_6.20.0/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..1ba5280a --- /dev/null +++ b/result/result/gp_6.20.0/result_summary/serializable_total-result.txt @@ -0,0 +1,107 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly diff --git a/result/result/gp_6.20.0/serializable/iat_dda_read_skew_committed.txt b/result/result/gp_6.20.0/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..0fd72e06 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:18:44:307:450 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:18:44:318:851 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:18:45:307:601 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:18:45:320:35 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:18:45:326:441 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:18:45:347:255 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 12:18:46:313:35 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:18:46:314:798 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:18:56:316:873 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:18:56:317:188 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/serializable/iat_dda_read_write_skew1_committed.txt b/result/result/gp_6.20.0/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..d2de88f3 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:19:0:378:11 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:19:0:389:248 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:19:1:378:11 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:19:1:394:396 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:19:1:400:615 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:19:1:426:426 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=23981); errcode: 40001 +Q7 failed at: 2022-4-11 12:19:3:86:619 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=23981); + diff --git a/result/result/gp_6.20.0/serializable/iat_dda_write_skew.txt b/result/result/gp_6.20.0/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..fa83cdef --- /dev/null +++ b/result/result/gp_6.20.0/serializable/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:19:16:445:656 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:19:16:457:64 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:19:17:445:675 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:19:17:456:729 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:19:17:463:421 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:19:19:461:53 +Q6 finished at: 2022-4-11 12:19:19:467:278 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:19:19:478:310 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:19:29:454:96 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:19:29:454:279 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/serializable/iat_dda_write_skew_committed.txt b/result/result/gp_6.20.0/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..5206ac97 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:20:5:692:127 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:20:5:703:37 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:20:6:692:128 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:20:6:704:531 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:20:6:711:73 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:20:6:725:671 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 12:20:7:699:597 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:20:7:715:416 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:20:17:700:938 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:20:17:701:150 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/result/result/gp_6.20.0/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..5fd18f76 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:19:33:509:540 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-11 12:19:33:522:207 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-11 12:19:33:529:390 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-11 12:19:34:509:535 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-11 12:19:34:523:965 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-11 12:19:34:529:928 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:19:34:545:233 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:19:35:524:216 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-11 12:19:45:517:849 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-11 12:19:45:523:387 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:19:45:523:617 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/result/result/gp_6.20.0/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..de686585 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null default 0.00, primary key (name, type));' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:19:49:615:72 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-11 12:19:49:635:67 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:19:50:615:65 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-11 12:19:50:631:776 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-11 12:19:50:641:706 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:19:50:658:58 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-11 12:19:51:624:719 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:19:51:640:13 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-11 12:20:1:624:737 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:20:1:625:24 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/serializable/iat_mda_step_iat.txt b/result/result/gp_6.20.0/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..f4947b76 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: gp #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:20:21:763:720 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-11 12:20:21:777:194 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:20:22:763:717 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:20:22:775:652 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:20:23:763:737 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 12:20:23:775:12 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-11 12:20:24:770:839 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:20:27:778:95 + Q8 finished at: 2022-4-11 12:20:27:783:445 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:20:28:793:183 + Q9 finished at: 2022-4-11 12:20:28:798:738 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:20:29:775:444 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 12:20:39:775:395 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:20:39:775:706 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/result/result/gp_6.20.0/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..62bfe290 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:22:4:172:489 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:22:4:184:48 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:22:5:172:472 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 12:22:5:184:761 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:22:5:201:887 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 12:22:6:172:470 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 12:22:6:183:448 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-11 12:22:6:190:23 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:22:6:208:481 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-11 12:22:7:178:103 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-11 12:22:7:179:877 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-11 12:22:17:181:210 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-11 12:22:17:182:964 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/serializable/iat_mda_step_iat_cross_phenomenon.txt b/result/result/gp_6.20.0/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..c280ac51 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:21:45:63:889 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:21:45:75:442 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:21:46:63:883 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:21:46:75:89 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:21:47:63:878 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-11 12:21:47:76:502 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:21:47:91:991 + Q8-T4 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 12:21:48:63:904 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-11 12:21:48:78:214 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:21:48:92:263 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-11 12:21:49:69:489 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:21:49:71:61 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-11 12:21:50:69:563 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-11 12:21:50:71:253 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-11 12:22:0:74:799 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 12:22:0:75:38 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/serializable/iat_mda_step_iat_predicate_based_delete.txt b/result/result/gp_6.20.0/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..51105eba --- /dev/null +++ b/result/result/gp_6.20.0/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:20:43:844:136 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-11 12:20:43:857:511 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:20:44:844:142 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:20:44:854:935 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:20:45:844:161 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 12:20:45:855:320 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-11 12:20:46:850:760 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:20:49:857:131 + Q8 finished at: 2022-4-11 12:20:49:862:2 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:20:50:860:806 + Q9 finished at: 2022-4-11 12:20:50:866:162 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:20:51:857:20 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-11 12:21:1:852:447 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:21:1:852:653 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/serializable/iat_mda_step_iat_predicate_based_insert.txt b/result/result/gp_6.20.0/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..fc70a83d --- /dev/null +++ b/result/result/gp_6.20.0/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:21:5:900:133 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-11 12:21:5:913:887 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:21:6:900:107 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-11 12:21:6:912:4 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:21:7:900:118 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-11 12:21:7:911:199 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-11 12:21:8:910:12 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:21:11:914:840 + Q8 finished at: 2022-4-11 12:21:11:920:812 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:21:12:917:291 + Q9 finished at: 2022-4-11 12:21:12:923:470 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:21:13:913:821 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 12:21:23:908:886 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:21:23:909:89 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/result/result/gp_6.20.0/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..6c4e80ee --- /dev/null +++ b/result/result/gp_6.20.0/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:22:21:240:343 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 12:22:21:251:747 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-11 12:22:21:256:829 + Q4-T2 execute opt: 'BEGIN' + Q4 finished at: 2022-4-11 12:22:22:240:331 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-11 12:22:22:251:697 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-11 12:22:22:258:276 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:22:22:280:960 + Q8-T3 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 12:22:23:240:358 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-11 12:22:23:251:801 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-11 12:22:23:257:516 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:22:23:259:173 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-11 12:22:24:247:466 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-11 12:22:24:265:113 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-11 12:22:34:246:355 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-11 12:22:34:248:50 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/serializable/iat_mda_step_iat_uname_anomaly.txt b/result/result/gp_6.20.0/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..4b1e1abc --- /dev/null +++ b/result/result/gp_6.20.0/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: gp #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:21:27:973:860 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-11 12:21:27:984:959 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:21:28:973:855 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-11 12:21:28:986:144 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:21:28:992:778 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-11 12:21:28:997:741 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-11 12:21:29:9:845 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:21:29:25:907 + Q9-T3 execute opt: 'BEGIN' + Q9 finished at: 2022-4-11 12:21:29:973:866 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-11 12:21:29:987:476 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-11 12:21:29:994:281 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-11 12:21:29:999:552 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-11 12:21:30:10:526 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:21:30:26:919 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-11 12:21:30:981:610 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-11 12:21:30:983:287 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-11 12:21:40:982:520 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-11 12:21:40:982:739 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/serializable/iat_sda_lost_update_committed.txt b/result/result/gp_6.20.0/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..45a5aa16 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:18:28:244:17 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 12:18:28:255:195 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:18:29:243:996 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 12:18:29:257:536 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:18:29:273:805 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=23981); errcode: 40001 +Q6 failed at: 2022-4-11 12:18:30:852:827 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=23981); + diff --git a/result/result/gp_6.20.0/serializable/iat_sda_non_repeatable_read_committed.txt b/result/result/gp_6.20.0/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..f106cddf --- /dev/null +++ b/result/result/gp_6.20.0/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:18:12:170:972 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:18:12:182:556 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:18:13:170:943 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 12:18:13:185:182 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:18:13:205:733 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-11 12:18:14:176:567 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:18:14:178:280 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:18:24:180:384 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:18:24:180:600 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:18:24:180:789 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/serializable/rat_dda_double_write_skew1.txt b/result/result/gp_6.20.0/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..96f3921b --- /dev/null +++ b/result/result/gp_6.20.0/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,44 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:4:4:941:179 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:4:4:953:655 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:4:5:941:184 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:4:5:954:905 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:4:5:961:226 +Q6-T1 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:4:7:954:742 +Q6 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14973); errcode: 40001 +Q6 failed at: 2022-4-11 12:4:8:563:44 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14973); + diff --git a/result/result/gp_6.20.0/serializable/rat_dda_double_write_skew1_committed.txt b/result/result/gp_6.20.0/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..e4b6886b --- /dev/null +++ b/result/result/gp_6.20.0/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,44 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:4:23:48:742 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:4:23:61:150 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:4:24:48:747 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:4:24:61:214 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:4:24:67:587 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:4:24:95:416 +Q7-T1 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14973); errcode: 40001 +Q7 failed at: 2022-4-11 12:4:25:758:717 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14973); + diff --git a/result/result/gp_6.20.0/serializable/rat_dda_double_write_skew2.txt b/result/result/gp_6.20.0/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..9e7eeb38 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,44 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:4:39:171:436 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:4:39:184:127 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:4:40:171:413 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:4:40:184:130 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 12:4:41:178:498 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:4:41:194:116 + Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14977); errcode: 40001 + Q5 failed at: 2022-4-11 12:4:41:702:105 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14977); + diff --git a/result/result/gp_6.20.0/serializable/rat_dda_read_skew.txt b/result/result/gp_6.20.0/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..15665ee0 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:4:56:228:69 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:4:56:239:345 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:4:57:228:61 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:4:57:240:533 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:4:57:246:933 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 12:4:58:233:567 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:4:59:243:209 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:5:0:229:780 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:5:10:236:698 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:5:10:236:934 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/serializable/rat_dda_read_skew2.txt b/result/result/gp_6.20.0/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..bdc4ba16 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:5:46:425:298 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:5:46:437:993 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:5:47:425:294 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:5:47:436:193 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:5:47:441:205 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 12:5:48:432:197 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:5:48:452:623 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:5:49:426:928 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:5:59:434:303 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:5:59:434:608 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/serializable/rat_dda_read_skew2_committed.txt b/result/result/gp_6.20.0/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..077280af --- /dev/null +++ b/result/result/gp_6.20.0/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:6:3:496:202 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:6:3:508:763 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:6:4:496:187 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:6:4:508:409 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:6:4:513:500 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:6:4:515:182 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 12:6:5:503:228 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:6:5:517:55 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-11 12:6:15:504:955 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:6:15:505:263 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/serializable/rat_dda_read_skew_predicate_based_delete.txt b/result/result/gp_6.20.0/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..1765ae14 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:5:14:305:418 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-11 12:5:14:318:640 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:5:15:305:418 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:5:15:318:556 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:5:15:324:635 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:5:15:339:725 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-11 12:5:16:312:679 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:5:16:314:381 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-11 12:5:26:313:879 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:5:26:314:83 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/serializable/rat_dda_read_skew_predicate_based_insert.txt b/result/result/gp_6.20.0/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..89e94c42 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: gp #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:5:30:353:821 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-11 12:5:30:367:362 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:5:31:353:824 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-11 12:5:31:370:157 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-11 12:5:31:377:972 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:5:31:391:314 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-11 12:5:32:361:188 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:5:32:362:847 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-11 12:5:42:362:165 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-11 12:5:42:362:403 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/serializable/rat_dda_write_read_skew.txt b/result/result/gp_6.20.0/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..068d6b3f --- /dev/null +++ b/result/result/gp_6.20.0/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,72 @@ +#### db_type: gp #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:3:30:726:490 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:3:30:739:182 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:3:31:726:439 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:3:31:738:858 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:3:31:745:429 +Q6-T1 execute sql: 'SELECT * FROM t2 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-11 12:3:32:733:733 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:3:33:749:919 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:3:34:738:708 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:3:44:735:457 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 12:3:44:740:726 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:3:44:740:922 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/serializable/rat_dda_write_read_skew_committed.txt b/result/result/gp_6.20.0/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..7e34b375 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,72 @@ +#### db_type: gp #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:3:48:830:815 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:3:48:843:415 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:3:49:830:813 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:3:49:844:639 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:3:49:851:35 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:3:49:867:294 +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 12:3:50:837:721 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:3:50:853:345 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q9 finished at: 2022-4-11 12:4:0:839:348 + Q10-T3 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + + Q10 finished at: 2022-4-11 12:4:0:844:636 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:4:0:844:825 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/serializable/rat_mda_step_rat.txt b/result/result/gp_6.20.0/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..b3d91cb3 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/rat_mda_step_rat.txt @@ -0,0 +1,147 @@ +#### db_type: gp #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:6:19:642:821 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:6:19:655:264 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:6:20:642:821 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:6:20:655:223 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-11 12:6:20:661:711 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 12:6:21:642:825 + Q7-T3 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-11 12:6:21:655:691 + Q8-T3 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-11 12:6:21:662:343 +Q9-T1 execute sql: 'SELECT * FROM t3 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-11 12:6:22:651:951 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:6:22:666:507 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:6:23:654:9 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:6:24:670:71 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + *(6) expected_result: + (0,1) + + Q13 finished at: 2022-4-11 12:6:34:653:647 + Q14-T4 execute sql: 'SELECT * FROM t2 ORDER BY k;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + *(2) expected_result: + (1,1) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + + Q14 finished at: 2022-4-11 12:6:34:659:227 + Q15-T4 execute sql: 'SELECT * FROM t3 ORDER BY k;' + current_result: + (2,1) + *(1) expected_result: + (2,1) + *(2) expected_result: + (2,1) + *(3) expected_result: + (2,1) + *(4) expected_result: + (2,1) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + + Q15 finished at: 2022-4-11 12:6:34:664:774 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 12:6:34:665:79 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/serializable/rat_mda_step_rat_long_fork.txt b/result/result/gp_6.20.0/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..1191b92c --- /dev/null +++ b/result/result/gp_6.20.0/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN' + Q1 finished at: 2022-4-11 12:6:38:764:429 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-11 12:6:38:776:112 +Q3-T1 execute opt: 'BEGIN' +Q3 finished at: 2022-4-11 12:6:39:764:432 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-11 12:6:39:778:749 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-11 12:6:40:764:433 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-11 12:6:40:775:460 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 12:6:40:780:756 + Q8-T2 execute opt: 'BEGIN' + Q8 finished at: 2022-4-11 12:6:41:764:449 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-11 12:6:42:770:186 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-11 12:6:43:779:599 + Q9 finished at: 2022-4-11 12:6:43:788:755 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:6:44:781:985 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-11 12:6:45:766:228 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:6:55:766:260 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-11 12:6:55:771:942 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 12:6:55:773:574 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/serializable/rat_mda_step_rat_predicate_based_delete.txt b/result/result/gp_6.20.0/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..2fcb3598 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,147 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:6:59:913:458 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:6:59:925:784 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:7:0:913:443 + Q4-T2 execute sql: 'DELETE FROM t2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:7:0:925:642 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-11 12:7:0:933:969 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 12:7:1:913:396 + Q7-T3 execute sql: 'DELETE FROM t3 WHERE k=2;' + Q7 finished at: 2022-4-11 12:7:1:925:559 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t2 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-11 12:7:1:934:241 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t3 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-11 12:7:2:924:242 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:7:2:938:953 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:7:3:931:162 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:7:4:925:437 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-11 12:7:14:921:228 + Q14-T4 execute sql: 'SELECT * FROM t2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q14 finished at: 2022-4-11 12:7:14:929:68 + Q15-T4 execute sql: 'SELECT * FROM t3;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q15 finished at: 2022-4-11 12:7:14:936:762 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-11 12:7:14:938:439 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/serializable/rat_mda_step_rat_predicate_based_insert.txt b/result/result/gp_6.20.0/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..30aa0ee1 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: gp #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:7:18:975:868 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-11 12:7:18:990:249 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:7:19:975:845 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-11 12:7:19:985:822 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-11 12:7:19:993:703 + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-11 12:7:20:975:845 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-11 12:7:20:987:55 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-11 12:7:20:994:909 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-11 12:7:21:988:753 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-11 12:7:22:9:565 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-11 12:7:22:988:679 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-11 12:7:23:991:163 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-11 12:7:33:984:524 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-11 12:7:33:986:270 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/gp_6.20.0/serializable/rat_sda_dirty_read.txt b/result/result/gp_6.20.0/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..0795ce32 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: gp #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:1:32:218:982 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:1:32:232:108 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:1:33:218:944 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:1:33:232:505 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-11 12:1:34:220:657 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:1:35:220:679 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-11 12:1:45:228:353 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:1:45:228:552 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/serializable/rat_sda_intermediate_read.txt b/result/result/gp_6.20.0/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..c0361c87 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:2:7:401:43 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:2:7:413:584 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:2:8:401:10 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:2:8:411:946 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-11 12:2:9:408:35 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:2:10:402:725 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:2:11:445:464 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-11 12:2:21:408:718 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:2:21:408:898 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/serializable/rat_sda_intermediate_read_committed.txt b/result/result/gp_6.20.0/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..95f9c6da --- /dev/null +++ b/result/result/gp_6.20.0/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: gp #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:2:25:461:403 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:2:25:473:978 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:2:26:461:405 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-11 12:2:26:473:444 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:2:26:475:17 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-11 12:2:27:468:401 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:2:27:481:619 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-11 12:2:37:469:126 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:2:37:469:332 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/serializable/rat_sda_lost_self_update.txt b/result/result/gp_6.20.0/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..ea52e305 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,39 @@ +#### db_type: gp #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:3:13:640:927 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:3:13:653:568 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:3:14:640:884 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-11 12:3:15:646:444 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-11 12:3:15:663:204 + Q4 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14977); errcode: 40001 + Q4 failed at: 2022-4-11 12:3:16:73:779 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=14977); + diff --git a/result/result/gp_6.20.0/serializable/rat_sda_non_repeatable_read.txt b/result/result/gp_6.20.0/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..fb4d7acc --- /dev/null +++ b/result/result/gp_6.20.0/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:1:49:307:355 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:1:49:318:471 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:1:50:307:365 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-11 12:1:50:322:6 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-11 12:1:51:312:969 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:1:52:319:684 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:1:53:309:18 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-11 12:2:3:315:464 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:2:3:315:643 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/result/result/gp_6.20.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..a1db5262 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:2:41:531:947 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 12:2:41:545:180 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:2:42:531:905 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-11 12:2:42:543:982 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:2:42:561:783 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-11 12:2:43:539:338 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:2:43:540:969 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-11 12:2:53:539:699 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:2:53:539:927 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/result/result/gp_6.20.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..c0dc52ad --- /dev/null +++ b/result/result/gp_6.20.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: gp #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:2:57:577:870 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-11 12:2:57:591:165 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:2:58:577:848 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-11 12:2:58:592:408 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-11 12:2:58:607:338 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-11 12:2:59:585:376 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:2:59:586:984 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-11 12:3:9:585:471 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:3:9:585:663 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/serializable/wat_dda_double_write_skew2_committed.txt b/result/result/gp_6.20.0/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..682e8fba --- /dev/null +++ b/result/result/gp_6.20.0/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,44 @@ +#### db_type: gp #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:11:58:415:697 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:11:58:428:52 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:11:59:415:704 + Q4-T2 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-11 12:11:59:428:110 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t2 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-11 12:12:0:422:599 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:12:0:443:257 + Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q5 failed at: 2022-4-11 12:12:0:951:946 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/result/result/gp_6.20.0/serializable/wat_dda_full_write_skew_c1.txt b/result/result/gp_6.20.0/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..ff8b71bb --- /dev/null +++ b/result/result/gp_6.20.0/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 14:21:14:825:804 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 14:21:14:838:710 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 14:21:15:825:871 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 14:21:15:840:625 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 14:21:17:345:264 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-11 14:21:37:430:869 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/result/result/gp_6.20.0/serializable/wat_dda_full_write_skew_c2.txt b/result/result/gp_6.20.0/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..4ea3d24e --- /dev/null +++ b/result/result/gp_6.20.0/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 14:22:17:554:901 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 14:22:17:567:537 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 14:22:18:554:778 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 14:22:18:569:288 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 14:22:20:74:185 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-4-11 14:22:40:159:610 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/result/result/gp_6.20.0/serializable/wat_dda_full_write_skew_committed.txt b/result/result/gp_6.20.0/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..f4970452 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,36 @@ +#### db_type: gp #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 14:22:57:696:729 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 14:22:57:709:336 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 14:22:58:696:742 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 14:22:58:716:641 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t2 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected errcode: 40P01 + Q5 failed at: 2022-4-11 14:23:0:221:676 +Q7 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q7 failed at: 2022-4-11 14:23:20:401:658 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/result/result/gp_6.20.0/serializable/wat_dda_read_write_skew1_c1.txt b/result/result/gp_6.20.0/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..889c8086 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:13:5:814:929 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:13:5:825:798 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:13:6:814:906 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:13:6:827:342 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:13:6:833:805 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-11 12:13:8:848:579 +Q6 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); errcode: 40001 +Q6 failed at: 2022-4-11 12:13:9:455:223 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); + diff --git a/result/result/gp_6.20.0/serializable/wat_dda_read_write_skew1_c2.txt b/result/result/gp_6.20.0/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..4be37c54 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:13:22:883:667 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-11 12:13:22:894:686 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:13:23:883:653 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-11 12:13:23:896:137 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-11 12:13:23:902:589 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:13:25:899:821 +Q6 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); errcode: 40001 +Q6 failed at: 2022-4-11 12:13:26:506:921 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); + diff --git a/result/result/gp_6.20.0/serializable/wat_dda_read_write_skew2_c1.txt b/result/result/gp_6.20.0/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..d9343406 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:13:40:947:387 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:13:40:959:690 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:13:41:947:393 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:13:41:958:354 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 12:13:42:954:179 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:13:42:968:258 + Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q5 failed at: 2022-4-11 12:13:43:474:986 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/result/result/gp_6.20.0/serializable/wat_dda_read_write_skew2_c2.txt b/result/result/gp_6.20.0/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..3915c919 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:13:58:24:437 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:13:58:36:925 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:13:59:24:401 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:13:59:35:336 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-11 12:14:0:31:515 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:14:2:43:884 + Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q5 failed at: 2022-4-11 12:14:2:550:546 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/result/result/gp_6.20.0/serializable/wat_dda_read_write_skew2_committed.txt b/result/result/gp_6.20.0/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..59bfdf1c --- /dev/null +++ b/result/result/gp_6.20.0/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: gp #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:14:16:91:17 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:14:16:103:308 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:14:17:91:5 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-11 12:14:17:101:925 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-11 12:14:18:97:643 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-11 12:14:18:125:63 + Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q5 failed at: 2022-4-11 12:14:18:631:592 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/result/result/gp_6.20.0/serializable/wat_mda_step_wat_c1.txt b/result/result/gp_6.20.0/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..19c01b13 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 10:22:34:300:123 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 10:22:34:314:172 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 10:22:35:300:252 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 10:22:35:319:757 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN' + Q6 finished at: 2022-4-18 10:22:36:300:147 + Q7-T3 execute sql: 'UPDATE t3 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 10:22:36:315:760 + Q8-T3 execute sql: 'UPDATE t2 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected errcode: 40P01 + Q8 failed at: 2022-4-18 10:22:38:120:775 + Q5 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q5 failed at: 2022-4-18 10:22:55:824:997 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-18 10:22:58:205:2 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/result/result/gp_6.20.0/serializable/wat_mda_step_wat_c2.txt b/result/result/gp_6.20.0/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..2edb6fc0 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t2;' +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t3;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t2 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'CREATE TABLE t3 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t2 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t3 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-18 10:23:13:219:398 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-18 10:23:13:233:50 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-18 10:23:14:219:413 + Q4-T2 execute sql: 'UPDATE t2 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-18 10:23:14:235:774 + Q5-T3 execute opt: 'BEGIN' + Q5 finished at: 2022-4-18 10:23:15:219:431 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t3 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-18 10:23:17:233:454 + Q8-T3 execute sql: 'UPDATE t2 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t3 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected errcode: 40P01 + Q8 failed at: 2022-4-18 10:23:19:38:590 + Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q6 failed at: 2022-4-18 10:23:36:824:434 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-4-18 10:23:39:124:442 + +Test Result: Rollback +Reason: ERROR: deadlock detected + diff --git a/result/result/gp_6.20.0/serializable/wat_sda_dirty_write_1abort.txt b/result/result/gp_6.20.0/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..89ef5fb6 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: gp #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:9:59:920:531 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:9:59:933:361 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:10:0:920:565 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-11 12:10:1:922:233 + Q4 finished at: 2022-4-11 12:10:1:933:98 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:10:2:951:842 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-11 12:10:12:929:946 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-11 12:10:12:949:221 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-11 12:10:12:949:408 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/gp_6.20.0/serializable/wat_sda_dirty_write_2commit.txt b/result/result/gp_6.20.0/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..a26a17fd --- /dev/null +++ b/result/result/gp_6.20.0/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,30 @@ +#### db_type: gp #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:10:17:5:734 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:10:17:18:152 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:10:18:5:738 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-11 12:10:19:23:242 + Q4 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q4 failed at: 2022-4-11 12:10:19:434:57 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/result/result/gp_6.20.0/serializable/wat_sda_full_write.txt b/result/result/gp_6.20.0/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..f9e2a27f --- /dev/null +++ b/result/result/gp_6.20.0/serializable/wat_sda_full_write.txt @@ -0,0 +1,32 @@ +#### db_type: gp #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:10:34:60:675 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:10:34:73:32 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:10:35:60:848 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-11 12:10:36:67:372 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-11 12:10:36:90:348 + Q4 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q4 failed at: 2022-4-11 12:10:36:500:936 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/result/result/gp_6.20.0/serializable/wat_sda_full_write_committed.txt b/result/result/gp_6.20.0/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..7a2c2404 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,32 @@ +#### db_type: gp #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:10:51:113:556 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:10:51:125:949 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:10:52:113:544 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-11 12:10:53:120:225 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:10:53:143:813 + Q4 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q4 failed at: 2022-4-11 12:10:53:554:39 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/result/result/gp_6.20.0/serializable/wat_sda_lost_self_update_committed.txt b/result/result/gp_6.20.0/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..a79a2e68 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: gp #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:11:42:303:393 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-11 12:11:42:315:789 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:11:43:303:391 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-11 12:11:44:308:581 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-11 12:11:44:352:983 + Q4 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); errcode: 40001 + Q4 failed at: 2022-4-11 12:11:44:763:409 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20625); + diff --git a/result/result/gp_6.20.0/serializable/wat_sda_lost_update_c1.txt b/result/result/gp_6.20.0/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..dffec363 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:11:7:168:297 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 12:11:7:179:295 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:11:8:168:308 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 12:11:8:182:815 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-11 12:11:10:187:226 +Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); errcode: 40001 +Q5 failed at: 2022-4-11 12:11:10:693:851 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); + diff --git a/result/result/gp_6.20.0/serializable/wat_sda_lost_update_c2.txt b/result/result/gp_6.20.0/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..e7c0de33 --- /dev/null +++ b/result/result/gp_6.20.0/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,39 @@ +#### db_type: gp #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN' +Q1 finished at: 2022-4-11 12:11:24:227:728 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-11 12:11:24:238:715 + Q3-T2 execute opt: 'BEGIN' + Q3 finished at: 2022-4-11 12:11:25:227:726 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-11 12:11:25:240:299 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-11 12:11:27:247:511 +Q5 failed reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); errcode: 40001 +Q5 failed at: 2022-4-11 12:11:27:754:317 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update (seg1 9.135.218.12:6001 pid=20622); + diff --git a/result/result/mongodb_4.4.4/mongodb_snapshot_total-result.txt b/result/result/mongodb_4.4.4/mongodb_snapshot_total-result.txt new file mode 100644 index 00000000..38119496 --- /dev/null +++ b/result/result/mongodb_4.4.4/mongodb_snapshot_total-result.txt @@ -0,0 +1,96 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Rollback + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Rollback + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +wat_sda_dirty_write_1abort: Rollback + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_uname_anomaly: Rollback + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/result/result/mongodb_4.4.4/snapshot/iat_dda_read_skew_committed.txt b/result/result/mongodb_4.4.4/snapshot/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..7992c237 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/iat_dda_read_skew_committed.txt @@ -0,0 +1,45 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.put(0, 1)' + T2 COMMIT transaction success +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mongodb_4.4.4/snapshot/iat_dda_read_write_skew1_committed.txt b/result/result/mongodb_4.4.4/snapshot/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..ee21b19d --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,28 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 2)' + T2 execute stmt: 't1.put(0, 1)' + T2 COMMIT transaction success +T1 execute stmt: 't1.put(1, 1)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/iat_dda_write_skew.txt b/result/result/mongodb_4.4.4/snapshot/iat_dda_write_skew.txt new file mode 100644 index 00000000..9db24d63 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/iat_dda_write_skew.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_write_skew #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.put(1, 1)' +T1 COMMIT transaction success + T2 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mongodb_4.4.4/snapshot/iat_dda_write_skew_committed.txt b/result/result/mongodb_4.4.4/snapshot/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..08e84475 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/iat_dda_write_skew_committed.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_write_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + T2 execute stmt: 't1.put(0, 1)' +T1 COMMIT transaction success +T1 execute stmt: 't1.put(1, 1)' + T2 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mongodb_4.4.4/snapshot/iat_mda_step_iat.txt b/result/result/mongodb_4.4.4/snapshot/iat_mda_step_iat.txt new file mode 100644 index 00000000..079793ec --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/iat_mda_step_iat.txt @@ -0,0 +1,87 @@ +#### db_type: mongodb #### +#### test_type: mda_step_iat #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 execute stmt: 't1.put(2, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(2)' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + + T2 start transaction success + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + T3 start transaction success + T3 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + +T1 execute stmt: 't1.put(0, 1)' + T2 execute stmt: 't1.put(1, 1)' + T3 execute stmt: 't1.put(2, 1)' +T1 COMMIT transaction success + T2 COMMIT transaction success + T3 COMMIT transaction success + T4 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_causality_violation_anomaly.txt b/result/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..1f2e5df0 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,87 @@ +#### db_type: mongodb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 1)' + T2 COMMIT transaction success + T3 start transaction success + T3 execute stmt: 't1.get(0)' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + T3 execute stmt: 't1.put(1, 1)' + T3 COMMIT transaction success +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +T1 COMMIT transaction success + T4 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_cross_phenomenon.txt b/result/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..bd28717c --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,185 @@ +#### db_type: mongodb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + T3 start transaction success + T3 execute stmt: 't1.put(0, 1)' + T3 COMMIT transaction success + T4 start transaction success + T4 execute stmt: 't1.put(1, 1)' + T4 COMMIT transaction success + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + T2 COMMIT transaction success +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +T1 COMMIT transaction success + T4 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt b/result/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..091e05a5 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,57 @@ +#### db_type: mongodb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,20) + + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + + T2 execute stmt: 't1.put(1, 20)' + T2 COMMIT transaction success + T3 start transaction success + T3 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + T3 execute stmt: 't1.get(1)' + current_result: + (1,20) + (1) expected_result: + (1,0) + + T3 COMMIT transaction success +T1 execute stmt: 't1.put(0, 11)' +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_uname_anomaly.txt b/result/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..fde424c5 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,69 @@ +#### db_type: mongodb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 execute stmt: 't1.put(2, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + + T2 start transaction success + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + T2 execute stmt: 't1.put(0, 1)' + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + T2 execute stmt: 't1.put(1,1)' + T3 start transaction success + T3 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/iat_sda_lost_update_committed.txt b/result/result/mongodb_4.4.4/snapshot/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..9b004276 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/iat_sda_lost_update_committed.txt @@ -0,0 +1,26 @@ +#### db_type: mongodb #### +#### test_type: sda_lost_update_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + T2 COMMIT transaction success +T1 execute stmt: 't1.put(0, 1)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/iat_sda_non_repeatable_read_committed.txt b/result/result/mongodb_4.4.4/snapshot/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..53530f5a --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 1)' + T2 COMMIT transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mongodb_4.4.4/snapshot/rat_dda_double_write_skew1.txt b/result/result/mongodb_4.4.4/snapshot/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..446bd5e5 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/rat_dda_double_write_skew1.txt @@ -0,0 +1,27 @@ +#### db_type: mongodb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + +T1 execute stmt: 't1.put(1, 2)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/rat_dda_double_write_skew1_committed.txt b/result/result/mongodb_4.4.4/snapshot/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..d94e02d1 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,28 @@ +#### db_type: mongodb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + T2 COMMIT transaction success +T1 execute stmt: 't1.put(1, 2)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/rat_dda_double_write_skew2.txt b/result/result/mongodb_4.4.4/snapshot/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..ff4cc00a --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/rat_dda_double_write_skew2.txt @@ -0,0 +1,19 @@ +#### db_type: mongodb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/rat_dda_read_skew.txt b/result/result/mongodb_4.4.4/snapshot/rat_dda_read_skew.txt new file mode 100644 index 00000000..f678050c --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/rat_dda_read_skew.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.getpred(0)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) (1,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.getpred(1)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) (1,1) + + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (1,1) (0,1) + *(1) expected_result: + (1,1) (0,1) + *(2) expected_result: + (1,1) (0,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mongodb_4.4.4/snapshot/rat_dda_read_skew2.txt b/result/result/mongodb_4.4.4/snapshot/rat_dda_read_skew2.txt new file mode 100644 index 00000000..0949c602 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/rat_dda_read_skew2.txt @@ -0,0 +1,45 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + +T1 execute stmt: 't1.put(1, 1)' + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mongodb_4.4.4/snapshot/rat_dda_read_skew2_committed.txt b/result/result/mongodb_4.4.4/snapshot/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..7a264ae2 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/rat_dda_read_skew2_committed.txt @@ -0,0 +1,45 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + T2 COMMIT transaction success +T1 execute stmt: 't1.put(1, 1)' +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mongodb_4.4.4/snapshot/rat_dda_read_skew_predicate_based_delete.txt b/result/result/mongodb_4.4.4/snapshot/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..8f1af041 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.getpred(0)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.getpred(1)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (1,1) + + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (1,1) (0,1) + *(1) expected_result: + (1,1) (0,1) + *(2) expected_result: + (1,1) (0,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mongodb_4.4.4/snapshot/rat_dda_read_skew_predicate_based_insert.txt b/result/result/mongodb_4.4.4/snapshot/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..91cd714b --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.getpred(0)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.getpred(1)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (1,1) + + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (1,1) (0,1) + *(1) expected_result: + (1,1) (0,1) + *(2) expected_result: + (1,1) (0,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mongodb_4.4.4/snapshot/rat_dda_write_read_skew.txt b/result/result/mongodb_4.4.4/snapshot/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..1f75f989 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/rat_dda_write_read_skew.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_write_read_skew #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mongodb_4.4.4/snapshot/rat_dda_write_read_skew_committed.txt b/result/result/mongodb_4.4.4/snapshot/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..ce414368 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + T2 COMMIT transaction success +T1 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mongodb_4.4.4/snapshot/rat_mda_step_rat.txt b/result/result/mongodb_4.4.4/snapshot/rat_mda_step_rat.txt new file mode 100644 index 00000000..173a98be --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/rat_mda_step_rat.txt @@ -0,0 +1,87 @@ +#### db_type: mongodb #### +#### test_type: mda_step_rat #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 execute stmt: 't1.put(2, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + T3 start transaction success + T3 execute stmt: 't1.put(2, 1)' + T3 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + +T1 execute stmt: 't1.get(2)' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +T1 COMMIT transaction success + T2 COMMIT transaction success + T3 COMMIT transaction success + T4 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mongodb_4.4.4/snapshot/rat_mda_step_rat_long_fork.txt b/result/result/mongodb_4.4.4/snapshot/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..6812249a --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,115 @@ +#### db_type: mongodb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' + T4 start transaction success + T4 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T3 start transaction success + T3 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + + T3 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (1,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T4 execute stmt: 't1.get(1)' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + +T1 COMMIT transaction success + T2 COMMIT transaction success + T3 COMMIT transaction success + T4 COMMIT transaction success + T4 execute stmt: 't1.get(*)' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mongodb_4.4.4/snapshot/rat_sda_dirty_read.txt b/result/result/mongodb_4.4.4/snapshot/rat_sda_dirty_read.txt new file mode 100644 index 00000000..9c0caa07 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/rat_sda_dirty_read.txt @@ -0,0 +1,29 @@ +#### db_type: mongodb #### +#### test_type: sda_dirty_read #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.put(0, 0)' + T2 start transaction success + T2 execute stmt: 't1.get(0)' + current_result: + null + *(1) expected_result: + null + + T2 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + null + *(1) expected_result: + null + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mongodb_4.4.4/snapshot/rat_sda_intermediate_read.txt b/result/result/mongodb_4.4.4/snapshot/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..ded07c96 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/rat_sda_intermediate_read.txt @@ -0,0 +1,36 @@ +#### db_type: mongodb #### +#### test_type: sda_intermediate_read #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + +T1 execute stmt: 't1.put(0, 2)' + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mongodb_4.4.4/snapshot/rat_sda_intermediate_read_committed.txt b/result/result/mongodb_4.4.4/snapshot/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..74e1fee4 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,36 @@ +#### db_type: mongodb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(0)' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + T2 COMMIT transaction success +T1 execute stmt: 't1.put(0, 2)' +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mongodb_4.4.4/snapshot/rat_sda_lost_self_update.txt b/result/result/mongodb_4.4.4/snapshot/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..943c62cc --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/rat_sda_lost_self_update.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_lost_self_update #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/rat_sda_non_repeatable_read.txt b/result/result/mongodb_4.4.4/snapshot/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..4d66d15f --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/rat_sda_non_repeatable_read.txt @@ -0,0 +1,43 @@ +#### db_type: mongodb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 COMMIT transaction success +T1 COMMIT transaction success + T3 execute stmt: 't1.get(*)' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mongodb_4.4.4/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/result/result/mongodb_4.4.4/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..dea6ed7f --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,25 @@ +#### db_type: mongodb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.getpred(0)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 0)' + T2 COMMIT transaction success +T1 execute stmt: 't1.getpred(0)' +[ERROR] in MongoConnector::ExecFindkV ->Unable to read from a snapshot due to pending collection catalog changes; please retry the operation. Snapshot timestamp is Timestamp(1651677643, 7). Collection minimum is Timestamp(1651677643, 8): generic server error + +Test Result: Rollback +Reason: Unable to read from a snapshot due to pending collection catalog changes; please retry the operation. Snapshot timestamp is Timestamp(1651677643, 7). Collection minimum is Timestamp(1651677643, 8): generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/result/result/mongodb_4.4.4/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..58692d18 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,25 @@ +#### db_type: mongodb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 start transaction success +T1 execute stmt: 't1.getpred(0)' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + + T2 start transaction success + T2 execute stmt: 't1.put(0, 0)' + T2 COMMIT transaction success +T1 execute stmt: 't1.getpred(0)' +[ERROR] in MongoConnector::ExecFindkV ->Unable to read from a snapshot due to pending collection catalog changes; please retry the operation. Snapshot timestamp is Timestamp(1651677643, 3). Collection minimum is Timestamp(1651677643, 4): generic server error + +Test Result: Rollback +Reason: Unable to read from a snapshot due to pending collection catalog changes; please retry the operation. Snapshot timestamp is Timestamp(1651677643, 3). Collection minimum is Timestamp(1651677643, 4): generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/wat_dda_double_write_skew2_committed.txt b/result/result/mongodb_4.4.4/snapshot/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..0f58314b --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,19 @@ +#### db_type: mongodb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 1)' + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/wat_dda_full_write_skew_c1.txt b/result/result/mongodb_4.4.4/snapshot/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..ba6cddb9 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,18 @@ +#### db_type: mongodb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/wat_dda_full_write_skew_c2.txt b/result/result/mongodb_4.4.4/snapshot/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..10f1b1a5 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,18 @@ +#### db_type: mongodb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/wat_dda_full_write_skew_committed.txt b/result/result/mongodb_4.4.4/snapshot/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..caa683c7 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,18 @@ +#### db_type: mongodb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew1_c1.txt b/result/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..b5ca6d5a --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,27 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 2)' + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.put(1, 1)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew1_c2.txt b/result/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..2200a7ab --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,27 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.get(0)' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + + T2 start transaction success + T2 execute stmt: 't1.put(1, 2)' + T2 execute stmt: 't1.put(0, 1)' +T1 execute stmt: 't1.put(1, 1)' +[ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew2_c1.txt b/result/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..eb37768b --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,26 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew2_c2.txt b/result/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..86a584ba --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,26 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew2_committed.txt b/result/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..87dfd066 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,26 @@ +#### db_type: mongodb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.get(1)' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/wat_mda_step_wat_c1.txt b/result/result/mongodb_4.4.4/snapshot/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..d97861cb --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/wat_mda_step_wat_c1.txt @@ -0,0 +1,20 @@ +#### db_type: mongodb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 execute stmt: 't1.put(2, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 2)' + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/wat_mda_step_wat_c2.txt b/result/result/mongodb_4.4.4/snapshot/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..a72dce7a --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/wat_mda_step_wat_c2.txt @@ -0,0 +1,20 @@ +#### db_type: mongodb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 execute stmt: 't1.put(1, 0)' +T1 execute stmt: 't1.put(2, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(1, 2)' + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/wat_sda_dirty_write_1abort.txt b/result/result/mongodb_4.4.4/snapshot/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..1cc1018d --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/wat_sda_dirty_write_2commit.txt b/result/result/mongodb_4.4.4/snapshot/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..66d36468 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/wat_sda_full_write.txt b/result/result/mongodb_4.4.4/snapshot/wat_sda_full_write.txt new file mode 100644 index 00000000..e057f4c9 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/wat_sda_full_write.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_full_write #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/wat_sda_full_write_committed.txt b/result/result/mongodb_4.4.4/snapshot/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..65581c56 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/wat_sda_full_write_committed.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_full_write_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/wat_sda_lost_self_update_committed.txt b/result/result/mongodb_4.4.4/snapshot/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..cc27e358 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/wat_sda_lost_update_c1.txt b/result/result/mongodb_4.4.4/snapshot/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..f67f3686 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/wat_sda_lost_update_c1.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/mongodb_4.4.4/snapshot/wat_sda_lost_update_c2.txt b/result/result/mongodb_4.4.4/snapshot/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..910560b5 --- /dev/null +++ b/result/result/mongodb_4.4.4/snapshot/wat_sda_lost_update_c2.txt @@ -0,0 +1,17 @@ +#### db_type: mongodb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +T1 execute stmt: 't1.put(0, 0)' +T1 start transaction success +T1 execute stmt: 't1.put(0, 1)' + T2 start transaction success + T2 execute stmt: 't1.put(0, 2)' + [ERROR] in MongoConnector::ExecUpdatekV ->WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + +Test Result: Rollback +Reason: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.: generic server error + diff --git a/result/result/myrocks_8.0.26/read-committed/iat_dda_read_skew_committed.txt b/result/result/myrocks_8.0.26/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..e8fbc326 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:45:667:873 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:45:668:657 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:45:767:860 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:45:768:596 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:45:769:47 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:45:776:968 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:7:45:868:464 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:45:883:773 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:45:884:848 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:45:887:461 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/iat_dda_read_write_skew1_committed.txt b/result/result/myrocks_8.0.26/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..355c54c9 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:46:159:215 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:46:164:405 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:46:259:47 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:46:259:789 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:46:260:284 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:46:268:628 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:46:359:476 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:46:372:344 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:46:373:256 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:46:376:635 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/iat_dda_write_skew.txt b/result/result/myrocks_8.0.26/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..a0b84a26 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:46:658:393 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:46:659:270 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:46:758:429 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:46:759:387 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:46:759:972 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:7:46:858:800 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:46:872:476 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:46:969:591 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:46:970:599 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:46:974:350 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/iat_dda_write_skew_committed.txt b/result/result/myrocks_8.0.26/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..75279811 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:48:301:972 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:48:302:908 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:48:401:812 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:48:402:669 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:48:403:235 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:48:413:155 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:48:502:226 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:48:511:523 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:48:512:576 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:48:516:187 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/result/result/myrocks_8.0.26/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..d1df63f4 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:47:307:116 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 11:7:47:308:109 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 11:7:47:308:683 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:7:47:407:79 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 11:7:47:408:71 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 11:7:47:408:616 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:47:426:713 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:47:516:453 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 11:7:47:517:434 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 11:7:47:518:93 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:47:520:784 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/result/result/myrocks_8.0.26/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..6e68d22c --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:47:800:978 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 11:7:47:802:12 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:47:900:873 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 11:7:47:901:953 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 11:7:47:902:593 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:47:909:576 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-2 11:7:48:6:722 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:48:14:565 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 11:7:48:15:590 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:48:19:603 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/iat_mda_step_iat.txt b/result/result/myrocks_8.0.26/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..0c371727 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:48:814:308 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:7:48:815:275 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:48:914:259 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:48:915:347 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:49:14:211 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:7:49:15:316 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 11:7:49:114:845 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:7:49:214:954 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 11:7:49:314:931 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:49:429:215 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:49:532:259 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:49:620:662 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:7:49:622:8 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:49:632:480 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/result/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..60c15975 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:53:525:46 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:53:526:144 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:53:624:918 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:53:625:660 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:53:633:29 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:7:53:725:36 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:7:53:726:72 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:7:53:726:631 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:53:734:756 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 11:7:53:825:823 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 11:7:53:832:384 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 11:7:53:833:417 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:7:53:839:190 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/result/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..a10c161a --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:52:744:245 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:52:745:517 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:52:844:225 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:52:845:727 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:52:944:226 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 11:7:52:944:912 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:52:952:191 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:7:53:44:261 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 11:7:53:45:26 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:53:67:566 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 11:7:53:145:251 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:53:149:891 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 11:7:53:245:462 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 11:7:53:249:845 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 11:7:53:251:377 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 11:7:53:255:157 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/result/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..b625e729 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:49:934:996 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 11:7:49:935:966 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:50:34:961 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:50:35:960 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:50:135:56 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:7:50:135:995 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 11:7:50:235:504 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:7:50:335:506 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 11:7:50:435:486 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:50:541:708 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:50:645:797 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:50:741:270 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 11:7:50:742:297 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:50:746:29 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/result/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..23051cbb --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:51:33:34 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:7:51:34:384 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:51:133:25 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 11:7:51:133:995 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:51:233:61 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 11:7:51:234:86 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 11:7:51:333:418 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 11:7:51:433:488 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 11:7:51:533:548 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:51:642:160 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:51:742:146 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:51:842:1 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:7:51:843:185 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:51:851:662 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/result/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..3ff1a41c --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:54:121:269 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:7:54:122:288 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 11:7:54:123:46 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:7:54:221:402 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 11:7:54:222:735 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 11:7:54:223:317 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:54:232:711 + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:7:54:321:312 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 11:7:54:322:534 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:7:54:323:282 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:54:325:2 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-2 11:7:54:421:732 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 11:7:54:431:442 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 11:7:54:432:525 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 11:7:54:436:134 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_uname_anomaly.txt b/result/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..1400ebd2 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:52:129:607 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 11:7:52:130:821 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:52:229:617 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 11:7:52:230:708 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:52:231:273 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:7:52:232:98 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-2 11:7:52:232:584 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:52:249:930 + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 11:7:52:329:560 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 11:7:52:330:601 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-2 11:7:52:331:178 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 11:7:52:332:31 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 11:7:52:332:584 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:52:341:676 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 11:7:52:430:230 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 11:7:52:437:278 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 11:7:52:438:369 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-2 11:7:52:441:968 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/iat_sda_lost_update_committed.txt b/result/result/myrocks_8.0.26/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..6604794e --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:45:154:326 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:7:45:155:141 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:45:254:272 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:45:255:74 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:45:263:465 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 11:7:45:354:697 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:45:366:835 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:45:367:749 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:45:379:53 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/iat_sda_non_repeatable_read_committed.txt b/result/result/myrocks_8.0.26/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..ebe42747 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:44:669:577 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:44:670:384 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:44:769:445 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:44:770:313 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:44:795:429 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:7:44:870:397 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:44:872:132 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:44:872:973 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:44:877:415 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:44:882:902 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/rat_dda_double_write_skew1.txt b/result/result/myrocks_8.0.26/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..2f4c53b6 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:22:402:987 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:22:403:668 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:22:503:12 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:22:503:690 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:22:504:319 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:7:22:712:271 + Q7 finished at: 2022-4-2 11:7:22:715:971 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:22:810:744 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 11:7:22:811:764 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:22:820:723 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-committed/rat_dda_double_write_skew1_committed.txt b/result/result/myrocks_8.0.26/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..ef074195 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:23:109:480 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:23:110:167 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:23:209:509 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:23:210:299 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:23:211:93 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:23:220:734 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:23:310:0 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:23:318:373 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 11:7:23:319:252 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:23:322:901 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-committed/rat_dda_double_write_skew2.txt b/result/result/myrocks_8.0.26/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..f46afd56 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:23:613:655 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:23:614:349 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:23:713:593 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:23:714:358 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:7:23:814:151 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:23:822:459 +Q7 finished at: 2022-4-2 11:7:23:827:157 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:23:923:547 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:23:924:551 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:23:928:212 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-committed/rat_dda_read_skew.txt b/result/result/myrocks_8.0.26/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..aeb94d77 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:24:213:33 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:24:213:896 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:24:313:27 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:24:313:777 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:24:314:223 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:7:24:413:643 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:24:521:928 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:24:615:67 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:24:615:979 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:24:624:429 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-committed/rat_dda_read_skew2.txt b/result/result/myrocks_8.0.26/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..a9895205 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:25:872:295 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:25:873:17 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:25:972:222 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:25:973:3 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:25:973:561 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:7:26:72:729 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:26:82:449 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:26:174:424 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:26:175:412 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:26:179:372 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-committed/rat_dda_read_skew2_committed.txt b/result/result/myrocks_8.0.26/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..c20b2ec9 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:26:448:472 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:26:449:173 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:26:548:528 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:26:549:518 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:26:550:122 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:26:554:986 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:26:648:994 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:26:666:828 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:26:667:889 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:26:672:35 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/result/result/myrocks_8.0.26/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..e6b64bfb --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:24:896:675 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:7:24:897:449 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:24:996:679 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:24:997:371 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:24:997:847 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:25:8:316 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:7:25:97:298 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:25:102:261 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 11:7:25:103:214 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:25:106:717 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/result/result/myrocks_8.0.26/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..08134f2a --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:25:404:164 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:7:25:405:179 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:25:504:69 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 11:7:25:504:758 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 11:7:25:505:182 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:25:513:120 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:7:25:604:805 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:25:608:533 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 11:7:25:609:422 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:25:612:505 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/rat_dda_write_read_skew.txt b/result/result/myrocks_8.0.26/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..5f5c3578 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:21:155:645 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:21:156:385 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:21:255:704 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:21:256:554 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:21:257:300 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:7:21:356:297 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:21:463:484 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:21:567:990 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:21:568:981 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:21:573:799 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/rat_dda_write_read_skew_committed.txt b/result/result/myrocks_8.0.26/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..f67e3542 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:21:864:298 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:21:865:56 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:21:964:288 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:21:965:20 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:21:965:694 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:21:975:363 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:7:22:64:928 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:22:75:211 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:22:76:256 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:22:84:86 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-committed/rat_mda_step_rat.txt b/result/result/myrocks_8.0.26/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..a29ae0dc --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:26:936:259 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:26:937:3 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:27:36:234 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:27:36:920 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:27:37:752 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:7:27:136:438 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:7:27:137:66 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 11:7:27:137:862 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-2 11:7:27:237:72 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:27:244:376 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:27:342:508 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:27:445:457 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:7:27:446:803 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:27:448:390 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/rat_mda_step_rat_long_fork.txt b/result/result/myrocks_8.0.26/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..de25b62c --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 11:7:27:719:37 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 11:7:27:720:309 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 11:7:27:818:792 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 11:7:27:819:503 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:27:918:839 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 11:7:27:920:345 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:7:27:921:406 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:7:28:18:814 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 11:7:28:19:535 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:7:28:119:918 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 11:7:28:225:722 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:28:327:751 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:7:28:427:786 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:28:433:18 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 11:7:28:434:206 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 11:7:28:438:962 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/result/result/myrocks_8.0.26/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..1ccc0827 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:28:715:490 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:28:716:136 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:28:815:474 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:28:816:193 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:7:28:817:105 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:7:28:915:516 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:7:28:916:248 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 11:7:28:917:67 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-2 11:7:29:16:352 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:29:25:737 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:29:127:632 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:29:221:99 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 11:7:29:222:132 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:29:225:779 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/result/result/myrocks_8.0.26/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..fb4bf0ab --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:29:487:453 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 11:7:29:488:379 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:29:587:416 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 11:7:29:588:120 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:7:29:588:987 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:7:29:687:455 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 11:7:29:688:276 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-2 11:7:29:689:190 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 11:7:29:788:218 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:29:802:636 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:29:894:963 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:30:10:868 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:7:30:12:152 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:30:16:128 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/rat_sda_dirty_read.txt b/result/result/myrocks_8.0.26/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..c48013b3 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:17:29:235 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:17:29:836 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:17:129:220 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:17:130:294 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 11:7:17:237:594 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:17:331:633 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:7:17:332:557 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:17:336:724 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-committed/rat_sda_intermediate_read.txt b/result/result/myrocks_8.0.26/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..3240909e --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:18:354:249 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:18:354:944 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:18:454:219 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:18:455:106 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 11:7:18:554:728 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:18:657:638 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:18:761:428 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:7:18:762:346 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:18:765:786 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-committed/rat_sda_intermediate_read_committed.txt b/result/result/myrocks_8.0.26/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..736ac698 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:19:59:752 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:19:60:456 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:19:159:770 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:19:160:705 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:19:169:76 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 11:7:19:260:237 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:19:269:165 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:7:19:270:179 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:19:281:487 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-committed/rat_sda_lost_self_update.txt b/result/result/myrocks_8.0.26/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..dcb63958 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:20:569:511 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:20:570:218 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:20:669:462 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:7:20:770:136 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:7:20:774:616 +Q6 finished at: 2022-4-2 11:7:20:777:383 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:20:874:189 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:20:875:163 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:20:879:355 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-committed/rat_sda_non_repeatable_read.txt b/result/result/myrocks_8.0.26/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..83e8b89f --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:17:642:676 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:17:643:482 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:17:742:662 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:17:743:381 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:7:17:843:264 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:17:953:11 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:18:50:110 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:18:51:99 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:18:55:276 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/result/result/myrocks_8.0.26/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..072b9ab9 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:19:580:770 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:7:19:581:636 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:19:680:801 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:19:681:579 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:19:691:510 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:7:19:781:451 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:19:788:167 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 11:7:19:788:936 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:19:792:765 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/result/result/myrocks_8.0.26/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..7f1cd9de --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:20:73:189 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:7:20:74:352 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:20:173:131 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 11:7:20:173:839 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:20:186:668 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:7:20:273:859 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:20:279:493 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 11:7:20:280:430 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:20:285:29 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/wat_dda_double_write_skew2_committed.txt b/result/result/myrocks_8.0.26/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..76e8b886 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:34:418:979 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:34:419:704 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:34:518:987 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:34:519:846 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:7:34:619:513 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:34:623:649 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:34:626:247 + Q6 finished at: 2022-4-2 11:7:34:630:893 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:34:631:799 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:34:635:248 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-committed/wat_dda_full_write_skew_c1.txt b/result/result/myrocks_8.0.26/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..6a65778b --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:34:916:751 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:34:917:424 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:35:16:886 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:35:17:703 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:7:35:117:298 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:35:231:856 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:7:35:723:84 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/read-committed/wat_dda_full_write_skew_c2.txt b/result/result/myrocks_8.0.26/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..3ab33fd3 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:35:988:620 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:35:989:376 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:36:88:759 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:36:89:508 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:7:36:189:179 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:36:295:319 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:7:36:794:551 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/read-committed/wat_dda_full_write_skew_committed.txt b/result/result/myrocks_8.0.26/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..6ed216f2 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:37:83:309 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:37:84:81 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:37:183:235 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:37:184:59 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:7:37:283:743 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:37:295:941 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:7:37:990:367 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew1_c1.txt b/result/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..1bd4f4ec --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:38:291:674 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:38:292:571 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:38:391:570 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:38:392:446 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:38:393:33 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:7:38:596:578 +Q7-T1 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:38:599:932 +Q7 finished at: 2022-4-2 11:7:38:603:150 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:38:604:85 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:38:610:875 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew1_c2.txt b/result/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..ea77f378 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:38:907:604 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:38:908:429 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:39:7:582 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:39:8:445 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:39:9:128 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:7:39:217:933 + Q7 finished at: 2022-4-2 11:7:39:222:591 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:39:318:243 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:39:319:200 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:39:328:360 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew2_c1.txt b/result/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..c728341f --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:39:634:274 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:39:634:937 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:39:734:231 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:39:735:58 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:7:39:834:688 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:39:840:682 +Q7 finished at: 2022-4-2 11:7:39:846:702 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:39:943:813 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:39:944:963 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:39:948:415 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew2_c2.txt b/result/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..3617e4bf --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:40:251:40 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:40:251:895 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:40:351:66 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:40:352:182 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:7:40:451:589 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:40:654:974 + Q7-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:40:658:170 + Q7 finished at: 2022-4-2 11:7:40:661:719 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:40:662:581 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:40:667:251 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew2_committed.txt b/result/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..d9016710 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:40:944:376 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:40:945:252 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:41:44:308 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:41:45:214 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:41:147:748 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:41:154:695 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:41:164:17 + Q6 finished at: 2022-4-2 11:7:41:170:335 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:41:171:231 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:41:176:589 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/wat_mda_step_wat_c1.txt b/result/result/myrocks_8.0.26/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..ab5022a9 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:41:451:86 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:41:451:933 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:41:551:128 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:41:551:971 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:7:41:651:143 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:7:41:651:956 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 11:7:41:751:771 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:41:856:395 + Q11 finished at: 2022-4-2 11:7:41:859:707 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:41:963:206 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:7:42:656:543 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/read-committed/wat_mda_step_wat_c2.txt b/result/result/myrocks_8.0.26/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..dd610223 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:42:959:628 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:42:960:428 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:43:59:666 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:43:60:494 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:43:159:640 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:7:43:360:149 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 11:7:43:460:346 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:43:564:191 + Q10 finished at: 2022-4-2 11:7:43:570:282 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:43:768:4 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:7:44:365:598 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/read-committed/wat_sda_dirty_write_1abort.txt b/result/result/myrocks_8.0.26/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..9f5a046f --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:30:320:901 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:30:321:669 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:30:420:819 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 11:7:30:521:387 +Q5 finished at: 2022-4-2 11:7:30:525:168 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:30:629:603 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:7:30:630:545 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:7:30:649:408 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:30:653:942 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-committed/wat_sda_dirty_write_2commit.txt b/result/result/myrocks_8.0.26/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..af9a5b88 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:30:909:503 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:30:910:226 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:31:9:508 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:7:31:117:584 +Q5 finished at: 2022-4-2 11:7:31:121:45 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:31:216:751 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:7:31:217:599 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:7:31:239:388 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:31:242:994 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-committed/wat_sda_full_write.txt b/result/result/myrocks_8.0.26/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..91124df4 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:31:494:449 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:31:495:124 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:31:594:410 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 11:7:31:694:847 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:7:31:706:865 +Q6 finished at: 2022-4-2 11:7:31:711:116 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:31:802:529 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:7:31:803:444 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:31:810:91 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-committed/wat_sda_full_write_committed.txt b/result/result/myrocks_8.0.26/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..fd4601b6 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:32:81:535 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:32:82:277 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:32:181:526 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 11:7:32:281:960 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:7:32:286:702 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:32:289:779 + Q5 finished at: 2022-4-2 11:7:32:292:819 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:7:32:293:741 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:32:297:737 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-committed/wat_sda_lost_self_update_committed.txt b/result/result/myrocks_8.0.26/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..c4f64f58 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:33:875:295 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:33:875:977 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:33:975:246 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:7:34:75:943 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:7:34:82:320 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:34:85:688 + Q5 finished at: 2022-4-2 11:7:34:95:316 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:34:96:230 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:34:99:899 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-committed/wat_sda_lost_update_c1.txt b/result/result/myrocks_8.0.26/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..15dd4c81 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:32:575:78 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:7:32:575:957 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:32:675:28 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:32:675:839 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 11:7:32:880:176 +Q6-T1 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:32:884:55 +Q6 finished at: 2022-4-2 11:7:32:890:368 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:32:891:397 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:32:895:861 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-committed/wat_sda_lost_update_c2.txt b/result/result/myrocks_8.0.26/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..0f263338 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:33:162:956 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:7:33:163:790 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:33:262:846 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:33:263:585 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 11:7:33:466:797 + Q6 finished at: 2022-4-2 11:7:33:470:652 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:33:568:518 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:33:569:488 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:33:573:294 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/iat_dda_read_skew_committed.txt b/result/result/myrocks_8.0.26/read-uncommitted/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..854be0aa --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:7:864:299 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:7:865:240 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:7:964:227 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:7:965:8 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:7:965:527 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:8:8:328 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:7:8:64:885 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:8:71:195 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:8:72:66 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:8:73:895 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/iat_dda_read_write_skew1_committed.txt b/result/result/myrocks_8.0.26/read-uncommitted/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..e2294f00 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:8:361:730 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:8:362:739 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:8:461:632 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:8:462:502 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:8:463:58 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:8:472:126 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:8:561:986 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:8:574:438 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:8:575:337 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:8:579:53 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew.txt b/result/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew.txt new file mode 100644 index 00000000..bd9ec014 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:8:886:103 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:8:886:984 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:8:985:949 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:8:986:763 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:8:987:226 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:7:9:86:500 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:9:95:547 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:9:194:412 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:9:195:366 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:9:199:439 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew_committed.txt b/result/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..34a00465 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:10:528:27 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:10:528:850 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:10:628:14 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:10:628:868 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:10:629:466 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:10:641:499 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:10:728:466 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:10:739:981 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:10:740:941 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:10:751:813 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt b/result/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..163e995e --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:9:513:489 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 11:7:9:514:351 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 11:7:9:514:798 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:7:9:613:390 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 11:7:9:614:281 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 11:7:9:614:769 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:9:623:295 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:9:723:921 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 11:7:9:724:895 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 11:7:9:725:464 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:9:726:953 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/result/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..22551446 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:10:15:920 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 11:7:10:16:958 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:10:109:60 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 11:7:10:110:253 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 11:7:10:111:163 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:10:120:515 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-2 11:7:10:209:740 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:10:222:583 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 11:7:10:223:536 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:10:230:144 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat.txt b/result/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat.txt new file mode 100644 index 00000000..86b41b13 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:11:49:131 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:7:11:50:92 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:11:149:146 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:11:150:181 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:11:249:131 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:7:11:250:190 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 11:7:11:349:579 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:7:11:449:540 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 11:7:11:549:678 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:11:661:189 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:11:760:870 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:11:854:831 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:7:11:855:924 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:11:859:356 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt b/result/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..8fdf032d --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:15:757:776 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:15:758:823 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:15:857:499 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:15:858:416 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:15:866:635 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:7:15:957:532 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:7:15:958:552 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:7:15:959:153 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:15:968:412 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 11:7:16:58:256 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 11:7:16:68:957 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 11:7:16:70:181 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:7:16:80:987 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt b/result/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..b32f1af8 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:14:947:18 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:14:948:194 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:15:47:13 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:15:48:458 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:15:147:27 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 11:7:15:147:812 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:15:175:627 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:7:15:247:29 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 11:7:15:247:837 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:15:255:866 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 11:7:15:348:141 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:15:350:112 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 11:7:15:448:180 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 11:7:15:452:268 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 11:7:15:453:750 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 11:7:15:457:306 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt b/result/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..a1839cb9 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:12:143:893 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 11:7:12:144:910 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:12:243:880 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:12:244:937 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:12:343:875 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:7:12:344:905 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 11:7:12:444:351 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:7:12:544:274 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 11:7:12:644:334 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:12:757:431 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:12:853:933 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:12:951:101 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 11:7:12:952:226 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:12:956:66 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt b/result/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..b4e4aa45 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:13:225:343 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:7:13:226:599 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:13:325:290 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 11:7:13:326:355 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:13:425:327 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 11:7:13:426:473 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 11:7:13:525:646 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 11:7:13:625:683 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 11:7:13:725:691 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:7:13:840:705 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:13:933:242 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:14:34:934 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:7:14:36:96 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:14:39:576 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt b/result/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..c01a7172 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:16:374:985 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:7:16:376:80 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 11:7:16:376:835 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:7:16:488:201 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 11:7:16:489:151 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 11:7:16:489:647 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:16:506:570 + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:7:16:596:180 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 11:7:16:597:220 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:7:16:597:944 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:7:16:599:950 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-2 11:7:16:675:406 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 11:7:16:689:30 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 11:7:16:690:99 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 11:7:16:694:109 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt b/result/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..3a674bda --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:14:332:843 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 11:7:14:333:861 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:14:432:832 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 11:7:14:434:5 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:14:434:638 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:7:14:435:568 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-2 11:7:14:436:31 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:14:447:700 + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 11:7:14:532:845 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 11:7:14:533:861 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-2 11:7:14:534:345 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 11:7:14:535:41 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 11:7:14:535:515 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:7:14:543:627 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 11:7:14:633:570 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 11:7:14:649:210 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 11:7:14:650:431 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-2 11:7:14:657:90 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/iat_sda_lost_update_committed.txt b/result/result/myrocks_8.0.26/read-uncommitted/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..02a461b2 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:7:342:513 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:7:7:343:368 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:7:442:527 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:7:443:377 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:7:464:612 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 11:7:7:543:7 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:7:558:311 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:7:559:374 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:7:563:837 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/iat_sda_non_repeatable_read_committed.txt b/result/result/myrocks_8.0.26/read-uncommitted/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..68a31d3c --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:6:781:947 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:6:782:830 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:6:881:847 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:6:882:576 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:6:897:644 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:7:6:982:601 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:6:985:89 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:6:986:60 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:6:991:354 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:6:996:156 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_double_write_skew1.txt b/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..b6b91463 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_double_write_skew1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:44:111:881 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:44:112:595 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:44:211:883 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:44:212:622 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:6:44:213:221 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:6:44:415:841 + Q7 finished at: 2022-4-2 11:6:44:419:23 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:44:517:507 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 11:6:44:518:651 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:44:522:575 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_double_write_skew1_committed.txt b/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..3db0145a --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:44:813:948 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:44:814:705 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:44:913:852 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:44:914:595 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:6:44:915:293 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:44:927:639 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-2 11:6:45:14:402 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:45:23:653 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 11:6:45:24:564 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:45:29:59 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_double_write_skew2.txt b/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..b4db5bc9 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_double_write_skew2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:45:360:876 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:45:361:638 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:45:460:874 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:45:461:679 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:6:45:561:457 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:6:45:585:200 +Q7 finished at: 2022-4-2 11:6:45:591:983 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:6:45:667:901 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:6:45:668:778 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:45:672:659 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew.txt b/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew.txt new file mode 100644 index 00000000..8b9ad8a9 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:45:976:382 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:6:45:977:241 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:46:76:299 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:46:77:78 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:6:46:77:570 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:6:46:176:975 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:6:46:285:709 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:46:378:160 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:6:46:379:229 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:46:383:464 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew2.txt b/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew2.txt new file mode 100644 index 00000000..f6c64bb3 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew2.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:47:680:890 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:47:681:754 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:47:780:851 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:6:47:781:740 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:6:47:782:398 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:6:47:881:397 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:47:890:477 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:6:47:985:974 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:6:47:986:965 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:47:992:365 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew2_committed.txt b/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..6efd92e7 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew2_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:48:288:685 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:48:289:453 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:48:388:655 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:6:48:389:496 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:6:48:390:150 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:48:393:938 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:6:48:489:194 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:48:498:972 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:6:48:499:906 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:48:503:168 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt b/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..0d0e9e92 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:46:698:199 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:6:46:699:135 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:46:798:223 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:46:798:930 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:6:46:799:446 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:46:809:696 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:6:46:898:810 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:46:902:944 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 11:6:46:903:725 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:46:907:625 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt b/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..550ea609 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:47:203:401 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:6:47:204:389 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:47:303:353 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 11:6:47:304:49 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 11:6:47:304:536 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:47:312:368 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:6:47:403:975 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:47:408:219 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 11:6:47:409:189 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:47:413:65 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_write_read_skew.txt b/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..d111d122 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:42:904:178 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:42:904:895 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:43:4:374 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:43:5:431 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:6:43:6:174 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:6:43:104:877 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:6:43:211:113 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:43:317:822 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:6:43:318:823 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:43:322:868 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_write_read_skew_committed.txt b/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..b9e3b4e1 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:43:611:538 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:43:612:270 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:43:711:539 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:43:712:636 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:6:43:713:192 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:43:721:280 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:6:43:812:121 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:43:820:283 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:6:43:821:199 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:43:824:769 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat.txt b/result/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat.txt new file mode 100644 index 00000000..4dd84f5b --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:48:761:99 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:48:761:824 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:48:861:66 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:48:861:829 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + (3) expected_result: + (0,0) + (4) expected_result: + (0,0) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:6:48:862:666 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:6:48:961:403 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:6:48:962:82 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 11:6:48:962:900 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + *(4) expected_result: + (2,1) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q9 finished at: 2022-4-2 11:6:49:61:960 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:6:49:87:748 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:6:49:168:306 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:6:49:274:493 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:6:49:275:776 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:6:49:277:591 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat_long_fork.txt b/result/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..d6bb57f6 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,207 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 11:6:49:582:181 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 11:6:49:583:532 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 11:6:49:682:71 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 11:6:49:682:929 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:6:49:782:38 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 11:6:49:783:629 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + *(7) expected_result: + (0,1) + *(8) expected_result: + (0,1) + *(9) expected_result: + (0,1) + (10) expected_result: + (0,0) + (11) expected_result: + (0,0) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + (14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:6:49:784:954 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:6:49:882:137 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 11:6:49:882:862 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:6:49:983:183 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 11:6:50:92:437 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:6:50:193:820 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:6:50:286:440 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:6:50:291:537 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 11:6:50:292:762 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 11:6:50:296:633 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt b/result/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..41e9b4aa --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:50:576:630 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:50:577:327 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:50:676:633 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:50:677:353 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:6:50:678:133 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:6:50:776:649 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:6:50:777:393 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 11:6:50:778:188 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + (3) expected_result: + (1,) + *(4) expected_result: + (,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 11:6:50:877:635 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:6:50:888:165 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:6:50:989:97 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:6:51:87:480 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 11:6:51:88:578 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:6:51:94:508 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt b/result/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..971b8e35 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:51:406:105 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 11:6:51:406:978 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:51:505:975 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 11:6:51:506:637 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:6:51:507:664 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:6:51:606:31 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 11:6:51:606:662 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + (4) expected_result: + (,) + *(5) expected_result: + (1,) + (6) expected_result: + (,) + + Q8 finished at: 2022-4-2 11:6:51:607:504 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-2 11:6:51:706:907 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:6:51:714:953 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:6:51:821:716 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:6:51:934:908 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:6:51:936:57 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:6:51:942:36 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/rat_sda_dirty_read.txt b/result/result/myrocks_8.0.26/read-uncommitted/rat_sda_dirty_read.txt new file mode 100644 index 00000000..77bf0090 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/rat_sda_dirty_read.txt @@ -0,0 +1,45 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:38:642:614 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:38:643:217 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:38:742:658 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:6:38:743:637 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 11:6:38:850:102 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:38:944:122 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:6:38:945:77 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:6:38:953:392 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/rat_sda_intermediate_read.txt b/result/result/myrocks_8.0.26/read-uncommitted/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..c5ff27d2 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/rat_sda_intermediate_read.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:40:47:38 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:40:47:727 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:40:147:13 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:6:40:147:926 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 11:6:40:247:645 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:40:353:55 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:40:457:521 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:6:40:458:467 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:40:474:141 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/rat_sda_intermediate_read_committed.txt b/result/result/myrocks_8.0.26/read-uncommitted/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..8be05dea --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:40:784:975 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:40:785:644 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:40:884:874 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:6:40:885:681 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:6:40:892:24 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 11:6:40:985:478 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:40:990:503 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:6:40:991:355 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:40:994:684 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/rat_sda_lost_self_update.txt b/result/result/myrocks_8.0.26/read-uncommitted/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..666fd609 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:42:303:573 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:42:304:282 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:42:403:559 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:6:42:504:176 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:6:42:514:564 +Q6 finished at: 2022-4-2 11:6:42:518:117 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:6:42:611:236 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:6:42:612:124 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:42:616:388 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/rat_sda_non_repeatable_read.txt b/result/result/myrocks_8.0.26/read-uncommitted/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..21a785fe --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/rat_sda_non_repeatable_read.txt @@ -0,0 +1,58 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:39:288:802 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:6:39:289:676 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:39:388:756 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:6:39:389:486 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:6:39:489:344 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:39:600:730 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:39:703:661 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:6:39:704:573 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:39:714:814 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/result/result/myrocks_8.0.26/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..3b691c75 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:41:305:628 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:6:41:306:419 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:41:405:514 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:6:41:406:250 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:6:41:415:95 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:6:41:506:107 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:41:510:37 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 11:6:41:510:851 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:41:514:997 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/result/result/myrocks_8.0.26/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..55bf3710 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:41:785:724 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:6:41:786:651 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:41:885:726 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 11:6:41:886:397 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:6:41:896:626 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:6:41:986:284 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:41:991:30 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 11:6:41:991:748 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:41:996:220 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_double_write_skew2_committed.txt b/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..134598bd --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:56:435:566 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:56:436:272 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:56:535:569 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:56:536:287 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:6:56:636:142 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:6:56:639:945 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:6:56:644:289 + Q6 finished at: 2022-4-2 11:6:56:647:996 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:6:56:649:26 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:6:56:653:198 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_full_write_skew_c1.txt b/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..8430b280 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:56:941:270 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:56:942:62 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:57:41:343 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:57:42:179 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:6:57:141:750 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:6:57:248:229 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:6:57:752:966 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_full_write_skew_c2.txt b/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..ff34857c --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:58:35:180 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:58:35:904 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:58:135:168 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:58:135:878 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:6:58:235:729 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:6:58:342:781 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:6:58:840:372 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_full_write_skew_committed.txt b/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..f36d80c6 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:59:122:192 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:59:122:917 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:59:222:178 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:6:59:223:25 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:6:59:322:766 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:59:332:418 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:7:0:29:211 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew1_c1.txt b/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..47f01067 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:0:338:484 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:0:339:283 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:0:438:502 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:0:439:231 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:0:439:730 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:7:0:645:185 +Q7-T1 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:0:649:265 +Q7 finished at: 2022-4-2 11:7:0:653:661 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:0:654:674 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:0:658:385 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew1_c2.txt b/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..790ea3af --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:0:937:716 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:0:938:511 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:1:37:757 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:1:38:558 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:7:1:39:1 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:7:1:242:962 + Q7 finished at: 2022-4-2 11:7:1:246:31 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:1:346:986 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:1:347:972 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:1:352:740 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew2_c1.txt b/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..bfaa4189 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:1:659:903 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:1:660:575 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:1:759:930 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:1:760:835 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:7:1:862:482 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:1:875:929 +Q7 finished at: 2022-4-2 11:7:1:882:111 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:1:969:540 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:1:970:584 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:1:976:834 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew2_c2.txt b/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..d03b514a --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:2:316:777 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:2:317:489 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:2:416:794 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:2:417:842 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:7:2:517:142 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:2:726:2 + Q7-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:2:730:926 + Q7 finished at: 2022-4-2 11:7:2:746:22 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:2:746:999 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:2:757:586 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew2_committed.txt b/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..2bae8673 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:3:34:87 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:3:34:820 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:3:134:139 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:7:3:135:78 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:7:3:234:651 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:3:249:238 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:3:258:511 + Q6 finished at: 2022-4-2 11:7:3:272:783 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:3:273:696 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:3:284:229 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/wat_mda_step_wat_c1.txt b/result/result/myrocks_8.0.26/read-uncommitted/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..ea91f3ba --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:3:605:341 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:3:606:70 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:3:705:355 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:3:706:130 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:7:3:805:393 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:7:3:806:180 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 11:7:3:906:14 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:4:9:947 + Q11 finished at: 2022-4-2 11:7:4:13:179 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:4:117:98 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:7:4:812:768 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/wat_mda_step_wat_c2.txt b/result/result/myrocks_8.0.26/read-uncommitted/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..649ae5d0 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:5:90:470 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:5:91:122 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:5:190:593 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:5:191:426 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:7:5:290:443 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:7:5:490:951 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 11:7:5:591:81 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:5:697:777 + Q10 finished at: 2022-4-2 11:7:5:701:539 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:7:5:903:269 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:7:6:495:23 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/wat_sda_dirty_write_1abort.txt b/result/result/myrocks_8.0.26/read-uncommitted/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..ed1e38a0 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:52:235:675 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:52:236:413 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:52:335:668 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 11:6:52:436:26 +Q5 finished at: 2022-4-2 11:6:52:439:932 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:52:552:497 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:6:52:553:486 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:6:52:574:844 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:52:584:32 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/wat_sda_dirty_write_2commit.txt b/result/result/myrocks_8.0.26/read-uncommitted/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..df2a0f2c --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:52:884:520 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:52:885:253 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:52:984:484 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:6:53:89:339 +Q5 finished at: 2022-4-2 11:6:53:99:767 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:6:53:197:979 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:6:53:198:923 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:6:53:231:174 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:53:238:543 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/wat_sda_full_write.txt b/result/result/myrocks_8.0.26/read-uncommitted/wat_sda_full_write.txt new file mode 100644 index 00000000..89c0df77 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:53:505:379 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:53:506:95 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:53:605:361 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 11:6:53:705:765 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:6:53:717:820 +Q6 finished at: 2022-4-2 11:6:53:723:651 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:6:53:812:585 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:6:53:813:509 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:53:817:1 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/wat_sda_full_write_committed.txt b/result/result/myrocks_8.0.26/read-uncommitted/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..539563d6 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:54:94:0 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:54:94:722 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:54:194:31 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 11:6:54:294:558 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:6:54:299:695 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:54:304:13 + Q5 finished at: 2022-4-2 11:6:54:309:7 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:6:54:309:857 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:54:314:512 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/wat_sda_lost_self_update_committed.txt b/result/result/myrocks_8.0.26/read-uncommitted/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..fc044d0a --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:55:876:191 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:6:55:876:905 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:55:976:167 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:6:56:76:775 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:6:56:81:598 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:56:84:479 + Q5 finished at: 2022-4-2 11:6:56:87:975 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:6:56:88:779 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:56:94:707 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/wat_sda_lost_update_c1.txt b/result/result/myrocks_8.0.26/read-uncommitted/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..39a63d59 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:54:579:769 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:6:54:580:599 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:54:679:702 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:6:54:680:467 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 11:6:54:884:880 +Q6-T1 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:6:54:888:77 +Q6 finished at: 2022-4-2 11:6:54:891:220 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:6:54:892:233 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:54:896:414 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/read-uncommitted/wat_sda_lost_update_c2.txt b/result/result/myrocks_8.0.26/read-uncommitted/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..f0a2a2a7 --- /dev/null +++ b/result/result/myrocks_8.0.26/read-uncommitted/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:6:55:174:509 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:6:55:175:331 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:6:55:274:451 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:6:55:275:226 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 11:6:55:479:203 + Q6 finished at: 2022-4-2 11:6:55:489:484 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:6:55:588:52 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:6:55:589:203 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:6:55:595:188 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/repeatable-read/iat_dda_read_skew_committed.txt b/result/result/myrocks_8.0.26/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..baf23007 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:23:687:664 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:23:688:476 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:23:787:651 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:23:788:537 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:23:789:66 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:23:796:356 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:8:23:888:251 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:23:893:952 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:23:894:908 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:23:896:322 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/iat_dda_read_write_skew1_committed.txt b/result/result/myrocks_8.0.26/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..1118f91f --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:24:169:902 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:24:170:696 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:24:269:902 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:24:270:719 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:24:271:242 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:24:278:630 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:8:24:370:401 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:24:377:510 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:24:378:485 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:24:384:224 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew.txt b/result/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..8110e480 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:24:653:359 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:24:654:400 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:24:753:387 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:24:754:521 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:24:755:67 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:8:24:853:853 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:24:861:334 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:24:960:272 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:24:961:309 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:24:965:147 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew_committed.txt b/result/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..6f3415c1 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:26:270:912 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:26:271:754 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:26:370:803 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:26:371:680 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:26:372:219 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:26:382:665 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:8:26:471:280 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:26:480:593 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:26:481:412 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:26:485:157 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/result/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..bba08a36 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:25:242:402 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 11:8:25:243:304 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 11:8:25:243:839 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:8:25:342:382 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 11:8:25:343:289 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 11:8:25:343:827 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:25:351:14 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:25:449:377 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 11:8:25:450:316 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 11:8:25:450:949 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:25:452:616 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/result/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..b0de6e5f --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:25:738:167 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 11:8:25:739:87 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:25:838:154 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 11:8:25:839:274 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 11:8:25:840:36 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:25:845:391 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-2 11:8:25:938:738 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:25:947:795 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 11:8:25:948:733 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:25:952:592 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat.txt b/result/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..9a24db4a --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:26:759:773 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:8:26:760:782 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:26:859:708 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:8:26:860:760 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:8:26:959:679 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:8:26:960:773 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 11:8:27:60:176 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:8:27:160:129 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 11:8:27:260:238 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:8:27:376:617 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:8:27:472:39 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:27:566:69 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:8:27:567:234 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:27:571:183 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/result/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..7c11ec3d --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:31:419:476 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:31:420:433 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:31:519:426 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:8:31:520:226 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:31:529:296 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:31:619:509 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:8:31:620:645 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:8:31:621:156 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:31:639:314 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 11:8:31:720:285 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 11:8:31:729:189 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 11:8:31:730:288 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:8:31:735:404 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/result/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..532ae9c4 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:30:592:911 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:30:594:280 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:30:692:940 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:30:694:302 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:8:30:792:918 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 11:8:30:793:570 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:30:800:74 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:8:30:892:967 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 11:8:30:893:767 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:30:901:613 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 11:8:30:993:911 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:30:995:963 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 11:8:31:94:31 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 11:8:31:101:9 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 11:8:31:102:714 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 11:8:31:106:116 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/result/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..c3bbd353 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:27:849:40 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 11:8:27:850:75 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:27:949:40 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:8:27:950:251 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:8:28:49:43 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:8:28:50:294 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 11:8:28:149:439 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:8:28:249:409 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 11:8:28:349:613 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:8:28:458:138 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:8:28:556:222 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:28:655:321 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 11:8:28:656:379 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:28:660:142 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/result/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..ac70bf44 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:28:922:432 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:8:28:923:587 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:29:22:439 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 11:8:29:23:405 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:8:29:122:460 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 11:8:29:123:466 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 11:8:29:222:808 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 11:8:29:322:961 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 11:8:29:422:851 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:8:29:529:869 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:8:29:629:952 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:29:728:426 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:8:29:729:517 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:29:733:202 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/result/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..9c04ff7d --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:32:34:495 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:8:32:35:592 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 11:8:32:36:404 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:8:32:134:478 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 11:8:32:135:609 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 11:8:32:136:138 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:32:170:576 + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:8:32:234:410 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 11:8:32:235:477 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:8:32:236:332 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:8:32:238:721 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-2 11:8:32:334:814 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 11:8:32:343:572 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 11:8:32:344:703 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 11:8:32:349:705 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/result/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..7a9dc4cf --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:30:15:182 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 11:8:30:16:318 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:30:115:186 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 11:8:30:116:266 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:30:116:806 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:8:30:117:945 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-2 11:8:30:118:427 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:30:128:464 + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 11:8:30:215:129 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 11:8:30:216:500 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-2 11:8:30:217:151 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 11:8:30:218:97 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 11:8:30:218:698 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:30:230:166 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 11:8:30:315:960 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 11:8:30:319:917 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 11:8:30:321:37 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-2 11:8:30:324:659 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/iat_sda_lost_update_committed.txt b/result/result/myrocks_8.0.26/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..cd1fcc46 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:23:168:505 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:8:23:169:274 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:23:268:506 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:8:23:269:276 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:23:285:777 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 11:8:23:368:983 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:23:389:562 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:23:390:437 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:23:398:574 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/result/result/myrocks_8.0.26/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..71e1c9ef --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:22:646:65 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:22:646:989 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:22:745:988 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:8:22:746:731 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:22:758:336 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:8:22:846:568 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:22:848:352 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:22:849:109 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:22:853:464 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:22:863:612 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/rat_dda_double_write_skew1.txt b/result/result/myrocks_8.0.26/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..f34aee42 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:0:150:916 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:0:151:633 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:0:250:929 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:0:251:761 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:0:252:411 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:8:0:455:824 + Q7 finished at: 2022-4-2 11:8:0:461:678 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:0:555:556 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 11:8:0:556:468 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:0:560:157 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/rat_dda_double_write_skew1_committed.txt b/result/result/myrocks_8.0.26/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..5a042986 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:0:832:843 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:0:833:518 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:0:932:787 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:0:933:529 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:0:934:184 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:0:949:633 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-2 11:8:1:33:414 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:1:48:235 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 11:8:1:49:129 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:1:56:48 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/rat_dda_double_write_skew2.txt b/result/result/myrocks_8.0.26/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..3b77a80e --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:1:398:881 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:1:399:575 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:1:498:941 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:1:499:986 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:8:1:599:543 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:1:614:598 +Q7 finished at: 2022-4-2 11:8:1:619:160 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:1:719:948 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:1:720:987 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:1:738:548 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew.txt b/result/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..2b66f286 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:2:41:367 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:2:42:169 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:2:141:345 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:2:142:75 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:2:142:601 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:8:2:242:44 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:2:351:896 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:2:443:913 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:2:445:21 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:2:449:130 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew2.txt b/result/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..5ca94dc9 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:3:757:658 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:3:758:381 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:3:857:695 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:3:858:604 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:3:859:254 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:8:3:958:205 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:3:972:656 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:4:61:323 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:4:62:293 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:4:70:550 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew2_committed.txt b/result/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..bcd35616 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:4:353:507 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:4:354:183 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:4:453:478 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:4:454:262 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:4:454:846 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:4:461:920 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:8:4:554:32 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:4:562:247 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:4:563:300 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:4:568:518 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/result/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..92ec9ed2 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:2:734:491 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:8:2:735:299 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:2:834:537 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:2:835:319 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:2:835:818 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:2:846:950 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:8:2:935:222 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:2:939:915 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 11:8:2:940:779 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:2:945:921 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/result/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..1557f5b4 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:3:242:499 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:8:3:243:536 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:3:342:475 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 11:8:3:343:201 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 11:8:3:343:730 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:3:358:426 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:8:3:443:21 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:3:450:629 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 11:8:3:451:597 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:3:457:839 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/rat_dda_write_read_skew.txt b/result/result/myrocks_8.0.26/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..483264de --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:58:921:285 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:58:921:995 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:59:21:239 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:59:22:40 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:59:22:739 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 11:7:59:122:9 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:59:228:389 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:59:328:286 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:59:329:513 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:59:333:95 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/repeatable-read/rat_dda_write_read_skew_committed.txt b/result/result/myrocks_8.0.26/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..ac195807 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:59:606:47 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:59:606:811 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:59:705:980 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:7:59:706:704 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:7:59:707:360 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:59:726:76 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:7:59:806:614 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:7:59:816:11 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:7:59:816:984 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:7:59:828:409 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat.txt b/result/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..fa6ae70e --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:4:855:914 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:4:856:584 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:4:955:901 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:4:956:643 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:4:957:506 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:5:56:70 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:8:5:56:657 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 11:8:5:57:446 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-2 11:8:5:156:629 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:8:5:171:265 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:8:5:264:969 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:5:368:542 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:8:5:369:713 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:5:371:269 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat_long_fork.txt b/result/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..0c6ef2fe --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 11:8:5:658:904 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 11:8:5:660:162 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 11:8:5:758:735 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 11:8:5:759:445 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:8:5:858:757 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 11:8:5:860:133 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:8:5:861:204 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:8:5:958:781 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 11:8:5:959:571 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:8:6:59:815 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 11:8:6:166:525 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:6:265:635 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:8:6:363:72 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:6:366:630 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 11:8:6:368:22 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 11:8:6:371:479 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/result/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..5d42f494 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:6:636:389 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:6:637:146 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:6:736:331 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:6:737:145 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:8:6:737:946 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:6:836:318 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:8:6:837:111 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 11:8:6:837:959 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-2 11:8:6:937:92 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:8:6:952:547 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:8:7:49:608 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:7:152:54 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 11:8:7:153:146 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:7:159:516 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/result/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..616eac3a --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:7:441:962 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 11:8:7:442:786 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:7:541:938 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 11:8:7:542:683 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:8:7:543:646 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:7:641:952 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 11:8:7:642:665 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-2 11:8:7:643:547 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 11:8:7:742:845 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:8:7:765:328 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:8:7:869:975 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:7:953:130 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 11:8:7:954:349 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 11:8:7:963:553 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/repeatable-read/rat_sda_dirty_read.txt b/result/result/myrocks_8.0.26/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..cd5576b2 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:54:795:644 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:54:796:229 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:54:895:609 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:54:896:372 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 11:7:55:7:17 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:55:97:107 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:7:55:98:13 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:7:55:102:161 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/rat_sda_intermediate_read.txt b/result/result/myrocks_8.0.26/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..7726055a --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:56:88:794 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:56:89:550 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:56:188:725 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:56:189:695 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 11:7:56:289:362 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:56:393:229 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:56:495:117 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:7:56:495:996 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:56:499:374 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/rat_sda_intermediate_read_committed.txt b/result/result/myrocks_8.0.26/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..b2767375 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:56:804:15 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:56:804:757 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:56:904:22 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:7:56:904:981 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:56:909:455 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 11:7:57:4:633 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:57:11:351 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:7:57:12:299 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:57:16:87 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/rat_sda_lost_self_update.txt b/result/result/myrocks_8.0.26/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..457fe501 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:58:308:16 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:7:58:308:711 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:58:408:63 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:7:58:508:639 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:7:58:515:512 +Q6 finished at: 2022-4-2 11:7:58:518:958 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:7:58:616:757 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:58:617:774 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:58:624:312 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/rat_sda_non_repeatable_read.txt b/result/result/myrocks_8.0.26/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..a6995f26 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:55:409:106 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:7:55:409:951 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:55:509:137 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:55:509:836 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:7:55:609:746 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:7:55:729:635 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:55:815:23 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:7:55:816:27 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:55:820:112 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/result/result/myrocks_8.0.26/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..936f4a4a --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:57:303:267 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:7:57:304:120 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:57:403:261 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 11:7:57:404:27 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:57:411:627 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:7:57:503:835 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:57:512:634 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 11:7:57:513:480 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:57:519:190 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/result/result/myrocks_8.0.26/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..b1b7c4b0 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:7:57:790:398 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:7:57:791:382 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:7:57:890:425 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 11:7:57:891:98 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:7:57:910:782 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:7:57:991:122 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:7:57:996:139 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 11:7:57:996:887 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:7:58:8:775 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/wat_dda_double_write_skew2_committed.txt b/result/result/myrocks_8.0.26/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..62ee7a51 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:12:461:170 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:12:461:858 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:12:561:138 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:12:561:975 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 11:8:12:661:806 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:12:665:772 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:12:668:696 + Q6 finished at: 2022-4-2 11:8:12:671:497 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:12:672:490 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:12:675:636 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/wat_dda_full_write_skew_c1.txt b/result/result/myrocks_8.0.26/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..2c8699dc --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:12:939:854 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:12:940:699 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:13:39:860 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:13:40:723 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:13:140:459 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:13:254:185 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:13:754:308 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/repeatable-read/wat_dda_full_write_skew_c2.txt b/result/result/myrocks_8.0.26/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..6e96da1f --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:14:44:621 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:14:45:382 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:14:144:639 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:14:145:482 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:14:245:315 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:14:355:722 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:14:849:561 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/repeatable-read/wat_dda_full_write_skew_committed.txt b/result/result/myrocks_8.0.26/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..a5ddb856 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:15:141:817 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:15:142:532 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:15:241:853 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:15:242:691 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:15:342:522 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:15:350:395 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:8:16:46:891 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew1_c1.txt b/result/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..3aa4b768 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:16:347:968 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:16:348:976 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:16:447:924 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:16:448:748 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:16:449:238 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:8:16:660:912 +Q7-T1 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:16:665:500 +Q7 finished at: 2022-4-2 11:8:16:668:369 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:16:669:354 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:16:677:576 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew1_c2.txt b/result/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..7fd6f58e --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:16:933:637 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:16:934:538 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:17:33:605 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:17:34:318 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:17:34:798 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:8:17:237:514 + Q7 finished at: 2022-4-2 11:8:17:240:411 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:17:340:973 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:17:341:939 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:17:345:266 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew2_c1.txt b/result/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..b29cf0d5 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:17:636:967 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:17:637:683 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:17:736:975 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:17:737:926 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:8:17:837:404 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:17:842:984 +Q7 finished at: 2022-4-2 11:8:17:846:878 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:17:944:754 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:17:945:700 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:17:949:8 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew2_c2.txt b/result/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..ec0ab3e8 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:18:218:441 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:18:219:177 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:18:318:427 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:18:319:294 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:8:18:418:776 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:18:629:475 + Q7-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:18:639:311 + Q7 finished at: 2022-4-2 11:8:18:644:539 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:18:645:560 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:18:655:457 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew2_committed.txt b/result/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..605c760b --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:18:964:505 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:18:965:259 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:19:64:492 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:19:65:404 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:8:19:164:883 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:19:170:569 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:19:177:27 + Q6 finished at: 2022-4-2 11:8:19:180:421 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 11:8:19:181:387 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:19:184:978 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/repeatable-read/wat_mda_step_wat_c1.txt b/result/result/myrocks_8.0.26/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..d18d05f4 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:19:469:567 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:19:470:358 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:19:569:522 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:19:570:260 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:19:669:546 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:8:19:670:313 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 11:8:19:770:157 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:19:879:241 + Q11 finished at: 2022-4-2 11:8:19:882:615 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:19:975:603 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:8:20:674:333 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/repeatable-read/wat_mda_step_wat_c2.txt b/result/result/myrocks_8.0.26/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..076371a2 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:20:945:495 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:20:946:330 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:21:45:431 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:21:46:318 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:8:21:145:355 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:8:21:345:971 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 11:8:21:446:67 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:21:552:811 + Q10 finished at: 2022-4-2 11:8:21:559:762 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:21:752:962 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:8:22:353:623 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/repeatable-read/wat_sda_dirty_write_1abort.txt b/result/result/myrocks_8.0.26/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..827df83a --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:8:297:488 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:8:298:158 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:8:397:439 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 11:8:8:497:870 +Q5 finished at: 2022-4-2 11:8:8:501:405 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:8:608:716 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:8:8:609:598 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:8:8:634:669 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:8:641:837 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/wat_sda_dirty_write_2commit.txt b/result/result/myrocks_8.0.26/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..84a3b9eb --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:8:893:549 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:8:894:358 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:8:993:492 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:9:105:703 +Q5 finished at: 2022-4-2 11:8:9:111:128 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:9:202:872 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:8:9:203:773 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:8:9:237:34 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:9:242:779 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/wat_sda_full_write.txt b/result/result/myrocks_8.0.26/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..55c4dfc5 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:9:509:970 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:9:510:696 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:9:609:909 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 11:8:9:710:416 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:9:717:149 +Q6 finished at: 2022-4-2 11:8:9:720:554 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:9:815:216 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:8:9:816:94 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:9:822:228 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/wat_sda_full_write_committed.txt b/result/result/myrocks_8.0.26/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..885ad8e6 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:10:81:468 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:10:82:237 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:10:181:465 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 11:8:10:281:977 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:10:286:200 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:10:289:28 + Q5 finished at: 2022-4-2 11:8:10:292:532 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:8:10:293:504 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:10:297:85 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/wat_sda_lost_self_update_committed.txt b/result/result/myrocks_8.0.26/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..a725a706 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:11:918:75 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:11:918:796 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:12:18:19 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:8:12:118:723 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:12:149:10 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:12:158:44 + Q5 finished at: 2022-4-2 11:8:12:163:79 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:12:163:981 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:12:168:700 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/repeatable-read/wat_sda_lost_update_c1.txt b/result/result/myrocks_8.0.26/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..f47112f0 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:10:555:956 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:8:10:556:889 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:10:655:943 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:8:10:656:718 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 11:8:10:860:699 +Q6-T1 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:10:865:226 +Q6 finished at: 2022-4-2 11:8:10:871:876 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:10:872:824 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:10:886:631 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/repeatable-read/wat_sda_lost_update_c2.txt b/result/result/myrocks_8.0.26/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..3dc5f513 --- /dev/null +++ b/result/result/myrocks_8.0.26/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:11:226:913 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:8:11:227:789 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:11:326:820 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 11:8:11:327:614 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 11:8:11:531:50 + Q6 finished at: 2022-4-2 11:8:11:534:686 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:11:639:665 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:11:640:755 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:11:644:334 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/myrocks_8.0.26/result_summary/read-committed_total-result.txt b/result/result/myrocks_8.0.26/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..38745346 --- /dev/null +++ b/result/result/myrocks_8.0.26/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/result/result/myrocks_8.0.26/result_summary/read-uncommitted_total-result.txt b/result/result/myrocks_8.0.26/result_summary/read-uncommitted_total-result.txt new file mode 100644 index 00000000..f709ccda --- /dev/null +++ b/result/result/myrocks_8.0.26/result_summary/read-uncommitted_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Anomaly + +rat_sda_non_repeatable_read: Anomaly + +rat_sda_intermediate_read: Anomaly + +rat_sda_intermediate_read_committed: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Anomaly + +rat_dda_double_write_skew1_committed: Anomaly + +rat_dda_double_write_skew2: Anomaly + +rat_dda_read_skew: Anomaly + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Anomaly + +rat_dda_read_skew2_committed: Anomaly + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Anomaly + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Anomaly + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/result/result/myrocks_8.0.26/result_summary/repeatable-read_total-result.txt b/result/result/myrocks_8.0.26/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..ef182286 --- /dev/null +++ b/result/result/myrocks_8.0.26/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/result/result/myrocks_8.0.26/result_summary/serializable_total-result.txt b/result/result/myrocks_8.0.26/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..b5b686cf --- /dev/null +++ b/result/result/myrocks_8.0.26/result_summary/serializable_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Rollback + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Rollback + +rat_dda_read_skew2_committed: Rollback + +rat_mda_step_rat: Rollback + +rat_mda_step_rat_long_fork: Rollback + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Rollback + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Rollback + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +iat_mda_step_iat_predicate_based_delete: Rollback + +iat_mda_step_iat_predicate_based_insert: Rollback + +iat_mda_step_iat_uname_anomaly: Rollback + +iat_mda_step_iat_cross_phenomenon: Rollback + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Rollback + diff --git a/result/result/myrocks_8.0.26/serializable/iat_dda_read_skew_committed.txt b/result/result/myrocks_8.0.26/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..bad23c9a --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:11:737:443 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:11:738:336 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:11:837:411 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:9:11:838:72 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:11:937:920 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:9:11:946:111 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:9:12:638:63 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/iat_dda_read_write_skew1_committed.txt b/result/result/myrocks_8.0.26/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..378f6589 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:12:938:43 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:12:938:902 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:13:37:977 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:9:13:38:753 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:13:138:510 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:9:13:164:130 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:9:13:838:632 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/iat_dda_write_skew.txt b/result/result/myrocks_8.0.26/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..24ab6a11 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/iat_dda_write_skew.txt @@ -0,0 +1,49 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:14:153:583 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:14:156:600 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:14:253:612 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:9:14:254:503 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:14:354:110 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:9:14:462:209 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:9:14:954:214 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/iat_dda_write_skew_committed.txt b/result/result/myrocks_8.0.26/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..9d18f0f7 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,49 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:16:931:83 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:16:931:971 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:17:31:40 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:9:17:31:874 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:17:131:541 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:9:17:148:216 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:9:17:831:643 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/result/result/myrocks_8.0.26/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..67c11f47 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:15:243:702 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 11:9:15:244:600 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 11:9:15:245:156 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:9:15:343:706 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute opt: 'COMMIT'; + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 11:9:15:448:636 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 11:9:15:449:176 + Q7-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:9:15:454:763 + Q7 finished at: 2022-4-2 11:9:15:458:445 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 11:9:15:459:512 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 11:9:15:460:145 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:9:15:467:68 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/result/result/myrocks_8.0.26/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..5a4957d0 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,49 @@ +#### db_type: myrocks #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:15:751:986 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 11:9:15:752:955 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:15:851:984 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 11:9:15:853:12 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q5 finished at: 2022-4-2 11:9:15:952:625 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:9:15:963:630 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:9:16:652:723 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/iat_mda_step_iat.txt b/result/result/myrocks_8.0.26/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..7d8f3d27 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/iat_mda_step_iat.txt @@ -0,0 +1,89 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:18:106:946 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:9:18:107:880 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:18:206:931 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:9:18:207:945 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:9:18:307:86 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:9:18:308:142 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 finished at: 2022-4-2 11:9:18:607:562 + Q11-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:9:18:812:697 +Q10-T1 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:9:18:815:821 +Q10 finished at: 2022-4-2 11:9:18:816:947 + Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q9 failed at: 2022-4-2 11:9:19:507:694 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/result/result/myrocks_8.0.26/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..b24bcbee --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:26:604:635 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:26:605:532 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:26:704:638 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:9:26:804:616 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 11:9:26:905:298 +Q11-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:9:26:912:554 +Q11 finished at: 2022-4-2 11:9:26:912:569 + Q5-T2 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:9:26:916:505 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 11:9:26:917:79 + Q9-T3 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:9:26:930:77 + Q9 finished at: 2022-4-2 11:9:26:933:672 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 11:9:26:935:16 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:9:26:939:750 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/serializable/iat_mda_step_iat_cross_phenomenon.txt b/result/result/myrocks_8.0.26/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..a2814e73 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,171 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:25:227:940 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:25:229:401 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:25:327:980 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:9:25:329:248 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:9:25:427:967 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:9:25:527:983 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 11:9:25:729:339 + Q12-T2 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:9:25:734:489 + Q12 finished at: 2022-4-2 11:9:25:734:500 + Q10-T4 execute opt: 'COMMIT'; + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 11:9:25:738:956 +Q14-T1 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:9:25:740:974 +Q14 finished at: 2022-4-2 11:9:25:743:747 + Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q6 failed at: 2022-4-2 11:9:26:328:789 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/iat_mda_step_iat_predicate_based_delete.txt b/result/result/myrocks_8.0.26/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..142ac590 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,89 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:19:796:135 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 11:9:19:797:162 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:19:896:73 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:9:19:897:102 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:9:19:996:82 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:9:19:997:115 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q8 finished at: 2022-4-2 11:9:20:296:678 + Q11-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:9:20:498:339 +Q10-T1 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 11:9:20:503:938 +Q10 finished at: 2022-4-2 11:9:20:506:922 + Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q9 failed at: 2022-4-2 11:9:21:196:777 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/iat_mda_step_iat_predicate_based_insert.txt b/result/result/myrocks_8.0.26/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..003ea8dd --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,85 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:21:476:226 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 11:9:21:477:387 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:21:576:130 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 11:9:21:577:237 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:9:21:676:155 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 11:9:21:677:293 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q7 finished at: 2022-4-2 11:9:21:976:648 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 11:9:22:92:158 + Q8 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q8 failed at: 2022-4-2 11:9:22:676:749 + Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q9 failed at: 2022-4-2 11:9:22:876:945 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/result/result/myrocks_8.0.26/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..7215878b --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,120 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:27:213:626 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:9:27:214:640 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 11:9:27:215:435 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 11:9:27:313:591 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 11:9:27:314:610 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:9:27:413:596 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 11:9:27:414:654 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q6 finished at: 2022-4-2 11:9:27:514:95 + Q7-T2 execute opt: 'COMMIT'; + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:9:27:520:673 + Q11-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:9:27:527:321 + Q11 finished at: 2022-4-2 11:9:27:527:333 +Q12 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q12 failed at: 2022-4-2 11:9:28:714:226 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/iat_mda_step_iat_uname_anomaly.txt b/result/result/myrocks_8.0.26/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..348a3efa --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,127 @@ +#### db_type: myrocks #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:23:154:163 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 11:9:23:155:280 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:23:254:129 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 11:9:23:255:249 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:9:23:255:804 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 11:9:23:256:543 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 11:9:23:354:132 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 11:9:23:355:166 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-2 11:9:23:355:669 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:9:23:454:599 + Q8-T2 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 11:9:23:463:522 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 11:9:23:464:104 + Q14-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:9:23:466:51 + Q14 finished at: 2022-4-2 11:9:23:476:121 +Q15 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q15 failed at: 2022-4-2 11:9:24:954:752 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/iat_sda_lost_update_committed.txt b/result/result/myrocks_8.0.26/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..ec4c2313 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:10:870:756 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:9:10:871:607 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:10:970:743 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 11:9:11:71:233 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:9:11:81:861 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q4 failed at: 2022-4-2 11:9:11:471:412 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/iat_sda_non_repeatable_read_committed.txt b/result/result/myrocks_8.0.26/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..1da43254 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:10:352:253 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:10:353:53 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:10:452:262 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:9:10:552:832 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:9:10:554:683 + Q4 finished at: 2022-4-2 11:9:10:554:744 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:9:10:564:613 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:9:10:565:652 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:9:10:572:350 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:9:10:580:415 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/serializable/rat_dda_double_write_skew1.txt b/result/result/myrocks_8.0.26/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..40e821f3 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:39:207:984 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:39:208:730 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:39:308:25 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:39:308:865 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:39:408:785 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:39:514:910 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:40:12:340 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/rat_dda_double_write_skew1_committed.txt b/result/result/myrocks_8.0.26/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..e48407e8 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:40:304:963 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:40:305:788 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:40:404:977 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:40:405:813 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:40:505:694 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:40:514:513 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:8:41:210:37 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/rat_dda_double_write_skew2.txt b/result/result/myrocks_8.0.26/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..608342f0 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:41:481:395 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:41:482:71 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:41:581:330 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:41:582:78 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:41:681:961 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:41:792:168 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:42:286:404 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/rat_dda_read_skew.txt b/result/result/myrocks_8.0.26/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..7561b934 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/rat_dda_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:42:561:618 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:42:562:453 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:42:661:676 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:42:662:469 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:42:762:134 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:42:868:639 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:43:362:229 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/rat_dda_read_skew2.txt b/result/result/myrocks_8.0.26/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..2a2eacdf --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:44:605:590 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:44:606:240 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:44:705:549 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:44:706:385 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 11:8:44:806:86 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:44:813:190 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-2 11:8:45:306:229 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/rat_dda_read_skew2_committed.txt b/result/result/myrocks_8.0.26/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..ef32048c --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:45:589:624 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:45:590:408 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:45:689:648 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:8:45:690:600 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 11:8:45:790:285 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:45:801:187 + Q5 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-2 11:8:46:290:388 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/rat_dda_read_skew_predicate_based_delete.txt b/result/result/myrocks_8.0.26/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..d08eb3e1 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:43:647:367 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:8:43:648:366 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:43:747:283 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:8:43:848:110 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:43:853:104 + Q4 finished at: 2022-4-2 11:8:43:853:144 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 11:8:43:853:719 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:43:859:378 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 11:8:43:860:174 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:43:863:328 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/serializable/rat_dda_read_skew_predicate_based_insert.txt b/result/result/myrocks_8.0.26/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..85da2bdd --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: myrocks #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:44:117:438 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 11:8:44:118:492 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:44:217:479 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 11:8:44:318:157 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 11:8:44:322:101 + Q4 finished at: 2022-4-2 11:8:44:322:114 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 11:8:44:322:760 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:44:334:527 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 11:8:44:337:601 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 11:8:44:340:892 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/serializable/rat_dda_write_read_skew.txt b/result/result/myrocks_8.0.26/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..a6fdd2f3 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:36:912:804 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:36:913:546 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:37:12:817 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:37:13:656 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:37:113:552 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:37:228:234 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:37:722:667 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/rat_dda_write_read_skew_committed.txt b/result/result/myrocks_8.0.26/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..8e116ac6 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:37:993:992 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:37:994:738 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:38:93:976 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:38:94:780 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:38:194:837 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:38:201:624 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:8:38:898:312 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/rat_mda_step_rat.txt b/result/result/myrocks_8.0.26/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..9b91f9e7 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/rat_mda_step_rat.txt @@ -0,0 +1,74 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:46:568:760 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:46:569:522 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:46:668:673 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:46:669:388 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:46:768:969 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:8:46:769:581 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 11:8:46:869:585 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 11:8:46:973:894 + Q11 finished at: 2022-4-2 11:8:46:976:624 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:47:78:651 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:8:47:774:625 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/rat_mda_step_rat_long_fork.txt b/result/result/myrocks_8.0.26/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..2dc7e42c --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,169 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 11:8:48:110:275 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 11:8:48:111:812 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 11:8:48:209:958 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:8:48:310:6 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 11:8:48:311:477 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 11:8:48:410:39 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:8:48:511:238 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 11:8:48:812:305 + Q9 finished at: 2022-4-2 11:8:48:812:388 + Q12-T2 execute opt: 'COMMIT'; + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 11:8:48:818:376 + Q12 finished at: 2022-4-2 11:8:48:823:676 +Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q4 failed at: 2022-4-2 11:8:48:910:718 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/rat_mda_step_rat_predicate_based_delete.txt b/result/result/myrocks_8.0.26/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..58b37a81 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,74 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:49:238:772 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:49:239:589 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:49:338:734 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:49:339:545 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:49:438:741 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 11:8:49:439:478 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:8:49:539:967 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 11:8:49:644:286 + Q11 finished at: 2022-4-2 11:8:49:646:966 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:49:754:66 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:8:50:444:511 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/rat_mda_step_rat_predicate_based_insert.txt b/result/result/myrocks_8.0.26/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..0317bf9e --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,71 @@ +#### db_type: myrocks #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:50:712:664 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 11:8:50:713:454 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:50:812:676 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 11:8:50:813:620 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:8:50:912:628 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 11:8:50:913:279 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 11:8:51:13:540 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + (4) expected_result: + (,) + *(5) expected_result: + (1,) + (6) expected_result: + (,) + + Q8 finished at: 2022-4-2 11:8:51:118:665 + Q11 finished at: 2022-4-2 11:8:51:122:535 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:8:51:223:163 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:8:51:924:212 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/rat_sda_dirty_read.txt b/result/result/myrocks_8.0.26/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..547b1b58 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:32:701:628 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:32:702:212 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:32:801:554 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:8:32:901:921 +Q5 finished at: 2022-4-2 11:8:32:905:59 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:33:8:155 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 11:8:33:9:194 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:33:16:916 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/serializable/rat_sda_intermediate_read.txt b/result/result/myrocks_8.0.26/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..aa2d252c --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:34:55:775 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:34:56:644 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:34:155:779 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 11:8:34:256:292 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:8:34:459:853 + Q6-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:34:462:664 + Q6 finished at: 2022-4-2 11:8:34:464:656 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:8:34:465:575 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:34:469:503 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/serializable/rat_sda_intermediate_read_committed.txt b/result/result/myrocks_8.0.26/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..fe1acea6 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:34:741:32 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:34:742:4 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:34:840:962 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 11:8:34:941:558 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 11:8:34:949:206 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:34:952:936 +Q7 finished at: 2022-4-2 11:8:34:955:483 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 11:8:34:956:324 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:34:963:44 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/serializable/rat_sda_lost_self_update.txt b/result/result/myrocks_8.0.26/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..cce36b90 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:36:327:698 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:36:328:546 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:36:427:656 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:8:36:528:279 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:36:533:617 +Q6 finished at: 2022-4-2 11:8:36:539:850 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:36:632:789 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:36:633:618 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:36:637:33 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/serializable/rat_sda_non_repeatable_read.txt b/result/result/myrocks_8.0.26/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..c38460ec --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:33:333:995 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:8:33:334:751 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:33:434:23 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 11:8:33:534:624 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:33:745:440 + Q4 finished at: 2022-4-2 11:8:33:745:462 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:33:757:815 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:33:758:772 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:33:762:322 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/result/result/myrocks_8.0.26/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..37bfe9df --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:35:310:795 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:8:35:311:793 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:35:410:746 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:8:35:511:467 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:35:517:229 + Q4 finished at: 2022-4-2 11:8:35:517:287 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:35:527:236 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 11:8:35:531:657 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:35:536:372 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/result/result/myrocks_8.0.26/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..a7a567a7 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: myrocks #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:35:813:337 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 11:8:35:814:487 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:35:913:217 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 11:8:36:13:960 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:36:18:997 + Q4 finished at: 2022-4-2 11:8:36:19:20 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 11:8:36:35:166 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 11:8:36:36:54 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:36:39:980 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/serializable/wat_dda_double_write_skew2_committed.txt b/result/result/myrocks_8.0.26/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..7235db7f --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:56:887:814 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:56:888:502 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:56:987:890 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:56:988:663 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:57:88:374 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:57:94:988 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:8:57:792:377 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/wat_dda_full_write_skew_c1.txt b/result/result/myrocks_8.0.26/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..60f3d62c --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:58:81:764 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:58:82:449 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:58:181:754 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:58:182:480 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:58:282:342 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:8:58:393:737 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:58:891:565 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/wat_dda_full_write_skew_c2.txt b/result/result/myrocks_8.0.26/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..22b166fc --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:59:186:271 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:59:187:119 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:59:286:197 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:8:59:286:954 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:8:59:386:840 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:59:494:87 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:8:59:990:461 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/wat_dda_full_write_skew_committed.txt b/result/result/myrocks_8.0.26/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..fabca386 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: myrocks #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:0:289:519 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:9:0:290:298 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:0:389:491 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:9:0:390:347 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:0:489:963 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:9:0:497:440 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:9:1:194:396 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew1_c1.txt b/result/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..64fe36f1 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:1:470:903 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:1:471:725 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:1:570:924 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:9:1:571:740 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:1:671:414 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:9:1:781:875 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:9:2:271:533 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew1_c2.txt b/result/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..3d3edfff --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:2:587:34 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 11:9:2:587:927 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:2:686:989 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:9:2:687:772 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:2:787:604 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:9:2:898:162 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:9:3:387:725 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew2_c1.txt b/result/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..1afc2bdf --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:3:713:916 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:9:3:714:673 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:3:813:916 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:9:3:814:774 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:3:914:418 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:9:4:20:941 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:9:4:518:303 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew2_c2.txt b/result/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..27602adb --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:4:827:884 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:9:4:828:589 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:4:927:893 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:9:4:928:725 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:5:28:452 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:9:5:135:659 +Q6 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-2 11:9:5:634:279 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew2_committed.txt b/result/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..adc7c8b5 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: myrocks #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:5:915:939 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:9:5:916:633 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:6:15:937 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 11:9:6:16:832 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 11:9:6:116:587 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:9:6:127:199 +Q7 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-2 11:9:6:823:549 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/wat_mda_step_wat_c1.txt b/result/result/myrocks_8.0.26/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..1692e477 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:7:127:479 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:9:7:128:209 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:7:227:484 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:9:7:228:229 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 11:9:7:327:569 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:9:7:328:398 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 11:9:7:428:94 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:9:7:532:822 + Q11 finished at: 2022-4-2 11:9:7:536:483 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:9:7:637:531 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:9:8:333:941 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/wat_mda_step_wat_c2.txt b/result/result/myrocks_8.0.26/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..57b438ca --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: myrocks #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:9:8:619:204 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:9:8:620:49 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:9:8:719:139 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 11:9:8:719:884 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 11:9:8:819:134 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 11:9:9:19:748 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 11:9:9:119:788 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 11:9:9:224:749 + Q10 finished at: 2022-4-2 11:9:9:229:470 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 11:9:9:429:526 +Q9 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-2 11:9:10:25:884 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/wat_sda_dirty_write_1abort.txt b/result/result/myrocks_8.0.26/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..886672f9 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:52:243:958 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:52:244:730 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:52:343:879 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 11:8:52:444:310 +Q5 finished at: 2022-4-2 11:8:52:447:761 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:52:554:450 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:8:52:555:312 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:8:52:589:809 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:52:591:629 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/serializable/wat_sda_dirty_write_2commit.txt b/result/result/myrocks_8.0.26/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..3c006f17 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:52:900:979 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:52:901:697 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:53:0:989 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:53:102:708 +Q5 finished at: 2022-4-2 11:8:53:108:891 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 11:8:53:210:469 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 11:8:53:211:370 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 11:8:53:226:450 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:53:229:620 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/serializable/wat_sda_full_write.txt b/result/result/myrocks_8.0.26/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..a2b56b9a --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:53:474:162 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:53:474:866 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:53:574:67 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 11:8:53:674:538 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:53:678:892 +Q6 finished at: 2022-4-2 11:8:53:681:788 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 11:8:53:780:627 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:8:53:781:509 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:53:783:255 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/serializable/wat_sda_full_write_committed.txt b/result/result/myrocks_8.0.26/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..46c245e2 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: myrocks #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:54:61:703 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:54:62:428 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:54:161:689 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 11:8:54:262:246 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:54:264:743 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:54:280:573 + Q5 finished at: 2022-4-2 11:8:54:290:421 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 11:8:54:291:460 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:54:299:181 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/serializable/wat_sda_lost_self_update_committed.txt b/result/result/myrocks_8.0.26/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..78a80ad3 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:56:371:131 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 11:8:56:371:864 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:56:471:108 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 11:8:56:571:788 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 11:8:56:575:665 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:56:579:220 + Q5 finished at: 2022-4-2 11:8:56:582:863 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 11:8:56:583:784 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 11:8:56:587:658 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/myrocks_8.0.26/serializable/wat_sda_lost_update_c1.txt b/result/result/myrocks_8.0.26/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..5ed58e0d --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:54:586:468 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:8:54:587:416 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:54:686:443 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-2 11:8:54:787:19 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 11:8:54:795:3 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q4 failed at: 2022-4-2 11:8:55:187:138 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/myrocks_8.0.26/serializable/wat_sda_lost_update_c2.txt b/result/result/myrocks_8.0.26/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..7caf2d21 --- /dev/null +++ b/result/result/myrocks_8.0.26/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,39 @@ +#### db_type: myrocks #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 11:8:55:479:84 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 11:8:55:479:866 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 11:8:55:579:107 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-2 11:8:55:679:657 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 11:8:55:892:492 + Q4 failed reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q4 failed at: 2022-4-2 11:8:56:79:839 + +Test Result: Rollback +Reason: [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.35-38]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/read-committed/iat_dda_read_skew_committed.txt b/result/result/mysql_8.0.20/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..30b7ba41 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:43:774:210 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:43:775:942 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:43:874:270 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:43:876:139 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:43:877:710 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:43:884:333 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:40:43:975:186 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:43:976:170 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:43:977:952 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:43:978:863 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/iat_dda_read_write_skew1_committed.txt b/result/result/mysql_8.0.20/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..a8d9b2af --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:44:255:190 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:44:256:724 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:44:359:510 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:44:361:141 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:44:362:538 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:44:369:54 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:44:456:190 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:44:462:330 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:44:464:513 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:44:465:340 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/iat_dda_write_skew.txt b/result/result/mysql_8.0.20/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..6fe72c8c --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:44:741:392 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:44:743:32 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:44:841:455 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:44:843:257 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:44:844:754 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:40:44:942:346 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:44:948:830 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:45:47:173 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:45:49:581 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:45:50:661 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/iat_dda_write_skew_committed.txt b/result/result/mysql_8.0.20/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..f7c38655 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:46:347:661 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:46:349:326 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:46:447:697 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:46:449:384 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:46:450:863 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:46:457:488 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:46:548:649 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:46:554:913 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:46:557:277 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:46:558:154 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/result/result/mysql_8.0.20/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..3bd95d86 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:45:368:754 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 17:40:45:370:644 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 17:40:45:372:228 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:40:45:468:758 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 17:40:45:470:714 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 17:40:45:472:206 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:45:477:882 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:45:576:86 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 17:40:45:578:817 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 17:40:45:580:513 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:45:581:452 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/result/result/mysql_8.0.20/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..9bf6680c --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:45:859:577 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 17:40:45:861:800 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:45:959:567 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 17:40:45:962:1 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 17:40:45:964:421 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:45:971:354 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 17:40:46:61:501 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:46:70:6 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 17:40:46:72:377 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:46:73:483 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/iat_mda_step_iat.txt b/result/result/mysql_8.0.20/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..ce340f85 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:46:823:250 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:40:46:825:386 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:46:924:79 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:46:926:475 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:47:23:157 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:40:47:25:321 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:40:47:124:498 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:40:47:225:93 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:40:47:328:444 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:47:429:676 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:47:534:153 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:47:629:338 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:40:47:631:778 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:47:632:822 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/result/result/mysql_8.0.20/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..061cc64c --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:51:440:451 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:51:442:366 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:51:540:516 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:51:542:188 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:51:549:325 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:40:51:640:648 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:40:51:642:881 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:40:51:644:462 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:51:651:352 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 17:40:51:741:901 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:40:51:742:976 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 17:40:51:745:336 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:40:51:746:373 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/result/result/mysql_8.0.20/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..8254711a --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:50:639:649 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:50:642:214 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:50:739:664 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:50:742:355 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:50:839:913 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 17:40:50:841:825 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:50:849:36 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:40:50:939:808 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:40:50:941:694 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:50:949:265 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 17:40:51:41:868 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:51:42:968 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 17:40:51:141:815 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 17:40:51:143:40 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:40:51:146:203 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:40:51:147:268 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/result/result/mysql_8.0.20/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..4b516abf --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:47:910:455 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 17:40:47:912:590 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:48:13:476 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:48:15:588 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:48:110:349 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:40:48:112:487 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:40:48:213:587 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:40:48:311:428 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:40:48:411:619 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:48:516:885 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:48:618:352 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:48:716:709 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:40:48:719:137 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:48:720:923 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/result/result/mysql_8.0.20/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..42203e93 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:48:981:47 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:40:48:984:14 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:49:81:695 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 17:40:49:83:908 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:49:181:107 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 17:40:49:183:411 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 17:40:49:282:139 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 17:40:49:388:35 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 17:40:49:481:900 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:49:586:607 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:49:686:966 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:49:786:958 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:40:49:789:469 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:49:790:394 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/result/result/mysql_8.0.20/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..e45e5ad9 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:52:22:706 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:40:52:24:614 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 17:40:52:26:414 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:40:52:122:733 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 17:40:52:127:285 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 17:40:52:129:3 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:52:147:64 + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:40:52:222:792 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 17:40:52:225:83 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:40:52:227:106 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:52:228:284 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 17:40:52:323:534 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 17:40:52:332:309 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 17:40:52:336:713 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 17:40:52:337:850 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/iat_mda_step_iat_uname_anomaly.txt b/result/result/mysql_8.0.20/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..65e52e7d --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:50:61:804 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 17:40:50:63:844 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:50:163:673 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 17:40:50:166:140 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:50:167:884 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:40:50:170:399 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 17:40:50:172:371 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:50:180:15 + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-1 17:40:50:261:731 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 17:40:50:263:895 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 17:40:50:265:341 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 17:40:50:267:98 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 17:40:50:268:542 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:50:279:329 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 17:40:50:363:41 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 17:40:50:364:28 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 17:40:50:366:651 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 17:40:50:367:822 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/iat_sda_lost_update_committed.txt b/result/result/mysql_8.0.20/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..374cd63d --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:43:301:803 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:40:43:303:442 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:43:401:817 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:43:403:744 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:43:410:98 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 17:40:43:502:605 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:43:510:741 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:43:512:448 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:43:513:814 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/iat_sda_non_repeatable_read_committed.txt b/result/result/mysql_8.0.20/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..20b4032f --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:42:834:341 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:42:836:254 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:42:934:300 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:42:936:87 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:42:942:910 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:40:43:35:191 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:43:36:163 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:43:37:866 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:43:38:779 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:43:39:599 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/rat_dda_double_write_skew1.txt b/result/result/mysql_8.0.20/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..fe17017a --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:21:57:517 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:21:59:574 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:21:157:412 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:21:159:216 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:21:160:933 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:21:363:529 +Q6 finished at: 2022-4-1 17:40:21:363:660 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:21:463:393 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:40:21:465:417 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:21:467:45 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-committed/rat_dda_double_write_skew1_committed.txt b/result/result/mysql_8.0.20/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..d76c40c1 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:21:743:975 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:21:745:953 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:21:843:820 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:21:845:479 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:21:846:952 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:21:853:340 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:21:944:817 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:21:952:284 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:40:21:955:352 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:21:956:178 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-committed/rat_dda_double_write_skew2.txt b/result/result/mysql_8.0.20/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..a8a49597 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:22:227:920 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:22:229:458 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:22:327:949 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:22:329:679 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:40:22:430:129 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:22:436:666 + Q5 finished at: 2022-4-1 17:40:22:436:734 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:22:537:263 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:22:539:144 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:22:539:916 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-committed/rat_dda_read_skew.txt b/result/result/mysql_8.0.20/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..e0a2e357 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:22:805:890 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:22:807:577 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:22:905:831 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:22:907:532 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:22:908:961 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:40:23:6:990 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:23:112:721 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:23:206:196 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:23:208:129 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:23:208:944 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-committed/rat_dda_read_skew2.txt b/result/result/mysql_8.0.20/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..ec0dcf9c --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:24:422:541 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:24:424:342 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:24:522:542 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:24:524:529 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:24:526:226 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:40:24:627:580 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:24:634:355 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:24:723:88 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:24:725:135 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:24:726:70 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-committed/rat_dda_read_skew2_committed.txt b/result/result/mysql_8.0.20/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..6a34338b --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:25:2:94 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:25:3:816 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:25:102:162 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:25:104:311 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:25:105:936 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:25:107:65 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:25:202:890 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:25:209:14 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:25:211:466 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:25:212:262 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/result/result/mysql_8.0.20/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..c733a9bf --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:23:474:410 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:40:23:476:291 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:23:575:520 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:23:577:167 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:23:578:440 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:23:585:79 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:40:23:675:515 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:23:676:471 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 17:40:23:678:347 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:23:679:173 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/result/result/mysql_8.0.20/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..72d206be --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:23:942:580 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:40:23:945:195 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:24:43:434 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 17:40:24:45:96 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 17:40:24:46:410 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:24:58:843 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:40:24:143:830 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:24:144:886 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 17:40:24:146:898 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:24:147:760 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/rat_dda_write_read_skew.txt b/result/result/mysql_8.0.20/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..3f9f30a5 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:19:891:1 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:19:892:678 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:19:991:5 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:19:992:753 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:19:994:310 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:40:20:92:495 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:20:197:561 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:20:297:390 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:20:299:473 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:20:300:262 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/rat_dda_write_read_skew_committed.txt b/result/result/mysql_8.0.20/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..41f6b904 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:20:577:791 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:20:579:499 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:20:679:573 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:20:681:313 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:20:682:831 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:20:688:686 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:40:20:780:421 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:20:786:799 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:20:788:817 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:20:789:638 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-committed/rat_mda_step_rat.txt b/result/result/mysql_8.0.20/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..7f607c36 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:25:478:13 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:25:480:35 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:25:577:913 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:25:579:764 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:25:581:773 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:40:25:679:779 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:40:25:681:504 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 17:40:25:683:454 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 17:40:25:779:383 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:25:787:218 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:25:883:744 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:25:983:901 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:40:25:987:432 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:25:988:388 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/rat_mda_step_rat_long_fork.txt b/result/result/mysql_8.0.20/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..c723348c --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-1 17:40:26:255:828 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 17:40:26:258:487 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-1 17:40:26:355:730 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 17:40:26:357:463 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:26:455:632 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 17:40:26:458:531 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:40:26:461:61 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:40:26:555:584 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:40:26:557:408 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:40:26:658:687 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:40:26:765:797 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:26:861:590 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:40:26:956:62 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:26:957:150 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:40:26:959:667 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:40:26:960:558 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/result/result/mysql_8.0.20/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..51f42de0 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:27:229:291 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:27:230:812 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:27:329:286 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:27:330:988 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:40:27:332:963 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:40:27:429:344 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:40:27:430:936 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 17:40:27:433:751 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:40:27:532:872 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:27:539:179 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:27:637:598 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:27:737:685 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:40:27:739:851 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:27:741:305 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/result/result/mysql_8.0.20/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..298b52a7 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:28:16:120 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 17:40:28:18:499 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:28:115:950 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 17:40:28:117:544 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:40:28:121:428 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:40:28:216:31 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 17:40:28:217:629 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 17:40:28:219:489 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:40:28:317:496 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:28:323:109 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:28:421:825 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:28:524:273 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:40:28:527:990 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:28:529:95 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/rat_sda_dirty_read.txt b/result/result/mysql_8.0.20/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..1986c857 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:15:890:980 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:15:892:589 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:15:993:861 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:15:995:742 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:40:16:94:495 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:16:190:828 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:40:16:192:564 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:16:193:381 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-committed/rat_sda_intermediate_read.txt b/result/result/mysql_8.0.20/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..a7e8469b --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:17:154:927 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:17:156:654 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:17:254:999 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:17:256:983 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 17:40:17:356:724 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:17:455:302 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:17:566:305 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:40:17:567:993 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:17:569:950 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-committed/rat_sda_intermediate_read_committed.txt b/result/result/mysql_8.0.20/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..0cf5e574 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:17:848:79 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:17:849:656 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:17:948:99 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:17:949:820 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:17:950:718 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 17:40:18:48:940 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:18:55:929 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:40:18:57:528 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:18:59:232 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-committed/rat_sda_lost_self_update.txt b/result/result/mysql_8.0.20/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..f240e0fd --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:19:301:868 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:19:303:666 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:19:401:780 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:40:19:502:910 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:40:19:510:767 + Q4 finished at: 2022-4-1 17:40:19:510:909 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:19:608:883 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:19:610:797 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:19:612:479 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-committed/rat_sda_non_repeatable_read.txt b/result/result/mysql_8.0.20/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..f88e19f1 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:16:468:343 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:16:470:207 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:16:568:157 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:16:569:902 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:40:16:669:308 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:16:775:69 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:16:868:607 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:16:870:357 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:16:871:302 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/result/result/mysql_8.0.20/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..ff494e5b --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:18:341:911 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:40:18:343:853 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:18:442:80 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:18:443:753 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:18:452:393 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:40:18:544:640 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:18:545:495 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 17:40:18:549:357 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:18:550:300 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/result/result/mysql_8.0.20/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..8a54dac0 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:18:813:974 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:40:18:816:480 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:18:915:494 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 17:40:18:917:236 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:18:923:630 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:40:19:15:104 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:19:16:0 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 17:40:19:17:632 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:19:18:350 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/wat_dda_double_write_skew2_committed.txt b/result/result/mysql_8.0.20/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..20a66e32 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:32:811:166 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:32:814:255 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:32:911:631 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:32:913:625 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:40:33:16:894 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:33:26:994 +Q8 finished at: 2022-4-1 17:40:33:27:6 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:33:34:272 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:33:37:176 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:33:38:144 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-committed/wat_dda_full_write_skew_c1.txt b/result/result/mysql_8.0.20/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..d729419c --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:33:314:306 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:33:316:20 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:33:415:734 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:33:417:608 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:40:33:517:654 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:33:621:671 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:40:34:120:473 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/read-committed/wat_dda_full_write_skew_c2.txt b/result/result/mysql_8.0.20/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..a603fdd5 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:34:415:439 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:34:417:262 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:34:515:115 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:34:516:853 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:40:34:615:687 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:34:733:699 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:40:35:219:901 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/read-committed/wat_dda_full_write_skew_committed.txt b/result/result/mysql_8.0.20/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..51c32066 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:35:498:266 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:35:499:937 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:35:598:226 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:35:600:340 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:40:35:699:497 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:35:705:227 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:40:36:403:84 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew1_c1.txt b/result/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..f37cb41b --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:36:678:591 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:36:680:243 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:36:778:582 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:36:780:505 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:36:782:412 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:36:984:743 +Q6 finished at: 2022-4-1 17:40:36:984:792 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:36:990:533 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:36:993:583 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:36:994:533 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew1_c2.txt b/result/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..8e5c8913 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:37:265:517 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:37:267:369 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:37:364:469 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:37:366:303 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:37:367:954 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:37:570:542 +Q6 finished at: 2022-4-1 17:40:37:570:573 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:37:669:435 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:37:672:194 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:37:673:83 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew2_c1.txt b/result/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..17b53bf2 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:37:939:77 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:37:940:754 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:38:39:8 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:38:40:786 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:40:38:139:821 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:38:146:59 + Q5 finished at: 2022-4-1 17:40:38:146:72 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:38:244:715 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:38:247:219 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:38:248:174 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew2_c2.txt b/result/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..5611e392 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:38:514:709 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:38:516:569 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:38:618:557 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:38:620:415 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:40:38:716:402 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:38:920:194 + Q5 finished at: 2022-4-1 17:40:38:920:225 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:38:925:816 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:38:928:176 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:38:929:179 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew2_committed.txt b/result/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..bdcf551c --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:39:190:504 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:39:192:207 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:39:290:544 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:39:292:414 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:39:391:408 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:39:397:728 + Q5 finished at: 2022-4-1 17:40:39:397:769 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:39:405:143 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:39:407:25 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:39:407:915 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/wat_mda_step_wat_c1.txt b/result/result/mysql_8.0.20/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..58074662 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:39:677:713 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:39:679:316 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:39:777:870 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:39:780:117 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:40:39:877:899 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:40:39:880:124 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-1 17:40:39:979:319 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:40:84:249 + Q11 finished at: 2022-4-1 17:40:40:84:270 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:40:184:366 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:40:40:892:678 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/read-committed/wat_mda_step_wat_c2.txt b/result/result/mysql_8.0.20/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..331a0499 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:41:161:985 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:41:163:597 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:41:261:892 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:41:263:657 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:41:362:212 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:40:41:563:79 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-1 17:40:41:663:267 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:41:768:371 + Q8 finished at: 2022-4-1 17:40:41:768:384 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:41:967:628 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:40:42:566:315 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/read-committed/wat_sda_dirty_write_1abort.txt b/result/result/mysql_8.0.20/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..4f6c06b9 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:28:797:597 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:28:799:409 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:28:897:606 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-1 17:40:28:998:137 +Q5 finished at: 2022-4-1 17:40:29:2:388 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:29:103:414 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:40:29:105:394 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:40:29:130:212 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:29:131:260 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-committed/wat_sda_dirty_write_2commit.txt b/result/result/mysql_8.0.20/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..09637b67 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:29:375:328 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:29:377:97 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:29:475:388 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:40:29:580:856 + Q4 finished at: 2022-4-1 17:40:29:580:863 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:29:681:49 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:40:29:683:282 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:40:29:712:910 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:29:715:362 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-committed/wat_sda_full_write.txt b/result/result/mysql_8.0.20/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..b841677d --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:29:963:442 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:29:965:119 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:30:63:538 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 17:40:30:164:826 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:40:30:172:905 + Q4 finished at: 2022-4-1 17:40:30:172:957 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:30:269:21 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:40:30:271:269 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:30:272:152 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-committed/wat_sda_full_write_committed.txt b/result/result/mysql_8.0.20/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..d853b4dd --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:30:541:214 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:30:542:884 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:30:641:207 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 17:40:30:742:84 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:30:748:958 + Q4 finished at: 2022-4-1 17:40:30:749:11 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:30:755:567 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:40:30:757:212 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:30:757:970 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-committed/wat_sda_lost_self_update_committed.txt b/result/result/mysql_8.0.20/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..4c1c5e1a --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:32:326:409 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:32:328:422 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:32:426:243 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:40:32:527:179 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-1 17:40:32:533:615 +Q7 finished at: 2022-4-1 17:40:32:533:750 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:32:541:442 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:32:543:400 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:32:544:293 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-committed/wat_sda_lost_update_c1.txt b/result/result/mysql_8.0.20/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..1a98cf28 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:31:30:713 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:40:31:32:434 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:31:130:886 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:31:132:780 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:31:336:301 +Q5 finished at: 2022-4-1 17:40:31:336:374 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:40:31:342:485 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:31:344:918 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:31:345:863 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-committed/wat_sda_lost_update_c2.txt b/result/result/mysql_8.0.20/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..c8c85c62 --- /dev/null +++ b/result/result/mysql_8.0.20/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:31:623:518 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:40:31:625:306 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:31:723:592 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:31:725:645 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:40:31:931:279 + Q6 finished at: 2022-4-1 17:40:31:931:602 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:32:30:442 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:32:32:443 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:32:34:87 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/iat_dda_read_skew_committed.txt b/result/result/mysql_8.0.20/read-uncommitted/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..477a84a5 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:6:826:866 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:6:828:598 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:6:927:53 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:6:928:821 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:6:930:353 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:6:936:966 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:40:7:28:523 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:7:29:561 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:7:31:360 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:7:32:280 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/iat_dda_read_write_skew1_committed.txt b/result/result/mysql_8.0.20/read-uncommitted/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..da363c98 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:7:323:223 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:7:324:987 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:7:424:32 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:7:425:952 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:7:427:488 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:7:435:62 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:7:524:469 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:7:531:562 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:7:533:325 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:7:534:962 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew.txt b/result/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew.txt new file mode 100644 index 00000000..b7c82da9 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:7:813:987 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:7:815:673 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:7:913:997 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:7:915:718 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:7:917:258 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:40:8:14:812 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:8:21:505 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:8:123:498 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:8:126:739 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:8:127:937 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew_committed.txt b/result/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..2a5f4641 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:9:396:707 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:9:398:285 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:9:496:639 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:9:498:294 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:9:499:851 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:9:508:219 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:9:597:593 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:9:604:144 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:9:606:78 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:9:607:17 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt b/result/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..fdd1bbe8 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:8:393:222 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 17:40:8:395:259 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 17:40:8:397:10 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:40:8:493:84 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 17:40:8:495:116 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 17:40:8:496:571 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:8:503:942 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:8:598:422 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 17:40:8:601:118 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 17:40:8:602:779 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:8:603:591 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/result/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..32b3ae6f --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:8:891:288 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 17:40:8:893:541 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:8:991:348 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 17:40:8:993:784 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 17:40:8:996:69 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:9:3:928 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 17:40:9:93:245 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:9:100:217 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 17:40:9:102:214 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:9:103:752 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat.txt b/result/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat.txt new file mode 100644 index 00000000..e045e94e --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:9:887:349 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:40:9:889:366 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:9:987:371 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:9:989:375 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:10:87:580 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:40:10:89:732 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:40:10:188:262 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:40:10:288:399 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:40:10:388:502 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:10:493:435 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:10:593:802 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:10:694:521 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:40:10:696:870 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:10:697:785 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt b/result/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..248193a8 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:14:522:914 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:14:524:834 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:14:623:141 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:14:624:842 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:14:630:942 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:40:14:723:29 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:40:14:725:496 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:40:14:727:345 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:14:741:803 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 17:40:14:824:207 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:40:14:825:279 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 17:40:14:827:749 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:40:14:828:641 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt b/result/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..cf4a4f32 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:13:731:403 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:13:733:945 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:13:831:332 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:13:834:78 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:13:931:394 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 17:40:13:933:148 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:13:940:425 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:40:14:31:493 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:40:14:33:321 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:14:40:772 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 17:40:14:133:446 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:14:134:589 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 17:40:14:237:288 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 17:40:14:238:808 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:40:14:243:362 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:40:14:244:368 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt b/result/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..6e1f37b5 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:10:977:933 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 17:40:10:979:939 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:11:77:462 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:11:79:656 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:11:177:570 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:40:11:179:675 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:40:11:278:708 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:40:11:380:283 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:40:11:478:747 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:11:584:444 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:11:688:160 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:11:784:536 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:40:11:786:622 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:11:787:844 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt b/result/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..7404e52d --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:12:59:257 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:40:12:62:249 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:12:159:163 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 17:40:12:161:215 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:12:259:213 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 17:40:12:261:310 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 17:40:12:360:30 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 17:40:12:460:226 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 17:40:12:560:133 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:40:12:665:725 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:12:765:470 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:12:865:602 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:40:12:869:58 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:12:870:2 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt b/result/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..67722dfa --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:15:132:593 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:40:15:134:730 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 17:40:15:136:893 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:40:15:232:934 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 17:40:15:235:601 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 17:40:15:237:353 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:15:244:628 + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:40:15:332:690 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 17:40:15:335:173 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:40:15:337:283 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:15:338:280 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 17:40:15:433:711 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 17:40:15:441:25 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 17:40:15:443:352 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 17:40:15:445:10 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt b/result/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..9800e172 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:13:152:23 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 17:40:13:153:960 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:13:252:29 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 17:40:13:254:496 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:13:256:167 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:40:13:258:160 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 17:40:13:259:654 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:13:266:525 + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-1 17:40:13:352:45 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 17:40:13:354:423 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 17:40:13:356:62 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 17:40:13:357:915 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 17:40:13:359:283 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:40:13:365:617 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 17:40:13:453:513 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 17:40:13:454:557 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 17:40:13:457:119 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 17:40:13:458:114 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/iat_sda_lost_update_committed.txt b/result/result/mysql_8.0.20/read-uncommitted/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..292b57b8 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:6:333:610 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:40:6:335:263 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:6:433:566 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:6:435:358 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:6:447:846 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 17:40:6:534:503 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:6:542:540 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:6:544:859 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:6:545:794 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/iat_sda_non_repeatable_read_committed.txt b/result/result/mysql_8.0.20/read-uncommitted/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..0504d43b --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:5:854:385 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:5:855:975 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:5:954:380 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:5:956:152 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:5:964:276 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:40:6:55:277 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:6:56:173 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:6:57:769 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:6:58:614 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:6:59:389 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/rat_dda_double_write_skew1.txt b/result/result/mysql_8.0.20/read-uncommitted/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..8a7c4803 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/rat_dda_double_write_skew1.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:43:833:232 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:43:835:98 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:43:933:132 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:43:934:977 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:39:43:936:597 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:39:44:141:732 +Q6 finished at: 2022-4-1 17:39:44:141:792 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:44:239:636 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:39:44:242:685 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:44:243:535 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/rat_dda_double_write_skew1_committed.txt b/result/result/mysql_8.0.20/read-uncommitted/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..10a5748f --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:44:529:880 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:44:531:601 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:44:629:807 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:44:631:572 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:39:44:633:373 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:44:641:689 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 17:39:44:730:780 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:44:736:877 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:39:44:739:198 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:44:740:138 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/rat_dda_double_write_skew2.txt b/result/result/mysql_8.0.20/read-uncommitted/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..89be7cb3 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/rat_dda_double_write_skew2.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:44:997:822 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:44:999:448 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:45:97:765 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:45:99:524 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:39:45:200:480 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:45:206:816 + Q5 finished at: 2022-4-1 17:39:45:206:876 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:39:45:303:507 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:45:306:282 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:45:307:266 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew.txt b/result/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew.txt new file mode 100644 index 00000000..0137f173 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:45:584:923 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:39:45:586:606 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:45:684:972 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:45:686:706 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:39:45:688:258 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:39:45:786:201 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:39:45:891:940 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:45:985:438 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:45:987:478 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:45:988:330 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew2.txt b/result/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew2.txt new file mode 100644 index 00000000..0c5eddf9 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew2.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:47:226:388 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:47:228:91 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:47:327:184 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:39:47:329:215 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:39:47:330:953 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:39:47:430:931 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:47:440:49 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:39:47:526:773 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:47:528:821 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:47:529:780 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew2_committed.txt b/result/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..8ad1094c --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew2_committed.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:47:808:337 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:47:810:69 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:47:911:10 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:39:47:912:808 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:39:47:914:294 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:47:915:205 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:39:48:11:680 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:48:19:580 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:48:22:499 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:48:23:502 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt b/result/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..b5ff46a2 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:46:275:991 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:39:46:277:929 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:46:382:27 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:46:383:840 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:39:46:385:392 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:46:392:277 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:39:46:477:142 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:46:478:64 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 17:39:46:479:909 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:46:480:733 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt b/result/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..8fcc0981 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:46:751:597 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:39:46:754:336 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:46:851:383 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 17:39:46:852:934 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 17:39:46:854:303 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:46:863:884 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:39:46:952:521 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:46:953:402 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 17:39:46:955:356 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:46:956:409 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/rat_dda_write_read_skew.txt b/result/result/mysql_8.0.20/read-uncommitted/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..150dd007 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:42:629:945 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:42:631:733 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:42:729:877 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:42:731:587 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:39:42:733:230 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:39:42:830:860 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:39:42:935:539 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:43:38:156 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:43:40:192 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:43:41:56 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/rat_dda_write_read_skew_committed.txt b/result/result/mysql_8.0.20/read-uncommitted/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..c9813c8c --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:43:326:747 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:43:328:401 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:43:426:897 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:43:428:961 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:39:43:430:689 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:43:437:575 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:39:43:528:49 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:43:533:988 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:43:536:506 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:43:538:169 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat.txt b/result/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat.txt new file mode 100644 index 00000000..b47261a0 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:48:297:107 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:48:298:785 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:48:397:82 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:48:399:148 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + (3) expected_result: + (0,0) + (4) expected_result: + (0,0) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:39:48:400:951 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:39:48:497:440 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:39:48:499:479 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 17:39:48:501:655 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + *(4) expected_result: + (2,1) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 17:39:48:598:447 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:39:48:604:583 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:39:48:702:268 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:39:48:802:397 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:39:48:805:401 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:39:48:806:254 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat_long_fork.txt b/result/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..4384965e --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,207 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-1 17:39:49:70:157 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 17:39:49:72:745 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-1 17:39:49:170:313 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 17:39:49:172:370 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:39:49:269:832 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 17:39:49:272:775 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + *(7) expected_result: + (0,1) + *(8) expected_result: + (0,1) + *(9) expected_result: + (0,1) + (10) expected_result: + (0,0) + (11) expected_result: + (0,0) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + (14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:39:49:275:702 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:39:49:372:581 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:39:49:374:575 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:39:49:472:182 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:39:49:576:318 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:39:49:681:15 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:39:49:770:326 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:39:49:771:475 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:39:49:774:505 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:39:49:775:363 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt b/result/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..5f4a01c4 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:50:65:653 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:50:67:202 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:50:165:660 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:50:167:457 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:39:50:169:402 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:39:50:265:743 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:39:50:267:480 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 17:39:50:269:538 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + (3) expected_result: + (1,) + *(4) expected_result: + (,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:39:50:367:234 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:39:50:374:16 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:39:50:471:785 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:39:50:573:688 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:39:50:575:770 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:39:50:577:729 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt b/result/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..9e0a0fc9 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:50:846:572 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 17:39:50:848:910 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:50:946:728 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 17:39:50:948:411 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:39:50:950:518 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:39:51:46:832 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 17:39:51:48:412 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + (4) expected_result: + (,) + *(5) expected_result: + (1,) + (6) expected_result: + (,) + + Q8 finished at: 2022-4-1 17:39:51:50:205 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:39:51:148:12 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:39:51:154:124 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:39:51:252:223 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:39:51:353:698 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:39:51:355:904 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:39:51:356:836 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/rat_sda_dirty_read.txt b/result/result/mysql_8.0.20/read-uncommitted/rat_sda_dirty_read.txt new file mode 100644 index 00000000..14a67a80 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/rat_sda_dirty_read.txt @@ -0,0 +1,45 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:38:681:749 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:38:728:904 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:38:781:667 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:39:38:784:510 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:39:38:884:460 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:38:981:744 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:39:38:984:441 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:39:38:985:337 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/rat_sda_intermediate_read.txt b/result/result/mysql_8.0.20/read-uncommitted/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..d854b0f0 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/rat_sda_intermediate_read.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:39:920:717 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:39:922:316 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:40:20:713 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:39:40:22:658 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 17:39:40:124:431 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:40:221:187 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:40:326:344 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:39:40:328:689 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:40:329:445 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/rat_sda_intermediate_read_committed.txt b/result/result/mysql_8.0.20/read-uncommitted/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..9d80ed59 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:40:589:388 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:40:590:920 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:40:689:556 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:39:40:691:661 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:39:40:692:779 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 17:39:40:790:634 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:40:801:155 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:39:40:803:543 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:40:804:400 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/rat_sda_lost_self_update.txt b/result/result/mysql_8.0.20/read-uncommitted/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..183ba2af --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:42:46:206 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:42:48:285 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:42:147:672 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:39:42:248:5 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-1 17:39:42:254:419 +Q6 finished at: 2022-4-1 17:39:42:254:459 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:39:42:352:863 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:39:42:354:771 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:42:356:109 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-uncommitted/rat_sda_non_repeatable_read.txt b/result/result/mysql_8.0.20/read-uncommitted/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..7703699d --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/rat_sda_non_repeatable_read.txt @@ -0,0 +1,58 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:39:251:736 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:39:39:253:862 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:39:351:455 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:39:39:353:220 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:39:39:452:462 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:39:557:141 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:39:652:739 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:39:39:654:613 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:39:655:480 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/result/result/mysql_8.0.20/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..3434dab0 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:41:67:322 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:39:41:69:302 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:41:167:216 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:39:41:169:93 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:39:41:182:198 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:39:41:268:726 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:41:269:725 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 17:39:41:271:340 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:41:272:234 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/result/result/mysql_8.0.20/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..73456bb7 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:41:575:649 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:39:41:578:224 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:41:675:821 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 17:39:41:677:584 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:39:41:684:10 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:39:41:776:680 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:41:777:495 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 17:39:41:779:79 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:41:779:909 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/wat_dda_double_write_skew2_committed.txt b/result/result/mysql_8.0.20/read-uncommitted/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..df85a5d4 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:55:593:938 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:55:595:533 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:55:694:10 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:55:695:841 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:39:55:794:942 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:39:55:800:887 + Q5 finished at: 2022-4-1 17:39:55:800:911 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:55:806:851 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:55:809:483 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:55:810:313 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/wat_dda_full_write_skew_c1.txt b/result/result/mysql_8.0.20/read-uncommitted/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..3e9c4489 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:56:78:714 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:56:80:295 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:56:178:895 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:56:180:828 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:39:56:324:376 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:39:56:383:898 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:39:56:927:783 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/read-uncommitted/wat_dda_full_write_skew_c2.txt b/result/result/mysql_8.0.20/read-uncommitted/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..06c93f4b --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:57:199:724 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:57:201:344 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:57:299:599 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:57:301:243 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:39:57:401:49 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:39:57:505:341 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:39:58:4:636 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/read-uncommitted/wat_dda_full_write_skew_committed.txt b/result/result/mysql_8.0.20/read-uncommitted/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..a5639f2e --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:58:274:340 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:58:276:82 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:58:374:272 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:58:376:210 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:39:58:475:509 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:58:487:155 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:39:59:182:225 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew1_c1.txt b/result/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..75e9d872 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:59:472:577 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:39:59:474:229 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:59:575:607 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:39:59:577:348 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:39:59:578:985 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:39:59:780:453 +Q6 finished at: 2022-4-1 17:39:59:780:490 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:59:794:56 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:39:59:796:290 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:39:59:797:269 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew1_c2.txt b/result/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..bd8bb911 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:0:78:939 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:0:80:761 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:0:183:683 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:0:185:525 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:0:187:129 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:0:389:242 +Q6 finished at: 2022-4-1 17:40:0:389:313 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:0:492:693 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:0:494:946 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:0:496:67 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew2_c1.txt b/result/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..e6af5785 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:0:777:705 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:0:779:369 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:0:891:423 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:0:893:299 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:40:0:979:991 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:0:991:431 +Q7 finished at: 2022-4-1 17:40:0:991:506 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:1:96:797 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:1:98:993 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:1:100:54 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew2_c2.txt b/result/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..faaa43cc --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:1:454:914 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:1:456:613 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:1:555:594 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:1:558:660 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:40:1:660:418 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:1:862:820 +Q8 finished at: 2022-4-1 17:40:1:863:225 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:1:870:777 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:1:872:856 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:1:873:781 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew2_committed.txt b/result/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..51f9bb82 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:2:181:45 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:2:183:4 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:2:281:674 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:40:2:283:545 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:2:384:228 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:2:391:19 + Q5 finished at: 2022-4-1 17:40:2:391:32 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:2:397:974 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:2:400:68 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:2:402:52 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/wat_mda_step_wat_c1.txt b/result/result/mysql_8.0.20/read-uncommitted/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..c6b6be40 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:2:685:118 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:2:686:998 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:2:785:25 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:2:786:749 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:40:2:885:393 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:40:2:887:437 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-1 17:40:2:988:770 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:40:3:91:707 + Q8 finished at: 2022-4-1 17:40:3:91:696 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:3:190:779 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:40:3:891:829 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/read-uncommitted/wat_mda_step_wat_c2.txt b/result/result/mysql_8.0.20/read-uncommitted/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..d1dcf17d --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:4:166:194 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:4:168:44 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:4:266:160 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:4:267:900 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:40:4:366:205 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:40:4:567:463 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-1 17:40:4:667:558 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:4:773:53 + Q10 finished at: 2022-4-1 17:40:4:773:100 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:40:4:972:580 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:40:5:572:326 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/read-uncommitted/wat_sda_dirty_write_1abort.txt b/result/result/mysql_8.0.20/read-uncommitted/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..d144d54e --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:51:619:701 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:51:621:288 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:51:719:849 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-1 17:39:51:820:253 +Q5 finished at: 2022-4-1 17:39:51:822:958 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:51:926:925 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:39:51:929:393 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:39:51:951:194 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:51:952:125 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-uncommitted/wat_sda_dirty_write_2commit.txt b/result/result/mysql_8.0.20/read-uncommitted/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..6da04e2c --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:52:204:716 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:52:206:304 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:52:304:769 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:39:52:410:410 + Q4 finished at: 2022-4-1 17:39:52:410:472 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:39:52:510:582 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:39:52:512:812 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:39:52:534:171 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:52:535:69 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-uncommitted/wat_sda_full_write.txt b/result/result/mysql_8.0.20/read-uncommitted/wat_sda_full_write.txt new file mode 100644 index 00000000..a9aa7cb5 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:52:786:722 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:52:788:377 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:52:886:685 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 17:39:52:987:623 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:39:52:997:172 + Q4 finished at: 2022-4-1 17:39:52:997:163 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:39:53:93:286 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:39:53:95:175 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:53:96:625 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-uncommitted/wat_sda_full_write_committed.txt b/result/result/mysql_8.0.20/read-uncommitted/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..36e3b654 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:53:363:712 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:53:365:761 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:53:463:620 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 17:39:53:564:485 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:53:570:956 + Q4 finished at: 2022-4-1 17:39:53:571:21 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:39:53:577:44 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:39:53:579:341 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:53:580:197 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-uncommitted/wat_sda_lost_self_update_committed.txt b/result/result/mysql_8.0.20/read-uncommitted/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..b00112fb --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:55:97:661 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:39:55:99:275 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:55:197:702 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:39:55:298:737 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:55:305:633 + Q4 finished at: 2022-4-1 17:39:55:305:712 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:39:55:312:522 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:39:55:314:177 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:55:315:819 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/read-uncommitted/wat_sda_lost_update_c1.txt b/result/result/mysql_8.0.20/read-uncommitted/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..4abfdd13 --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:53:842:95 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:39:53:843:805 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:53:941:978 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:39:53:943:582 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:39:54:148:195 +Q5 finished at: 2022-4-1 17:39:54:148:203 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:39:54:155:277 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:39:54:157:35 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:54:158:492 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/read-uncommitted/wat_sda_lost_update_c2.txt b/result/result/mysql_8.0.20/read-uncommitted/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..694305aa --- /dev/null +++ b/result/result/mysql_8.0.20/read-uncommitted/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:39:54:424:768 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:39:54:426:385 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:39:54:524:680 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:39:54:526:881 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:39:54:730:776 + Q6 finished at: 2022-4-1 17:39:54:730:752 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:39:54:830:937 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:39:54:832:815 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:39:54:834:745 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/repeatable-read/iat_dda_read_skew_committed.txt b/result/result/mysql_8.0.20/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..73966363 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:20:925:714 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:20:927:605 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:21:26:49 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:21:27:855 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:21:29:318 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:21:36:421 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:41:21:126:615 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:21:127:670 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:21:130:115 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:21:131:57 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/iat_dda_read_write_skew1_committed.txt b/result/result/mysql_8.0.20/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..4bfbb67c --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:21:398:261 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:21:400:123 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:21:500:613 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:21:502:707 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:21:504:354 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:21:515:760 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:41:21:600:656 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:21:607:540 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:21:609:468 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:21:611:427 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew.txt b/result/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..47755e54 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:21:887:33 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:21:888:752 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:21:987:283 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:21:989:286 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:21:990:864 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:41:22:87:965 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:22:93:993 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:22:192:411 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:22:195:215 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:22:196:184 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew_committed.txt b/result/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..04a9228e --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:23:445:726 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:23:447:501 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:23:545:756 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:23:547:542 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:23:549:9 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:23:555:483 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:41:23:646:872 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:23:656:882 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:23:659:540 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:23:660:569 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/result/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..9c350e70 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:22:466:988 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 17:41:22:469:190 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 17:41:22:470:919 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:41:22:567:99 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 17:41:22:569:639 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 17:41:22:571:566 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:22:578:441 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:22:676:3 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 17:41:22:679:98 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 17:41:22:680:928 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:22:681:879 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/result/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..20a776ed --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:22:956:213 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 17:41:22:958:708 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:23:59:645 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 17:41:23:62:72 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 17:41:23:64:565 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:23:70:692 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 17:41:23:158:79 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:23:163:692 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 17:41:23:166:333 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:23:167:261 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat.txt b/result/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..976074be --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:23:921:833 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:41:23:923:973 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:24:21:862 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:41:24:24:234 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:41:24:122:195 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:41:24:124:267 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:41:24:223:185 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:41:24:324:514 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:41:24:423:297 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:41:24:527:717 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:24:627:593 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:24:729:275 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:41:24:732:379 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:24:733:423 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/result/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..e5b3ef53 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:28:568:514 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:28:576:755 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:28:668:537 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:41:28:670:298 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:28:676:209 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:28:768:719 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:41:28:771:138 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:41:28:772:877 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:28:782:26 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 17:41:28:869:681 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:41:28:870:768 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 17:41:28:872:873 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:41:28:873:768 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/result/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..6499ed26 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:27:781:36 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:27:783:766 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:27:881:659 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:27:884:628 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:41:27:981:126 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 17:41:27:983:12 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:27:994:250 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:41:28:81:380 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:41:28:83:467 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:28:89:921 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 17:41:28:183:362 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:28:184:699 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 17:41:28:283:283 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 17:41:28:284:809 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:41:28:287:964 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:41:28:289:10 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/result/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..21a264de --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:25:16:96 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 17:41:25:18:5 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:25:116:203 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:41:25:118:513 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:41:25:216:182 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:41:25:218:338 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:41:25:317:184 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:41:25:417:141 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:41:25:517:211 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:41:25:622:959 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:25:723:140 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:25:823:660 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:41:25:826:887 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:25:828:239 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/result/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..c3312682 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:26:92:118 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:41:26:95:43 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:26:193:50 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 17:41:26:195:209 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:41:26:292:167 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 17:41:26:294:370 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 17:41:26:393:206 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 17:41:26:493:243 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 17:41:26:593:114 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:41:26:698:792 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:26:798:168 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:26:900:198 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:41:26:902:865 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:26:903:950 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/result/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..66d3b6cb --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:29:141:92 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:41:29:143:46 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 17:41:29:144:839 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:41:29:240:921 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 17:41:29:243:103 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 17:41:29:244:672 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:29:252:368 + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:41:29:340:946 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 17:41:29:343:15 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:41:29:344:961 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:29:345:937 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 17:41:29:441:822 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 17:41:29:448:398 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 17:41:29:450:805 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 17:41:29:452:247 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/result/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..1182f47d --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:27:195:256 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 17:41:27:197:427 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:27:295:238 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 17:41:27:297:615 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:27:299:95 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:41:27:300:959 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 17:41:27:302:499 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:27:309:448 + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-1 17:41:27:395:332 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 17:41:27:397:765 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 17:41:27:399:466 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 17:41:27:401:529 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 17:41:27:402:977 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:27:411:361 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 17:41:27:496:715 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 17:41:27:497:882 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 17:41:27:500:265 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 17:41:27:501:214 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/iat_sda_lost_update_committed.txt b/result/result/mysql_8.0.20/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..6ae309b1 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:20:438:682 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:41:20:440:302 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:20:538:633 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:41:20:540:369 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:20:547:567 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 17:41:20:639:702 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:20:646:556 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:20:648:540 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:20:650:74 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/result/result/mysql_8.0.20/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..6f93c59e --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:19:967:2 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:19:968:735 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:20:67:605 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:41:20:69:469 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:20:81:370 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:41:20:167:790 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:20:168:828 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:20:170:758 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:20:171:636 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:20:172:470 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/rat_dda_double_write_skew1.txt b/result/result/mysql_8.0.20/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..f0df128f --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:58:16:0 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:58:17:883 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:58:115:771 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:58:117:479 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:58:119:93 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:40:58:321:891 + Q7 finished at: 2022-4-1 17:40:58:322:330 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:58:421:882 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:40:58:423:843 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:58:424:713 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/rat_dda_double_write_skew1_committed.txt b/result/result/mysql_8.0.20/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..e9446a07 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:58:701:38 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:58:702:692 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:58:800:944 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:58:802:615 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:58:804:137 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:58:809:909 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 17:40:58:901:861 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:58:908:334 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:40:58:910:468 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:58:912:41 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/rat_dda_double_write_skew2.txt b/result/result/mysql_8.0.20/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..b1ae7deb --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:59:183:187 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:59:185:163 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:59:283:114 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:59:284:864 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:40:59:384:209 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:59:391:507 + Q5 finished at: 2022-4-1 17:40:59:391:568 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:59:490:956 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:59:493:555 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:59:494:337 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew.txt b/result/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..21838f02 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:59:762:97 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:59:763:811 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:59:862:133 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:59:863:912 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:40:59:865:325 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:40:59:963:226 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:0:67:597 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:0:162:527 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:0:164:613 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:0:165:455 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew2.txt b/result/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..3397bada --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:1:376:85 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:1:377:788 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:1:476:70 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:1:477:972 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:1:479:634 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:41:1:577:233 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:1:585:115 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:1:679:738 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:1:681:610 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:1:682:426 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew2_committed.txt b/result/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..3ade1796 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:1:985:744 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:1:987:334 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:2:84:463 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:2:86:691 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:2:88:244 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:2:89:124 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:41:2:186:969 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:2:224:224 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:2:226:220 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:2:227:27 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/result/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..1b91b6c8 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:0:429:798 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:41:0:431:510 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:0:529:801 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:0:531:568 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:0:532:966 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:0:539:587 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:41:0:631:148 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:0:632:123 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 17:41:0:633:870 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:0:635:555 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/result/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..9347cb70 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:0:890:604 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:41:0:893:7 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:0:990:534 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 17:41:0:992:78 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 17:41:0:993:374 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:1:5:325 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:41:1:91:681 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:1:92:627 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 17:41:1:94:416 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:1:95:220 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/rat_dda_write_read_skew.txt b/result/result/mysql_8.0.20/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..99e3035f --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:56:862:683 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:56:864:322 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:56:962:743 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:56:964:747 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:56:967:978 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:40:57:64:746 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:57:168:408 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:57:268:557 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:57:271:179 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:57:272:122 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/repeatable-read/rat_dda_write_read_skew_committed.txt b/result/result/mysql_8.0.20/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..7ac35b5a --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:57:538:874 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:57:540:466 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:57:638:903 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:40:57:640:610 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:40:57:643:37 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:57:648:517 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:40:57:740:68 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:40:57:746:412 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:40:57:748:227 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:40:57:749:70 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat.txt b/result/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..310822cf --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:2:551:705 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:2:553:374 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:2:651:670 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:2:653:390 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:2:655:356 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:2:751:923 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:41:2:753:647 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 17:41:2:756:609 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 17:41:2:853:108 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:41:2:860:21 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:2:957:826 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:3:57:649 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:41:3:60:113 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:3:62:172 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat_long_fork.txt b/result/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..3544d936 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-1 17:41:3:345:877 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 17:41:3:348:596 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-1 17:41:3:445:790 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 17:41:3:447:481 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:41:3:545:708 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 17:41:3:548:528 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:41:3:551:155 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:41:3:645:765 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:41:3:647:417 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:41:3:747:790 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:41:3:851:401 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:3:952:576 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:41:4:46:290 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:4:48:499 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:41:4:51:16 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:41:4:51:877 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/result/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..b6615d93 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:4:319:792 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:4:321:384 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:4:419:809 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:4:421:651 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:41:4:423:832 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:4:519:824 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:41:4:521:398 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 17:41:4:523:308 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:41:4:621:427 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:41:4:628:105 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:4:737:319 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:4:830:397 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:41:4:833:606 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:4:834:754 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/result/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..fe4f73cb --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:5:94:615 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 17:41:5:96:915 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:5:194:839 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 17:41:5:196:928 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:41:5:199:898 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:5:294:794 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 17:41:5:296:474 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 17:41:5:298:445 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:41:5:396:203 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:41:5:402:534 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:5:500:522 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:5:601:227 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:41:5:604:441 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:41:5:605:368 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/repeatable-read/rat_sda_dirty_read.txt b/result/result/mysql_8.0.20/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..49dceac2 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:52:785:213 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:52:786:983 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:52:886:208 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:52:888:238 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:40:52:991:192 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:53:84:746 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:40:53:86:903 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:40:53:87:875 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/rat_sda_intermediate_read.txt b/result/result/mysql_8.0.20/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..6a2ac94f --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:54:29:887 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:54:31:590 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:54:129:669 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:54:131:636 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 17:40:54:230:804 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:54:330:39 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:54:438:364 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:40:54:440:324 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:54:441:504 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/rat_sda_intermediate_read_committed.txt b/result/result/mysql_8.0.20/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..a7db0e22 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:54:757:542 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:54:759:333 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:54:856:977 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:40:54:858:804 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:54:859:687 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 17:40:54:959:698 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:54:966:539 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:40:54:968:451 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:54:969:341 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/rat_sda_lost_self_update.txt b/result/result/mysql_8.0.20/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..ad38f1da --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:56:277:702 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:40:56:279:390 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:56:377:601 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:40:56:478:823 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:40:56:484:943 + Q4 finished at: 2022-4-1 17:40:56:485:135 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:40:56:582:794 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:56:584:675 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:56:585:526 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/rat_sda_non_repeatable_read.txt b/result/result/mysql_8.0.20/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..871ca4c7 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:53:353:285 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:40:53:355:143 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:53:453:214 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:53:454:988 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:40:53:559:86 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:40:53:659:391 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:53:753:914 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:40:53:756:99 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:53:757:244 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/result/result/mysql_8.0.20/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..9b5ba6d2 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:55:244:756 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:40:55:246:567 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:55:344:713 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:40:55:346:446 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:55:354:890 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:40:55:446:856 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:55:447:747 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 17:40:55:449:514 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:55:450:323 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/result/result/mysql_8.0.20/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..4cbc80e1 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:40:55:725:340 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:40:55:727:931 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:40:55:825:264 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 17:40:55:826:955 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:40:55:841:475 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:40:55:926:181 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:40:55:927:46 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 17:40:55:928:726 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:40:55:929:557 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/wat_dda_double_write_skew2_committed.txt b/result/result/mysql_8.0.20/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..de9b81d3 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:9:949:309 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:9:951:73 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:10:49:313 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:10:51:149 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:41:10:150:634 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:10:159:657 + Q5 finished at: 2022-4-1 17:41:10:159:769 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:10:165:716 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:10:167:660 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:10:168:621 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/wat_dda_full_write_skew_c1.txt b/result/result/mysql_8.0.20/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..0c1f5bd2 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:10:458:512 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:10:460:402 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:10:558:358 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:10:560:338 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:10:659:705 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:10:769:193 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:11:266:333 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/repeatable-read/wat_dda_full_write_skew_c2.txt b/result/result/mysql_8.0.20/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..7f3d2da0 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:11:542:140 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:11:543:753 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:11:642:183 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:11:643:872 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:11:744:707 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:11:848:11 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:12:347:797 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/repeatable-read/wat_dda_full_write_skew_committed.txt b/result/result/mysql_8.0.20/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..1e756ddf --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:12:618:252 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:12:619:970 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:12:718:55 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:12:719:869 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:12:819:383 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:12:825:466 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:41:13:522:540 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew1_c1.txt b/result/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..480f33ad --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:13:789:844 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:13:791:525 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:13:889:899 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:13:891:934 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:13:893:617 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:14:95:594 +Q6 finished at: 2022-4-1 17:41:14:95:645 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:14:101:311 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:14:103:679 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:14:104:625 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew1_c2.txt b/result/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..5d373f07 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:14:374:75 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:14:375:831 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:14:474:49 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:14:475:889 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:14:477:343 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:14:679:984 +Q6 finished at: 2022-4-1 17:41:14:680:26 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:14:790:748 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:14:794:168 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:14:795:118 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew2_c1.txt b/result/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..18e31d03 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:15:62:119 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:15:64:125 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:15:162:76 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:15:164:279 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:41:15:262:986 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:15:269:956 + Q5 finished at: 2022-4-1 17:41:15:269:990 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:15:367:669 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:15:370:22 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:15:371:66 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew2_c2.txt b/result/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..5cceefeb --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:15:642:786 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:15:644:373 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:15:742:785 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:15:744:698 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:41:15:843:831 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:16:50:57 + Q5 finished at: 2022-4-1 17:41:16:50:88 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:16:57:412 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:16:59:392 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:16:60:741 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew2_committed.txt b/result/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..d94ca8d2 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:16:333:724 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:16:335:460 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:16:433:777 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:16:435:573 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:41:16:534:632 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:16:541:75 + Q5 finished at: 2022-4-1 17:41:16:541:122 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:16:547:354 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:41:16:549:678 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:16:550:519 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/repeatable-read/wat_mda_step_wat_c1.txt b/result/result/mysql_8.0.20/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..0b8c173c --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:16:811:365 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:16:812:861 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:16:911:673 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:16:913:768 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:17:11:424 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:41:17:13:175 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-1 17:41:17:112:920 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:17:217:602 + Q8 finished at: 2022-4-1 17:41:17:217:685 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:17:317:218 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:41:18:15:762 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/repeatable-read/wat_mda_step_wat_c2.txt b/result/result/mysql_8.0.20/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..199e35a8 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:18:289:639 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:18:291:276 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:18:389:595 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:18:391:330 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:41:18:491:558 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:41:18:691:16 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-1 17:41:18:791:65 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:18:895:111 + Q8 finished at: 2022-4-1 17:41:18:895:136 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:19:98:171 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:41:19:693:844 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/repeatable-read/wat_sda_dirty_write_1abort.txt b/result/result/mysql_8.0.20/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..ac890cf5 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:5:880:900 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:5:882:621 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:5:981:755 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-1 17:41:6:84:638 +Q5 finished at: 2022-4-1 17:41:6:87:991 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:6:189:788 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:41:6:191:759 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:41:6:211:626 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:6:212:873 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/wat_sda_dirty_write_2commit.txt b/result/result/mysql_8.0.20/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..3146d9a5 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:6:483:266 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:6:485:211 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:6:583:24 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-1 17:41:6:689:404 +Q5 finished at: 2022-4-1 17:41:6:689:460 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:6:789:544 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:41:6:791:372 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:41:6:810:731 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:6:811:874 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/wat_sda_full_write.txt b/result/result/mysql_8.0.20/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..504b886e --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:7:78:630 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:7:80:736 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:7:179:670 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 17:41:7:280:750 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:41:7:294:793 + Q4 finished at: 2022-4-1 17:41:7:294:846 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:7:385:655 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:41:7:387:658 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:7:388:771 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/wat_sda_full_write_committed.txt b/result/result/mysql_8.0.20/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..e9daf4c9 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:7:667:163 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:7:668:890 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:7:771:601 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 17:41:7:868:451 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:7:874:214 + Q4 finished at: 2022-4-1 17:41:7:874:286 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:7:880:177 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:41:7:882:176 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:7:883:946 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/wat_sda_lost_self_update_committed.txt b/result/result/mysql_8.0.20/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..37a71435 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:9:461:428 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:9:462:927 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:9:561:416 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:41:9:662:414 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:9:668:895 + Q4 finished at: 2022-4-1 17:41:9:669:18 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:9:675:304 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:9:677:478 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:9:678:318 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/repeatable-read/wat_sda_lost_update_c1.txt b/result/result/mysql_8.0.20/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..4b6bc958 --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:8:162:942 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:41:8:164:772 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:8:262:848 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:41:8:265:92 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:8:470:733 +Q5 finished at: 2022-4-1 17:41:8:470:780 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:41:8:478:390 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:8:480:208 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:8:481:890 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/repeatable-read/wat_sda_lost_update_c2.txt b/result/result/mysql_8.0.20/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..cae557ef --- /dev/null +++ b/result/result/mysql_8.0.20/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:8:782:160 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:41:8:784:47 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:8:882:378 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:41:8:884:451 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:9:88:968 +Q5 finished at: 2022-4-1 17:41:9:88:995 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:9:188:692 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:9:190:892 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:9:193:13 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/mysql_8.0.20/result_summary/read-committed_total-result.txt b/result/result/mysql_8.0.20/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..38745346 --- /dev/null +++ b/result/result/mysql_8.0.20/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/result/result/mysql_8.0.20/result_summary/read-uncommitted_total-result.txt b/result/result/mysql_8.0.20/result_summary/read-uncommitted_total-result.txt new file mode 100644 index 00000000..f709ccda --- /dev/null +++ b/result/result/mysql_8.0.20/result_summary/read-uncommitted_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Anomaly + +rat_sda_non_repeatable_read: Anomaly + +rat_sda_intermediate_read: Anomaly + +rat_sda_intermediate_read_committed: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Anomaly + +rat_dda_double_write_skew1_committed: Anomaly + +rat_dda_double_write_skew2: Anomaly + +rat_dda_read_skew: Anomaly + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Anomaly + +rat_dda_read_skew2_committed: Anomaly + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Anomaly + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Anomaly + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/result/result/mysql_8.0.20/result_summary/repeatable-read_total-result.txt b/result/result/mysql_8.0.20/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..ef182286 --- /dev/null +++ b/result/result/mysql_8.0.20/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/result/result/mysql_8.0.20/result_summary/serializable_total-result.txt b/result/result/mysql_8.0.20/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..b5b686cf --- /dev/null +++ b/result/result/mysql_8.0.20/result_summary/serializable_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Rollback + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Rollback + +rat_dda_read_skew2_committed: Rollback + +rat_mda_step_rat: Rollback + +rat_mda_step_rat_long_fork: Rollback + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Rollback + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Rollback + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +iat_mda_step_iat_predicate_based_delete: Rollback + +iat_mda_step_iat_predicate_based_insert: Rollback + +iat_mda_step_iat_uname_anomaly: Rollback + +iat_mda_step_iat_cross_phenomenon: Rollback + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Rollback + diff --git a/result/result/mysql_8.0.20/serializable/iat_dda_read_skew_committed.txt b/result/result/mysql_8.0.20/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..e0b53796 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:8:25:707 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:42:8:27:361 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:8:125:799 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:42:8:127:830 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:42:8:228:473 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:42:8:234:781 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:42:8:928:633 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/iat_dda_read_write_skew1_committed.txt b/result/result/mysql_8.0.20/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..8a78f41c --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:9:207:392 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:42:9:209:102 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:9:307:383 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:42:9:309:74 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:42:9:408:592 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:42:9:415:624 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:42:10:108:725 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/iat_dda_write_skew.txt b/result/result/mysql_8.0.20/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..0f3ae3bd --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/iat_dda_write_skew.txt @@ -0,0 +1,49 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:10:382:465 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:42:10:384:278 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:10:482:443 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:42:10:484:206 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:42:10:583:656 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:42:10:693:391 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:42:11:183:797 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/iat_dda_write_skew_committed.txt b/result/result/mysql_8.0.20/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..b452e7fd --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,49 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:13:130:199 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:42:13:132:963 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:13:231:637 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:42:13:233:633 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:42:13:333:102 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:42:13:339:928 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:42:14:33:67 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/result/result/mysql_8.0.20/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..69a11cd6 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:11:459:600 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 17:42:11:461:475 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 17:42:11:462:884 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:42:11:559:586 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:42:11:666:67 + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 17:42:11:666:330 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 17:42:11:668:262 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:42:11:673:435 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 17:42:11:675:836 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 17:42:11:678:593 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:42:11:679:584 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/result/result/mysql_8.0.20/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..ed636e29 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,49 @@ +#### db_type: mysql #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:11:958:859 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 17:42:11:961:651 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:12:58:825 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 17:42:12:61:640 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q5 finished at: 2022-4-1 17:42:12:161:585 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:42:12:168:826 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:42:12:861:827 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/iat_mda_step_iat.txt b/result/result/mysql_8.0.20/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..38413186 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/iat_mda_step_iat.txt @@ -0,0 +1,89 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:14:332:357 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:42:14:334:774 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:14:432:758 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:42:14:435:199 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:42:14:533:212 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:42:14:535:337 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 finished at: 2022-4-1 17:42:14:834:916 + Q11-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:42:15:45:452 + Q11 finished at: 2022-4-1 17:42:15:45:475 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:42:15:53:360 + Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q9 failed at: 2022-4-1 17:42:15:734:864 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/result/result/mysql_8.0.20/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..d0602268 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:22:942:657 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:42:22:944:626 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:23:42:577 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:42:23:142:686 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 17:42:23:244:149 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:42:23:245:318 + Q4 finished at: 2022-4-1 17:42:23:245:391 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:42:23:250:920 + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:42:23:251:494 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:42:23:253:644 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:42:23:257:953 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 17:42:23:260:52 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:42:23:261:386 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/serializable/iat_mda_step_iat_cross_phenomenon.txt b/result/result/mysql_8.0.20/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..c6f8f44e --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,171 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:21:575:144 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:42:21:577:667 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:21:675:94 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:42:21:677:800 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:42:21:775:204 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:42:21:875:539 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 17:42:22:77:874 + Q12-T2 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:42:22:79:154 + Q12 finished at: 2022-4-1 17:42:22:79:135 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:42:22:85:726 + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 17:42:22:86:641 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 17:42:22:87:800 + Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q6 failed at: 2022-4-1 17:42:22:676:982 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/iat_mda_step_iat_predicate_based_delete.txt b/result/result/mysql_8.0.20/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..ec79f9e5 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,89 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:16:15:347 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 17:42:16:17:345 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:16:115:280 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:42:16:117:484 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:42:16:218:851 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:42:16:221:60 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q8 finished at: 2022-4-1 17:42:16:516:568 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:42:16:722:240 +Q7 finished at: 2022-4-1 17:42:16:722:447 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:42:16:730:211 + Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q9 failed at: 2022-4-1 17:42:17:416:605 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/iat_mda_step_iat_predicate_based_insert.txt b/result/result/mysql_8.0.20/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..1647aa2d --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,85 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:17:706:872 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:42:17:709:871 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:17:806:813 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 17:42:17:809:46 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:42:17:906:773 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 17:42:17:908:812 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q7 finished at: 2022-4-1 17:42:18:208:94 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:42:18:320:428 + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q8 failed at: 2022-4-1 17:42:19:8:90 + Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q9 failed at: 2022-4-1 17:42:19:108:264 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/result/result/mysql_8.0.20/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..2f8ba04c --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,105 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:23:521:178 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:42:23:523:349 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 17:42:23:525:372 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-1 17:42:23:620:959 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 17:42:23:623:186 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:42:23:721:130 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 17:42:23:723:536 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 17:42:23:823:75 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 17:42:23:831:676 + Q6 finished at: 2022-4-1 17:42:23:831:732 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:42:23:838:601 + Q10 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q10 failed at: 2022-4-1 17:42:24:823:261 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/iat_mda_step_iat_uname_anomaly.txt b/result/result/mysql_8.0.20/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..1de048b5 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,127 @@ +#### db_type: mysql #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:19:454:404 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 17:42:19:456:562 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:19:554:353 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 17:42:19:556:571 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:42:19:558:179 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:42:19:560:195 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-1 17:42:19:654:409 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 17:42:19:656:728 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 17:42:19:658:206 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:42:19:755:691 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:42:19:763:422 + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 17:42:19:764:136 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 17:42:19:765:752 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:42:19:779:603 +Q15 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q15 failed at: 2022-4-1 17:42:21:255:752 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/iat_sda_lost_update_committed.txt b/result/result/mysql_8.0.20/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..b02d6556 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:7:157:422 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:42:7:159:286 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:7:257:397 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 17:42:7:358:313 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:42:7:364:857 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q4 failed at: 2022-4-1 17:42:7:758:442 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/iat_sda_non_repeatable_read_committed.txt b/result/result/mysql_8.0.20/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..5768b4cf --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:6:671:13 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:42:6:672:696 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:6:771:118 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:42:6:874:573 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:42:6:875:560 + Q4 finished at: 2022-4-1 17:42:6:875:640 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:42:6:883:427 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:42:6:885:819 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:42:6:886:698 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:42:6:887:450 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/serializable/rat_dda_double_write_skew1.txt b/result/result/mysql_8.0.20/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..b0c0ec57 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:36:72:810 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:36:74:503 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:36:172:707 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:36:174:556 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:36:274:474 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:36:379:701 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:36:877:176 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/rat_dda_double_write_skew1_committed.txt b/result/result/mysql_8.0.20/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..0877edc9 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:37:146:696 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:37:148:379 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:37:246:809 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:37:248:829 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:37:348:230 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:37:354:963 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:41:38:51:230 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/rat_dda_double_write_skew2.txt b/result/result/mysql_8.0.20/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..e7d208bc --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:38:325:985 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:38:327:720 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:38:425:965 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:38:427:701 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:38:527:285 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:38:633:313 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:39:130:385 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/rat_dda_read_skew.txt b/result/result/mysql_8.0.20/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..757def2b --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/rat_dda_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:39:414:333 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:39:416:324 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:39:514:365 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:39:516:258 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:39:615:527 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:39:722:139 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:40:215:668 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/rat_dda_read_skew2.txt b/result/result/mysql_8.0.20/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..2c29de85 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:41:487:735 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:41:489:539 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:41:587:733 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:41:589:730 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:41:41:689:701 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:41:698:391 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-1 17:41:42:190:183 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/rat_dda_read_skew2_committed.txt b/result/result/mysql_8.0.20/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..212ddd91 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:42:461:357 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:42:462:979 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:42:561:402 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:41:42:563:299 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:41:42:664:952 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:42:670:849 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q5 failed at: 2022-4-1 17:41:43:165:75 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/rat_dda_read_skew_predicate_based_delete.txt b/result/result/mysql_8.0.20/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..52f11fa5 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:40:512:588 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:41:40:514:356 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:40:614:23 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:41:40:715:175 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:40:716:723 + Q4 finished at: 2022-4-1 17:41:40:716:844 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:41:40:718:366 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:40:725:19 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 17:41:40:727:5 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:40:727:951 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/serializable/rat_dda_read_skew_predicate_based_insert.txt b/result/result/mysql_8.0.20/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..a05ab5bc --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: mysql #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:41:3:753 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:41:41:6:456 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:41:104:98 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:41:41:209:666 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:41:41:211:717 + Q4 finished at: 2022-4-1 17:41:41:211:906 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 17:41:41:213:588 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:41:221:79 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 17:41:41:223:512 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:41:41:224:517 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/serializable/rat_dda_write_read_skew.txt b/result/result/mysql_8.0.20/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..ecf4eb06 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:33:817:277 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:33:818:859 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:33:917:313 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:33:919:31 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:34:18:965 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:34:124:938 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:34:622:434 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/rat_dda_write_read_skew_committed.txt b/result/result/mysql_8.0.20/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..635132e6 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:34:899:58 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:34:900:598 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:34:999:88 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:35:0:747 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:35:100:539 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:35:106:173 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:41:35:803:95 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/rat_mda_step_rat.txt b/result/result/mysql_8.0.20/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..7f36962e --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/rat_mda_step_rat.txt @@ -0,0 +1,74 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:43:437:745 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:43:439:334 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:43:539:23 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:43:540:848 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:43:639:816 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:41:43:641:587 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:41:43:739:462 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:43:844:617 + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 17:41:43:845:190 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:43:943:656 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:41:44:642:471 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/rat_mda_step_rat_long_fork.txt b/result/result/mysql_8.0.20/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..602d06f2 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,169 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-1 17:41:44:906:691 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 17:41:44:909:579 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-1 17:41:45:6:307 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:41:45:106:381 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 17:41:45:109:229 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-1 17:41:45:206:433 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:41:45:308:780 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:41:45:606:891 + Q9 finished at: 2022-4-1 17:41:45:607:101 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:45:613:644 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:41:45:614:867 +Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q4 failed at: 2022-4-1 17:41:45:707:950 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/rat_mda_step_rat_predicate_based_delete.txt b/result/result/mysql_8.0.20/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..3aa905cb --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,74 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:45:976:146 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:45:977:698 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:46:76:301 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:46:78:210 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:46:176:118 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:41:46:177:726 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:41:46:288:818 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:46:381:346 + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 17:41:46:382:20 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:46:484:1 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:41:47:191:175 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/rat_mda_step_rat_predicate_based_insert.txt b/result/result/mysql_8.0.20/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..29a3b639 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,71 @@ +#### db_type: mysql #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:47:446:656 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 17:41:47:449:76 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:47:546:738 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 17:41:47:548:474 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:41:47:651:532 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 17:41:47:653:280 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:41:47:748:738 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:41:47:852:489 + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + (4) expected_result: + (,) + *(5) expected_result: + (1,) + (6) expected_result: + (,) + + Q8 finished at: 2022-4-1 17:41:47:853:72 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:41:47:952:352 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:41:48:651:150 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/rat_sda_dirty_read.txt b/result/result/mysql_8.0.20/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..fd8f3ed6 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:29:872:206 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:29:873:776 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:29:972:28 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:41:30:72:843 +Q5 finished at: 2022-4-1 17:41:30:75:864 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:30:172:234 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:41:30:174:16 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:30:174:777 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/serializable/rat_sda_intermediate_read.txt b/result/result/mysql_8.0.20/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..43a392b9 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:31:127:608 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:31:129:511 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:31:227:583 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 17:41:31:328:824 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:31:533:92 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:41:31:533:351 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:31:535:252 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:41:31:537:322 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:31:538:328 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/serializable/rat_sda_intermediate_read_committed.txt b/result/result/mysql_8.0.20/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..27354e80 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:31:804:186 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:31:805:768 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:31:904:470 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 17:41:32:5:152 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:32:15:748 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:41:32:16:62 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:32:16:849 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:41:32:18:365 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:32:19:651 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/serializable/rat_sda_lost_self_update.txt b/result/result/mysql_8.0.20/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..6a33e43a --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:33:238:408 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:33:240:186 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:33:339:238 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:41:33:439:491 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:41:33:447:842 + Q4 finished at: 2022-4-1 17:41:33:447:907 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:33:544:384 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:33:546:261 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:33:547:127 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/serializable/rat_sda_non_repeatable_read.txt b/result/result/mysql_8.0.20/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..6aa8d05e --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:30:443:285 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:30:444:838 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:30:543:488 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:41:30:644:514 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:30:843:672 + Q4 finished at: 2022-4-1 17:41:30:843:866 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:30:850:540 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:30:852:243 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:30:853:40 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/result/result/mysql_8.0.20/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..9d0a6998 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:32:303:405 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:41:32:305:37 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:32:403:362 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:41:32:504:497 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:32:505:462 + Q4 finished at: 2022-4-1 17:41:32:505:653 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:32:511:208 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 17:41:32:512:761 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:32:513:906 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/result/result/mysql_8.0.20/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..957ed888 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: mysql #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:32:766:140 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:41:32:768:731 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:32:866:170 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:41:32:967:290 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:32:968:231 + Q4 finished at: 2022-4-1 17:41:32:968:372 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:32:974:70 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 17:41:32:975:700 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:32:976:469 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/serializable/wat_dda_double_write_skew2_committed.txt b/result/result/mysql_8.0.20/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..93e53b1e --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:53:396:109 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:53:397:807 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:53:496:223 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:53:498:268 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:53:597:375 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:53:603:154 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:41:54:300:308 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/wat_dda_full_write_skew_c1.txt b/result/result/mysql_8.0.20/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..bbe69855 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:54:600:944 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:54:602:630 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:54:700:902 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:54:702:621 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:54:802:193 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:54:907:609 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:55:405:992 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/wat_dda_full_write_skew_c2.txt b/result/result/mysql_8.0.20/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..ed0ac8a1 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:55:689:611 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:55:691:452 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:55:790:648 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:55:792:517 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:55:890:429 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:55:996:768 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:56:494:17 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/wat_dda_full_write_skew_committed.txt b/result/result/mysql_8.0.20/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..2a53175b --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: mysql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:56:782:597 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:56:784:231 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:56:882:796 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:56:884:531 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:56:983:892 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:56:992:279 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:41:57:688:947 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/wat_dda_read_write_skew1_c1.txt b/result/result/mysql_8.0.20/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..bdf4f323 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:57:959:160 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:57:961:152 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:58:58:984 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:58:60:682 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:58:160:692 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:41:58:265:685 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:58:760:762 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/wat_dda_read_write_skew1_c2.txt b/result/result/mysql_8.0.20/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..53c58b8f --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:59:42:696 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:41:59:44:470 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:59:142:624 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:41:59:144:352 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:41:59:243:787 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:59:349:516 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:41:59:843:891 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/wat_dda_read_write_skew2_c1.txt b/result/result/mysql_8.0.20/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..3ed715ab --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:0:118:686 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:42:0:120:266 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:0:218:693 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:42:0:220:463 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:42:0:320:313 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:42:0:425:623 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:42:0:923:308 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/wat_dda_read_write_skew2_c2.txt b/result/result/mysql_8.0.20/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..b9c23446 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:1:227:79 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:42:1:228:691 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:1:327:69 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:42:1:329:0 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:42:1:428:354 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:42:1:535:671 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:42:2:31:629 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/wat_dda_read_write_skew2_committed.txt b/result/result/mysql_8.0.20/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..4e43d8bb --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: mysql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:2:342:425 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:42:2:344:361 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:2:442:324 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:42:2:444:15 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:42:2:543:641 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:42:2:552:629 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:42:3:247:566 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/wat_mda_step_wat_c1.txt b/result/result/mysql_8.0.20/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..133e0382 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:3:522:950 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:42:3:524:706 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:3:623:3 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:42:3:624:826 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-1 17:42:3:722:887 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:42:3:724:756 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-1 17:42:3:824:193 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:42:3:929:742 + Q11 finished at: 2022-4-1 17:42:3:929:757 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:42:4:29:976 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:42:4:726:732 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/wat_mda_step_wat_c2.txt b/result/result/mysql_8.0.20/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..1ae36ebb --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: mysql #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:42:4:993:22 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:42:4:994:695 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:42:5:93:263 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:42:5:95:109 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-1 17:42:5:193:119 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:42:5:395:230 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-1 17:42:5:494:845 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:42:5:598:592 + Q8 finished at: 2022-4-1 17:42:5:598:739 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:42:5:798:557 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:42:6:398:341 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/wat_sda_dirty_write_1abort.txt b/result/result/mysql_8.0.20/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..341b81f9 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:48:926:496 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:48:928:336 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:49:26:363 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-1 17:41:49:127:102 +Q5 finished at: 2022-4-1 17:41:49:128:927 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:49:232:48 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:41:49:234:634 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:41:49:254:491 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:49:255:455 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/serializable/wat_sda_dirty_write_2commit.txt b/result/result/mysql_8.0.20/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..c5a0e332 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:49:497:454 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:49:499:150 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:49:597:360 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:41:49:705:710 + Q4 finished at: 2022-4-1 17:41:49:705:807 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:41:49:804:207 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:41:49:806:919 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:41:49:830:104 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:49:831:101 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/serializable/wat_sda_full_write.txt b/result/result/mysql_8.0.20/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..6e19dd28 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:50:80:303 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:50:81:937 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:50:183:592 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 17:41:50:281:182 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:41:50:288:20 + Q4 finished at: 2022-4-1 17:41:50:288:126 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:41:50:386:61 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:41:50:388:843 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:50:389:793 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/serializable/wat_sda_full_write_committed.txt b/result/result/mysql_8.0.20/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..f5160036 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: mysql #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:50:653:111 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:50:654:699 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:50:755:533 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 17:41:50:853:857 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:50:867:144 + Q4 finished at: 2022-4-1 17:41:50:867:233 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:50:873:679 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:41:50:875:483 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:50:876:362 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/serializable/wat_sda_lost_self_update_committed.txt b/result/result/mysql_8.0.20/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..cf6fbba5 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: mysql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:52:901:776 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:41:52:903:375 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:53:1:693 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:41:53:102:801 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:53:110:237 + Q4 finished at: 2022-4-1 17:41:53:110:326 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:41:53:118:411 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:41:53:121:82 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:41:53:121:912 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/mysql_8.0.20/serializable/wat_sda_lost_update_c1.txt b/result/result/mysql_8.0.20/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..83d92063 --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:51:157:127 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:41:51:158:796 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:51:257:113 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-1 17:41:51:358:278 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:41:51:365:242 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q4 failed at: 2022-4-1 17:41:51:758:360 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/mysql_8.0.20/serializable/wat_sda_lost_update_c2.txt b/result/result/mysql_8.0.20/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..554cc05a --- /dev/null +++ b/result/result/mysql_8.0.20/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,39 @@ +#### db_type: mysql #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-1 17:41:52:28:69 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:41:52:29:698 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-1 17:41:52:128:280 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-1 17:41:52:232:792 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:41:52:434:555 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 + Q4 failed at: 2022-4-1 17:41:52:632:899 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.20]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/ob_ce3.1_mysql/read-committed/iat_dda_read_skew_committed.txt b/result/result/ob_ce3.1_mysql/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..c6ae349b --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:12:866:846 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:24:12:907:843 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:13:360:492 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:24:13:397:739 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:24:13:433:728 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:24:13:471:558 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 16:24:13:865:48 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:24:13:904:241 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:24:13:944:13 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:24:13:981:735 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/read-committed/iat_dda_read_write_skew1_committed.txt b/result/result/ob_ce3.1_mysql/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..eddc2ab8 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:17:380:519 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:24:17:422:557 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:17:877:506 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 16:24:17:916:448 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:24:17:954:128 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:24:17:996:609 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 16:24:18:381:669 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:24:18:424:193 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:24:18:466:774 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:24:18:506:661 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/read-committed/iat_dda_write_skew.txt b/result/result/ob_ce3.1_mysql/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..017d1ef8 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:21:870:87 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:24:21:907:371 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:22:376:738 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:24:22:413:43 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:24:22:450:30 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 16:24:22:870:865 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:24:22:912:358 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:24:23:380:949 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:24:23:422:649 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:24:23:463:532 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/read-committed/iat_dda_write_skew_committed.txt b/result/result/ob_ce3.1_mysql/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..c284aa6b --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:26:787:276 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:24:26:824:296 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:27:291:821 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:24:27:332:165 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:24:27:373:429 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:24:27:420:930 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 16:24:27:788:675 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:24:27:825:967 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:24:27:867:326 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:24:27:906:774 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/read-committed/iat_dda_write_skew_pred_insert.txt b/result/result/ob_ce3.1_mysql/read-committed/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..f0aa8e1a --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:44:22:356 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:24:44:62:790 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:44:524:975 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-20 16:24:44:567:228 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-20 16:24:44:608:950 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-20 16:24:45:23:344 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:24:45:62:578 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:24:45:529:323 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-20 16:24:45:571:587 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:24:45:611:984 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/read-committed/iat_mda_step_iat.txt b/result/result/ob_ce3.1_mysql/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..fa4b8e4e --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:31:319:158 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-20 16:24:31:358:851 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:31:820:206 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 16:24:31:860:559 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-5-20 16:24:32:317:306 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-20 16:24:32:354:458 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-20 16:24:32:821:245 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-20 16:24:33:321:353 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-20 16:24:33:818:255 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-20 16:24:34:320:863 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-20 16:24:34:822:545 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-20 16:24:35:319:416 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 16:24:35:363:9 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-20 16:24:35:404:243 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/read-committed/iat_sda_lost_update_committed.txt b/result/result/ob_ce3.1_mysql/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..e55cc77e --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:8:390:515 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 16:24:8:429:802 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:8:893:417 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 16:24:8:935:342 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 16:24:8:977:271 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-5-20 16:24:9:391:592 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:24:9:431:50 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:24:9:471:913 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:24:9:511:17 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/read-committed/iat_sda_non_repeatable_read_committed.txt b/result/result/ob_ce3.1_mysql/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..4e5b9bfe --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,57 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:3:923:245 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:24:3:963:7 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:4:425:503 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 16:24:4:467:971 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 16:24:4:511:304 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 16:24:4:924:637 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:24:4:962:521 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:24:5:1:849 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:24:5:39:533 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/read-committed/rat_dda_double_write_skew1.txt b/result/result/ob_ce3.1_mysql/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..ff764c69 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:21:59:975:101 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:22:0:13:487 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:0:478:240 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:22:0:518:653 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:22:0:559:733 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 16:22:1:478:844 + Q7 finished at: 2022-5-20 16:22:1:481:628 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:22:1:978:201 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-20 16:22:2:18:103 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:22:2:53:807 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/read-committed/rat_dda_double_write_skew1_committed.txt b/result/result/ob_ce3.1_mysql/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..bd9e3922 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:5:371:101 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:22:5:410:415 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:5:869:202 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:22:5:905:907 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:22:5:943:351 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:22:5:980:480 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-5-20 16:22:6:371:759 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:22:6:411:484 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-20 16:22:6:452:288 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:22:6:491:314 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/read-committed/rat_dda_double_write_skew2.txt b/result/result/ob_ce3.1_mysql/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..d63dc464 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:9:772:731 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:22:9:810:526 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:10:275:237 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:22:10:314:237 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 16:22:10:774:815 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:22:10:811:759 + Q5 finished at: 2022-5-20 16:22:10:813:980 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:22:11:277:583 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:22:11:318:817 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:22:11:357:902 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/read-committed/rat_dda_read_skew.txt b/result/result/ob_ce3.1_mysql/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..d39375d5 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:14:806:306 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:22:14:848:664 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:15:306:112 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:22:15:348:293 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:22:15:389:251 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 16:22:15:807:81 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 16:22:16:310:793 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:22:16:806:900 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:22:16:855:861 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:22:16:895:777 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/read-committed/rat_dda_read_skew2.txt b/result/result/ob_ce3.1_mysql/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..75d6574d --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:20:231:179 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:22:20:270:718 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:20:728:891 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:22:20:769:144 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:22:20:807:898 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 16:22:21:229:342 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:22:21:268:518 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:22:21:729:160 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:22:21:770:229 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:22:21:809:368 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/read-committed/rat_dda_read_skew2_committed.txt b/result/result/ob_ce3.1_mysql/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..60d50001 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:25:171:99 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:22:25:211:12 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:25:672:470 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:22:25:713:949 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:22:25:754:19 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:22:25:793:258 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 16:22:26:171:885 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:22:26:211:855 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:22:26:251:561 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:22:26:289:319 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/read-committed/rat_dda_write_read_skew.txt b/result/result/ob_ce3.1_mysql/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..07814eee --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:21:50:31:473 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:21:50:71:235 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:21:50:528:903 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:21:50:565:265 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:21:50:602:307 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 16:21:51:32:148 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 16:21:51:530:511 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:21:52:39:815 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:21:52:84:6 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:21:52:126:192 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/read-committed/rat_dda_write_read_skew_committed.txt b/result/result/ob_ce3.1_mysql/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..d25e848a --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:21:55:522:940 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:21:55:565:535 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:21:56:19:635 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:21:56:57:649 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:21:56:96:649 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:21:56:135:497 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 16:21:56:524:438 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:21:56:569:257 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:21:56:609:293 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:21:56:647:473 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/read-committed/rat_mda_step_rat.txt b/result/result/ob_ce3.1_mysql/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..55aa7dcd --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:29:654:194 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:22:29:694:509 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:30:152:66 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:22:30:188:678 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:22:30:226:273 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-5-20 16:22:30:653:370 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-20 16:22:30:691:470 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-20 16:22:30:729:835 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-20 16:22:31:155:879 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-20 16:22:31:195:620 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-20 16:22:31:658:184 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-20 16:22:32:155:965 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 16:22:32:197:543 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-20 16:22:32:236:625 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/read-committed/rat_sda_dirty_read.txt b/result/result/ob_ce3.1_mysql/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..c5bf8917 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,46 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:21:24:969:907 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:21:25:7:391 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:21:25:472:335 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 16:21:25:512:91 +Q5-T1 execute opt: 'ROLLBACK;' +Q5 finished at: 2022-5-20 16:21:25:970:201 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:21:26:472:569 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-20 16:21:26:510:916 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:21:26:547:361 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/read-committed/rat_sda_intermediate_read.txt b/result/result/ob_ce3.1_mysql/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..fb188023 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:21:35:281:704 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:21:35:322:263 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:21:35:779:494 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 16:21:35:817:536 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-20 16:21:36:282:685 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:21:36:780:990 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:21:37:285:925 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 16:21:37:326:815 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:21:37:365:786 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/read-committed/rat_sda_intermediate_read_committed.txt b/result/result/ob_ce3.1_mysql/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..482ae046 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:21:40:638:20 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:21:40:678:90 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:21:41:135:557 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 16:21:41:173:238 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 16:21:41:208:987 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-20 16:21:41:639:227 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:21:41:679:8 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 16:21:41:720:478 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:21:41:760:114 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/read-committed/rat_sda_lost_self_update.txt b/result/result/ob_ce3.1_mysql/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..0120c33b --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:21:45:97:248 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:21:45:137:144 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:21:45:597:571 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 16:21:46:99:206 +Q6-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-20 16:21:46:137:27 +Q6 finished at: 2022-5-20 16:21:46:139:1 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 16:21:46:602:396 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:21:46:643:90 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:21:46:681:964 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/read-committed/rat_sda_non_repeatable_read.txt b/result/result/ob_ce3.1_mysql/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..010c678c --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:21:29:883:754 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:21:29:926:262 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:21:30:382:652 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 16:21:30:423:506 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 16:21:30:884:931 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:21:31:384:700 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:21:31:886:738 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:21:31:930:196 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:21:31:971:797 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/read-committed/rat_sda_non_repeatable_read_pred_insert.txt b/result/result/ob_ce3.1_mysql/read-committed/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..327a097b --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:38:630:375 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:24:38:671:100 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:39:130:615 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-20 16:24:39:170:562 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 16:24:39:631:292 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:24:40:134:788 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:24:40:632:906 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:24:40:672:418 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:24:40:710:293 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/read-committed/wat_dda_double_write_skew2_committed.txt b/result/result/ob_ce3.1_mysql/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..1c0dda55 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:59:433:273 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:22:59:474:451 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:59:930:260 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:22:59:967:775 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 16:23:0:435:332 +Q8-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 16:23:0:473:367 + Q6-T2 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:23:0:476:369 + Q6 finished at: 2022-5-20 16:23:0:511:780 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:23:0:549:357 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:23:0:584:659 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/read-committed/wat_dda_full_write_skew_c1.txt b/result/result/ob_ce3.1_mysql/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..db1160a8 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:23:3:840:591 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:23:3:877:892 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:23:4:340:913 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 16:23:4:377:531 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-5-20 16:23:14:830:428 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q6 failed at: 2022-5-20 16:23:15:342:491 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/result/result/ob_ce3.1_mysql/read-committed/wat_dda_full_write_skew_committed.txt b/result/result/ob_ce3.1_mysql/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..5e273066 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:23:18:683:394 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:23:18:722:77 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:23:19:183:902 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 16:23:19:222:15 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-5-20 16:23:29:668:455 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q7 failed at: 2022-5-20 16:23:30:286:497 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/result/result/ob_ce3.1_mysql/read-committed/wat_dda_read_write_skew1_c1.txt b/result/result/ob_ce3.1_mysql/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..77479d12 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:23:33:632:463 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:23:33:671:825 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:23:34:131:122 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 16:23:34:169:536 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:23:34:206:459 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:23:35:136:621 +Q6 finished at: 2022-5-20 16:23:35:138:835 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:23:35:177:957 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:23:35:215:303 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:23:35:250:630 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/read-committed/wat_dda_read_write_skew2_c1.txt b/result/result/ob_ce3.1_mysql/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..bc29305e --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:23:38:628:529 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:23:38:667:278 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:23:39:130:370 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:23:39:170:979 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 16:23:39:629:740 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:23:39:668:94 + Q5 finished at: 2022-5-20 16:23:39:669:744 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:23:40:133:832 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:23:40:176:165 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:23:40:216:569 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/read-committed/wat_dda_read_write_skew2_committed.txt b/result/result/ob_ce3.1_mysql/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..db7a7ce9 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:23:43:715:633 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:23:43:757:305 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:23:44:217:801 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:23:44:261:845 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 16:23:44:716:637 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:23:44:758:413 + Q5 finished at: 2022-5-20 16:23:44:760:932 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:23:44:804:822 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:23:44:848:86 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:23:44:889:473 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/read-committed/wat_mda_step_wat_c1.txt b/result/result/ob_ce3.1_mysql/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..8b01c328 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:23:48:287:711 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:23:48:328:681 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:23:48:785:118 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 16:23:48:822:697 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-5-20 16:23:49:284:5 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-20 16:23:49:320:925 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-5-20 16:23:59:266:325 + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q8 failed at: 2022-5-20 16:24:0:64:277 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q9 failed at: 2022-5-20 16:24:0:594:838 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/result/result/ob_ce3.1_mysql/read-committed/wat_sda_dirty_write_2commit.txt b/result/result/ob_ce3.1_mysql/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..69654a02 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:35:653:283 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:22:35:697:256 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:36:149:314 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-20 16:22:36:655:65 + Q4 finished at: 2022-5-20 16:22:36:655:323 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:22:37:151:290 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-5-20 16:22:37:194:151 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-5-20 16:22:37:259:826 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:22:37:308:737 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/read-committed/wat_sda_full_write.txt b/result/result/ob_ce3.1_mysql/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..37589412 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/wat_sda_full_write.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:40:578:414 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:22:40:618:181 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:41:80:235 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-20 16:22:41:580:604 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 16:22:41:620:499 + Q4 finished at: 2022-5-20 16:22:41:622:322 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 16:22:42:85:977 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-20 16:22:42:125:397 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:22:42:163:140 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/read-committed/wat_sda_full_write_committed.txt b/result/result/ob_ce3.1_mysql/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..04e90fdb --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:45:483:481 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:22:45:526:409 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:45:979:906 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-20 16:22:46:484:639 +Q7-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-20 16:22:46:526:997 + Q5-T2 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:22:46:528:258 + Q5 finished at: 2022-5-20 16:22:46:566:535 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-20 16:22:46:608:543 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:22:46:648:906 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/read-committed/wat_sda_lost_self_update_committed.txt b/result/result/ob_ce3.1_mysql/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..f46dda12 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:54:947:424 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:22:54:988:819 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:55:448:144 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 16:22:55:949:365 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:22:55:990:864 + Q4 finished at: 2022-5-20 16:22:55:991:590 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 16:22:56:38:389 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:22:56:75:268 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:22:56:110:434 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/read-committed/wat_sda_lost_update_c1.txt b/result/result/ob_ce3.1_mysql/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..1c3ceb91 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:22:49:998:94 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 16:22:50:38:223 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:22:50:494:472 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 16:22:50:535:197 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-20 16:22:51:493:537 +Q6-T1 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 16:22:51:496:143 +Q6 finished at: 2022-5-20 16:22:51:533:609 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:22:51:573:86 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:22:51:610:761 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/iat_dda_read_skew_committed.txt b/result/result/ob_ce3.1_mysql/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..1fa71c42 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:27:37:147:674 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:27:37:185:826 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:27:37:649:139 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:27:37:689:339 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:27:37:727:972 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:27:37:769:757 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 16:27:38:148:396 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:27:38:185:12 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:27:38:225:895 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:27:38:264:849 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/iat_dda_read_write_skew1_committed.txt b/result/result/ob_ce3.1_mysql/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..238270fb --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:27:41:647:212 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:27:41:686:773 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:27:42:150:435 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 16:27:42:193:936 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:27:42:236:126 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:27:42:278:836 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 16:27:42:647:964 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:27:42:687:388 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:27:42:725:71 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:27:42:760:769 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/iat_dda_write_skew.txt b/result/result/ob_ce3.1_mysql/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..fa2b9532 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:27:46:148:677 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:27:46:189:925 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:27:46:644:972 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:27:46:681:455 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:27:46:718:629 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 16:27:47:149:642 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:27:47:190:474 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:27:47:647:974 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:27:47:687:346 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:27:47:724:757 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/iat_dda_write_skew_committed.txt b/result/result/ob_ce3.1_mysql/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..58c4664c --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:27:51:26:768 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:27:51:64:174 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:27:51:530:523 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:27:51:570:866 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:27:51:612:422 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:27:51:653:782 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 16:27:52:27:733 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:27:52:65:823 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:27:52:107:616 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:27:52:147:623 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/iat_dda_write_skew_pred_insert.txt b/result/result/ob_ce3.1_mysql/repeatable-read/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..9363f1c0 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:28:8:218:821 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:28:8:257:117 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:28:8:723:320 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-20 16:28:8:764:899 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-20 16:28:8:806:223 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-20 16:28:9:219:615 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:28:9:257:199 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:28:9:725:136 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-20 16:28:9:764:144 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:28:9:800:946 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/iat_mda_step_iat.txt b/result/result/ob_ce3.1_mysql/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..e9c354ac --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:27:55:536:628 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-20 16:27:55:577:82 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:27:56:35:600 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 16:27:56:74:277 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-5-20 16:27:56:536:485 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-20 16:27:56:576:100 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-20 16:27:57:39:309 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-20 16:27:57:536:938 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-20 16:27:58:37:150 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-20 16:27:58:538:490 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-20 16:27:59:37:987 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-20 16:27:59:538:167 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 16:27:59:579:89 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-20 16:27:59:618:206 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/iat_sda_lost_update_committed.txt b/result/result/ob_ce3.1_mysql/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..2dadf93d --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:27:32:707:363 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 16:27:32:747:810 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:27:33:204:500 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 16:27:33:242:368 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 16:27:33:280:179 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-5-20 16:27:33:708:174 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:27:33:751:906 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:27:33:794:235 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:27:33:834:821 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/result/result/ob_ce3.1_mysql/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..ad4873a9 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,57 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:27:28:204:915 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:27:28:246:384 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:27:28:703:245 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 16:27:28:743:48 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 16:27:28:783:779 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 16:27:29:206:34 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:27:29:245:621 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:27:29:287:442 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:27:29:327:598 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_double_write_skew1.txt b/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..d55a32fb --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:23:996:998 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:25:24:36:718 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:25:24:496:580 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:25:24:534:933 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:25:24:574:60 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 16:25:25:502:864 +Q6 finished at: 2022-5-20 16:25:25:505:461 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:25:25:999:711 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-20 16:25:26:42:839 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:25:26:84:500 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_double_write_skew1_committed.txt b/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..43495f25 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:29:483:833 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:25:29:523:951 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:25:29:983:45 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:25:30:21:484 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:25:30:60:666 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:25:30:100:317 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-5-20 16:25:30:484:596 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:25:30:524:688 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-20 16:25:30:567:763 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:25:30:608:999 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_double_write_skew2.txt b/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..4578d834 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:33:973:963 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:25:34:14:976 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:25:34:474:67 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:25:34:514:14 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 16:25:34:976:120 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:25:35:16:601 + Q5 finished at: 2022-5-20 16:25:35:16:897 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:25:35:476:182 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:25:35:516:459 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:25:35:554:896 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_read_skew.txt b/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..b85e1fb2 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:38:981:855 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:25:39:24:46 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:25:39:480:647 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:25:39:521:855 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:25:39:561:941 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 16:25:39:983:291 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 16:25:40:483:470 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:25:40:983:309 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:25:41:23:894 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:25:41:62:325 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_read_skew2.txt b/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..0cee7acb --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:44:396:289 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:25:44:436:445 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:25:44:896:355 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:25:44:936:529 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:25:44:975:147 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 16:25:45:397:552 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:25:45:437:296 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:25:45:896:646 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:25:45:934:370 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:25:45:970:258 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_read_skew2_committed.txt b/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..16929f39 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:49:362:723 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:25:49:404:157 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:25:49:864:455 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:25:49:907:185 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:25:49:949:92 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:25:49:989:947 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 16:25:50:365:411 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:25:50:407:480 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:25:50:450:567 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:25:50:491:790 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_write_read_skew.txt b/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..1221ae42 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:14:93:731 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:25:14:135:72 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:25:14:592:904 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:25:14:632:505 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:25:14:672:697 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 16:25:15:94:868 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 16:25:15:599:680 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:25:16:94:780 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:25:16:137:131 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:25:16:177:635 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_write_read_skew_committed.txt b/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..66c4c883 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:19:509:640 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:25:19:552:18 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:25:20:4:991 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:25:20:41:588 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:25:20:78:800 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:25:20:116:226 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 16:25:20:511:29 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:25:20:553:238 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:25:20:594:238 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:25:20:633:356 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/rat_mda_step_rat.txt b/result/result/ob_ce3.1_mysql/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..51d216e6 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:53:881:407 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:25:53:925:966 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:25:54:379:203 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:25:54:416:466 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 16:25:54:454:394 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-5-20 16:25:54:880:718 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-20 16:25:54:919:735 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-20 16:25:54:959:101 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-20 16:25:55:383:38 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-20 16:25:55:424:51 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-20 16:25:55:883:613 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-20 16:25:56:396:269 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 16:25:56:436:328 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-20 16:25:56:474:71 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/rat_sda_dirty_read.txt b/result/result/ob_ce3.1_mysql/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..75ee5b4e --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,46 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:49:27:79 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:24:49:69:58 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:49:526:594 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 16:24:49:568:886 +Q5-T1 execute opt: 'ROLLBACK;' +Q5 finished at: 2022-5-20 16:24:50:27:333 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:24:50:526:863 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-20 16:24:50:570:337 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:24:50:612:205 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/rat_sda_intermediate_read.txt b/result/result/ob_ce3.1_mysql/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..9cfe3cc5 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:59:293:995 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:24:59:331:863 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:59:798:423 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 16:24:59:840:499 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-20 16:25:0:295:763 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:25:0:798:877 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:25:1:299:559 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 16:25:1:342:399 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:25:1:383:733 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/rat_sda_intermediate_read_committed.txt b/result/result/ob_ce3.1_mysql/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..bb5c2532 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:4:709:304 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:25:4:751:734 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:25:5:207:5 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 16:25:5:247:552 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 16:25:5:285:826 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-20 16:25:5:710:208 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:25:5:756:750 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 16:25:5:796:180 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:25:5:833:863 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/rat_sda_lost_self_update.txt b/result/result/ob_ce3.1_mysql/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..f572f0bd --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:9:173:813 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:25:9:214:742 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:25:9:677:857 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 16:25:10:179:524 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 16:25:10:220:744 + Q4 finished at: 2022-5-20 16:25:10:224:567 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 16:25:10:679:775 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:25:10:719:606 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:25:10:757:777 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/rat_sda_non_repeatable_read.txt b/result/result/ob_ce3.1_mysql/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..0a8cd8c3 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:24:53:881:684 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:24:53:919:214 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:24:54:384:996 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 16:24:54:425:769 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 16:24:54:882:710 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:24:55:387:953 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:24:55:881:889 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:24:55:921:895 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:24:55:960:259 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt b/result/result/ob_ce3.1_mysql/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..c505b429 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:28:2:871:262 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:28:2:910:96 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:28:3:370:535 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-20 16:28:3:407:593 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 16:28:3:872:197 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:28:4:371:512 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:28:4:874:919 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:28:4:914:177 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:28:4:951:755 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/wat_dda_double_write_skew2_committed.txt b/result/result/ob_ce3.1_mysql/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..7b33b04f --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:26:23:688:966 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:26:23:726:528 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:26:24:191:379 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 16:26:24:230:345 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 16:26:24:690:929 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:26:24:730:989 + Q5 finished at: 2022-5-20 16:26:24:733:598 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:26:24:775:70 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:26:24:812:919 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:26:24:848:530 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/wat_dda_full_write_skew_c1.txt b/result/result/ob_ce3.1_mysql/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..1c9a4b34 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:26:28:193:623 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:26:28:233:743 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:26:28:693:658 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 16:26:28:735:835 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-5-20 16:26:39:185:548 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q6 failed at: 2022-5-20 16:26:39:700:814 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/wat_dda_full_write_skew_committed.txt b/result/result/ob_ce3.1_mysql/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..bb879e93 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:26:43:56:432 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:26:43:97:228 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:26:43:554:735 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 16:26:43:592:571 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-5-20 16:26:54:34:960 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q7 failed at: 2022-5-20 16:26:54:664:41 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/wat_dda_read_write_skew1_c1.txt b/result/result/ob_ce3.1_mysql/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..06b93ee2 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:26:57:960:826 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 16:26:57:998:927 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:26:58:463:875 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 16:26:58:505:407 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 16:26:58:545:545 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 16:26:59:463:603 +Q7-T1 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:26:59:466:3 +Q7 finished at: 2022-5-20 16:26:59:503:546 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:26:59:544:558 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:26:59:583:658 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/wat_dda_read_write_skew2_c1.txt b/result/result/ob_ce3.1_mysql/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..2e34b49e --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:27:2:956:318 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:27:2:998:917 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:27:3:453:83 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:27:3:492:516 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 16:27:3:960:398 +Q7-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 16:27:4:5:224 +Q7 finished at: 2022-5-20 16:27:4:6:272 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 16:27:4:459:353 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:27:4:499:350 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:27:4:537:660 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/wat_dda_read_write_skew2_committed.txt b/result/result/ob_ce3.1_mysql/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..35fb264f --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:27:7:898:547 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:27:7:942:206 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:27:8:400:721 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 16:27:8:446:125 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 16:27:8:899:577 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 16:27:8:943:782 + Q5 finished at: 2022-5-20 16:27:8:944:49 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:27:8:984:868 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 16:27:9:22:970 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 16:27:9:59:505 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/wat_mda_step_wat_c1.txt b/result/result/ob_ce3.1_mysql/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..5afefe28 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:27:12:505:194 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:27:12:545:253 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:27:13:7:555 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 16:27:13:49:660 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-5-20 16:27:13:508:833 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-20 16:27:13:551:402 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q5 failed at: 2022-5-20 16:27:23:492:526 + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 + Q8 failed at: 2022-5-20 16:27:24:302:498 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.25]Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q9 failed at: 2022-5-20 16:27:24:808:61 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/wat_sda_dirty_write_2commit.txt b/result/result/ob_ce3.1_mysql/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..3bc41278 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:25:59:815:201 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:25:59:856:231 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:26:0:314:482 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-20 16:26:0:815:984 +Q5 finished at: 2022-5-20 16:26:0:817:96 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 16:26:1:315:980 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-5-20 16:26:1:358:19 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-5-20 16:26:1:419:809 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:26:1:460:303 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/wat_sda_full_write.txt b/result/result/ob_ce3.1_mysql/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..140b1548 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:26:4:787:702 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:26:4:828:511 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:26:5:287:826 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-20 16:26:5:788:833 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 16:26:5:829:564 + Q4 finished at: 2022-5-20 16:26:5:830:513 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 16:26:6:290:504 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-20 16:26:6:333:290 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:26:6:374:699 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/wat_sda_full_write_committed.txt b/result/result/ob_ce3.1_mysql/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..58dc69a1 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:26:9:760:524 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:26:9:802:11 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:26:10:261:948 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-20 16:26:10:761:789 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:26:10:803:183 + Q4 finished at: 2022-5-20 16:26:10:803:468 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 16:26:10:845:740 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-20 16:26:10:887:828 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:26:10:928:126 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/wat_sda_lost_self_update_committed.txt b/result/result/ob_ce3.1_mysql/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..89470476 --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:26:19:230:69 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 16:26:19:270:745 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:26:19:731:772 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 16:26:20:232:266 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 16:26:20:273:363 + Q4 finished at: 2022-5-20 16:26:20:273:746 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 16:26:20:315:877 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:26:20:357:193 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:26:20:396:950 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_ce3.1_mysql/repeatable-read/wat_sda_lost_update_c1.txt b/result/result/ob_ce3.1_mysql/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..7710f82b --- /dev/null +++ b/result/result/ob_ce3.1_mysql/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 16:26:14:277:935 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 16:26:14:317:965 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 16:26:14:778:637 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 16:26:14:819:453 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 16:26:15:780:541 +Q5 finished at: 2022-5-20 16:26:15:783:139 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 16:26:15:822:762 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 16:26:15:860:894 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 16:26:15:897:462 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_ce3.1_mysql/result_summary/read-committed_total-result.txt b/result/result/ob_ce3.1_mysql/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..a211bb8b --- /dev/null +++ b/result/result/ob_ce3.1_mysql/result_summary/read-committed_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Timeout + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/result/result/ob_ce3.1_mysql/result_summary/repeatable-read_total-result.txt b/result/result/ob_ce3.1_mysql/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..a211bb8b --- /dev/null +++ b/result/result/ob_ce3.1_mysql/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Timeout + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/result/result/ob_xe2.2_oracle/read-committed/iat_dda_read_skew_committed.txt b/result/result/ob_xe2.2_oracle/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..4b05ffa3 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:52:24:780 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:8:52:28:491 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:52:124:872 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:52:128:134 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:8:52:129:880 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:52:132:83 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:8:52:225:574 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:8:52:226:645 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:52:229:645 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:52:230:537 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/read-committed/iat_dda_read_write_skew1_committed.txt b/result/result/ob_xe2.2_oracle/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..8ea2343d --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:52:536:150 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:8:52:539:275 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:52:636:175 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:52:639:253 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:8:52:641:43 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:52:643:331 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:8:52:736:836 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:8:52:741:79 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:52:744:399 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:52:745:352 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/read-committed/iat_dda_write_skew.txt b/result/result/ob_xe2.2_oracle/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..a26cfff8 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:53:50:688 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:8:53:54:454 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:53:150:663 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:8:53:152:377 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:8:53:155:305 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:8:53:251:188 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:53:253:454 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:8:53:353:194 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:53:356:267 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:8:53:357:359 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/read-committed/iat_dda_write_skew_committed.txt b/result/result/ob_xe2.2_oracle/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..c70e9460 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:53:660:918 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:8:53:664:807 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:53:764:152 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:8:53:766:36 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:8:53:769:744 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:53:771:841 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:8:53:863:727 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:8:53:867:379 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:53:870:181 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:53:871:171 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/read-committed/iat_dda_write_skew_pred_insert.txt b/result/result/ob_xe2.2_oracle/read-committed/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..da6c30c4 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:56:137:236 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:8:56:141:346 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:56:237:195 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-20 15:8:56:240:148 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-20 15:8:56:242:875 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-20 15:8:56:337:531 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:56:339:775 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:8:56:441:251 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-20 15:8:56:450:276 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:56:451:524 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/read-committed/iat_mda_step_iat.txt b/result/result/ob_xe2.2_oracle/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..6d20e995 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:54:254:984 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-20 15:8:54:258:568 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:54:354:867 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:8:54:356:992 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-5-20 15:8:54:454:934 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-20 15:8:54:456:959 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-20 15:8:54:558:752 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-20 15:8:54:655:403 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-20 15:8:54:755:576 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-20 15:8:54:856:538 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-20 15:8:54:957:378 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-20 15:8:55:56:494 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 15:8:55:59:730 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-20 15:8:55:60:736 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/read-committed/iat_sda_lost_update_committed.txt b/result/result/ob_xe2.2_oracle/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..abfbfdb0 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:51:515:951 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 15:8:51:519:691 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:51:616:27 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 15:8:51:619:335 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:8:51:622:54 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-5-20 15:8:51:716:742 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:51:720:237 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:8:51:722:858 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:51:723:801 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/read-committed/iat_sda_non_repeatable_read_committed.txt b/result/result/ob_xe2.2_oracle/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..278df9cc --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,57 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:50:992:474 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:8:50:995:462 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:51:92:401 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 15:8:51:95:200 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:8:51:97:571 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 15:8:51:192:998 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:51:193:922 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:8:51:196:414 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:51:197:430 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/read-committed/rat_dda_double_write_skew1.txt b/result/result/ob_xe2.2_oracle/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..43f99185 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:20:319:938 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:20:323:433 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:20:420:106 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:20:421:736 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:8:20:424:280 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:8:20:625:339 +Q6 finished at: 2022-5-20 15:8:20:625:618 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:8:20:725:737 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-20 15:8:20:729:259 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:20:730:274 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/read-committed/rat_dda_double_write_skew1_committed.txt b/result/result/ob_xe2.2_oracle/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..29789608 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:21:90:389 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:21:94:75 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:21:190:654 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:21:192:486 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:8:21:195:204 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:21:201:135 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-5-20 15:8:21:291:114 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:8:21:293:641 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-20 15:8:21:301:830 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:21:302:914 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/read-committed/rat_dda_double_write_skew2.txt b/result/result/ob_xe2.2_oracle/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..edc808a5 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:21:654:600 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:21:658:173 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:21:754:616 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:21:756:303 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:8:21:856:202 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:21:858:227 + Q5 finished at: 2022-5-20 15:8:21:858:450 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:8:21:957:223 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:21:960:145 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:21:961:64 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/read-committed/rat_dda_read_skew.txt b/result/result/ob_xe2.2_oracle/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..3dce7d66 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:22:262:351 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:8:22:265:660 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:22:362:528 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:22:365:573 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:8:22:367:210 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:8:22:463:293 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:8:22:564:654 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:8:22:662:356 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:22:665:382 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:22:666:520 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/read-committed/rat_dda_read_skew2.txt b/result/result/ob_xe2.2_oracle/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..f80d69d0 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:23:31:360 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:23:36:546 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:23:131:73 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:8:23:137:296 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:8:23:139:672 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:8:23:232:194 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:23:234:730 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:8:23:331:874 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:23:335:68 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:23:336:290 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/read-committed/rat_dda_read_skew2_committed.txt b/result/result/ob_xe2.2_oracle/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..338f34dd --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:23:650:265 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:23:654:201 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:23:750:152 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:8:23:753:101 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:8:23:754:718 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:23:755:722 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:8:23:850:764 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:8:23:853:293 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:23:856:203 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:23:857:165 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/read-committed/rat_dda_write_read_skew.txt b/result/result/ob_xe2.2_oracle/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..ae196e0f --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:19:10:386 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:19:19:863 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:19:110:312 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:19:111:950 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:8:19:114:540 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:8:19:212:572 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:8:19:311:878 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:8:19:411:486 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:19:414:247 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:19:415:217 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/read-committed/rat_dda_write_read_skew_committed.txt b/result/result/ob_xe2.2_oracle/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..684620f8 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:19:766:51 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:19:773:932 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:19:866:88 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:19:867:601 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:8:19:870:162 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:19:872:455 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:8:19:966:725 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:8:19:969:27 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:19:972:174 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:19:973:211 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/read-committed/rat_mda_step_rat.txt b/result/result/ob_xe2.2_oracle/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..b3698a48 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:24:178:314 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:24:181:905 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:24:277:561 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:24:279:241 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:8:24:282:434 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-5-20 15:8:24:377:581 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-20 15:8:24:379:210 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-20 15:8:24:381:265 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-20 15:8:24:478:983 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-20 15:8:24:481:105 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-20 15:8:24:578:772 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-20 15:8:24:681:230 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 15:8:24:685:110 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-20 15:8:24:686:317 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/read-committed/rat_sda_dirty_read.txt b/result/result/ob_xe2.2_oracle/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..606c0d93 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,46 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:15:693:699 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:15:697:236 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:15:793:861 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:8:15:796:532 +Q5-T1 execute opt: 'ROLLBACK;' +Q5 finished at: 2022-5-20 15:8:15:896:342 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:15:995:899 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-20 15:8:15:998:402 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:8:15:999:399 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/read-committed/rat_sda_intermediate_read.txt b/result/result/ob_xe2.2_oracle/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..4a0ba909 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:17:107:809 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:17:111:843 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:17:207:795 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:8:17:210:834 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-20 15:8:17:308:218 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:17:407:786 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:17:509:141 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 15:8:17:511:755 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:17:512:756 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/read-committed/rat_sda_intermediate_read_committed.txt b/result/result/ob_xe2.2_oracle/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..9ae0a9fd --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:17:848:246 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:17:851:815 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:17:949:844 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:8:17:952:379 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:8:17:953:319 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-20 15:8:18:52:0 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:18:54:359 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 15:8:18:57:54 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:18:57:989 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/read-committed/rat_sda_lost_self_update.txt b/result/result/ob_xe2.2_oracle/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..b2045d65 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:18:357:59 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:18:361:65 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:18:456:794 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:8:18:558:738 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 15:8:18:581:754 + Q4 finished at: 2022-5-20 15:8:18:581:851 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:8:18:661:124 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:8:18:663:668 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:18:664:599 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/read-committed/rat_sda_non_repeatable_read.txt b/result/result/ob_xe2.2_oracle/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..88ac442d --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:16:343:510 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:8:16:347:103 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:16:443:523 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 15:8:16:446:488 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:8:16:544:27 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:16:644:840 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:16:743:968 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:8:16:751:406 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:16:752:385 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/read-committed/rat_sda_non_repeatable_read_pred_insert.txt b/result/result/ob_xe2.2_oracle/read-committed/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..dae958e2 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:55:400:603 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:8:55:404:483 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:55:500:744 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-20 15:8:55:503:450 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:8:55:604:561 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:55:701:616 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:55:804:21 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:8:55:812:368 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:55:813:467 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/read-committed/wat_dda_double_write_skew2_committed.txt b/result/result/ob_xe2.2_oracle/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..a8a0171b --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,55 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:27:921:596 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:27:925:430 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:28:25:324 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:28:27:63 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:8:28:126:61 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:8:28:128:485 + Q5 finished at: 2022-5-20 15:8:28:128:771 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:28:130:603 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:28:133:355 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:28:134:410 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/read-committed/wat_dda_full_write_skew_c1.txt b/result/result/ob_xe2.2_oracle/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..de5f7b3e --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:28:433:526 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:28:437:385 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:28:533:675 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:28:535:492 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-5-20 15:8:34:704:102 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-5-20 15:8:34:876:304 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/result/result/ob_xe2.2_oracle/read-committed/wat_dda_full_write_skew_committed.txt b/result/result/ob_xe2.2_oracle/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..cd3a07a5 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:35:180:315 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:35:189:615 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:35:280:201 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:35:281:755 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-5-20 15:8:40:982:290 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q7 failed at: 2022-5-20 15:8:41:562:188 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/result/result/ob_xe2.2_oracle/read-committed/wat_dda_read_write_skew1_c1.txt b/result/result/ob_xe2.2_oracle/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..64cf26dd --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:41:873:378 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:8:41:877:189 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:41:973:575 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:41:977:40 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:8:41:978:712 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:8:42:177:483 +Q6 finished at: 2022-5-20 15:8:42:177:524 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:42:179:840 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:42:182:516 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:42:183:378 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/read-committed/wat_dda_read_write_skew2_c1.txt b/result/result/ob_xe2.2_oracle/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..fc4737d0 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:42:509:571 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:42:513:477 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:42:609:321 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:8:42:611:957 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:8:42:710:453 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:42:712:813 + Q5 finished at: 2022-5-20 15:8:42:713:247 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:8:42:811:282 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:42:814:538 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:42:815:702 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/read-committed/wat_dda_read_write_skew2_committed.txt b/result/result/ob_xe2.2_oracle/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..5e355985 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,53 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:43:143:710 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:43:147:423 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:43:244:222 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:8:43:252:647 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:8:43:344:141 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:8:43:346:326 + Q5 finished at: 2022-5-20 15:8:43:346:543 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:43:348:528 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:8:43:351:345 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:8:43:352:401 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/read-committed/wat_mda_step_wat_c1.txt b/result/result/ob_xe2.2_oracle/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..422fef34 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:43:681:496 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:43:685:598 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:43:784:326 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:8:43:786:220 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-5-20 15:8:43:884:146 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-20 15:8:43:885:908 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-5-20 15:8:49:341:621 + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q8 failed at: 2022-5-20 15:8:49:702:655 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-5-20 15:8:50:687:903 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/result/result/ob_xe2.2_oracle/read-committed/wat_sda_dirty_write_2commit.txt b/result/result/ob_xe2.2_oracle/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..8c4bb977 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:24:997:287 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:25:0:807 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:25:97:555 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-20 15:8:25:200:75 + Q4 finished at: 2022-5-20 15:8:25:200:374 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:25:298:432 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-5-20 15:8:25:301:156 + Q8-T3 execute sql: 'DROP TABLE t1;' + Q8 finished at: 2022-5-20 15:8:25:315:282 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:25:316:303 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/read-committed/wat_sda_full_write.txt b/result/result/ob_xe2.2_oracle/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..0b394a83 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/wat_sda_full_write.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:25:627:654 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:25:632:318 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:25:728:30 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-20 15:8:25:836:750 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 15:8:25:847:292 + Q4 finished at: 2022-5-20 15:8:25:848:13 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:8:25:937:588 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-20 15:8:25:940:322 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:25:941:366 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/read-committed/wat_sda_full_write_committed.txt b/result/result/ob_xe2.2_oracle/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..de4394e0 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,45 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:26:243:430 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:26:247:393 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:26:343:448 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-20 15:8:26:443:899 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:26:447:417 + Q4 finished at: 2022-5-20 15:8:26:448:21 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:8:26:456:602 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-20 15:8:26:459:143 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:26:460:120 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/read-committed/wat_sda_lost_self_update_committed.txt b/result/result/ob_xe2.2_oracle/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..114edce3 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:27:393:439 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:27:397:201 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:27:493:518 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 15:8:27:595:322 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:27:609:186 + Q4 finished at: 2022-5-20 15:8:27:609:697 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:8:27:612:136 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:8:27:614:916 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:27:615:912 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/read-committed/wat_sda_lost_update_c1.txt b/result/result/ob_xe2.2_oracle/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..ccb14bdd --- /dev/null +++ b/result/result/ob_xe2.2_oracle/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,50 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:26:777:837 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 15:8:26:781:32 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:26:877:979 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 15:8:26:881:138 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:8:27:81:202 +Q5 finished at: 2022-5-20 15:8:27:81:512 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 15:8:27:83:584 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:8:27:86:373 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:27:87:518 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/iat_dda_read_skew_committed.txt b/result/result/ob_xe2.2_oracle/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..b8d30cee --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:38:858:77 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:9:38:861:724 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:38:957:965 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:38:960:817 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:9:38:962:403 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:38:964:435 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:9:39:58:696 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:39:60:52 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:39:62:814 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:39:63:814 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/iat_dda_read_write_skew1_committed.txt b/result/result/ob_xe2.2_oracle/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..8ee0b032 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:39:364:760 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:9:39:368:197 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:39:464:703 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:39:468:9 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:9:39:469:786 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:39:472:203 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-5-20 15:9:40:267:829 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/iat_dda_write_skew.txt b/result/result/ob_xe2.2_oracle/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..594287e7 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:40:574:989 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:9:40:578:156 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:40:676:105 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:9:40:678:28 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:9:40:681:1 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:9:40:775:499 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:40:777:738 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:9:40:876:374 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:40:884:304 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:9:40:885:243 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/iat_dda_write_skew_committed.txt b/result/result/ob_xe2.2_oracle/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..257a07e0 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:41:182:295 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:9:41:186:83 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:41:281:547 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:9:41:283:164 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:9:41:285:962 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:41:288:781 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:9:41:384:105 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:41:386:278 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:41:389:18 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:41:390:19 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/iat_dda_write_skew_pred_insert.txt b/result/result/ob_xe2.2_oracle/repeatable-read/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..3fd91360 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:43:488:129 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:9:43:492:44 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:43:588:194 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-20 15:9:43:591:217 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-20 15:9:43:593:965 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-20 15:9:43:692:496 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:43:694:783 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:9:43:789:245 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-20 15:9:43:792:298 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:43:793:323 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/iat_mda_step_iat.txt b/result/result/ob_xe2.2_oracle/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..2c7b977f --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:41:696:669 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-20 15:9:41:704:903 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:41:796:615 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:9:41:798:527 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-5-20 15:9:41:897:381 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-20 15:9:41:899:383 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-20 15:9:41:998:827 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-20 15:9:42:97:261 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-20 15:9:42:197:172 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-20 15:9:42:298:318 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-20 15:9:42:398:113 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-20 15:9:42:498:271 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 15:9:42:501:547 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-20 15:9:42:502:526 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/iat_sda_lost_update_committed.txt b/result/result/ob_xe2.2_oracle/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..49b784f3 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:37:756:247 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 15:9:37:759:448 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:37:856:284 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 15:9:37:859:343 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:9:37:861:766 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-20 15:9:38:557:489 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/result/result/ob_xe2.2_oracle/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..c051d938 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:37:242:504 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:9:37:245:748 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:37:344:188 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 15:9:37:347:173 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:9:37:349:73 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 15:9:37:442:393 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:37:443:526 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:9:37:446:187 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:9:37:447:216 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_double_write_skew1.txt b/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..6823aa72 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:1:768:739 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:1:772:162 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:1:868:655 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:1:870:260 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:1:872:947 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:9:2:70:918 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-20 15:9:2:671:710 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_double_write_skew1_committed.txt b/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..1d9116af --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:3:37:929 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:3:41:880 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:3:137:851 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:3:140:51 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:3:143:402 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:3:146:997 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-5-20 15:9:3:939:302 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_double_write_skew2.txt b/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..987fb46e --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:4:283:333 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:4:291:752 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:4:383:173 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:4:384:766 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:9:4:485:569 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:4:488:510 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:9:4:989:497 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_read_skew.txt b/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..cd953c87 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:5:337:731 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:9:5:341:325 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:5:440:306 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:5:444:61 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:9:5:446:109 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:9:5:538:628 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:9:5:641:824 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:5:737:542 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:5:740:574 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:5:741:800 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_read_skew2.txt b/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..e5af4387 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:6:57:368 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:6:61:472 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:6:160:295 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:9:6:163:239 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:6:164:892 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:9:6:260:766 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:6:263:145 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:9:6:357:182 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:6:360:230 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:6:361:292 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_read_skew2_committed.txt b/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..a9e96fb9 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:6:674:161 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:6:678:591 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:6:774:24 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:9:6:776:790 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:6:778:633 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:6:779:666 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:9:6:874:782 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:6:877:171 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:6:880:211 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:6:881:319 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_write_read_skew.txt b/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..02cb33ce --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:0:488:826 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:0:492:289 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:0:591:959 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:0:593:512 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:0:595:983 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:9:0:692:575 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:9:0:790:917 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:0:892:849 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:0:895:619 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:0:896:582 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_write_read_skew_committed.txt b/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..6cff641b --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:1:231:705 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:1:235:394 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:1:331:727 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:1:343:153 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:1:345:947 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:1:348:14 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:9:1:432:828 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:1:436:698 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:1:439:965 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:1:440:939 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/rat_mda_step_rat.txt b/result/result/ob_xe2.2_oracle/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..a8523e12 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:7:227:402 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:7:231:157 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:7:327:347 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:7:328:943 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:7:331:938 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-5-20 15:9:7:428:203 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-20 15:9:7:429:955 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-20 15:9:7:432:294 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-20 15:9:7:533:433 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-20 15:9:7:543:806 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-20 15:9:7:628:657 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-20 15:9:7:734:633 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 15:9:7:738:383 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-20 15:9:7:739:565 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/rat_sda_dirty_read.txt b/result/result/ob_xe2.2_oracle/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..4f462624 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,46 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:56:860:607 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:56:864:185 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:56:960:503 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:8:56:963:170 +Q5-T1 execute opt: 'ROLLBACK;' +Q5 finished at: 2022-5-20 15:8:57:60:567 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:57:160:510 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-20 15:8:57:163:163 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:8:57:164:121 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/rat_sda_intermediate_read.txt b/result/result/ob_xe2.2_oracle/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..a9b3d0d8 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:58:264:220 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:58:268:349 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:58:364:44 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:8:58:366:833 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-20 15:8:58:464:642 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:58:564:2 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:58:665:403 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 15:8:58:668:139 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:58:669:131 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/rat_sda_intermediate_read_committed.txt b/result/result/ob_xe2.2_oracle/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..c7fb040c --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:58:972:110 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:58:975:750 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:59:71:889 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:8:59:74:572 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:8:59:75:703 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-20 15:8:59:172:558 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:59:175:123 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 15:8:59:177:824 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:59:179:10 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/rat_sda_lost_self_update.txt b/result/result/ob_xe2.2_oracle/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..399574db --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:59:537:492 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:8:59:546:652 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:59:637:495 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:8:59:738:915 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 15:8:59:741:378 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:9:0:142:213 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/rat_sda_non_repeatable_read.txt b/result/result/ob_xe2.2_oracle/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..03148363 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:8:57:499:356 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:8:57:503:36 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:8:57:600:156 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 15:8:57:603:323 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:8:57:700:688 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:8:57:800:143 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:8:57:898:976 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:8:57:905:986 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:8:57:906:972 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt b/result/result/ob_xe2.2_oracle/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..e62eddf5 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:42:797:238 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:9:42:801:366 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:42:897:85 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-20 15:9:42:899:597 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:9:42:997:557 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:43:98:433 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:43:197:4 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:9:43:199:721 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:9:43:200:876 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/wat_dda_double_write_skew2_committed.txt b/result/result/ob_xe2.2_oracle/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..1d138de1 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:12:864:981 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:12:868:855 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:12:965:310 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:12:967:128 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:9:13:66:770 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:13:69:298 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:9:13:570:564 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/wat_dda_full_write_skew_c1.txt b/result/result/ob_xe2.2_oracle/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..85818a01 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:13:897:580 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:13:901:268 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:14:0:63 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:14:1:739 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-20 15:9:18:954:169 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:9:18:956:675 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-5-20 15:9:19:557:268 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/wat_dda_full_write_skew_committed.txt b/result/result/ob_xe2.2_oracle/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..b7ecf466 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:19:869:80 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:19:872:591 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:19:969:103 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:19:970:892 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-5-20 15:9:25:637:970 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q7 failed at: 2022-5-20 15:9:26:619:203 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/wat_dda_read_write_skew1_c1.txt b/result/result/ob_xe2.2_oracle/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..bbe6e7ac --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:26:940:219 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:9:26:944:323 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:27:38:251 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:27:41:674 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:9:27:43:539 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:9:27:241:703 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-20 15:9:27:842:444 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/wat_dda_read_write_skew2_c1.txt b/result/result/ob_xe2.2_oracle/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..3e5d63de --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:28:148:106 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:28:151:569 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:28:248:611 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:9:28:251:186 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:9:28:348:666 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:28:351:19 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:9:28:851:801 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/wat_dda_read_write_skew2_committed.txt b/result/result/ob_xe2.2_oracle/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..1d218bdd --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:29:190:269 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:29:194:353 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:29:289:963 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:9:29:292:874 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:9:29:390:360 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:29:393:352 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:9:29:893:563 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/wat_mda_step_wat_c1.txt b/result/result/ob_xe2.2_oracle/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..5e35e3a3 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:30:217:100 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:30:221:37 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:30:317:383 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:30:319:31 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-5-20 15:9:30:417:140 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-20 15:9:30:418:857 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q8 failed at: 2022-5-20 15:9:36:364:855 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-5-20 15:9:36:392:227 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-5-20 15:9:36:936:628 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/wat_sda_dirty_write_2commit.txt b/result/result/ob_xe2.2_oracle/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..a5871411 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,29 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:8:75:282 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:8:78:840 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:8:175:993 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-20 15:9:8:277:329 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:9:8:678:180 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/wat_sda_full_write.txt b/result/result/ob_xe2.2_oracle/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..fc966edb --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:8:981:415 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:8:985:976 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:9:81:340 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-20 15:9:9:182:99 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 15:9:9:188:440 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:9:9:591:939 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/wat_sda_full_write_committed.txt b/result/result/ob_xe2.2_oracle/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..9b460f54 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:9:906:429 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:9:910:123 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:10:6:910 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-20 15:9:10:107:309 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:10:109:974 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:9:10:510:907 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/wat_sda_lost_self_update_committed.txt b/result/result/ob_xe2.2_oracle/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..3bc9fa64 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:11:953:809 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:11:957:681 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:12:53:752 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 15:9:12:155:53 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:12:157:398 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:9:12:557:958 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/repeatable-read/wat_sda_lost_update_c1.txt b/result/result/ob_xe2.2_oracle/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..57a15c4b --- /dev/null +++ b/result/result/ob_xe2.2_oracle/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:10:840:823 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 15:9:10:844:123 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:10:940:911 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 15:9:10:944:697 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:9:11:141:625 +Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q5 failed at: 2022-5-20 15:9:11:642:620 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/result_summary/read-committed_total-result.txt b/result/result/ob_xe2.2_oracle/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..a211bb8b --- /dev/null +++ b/result/result/ob_xe2.2_oracle/result_summary/read-committed_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Timeout + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/result/result/ob_xe2.2_oracle/result_summary/repeatable-read_total-result.txt b/result/result/ob_xe2.2_oracle/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..784c71d8 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Timeout + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/result/result/ob_xe2.2_oracle/result_summary/serializable_total-result.txt b/result/result/ob_xe2.2_oracle/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..784c71d8 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/result_summary/serializable_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Timeout + +wat_dda_full_write_skew_committed: Timeout + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Timeout + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/result/result/ob_xe2.2_oracle/serializable/iat_dda_read_skew_committed.txt b/result/result/ob_xe2.2_oracle/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..a7c4ec37 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:25:50:469 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:10:25:54:536 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:25:150:749 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:10:25:154:194 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:10:25:156:13 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:10:25:158:284 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:10:25:258:859 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:10:25:260:36 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:10:25:264:765 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:10:25:265:645 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/serializable/iat_dda_read_write_skew1_committed.txt b/result/result/ob_xe2.2_oracle/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..da7d5627 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:25:589:981 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:10:25:597:658 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:25:689:994 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:10:25:693:114 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:10:25:694:873 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:10:25:697:230 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-5-20 15:10:26:491:736 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/serializable/iat_dda_write_skew.txt b/result/result/ob_xe2.2_oracle/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..b8c9fb32 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/iat_dda_write_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:26:804:466 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:10:26:808:468 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:26:908:593 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:10:26:910:653 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:10:26:913:569 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:10:27:5:585 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:10:27:7:952 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:10:27:111:928 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:10:27:115:172 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:10:27:116:201 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/serializable/iat_dda_write_skew_committed.txt b/result/result/ob_xe2.2_oracle/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..eaa637dc --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:27:424:225 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:10:27:427:919 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:27:527:347 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:10:27:529:338 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:10:27:532:424 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:10:27:534:632 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:10:27:624:606 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:10:27:626:792 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:10:27:629:560 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:10:27:630:507 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/serializable/iat_dda_write_skew_pred_insert.txt b/result/result/ob_xe2.2_oracle/serializable/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..b27bb466 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:29:743:588 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:10:29:748:122 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:29:843:725 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-20 15:10:29:846:987 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-20 15:10:29:849:839 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-20 15:10:29:944:553 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:10:29:948:443 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:10:30:44:481 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-20 15:10:30:47:398 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:10:30:48:334 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/serializable/iat_mda_step_iat.txt b/result/result/ob_xe2.2_oracle/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..425500b0 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/iat_mda_step_iat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:27:934:236 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-20 15:10:27:938:108 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:28:34:286 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:10:28:36:263 + Q5-T3 execute sql: 'BEGIN;' + Q5 finished at: 2022-5-20 15:10:28:134:140 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-20 15:10:28:136:79 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-20 15:10:28:236:13 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-20 15:10:28:334:951 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-20 15:10:28:434:690 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-20 15:10:28:535:622 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-20 15:10:28:635:529 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-20 15:10:28:735:475 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 15:10:28:738:654 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-20 15:10:28:739:765 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/serializable/iat_sda_lost_update_committed.txt b/result/result/ob_xe2.2_oracle/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..8019ffd9 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:23:927:576 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 15:10:23:930:956 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:24:27:279 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 15:10:24:30:279 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:10:24:32:538 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-20 15:10:24:729:256 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/serializable/iat_sda_non_repeatable_read_committed.txt b/result/result/ob_xe2.2_oracle/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..560112ce --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:23:420:569 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:10:23:423:846 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:23:520:319 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 15:10:23:523:272 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:10:23:525:253 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 15:10:23:621:63 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:10:23:622:85 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:10:23:625:35 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:10:23:626:255 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/serializable/rat_dda_double_write_skew1.txt b/result/result/ob_xe2.2_oracle/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..7ed16095 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:48:959:683 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:48:964:15 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:49:59:752 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:49:61:537 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:49:64:465 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:9:49:261:251 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-20 15:9:49:862:21 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/serializable/rat_dda_double_write_skew1_committed.txt b/result/result/ob_xe2.2_oracle/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..05154185 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:50:168:963 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:50:172:595 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:50:269:370 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:50:271:119 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:50:274:30 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:50:278:525 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-5-20 15:9:51:70:64 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/serializable/rat_dda_double_write_skew2.txt b/result/result/ob_xe2.2_oracle/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..fd64a12e --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:51:366:473 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:51:369:927 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:51:466:355 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:51:468:57 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:9:51:568:43 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:51:570:435 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:9:52:71:241 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/serializable/rat_dda_read_skew.txt b/result/result/ob_xe2.2_oracle/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..6c0eb22f --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/rat_dda_read_skew.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:52:371:421 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:9:52:374:393 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:52:471:420 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:52:474:462 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:9:52:475:949 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:9:52:571:961 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:9:52:672:889 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:52:771:493 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:52:779:834 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:52:781:144 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/serializable/rat_dda_read_skew2.txt b/result/result/ob_xe2.2_oracle/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..7bd5eb12 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:53:80:128 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:53:83:905 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:53:180:251 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:9:53:183:182 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:53:185:403 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:9:53:280:569 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:53:282:882 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:9:53:380:154 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:53:388:382 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:53:389:682 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/serializable/rat_dda_read_skew2_committed.txt b/result/result/ob_xe2.2_oracle/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..99469df6 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,62 @@ +#### db_type: ob #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:53:706:940 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:53:710:542 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:53:813:397 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:9:53:815:941 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:53:817:492 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:53:818:426 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:9:53:912:41 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:53:914:441 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:53:917:380 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:53:918:419 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/serializable/rat_dda_write_read_skew.txt b/result/result/ob_xe2.2_oracle/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..eee6cd6c --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:47:733:833 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:47:740:340 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:47:836:261 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:47:839:24 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:47:843:618 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:9:47:933:410 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:9:48:59:575 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:48:133:848 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:48:136:805 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:48:137:804 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/serializable/rat_dda_write_read_skew_committed.txt b/result/result/ob_xe2.2_oracle/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..58da3bb6 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,60 @@ +#### db_type: ob #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:48:452:772 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:48:457:58 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:48:552:391 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:48:590:30 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:48:608:846 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:48:611:328 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:9:48:652:912 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:48:654:967 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:9:48:657:606 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-20 15:9:48:658:491 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/serializable/rat_mda_step_rat.txt b/result/result/ob_xe2.2_oracle/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..efa2a7d0 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/rat_mda_step_rat.txt @@ -0,0 +1,108 @@ +#### db_type: ob #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:54:225:662 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:54:229:404 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:54:325:739 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:54:327:373 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:9:54:330:496 + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-5-20 15:9:54:425:755 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-20 15:9:54:427:344 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-20 15:9:54:429:483 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-20 15:9:54:528:880 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-20 15:9:54:531:372 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-20 15:9:54:626:937 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-20 15:9:54:727:208 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 15:9:54:730:418 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-20 15:9:54:731:505 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/ob_xe2.2_oracle/serializable/rat_sda_dirty_read.txt b/result/result/ob_xe2.2_oracle/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..f5a04ee7 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,46 @@ +#### db_type: ob #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:44:157:585 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:44:161:64 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:44:257:550 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:9:44:260:366 +Q5-T1 execute opt: 'ROLLBACK;' +Q5 finished at: 2022-5-20 15:9:44:360:254 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:44:457:674 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-20 15:9:44:460:535 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:9:44:461:555 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/serializable/rat_sda_intermediate_read.txt b/result/result/ob_xe2.2_oracle/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..b8b166b9 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:45:491:145 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:45:495:881 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:45:590:867 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:9:45:593:396 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-20 15:9:45:701:853 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:45:793:106 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:45:905:636 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 15:9:45:912:129 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:9:45:913:427 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/serializable/rat_sda_intermediate_read_committed.txt b/result/result/ob_xe2.2_oracle/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..64ca2ed3 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,52 @@ +#### db_type: ob #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:46:241:623 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:46:245:571 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:46:342:83 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:9:46:345:20 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:9:46:345:962 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-20 15:9:46:442:845 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:46:445:253 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 15:9:46:448:153 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:9:46:449:250 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/serializable/rat_sda_lost_self_update.txt b/result/result/ob_xe2.2_oracle/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..95586fa3 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:46:766:9 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:46:769:686 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:46:866:172 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:9:46:968:16 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 15:9:46:970:370 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:9:47:371:264 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/serializable/rat_sda_non_repeatable_read.txt b/result/result/ob_xe2.2_oracle/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..49a69608 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,59 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:44:785:707 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:9:44:789:803 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:44:885:409 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 15:9:44:888:452 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:9:44:988:908 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:9:45:86:975 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:45:185:708 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:9:45:188:613 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:9:45:189:706 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/serializable/rat_sda_non_repeatable_read_pred_insert.txt b/result/result/ob_xe2.2_oracle/serializable/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..7cfbcdc1 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,58 @@ +#### db_type: ob #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:29:41:876 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:10:29:46:322 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:29:141:907 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-20 15:10:29:145:142 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:10:29:243:269 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-20 15:10:29:343:65 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:10:29:443:604 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:10:29:446:101 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-20 15:10:29:446:968 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/ob_xe2.2_oracle/serializable/wat_dda_double_write_skew2_committed.txt b/result/result/ob_xe2.2_oracle/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..42e8a870 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:59:791:632 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:59:795:669 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:59:891:607 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:9:59:893:227 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:9:59:994:233 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:9:59:996:629 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:10:0:497:448 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/serializable/wat_dda_full_write_skew_c1.txt b/result/result/ob_xe2.2_oracle/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..7f09f0b8 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:0:819:783 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:10:0:823:339 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:0:919:810 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:10:0:921:560 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-20 15:10:5:905:452 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:10:5:908:375 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q6 failed at: 2022-5-20 15:10:6:508:579 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/result/result/ob_xe2.2_oracle/serializable/wat_dda_full_write_skew_committed.txt b/result/result/ob_xe2.2_oracle/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..38e22475 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: ob #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:6:853:95 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:10:6:857:29 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:6:952:858 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:10:6:954:408 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-5-20 15:10:12:706:753 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q7 failed at: 2022-5-20 15:10:13:528:793 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/result/result/ob_xe2.2_oracle/serializable/wat_dda_read_write_skew1_c1.txt b/result/result/ob_xe2.2_oracle/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..b9252de4 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:13:843:159 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:10:13:846:934 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:13:942:946 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:10:13:945:776 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:10:13:947:373 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-20 15:10:14:144:180 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-20 15:10:14:744:932 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/serializable/wat_dda_read_write_skew2_c1.txt b/result/result/ob_xe2.2_oracle/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..bf3c562e --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:15:60:768 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:10:15:65:245 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:15:160:445 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:10:15:162:997 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:10:15:260:945 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:10:15:263:262 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:10:15:764:207 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/serializable/wat_dda_read_write_skew2_committed.txt b/result/result/ob_xe2.2_oracle/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..2bc0599c --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,41 @@ +#### db_type: ob #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:16:68:868 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:10:16:72:364 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:16:168:984 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:10:16:171:402 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:10:16:269:730 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-20 15:10:16:271:877 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:10:16:772:650 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/serializable/wat_mda_step_wat_c1.txt b/result/result/ob_xe2.2_oracle/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..0c1d11ab --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: ob #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:10:17:82:290 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:10:17:86:547 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:10:17:182:36 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:10:17:183:643 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN;' + Q6 finished at: 2022-5-20 15:10:17:284:214 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-20 15:10:17:285:883 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 finished at: 2022-5-20 15:10:22:203:175 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-20 15:10:22:205:975 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 + Q5 failed at: 2022-5-20 15:10:22:794:269 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]resource busy; acquire with WAIT timeout expired errcode: HY000 +Q9 failed at: 2022-5-20 15:10:23:106:816 + +Test Result: Timeout +Reason: Transaction execution timeout + diff --git a/result/result/ob_xe2.2_oracle/serializable/wat_sda_dirty_write_2commit.txt b/result/result/ob_xe2.2_oracle/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..6ef43e65 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,29 @@ +#### db_type: ob #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:55:31:378 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:55:34:957 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:55:131:471 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-20 15:9:55:233:299 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:9:55:634:140 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/serializable/wat_sda_full_write.txt b/result/result/ob_xe2.2_oracle/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..363b7309 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/wat_sda_full_write.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:55:940:501 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:55:943:966 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:56:40:460 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-20 15:9:56:140:951 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 15:9:56:143:98 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:9:56:544:126 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/serializable/wat_sda_full_write_committed.txt b/result/result/ob_xe2.2_oracle/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..0f8800ab --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,31 @@ +#### db_type: ob #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:56:862:171 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:56:866:219 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:56:962:0 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-20 15:9:57:64:616 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:57:66:917 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:9:57:467:904 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/serializable/wat_sda_lost_self_update_committed.txt b/result/result/ob_xe2.2_oracle/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..db01cfd2 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:58:877:126 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:9:58:884:757 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:58:977:133 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 15:9:59:78:753 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-20 15:9:59:85:199 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:9:59:485:665 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/ob_xe2.2_oracle/serializable/wat_sda_lost_update_c1.txt b/result/result/ob_xe2.2_oracle/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..843683a3 --- /dev/null +++ b/result/result/ob_xe2.2_oracle/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,38 @@ +#### db_type: ob #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN;' +Q1 finished at: 2022-5-20 15:9:57:778:116 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 15:9:57:781:485 + Q3-T2 execute sql: 'BEGIN;' + Q3 finished at: 2022-5-20 15:9:57:877:719 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 15:9:57:880:766 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-20 15:9:58:79:40 +Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction errcode: HY000 +Q5 failed at: 2022-5-20 15:9:58:579:878 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25]can't serialize access for this transaction + diff --git a/result/result/oracle_12c/read-committed/iat_dda_read_skew_committed.txt b/result/result/oracle_12c/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..9a785e47 --- /dev/null +++ b/result/result/oracle_12c/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:38:482:532 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:38:486:249 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:38:582:396 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:38:585:972 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:16:38:588:484 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:16:38:684:935 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:38:690:19 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_12c/read-committed/iat_dda_read_write_skew1_committed.txt b/result/result/oracle_12c/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..a68518d1 --- /dev/null +++ b/result/result/oracle_12c/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,50 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:38:935:93 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:38:938:490 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:39:35:466 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:39:40:944 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:16:39:43:779 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:16:39:137:950 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:39:144:849 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_12c/read-committed/iat_dda_write_skew.txt b/result/result/oracle_12c/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..7bc1c2d5 --- /dev/null +++ b/result/result/oracle_12c/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:39:389:831 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:39:393:695 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:39:490:682 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:16:39:494:189 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:16:39:497:148 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:16:39:593:13 +Q7-T1 execute opt: 'COMMIT;' + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:39:697:36 + Q8-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_12c/read-committed/iat_dda_write_skew_committed.txt b/result/result/oracle_12c/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..c08bb7f9 --- /dev/null +++ b/result/result/oracle_12c/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:39:943:573 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:39:947:11 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:40:43:695 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:16:40:46:936 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:16:40:49:504 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:16:40:150:159 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:40:157:262 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_12c/read-committed/iat_dda_write_skew_pred_insert.txt b/result/result/oracle_12c/read-committed/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..935f3a27 --- /dev/null +++ b/result/result/oracle_12c/read-committed/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,55 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:42:105:863 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:42:110:621 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:42:206:56 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-20 15:16:42:210:980 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-20 15:16:42:213:597 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-20 15:16:42:308:515 +Q7-T1 execute opt: 'COMMIT;' + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-20 15:16:42:422:849 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_12c/read-committed/iat_mda_step_iat.txt b/result/result/oracle_12c/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..a521517d --- /dev/null +++ b/result/result/oracle_12c/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,104 @@ +#### db_type: oracle #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:40:404:619 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-20 15:16:40:408:736 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:40:504:451 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:16:40:508:197 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-5-20 15:16:40:605:924 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-20 15:16:40:610:61 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-20 15:16:40:707:264 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-20 15:16:40:807:720 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-20 15:16:40:907:786 +Q10-T1 execute opt: 'COMMIT;' + Q11-T2 execute opt: 'COMMIT;' + Q12-T3 execute opt: 'COMMIT;' + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 15:16:41:216:66 + Q14-T4 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_12c/read-committed/iat_sda_lost_update_committed.txt b/result/result/oracle_12c/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..6c477a5c --- /dev/null +++ b/result/result/oracle_12c/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,47 @@ +#### db_type: oracle #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:38:19:528 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 15:16:38:22:786 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:38:123:438 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 15:16:38:126:919 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-5-20 15:16:38:222:366 +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:16:38:228:607 + Q9-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_12c/read-committed/iat_sda_non_repeatable_read_committed.txt b/result/result/oracle_12c/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..ab4997eb --- /dev/null +++ b/result/result/oracle_12c/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,54 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:37:569:750 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:37:573:186 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:37:669:721 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 15:16:37:673:25 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 15:16:37:771:445 +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:16:37:776:185 + Q9-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_12c/read-committed/rat_dda_double_write_skew1.txt b/result/result/oracle_12c/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..853ce3d8 --- /dev/null +++ b/result/result/oracle_12c/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,52 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:4:105:634 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:4:109:196 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:4:207:123 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:4:210:415 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:4:212:980 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 15:16:4:408:930 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-20 15:16:4:512:703 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/read-committed/rat_dda_double_write_skew1_committed.txt b/result/result/oracle_12c/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..0c9fe4bb --- /dev/null +++ b/result/result/oracle_12c/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,52 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:4:765:18 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:4:771:838 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:4:867:542 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:4:871:885 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:4:874:993 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-5-20 15:16:4:969:215 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-20 15:16:4:976:974 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/read-committed/rat_dda_double_write_skew2.txt b/result/result/oracle_12c/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..947d0583 --- /dev/null +++ b/result/result/oracle_12c/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,52 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:5:230:550 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:5:234:251 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:5:331:533 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:5:335:474 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:16:5:434:294 +Q7-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:16:5:435:706 + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:5:538:339 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/read-committed/rat_dda_read_skew.txt b/result/result/oracle_12c/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..5fe28d78 --- /dev/null +++ b/result/result/oracle_12c/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:5:790:497 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:5:794:203 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:5:890:476 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:5:893:881 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:16:5:896:405 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:16:5:994:823 + Q7-T2 execute opt: 'COMMIT;' +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:6:196:203 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/read-committed/rat_dda_read_skew2.txt b/result/result/oracle_12c/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..7b8bfa3a --- /dev/null +++ b/result/result/oracle_12c/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:6:450:980 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:6:454:602 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:6:551:613 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:16:6:555:279 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:6:557:903 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:16:6:654:56 +Q7-T1 execute opt: 'COMMIT;' + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:6:756:787 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/read-committed/rat_dda_read_skew2_committed.txt b/result/result/oracle_12c/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..3202f561 --- /dev/null +++ b/result/result/oracle_12c/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:7:8:617 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:7:12:24 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:7:108:426 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:16:7:111:676 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:7:114:115 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:16:7:211:639 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:7:218:880 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/read-committed/rat_dda_write_read_skew.txt b/result/result/oracle_12c/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..8a1b2189 --- /dev/null +++ b/result/result/oracle_12c/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:2:980:434 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:2:984:35 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:3:83:614 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:3:90:535 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:3:93:557 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:16:3:184:714 + Q7-T2 execute opt: 'COMMIT;' +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:3:391:21 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_12c/read-committed/rat_dda_write_read_skew_committed.txt b/result/result/oracle_12c/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..c47d736c --- /dev/null +++ b/result/result/oracle_12c/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:3:639:747 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:3:643:630 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:3:743:451 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:3:747:108 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:3:749:616 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:16:3:847:26 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:3:853:805 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/read-committed/rat_mda_step_rat.txt b/result/result/oracle_12c/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..f6fe38d8 --- /dev/null +++ b/result/result/oracle_12c/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,104 @@ +#### db_type: oracle #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:7:472:425 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:7:478:12 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:7:572:608 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:7:576:979 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:7:588:355 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-20 15:16:7:673:567 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-20 15:16:7:678:440 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-20 15:16:7:681:951 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-20 15:16:7:775:783 +Q10-T1 execute opt: 'COMMIT;' + Q11-T2 execute opt: 'COMMIT;' + Q12-T3 execute opt: 'COMMIT;' + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 15:16:7:984:42 + Q14-T4 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_12c/read-committed/rat_sda_dirty_read.txt b/result/result/oracle_12c/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..b7facd5c --- /dev/null +++ b/result/result/oracle_12c/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,43 @@ +#### db_type: oracle #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:0:91:497 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:0:96:40 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:0:191:492 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:16:0:196:886 +Q5-T1 execute opt: 'ROLLBACK;' + Q6-T2 execute opt: 'COMMIT;' + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-20 15:16:0:397:588 + Q8-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/read-committed/rat_sda_intermediate_read.txt b/result/result/oracle_12c/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..cee1fbba --- /dev/null +++ b/result/result/oracle_12c/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:1:295:607 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:1:303:1 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:1:397:156 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:16:1:401:59 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-20 15:16:1:502:603 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 15:16:1:702:773 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/read-committed/rat_sda_intermediate_read_committed.txt b/result/result/oracle_12c/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..732fbb4e --- /dev/null +++ b/result/result/oracle_12c/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:1:962:410 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:1:965:889 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:2:62:323 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:16:2:66:141 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-20 15:16:2:164:912 +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 15:16:2:171:522 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/read-committed/rat_sda_lost_self_update.txt b/result/result/oracle_12c/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..38dad30c --- /dev/null +++ b/result/result/oracle_12c/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:2:420:870 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:2:424:497 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:2:521:225 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:16:2:627:8 +Q6-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-20 15:16:2:628:427 + Q7-T2 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:16:2:728:161 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/read-committed/rat_sda_non_repeatable_read.txt b/result/result/oracle_12c/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..36917d05 --- /dev/null +++ b/result/result/oracle_12c/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,56 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:0:640:876 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:0:644:678 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:0:740:814 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 15:16:0:744:691 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:16:0:844:174 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:16:1:46:231 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/read-committed/rat_sda_non_repeatable_read_pred_insert.txt b/result/result/oracle_12c/read-committed/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..35f96fda --- /dev/null +++ b/result/result/oracle_12c/read-committed/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,55 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:41:458:575 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:41:464:227 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:41:557:601 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-20 15:16:41:561:734 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:16:41:659:564 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:16:41:862:878 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/read-committed/wat_dda_double_write_skew2_committed.txt b/result/result/oracle_12c/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..e40da8e2 --- /dev/null +++ b/result/result/oracle_12c/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,52 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:10:835:596 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:10:839:252 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:10:935:559 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:10:939:21 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:16:11:40:148 +Q8-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:16:11:41:510 + Q6-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:11:52:22 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/read-committed/wat_dda_full_write_skew_c1.txt b/result/result/oracle_12c/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..11d0ef73 --- /dev/null +++ b/result/result/oracle_12c/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,32 @@ +#### db_type: oracle #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:11:300:450 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:11:304:112 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:11:400:516 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:11:404:235 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 +Q6 failed at: 2022-5-20 15:16:15:362:705 + Q5 finished at: 2022-5-20 15:16:15:364:643 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/result/result/oracle_12c/read-committed/wat_dda_full_write_skew_committed.txt b/result/result/oracle_12c/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..2932bd86 --- /dev/null +++ b/result/result/oracle_12c/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: oracle #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:15:618:533 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:15:622:503 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:15:718:456 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:15:721:839 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-5-20 15:16:19:530:552 +Q7 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q7 failed at: 2022-5-20 15:16:28:948:801 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/result/result/oracle_12c/read-committed/wat_dda_read_write_skew1_c1.txt b/result/result/oracle_12c/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..9c990238 --- /dev/null +++ b/result/result/oracle_12c/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,50 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:29:219:510 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:29:223:431 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:29:319:606 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:29:323:296 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:16:29:326:77 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-20 15:16:29:520:863 +Q7-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:29:527:171 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_12c/read-committed/wat_dda_read_write_skew2_c1.txt b/result/result/oracle_12c/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..50b63a16 --- /dev/null +++ b/result/result/oracle_12c/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,50 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:29:771:239 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:29:774:799 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:29:871:488 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:16:29:875:54 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:16:29:974:206 +Q7-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:16:29:975:792 + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:30:77:499 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_12c/read-committed/wat_dda_read_write_skew2_committed.txt b/result/result/oracle_12c/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..edf1b838 --- /dev/null +++ b/result/result/oracle_12c/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,50 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:30:322:224 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:30:326:36 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:30:422:867 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:16:30:426:451 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:16:30:525:177 +Q8-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-20 15:16:30:526:495 + Q6-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:30:532:704 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_12c/read-committed/wat_mda_step_wat_c1.txt b/result/result/oracle_12c/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..9534b1b4 --- /dev/null +++ b/result/result/oracle_12c/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: oracle #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:30:783:670 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:30:787:105 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:30:883:764 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:30:887:305 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-20 15:16:30:983:718 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-20 15:16:30:987:580 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-5-20 15:16:34:624:822 + Q8 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 + Q8 failed at: 2022-5-20 15:16:37:225:997 +Q9 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q9 failed at: 2022-5-20 15:16:37:326:17 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/result/result/oracle_12c/read-committed/wat_sda_dirty_write_2commit.txt b/result/result/oracle_12c/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..91292447 --- /dev/null +++ b/result/result/oracle_12c/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,42 @@ +#### db_type: oracle #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:8:236:536 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:8:240:371 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:8:337:532 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-20 15:16:8:440:878 + Q6-T2 execute opt: 'COMMIT;' + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-5-20 15:16:8:543:332 + Q8-T3 execute sql: 'DROP TABLE t1;' + Q8 finished at: 2022-5-20 15:16:8:586:549 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/read-committed/wat_sda_full_write.txt b/result/result/oracle_12c/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..e0466092 --- /dev/null +++ b/result/result/oracle_12c/read-committed/wat_sda_full_write.txt @@ -0,0 +1,42 @@ +#### db_type: oracle #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:8:810:570 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:8:814:878 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:8:911:437 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-20 15:16:9:15:132 +Q6-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-20 15:16:9:16:537 + Q7-T2 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-20 15:16:9:117:49 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/read-committed/wat_sda_full_write_committed.txt b/result/result/oracle_12c/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..452ca277 --- /dev/null +++ b/result/result/oracle_12c/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,42 @@ +#### db_type: oracle #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:9:360:97 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:9:363:697 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:9:460:280 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-20 15:16:9:563:10 +Q7-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-20 15:16:9:564:625 + Q5-T2 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-20 15:16:9:573:2 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/read-committed/wat_sda_lost_self_update_committed.txt b/result/result/oracle_12c/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..5b3351b8 --- /dev/null +++ b/result/result/oracle_12c/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:10:374:986 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:10:378:726 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:10:474:457 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 15:16:10:578:461 +Q7-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-20 15:16:10:579:999 + Q5-T2 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:16:10:586:598 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/read-committed/wat_sda_lost_update_c1.txt b/result/result/oracle_12c/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..13c8187d --- /dev/null +++ b/result/result/oracle_12c/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,47 @@ +#### db_type: oracle #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:9:817:90 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 15:16:9:820:655 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:9:917:67 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 15:16:9:921:96 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-20 15:16:10:120:956 +Q6-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:16:10:128:30 + Q9-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_12c/result_summary/read-committed_total-result.txt b/result/result/oracle_12c/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..74353e44 --- /dev/null +++ b/result/result/oracle_12c/result_summary/read-committed_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/result/result/oracle_12c/result_summary/serializable_total-result.txt b/result/result/oracle_12c/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..04925ba0 --- /dev/null +++ b/result/result/oracle_12c/result_summary/serializable_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/result/result/oracle_12c/serializable/iat_dda_read_skew_committed.txt b/result/result/oracle_12c/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..00ad08e2 --- /dev/null +++ b/result/result/oracle_12c/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:29:140:552 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:17:29:144:565 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:29:240:731 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:17:29:244:623 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:17:29:247:239 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:17:29:343:332 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:17:29:348:300 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/serializable/iat_dda_read_write_skew1_committed.txt b/result/result/oracle_12c/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..07095056 --- /dev/null +++ b/result/result/oracle_12c/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:29:597:379 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:17:29:601:183 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:29:699:19 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:17:29:702:761 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:17:29:705:652 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-5-20 15:17:30:502:757 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_12c/serializable/iat_dda_write_skew.txt b/result/result/oracle_12c/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..1b1afcdd --- /dev/null +++ b/result/result/oracle_12c/serializable/iat_dda_write_skew.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:30:755:351 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:17:30:758:998 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:30:856:861 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:17:30:860:673 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:17:30:863:551 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:17:30:958:276 +Q7-T1 execute opt: 'COMMIT;' + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:17:31:67:640 + Q8-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_12c/serializable/iat_dda_write_skew_committed.txt b/result/result/oracle_12c/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..3d9b9906 --- /dev/null +++ b/result/result/oracle_12c/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,47 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:31:316:337 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:17:31:320:306 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:31:416:642 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:17:31:420:12 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:17:31:422:646 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-5-20 15:17:32:219:277 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_12c/serializable/iat_dda_write_skew_pred_insert.txt b/result/result/oracle_12c/serializable/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..c2a3ef2a --- /dev/null +++ b/result/result/oracle_12c/serializable/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,55 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:34:777:298 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:17:34:782:307 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:34:879:663 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-20 15:17:34:885:99 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-20 15:17:34:887:897 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-20 15:17:34:982:129 +Q7-T1 execute opt: 'COMMIT;' + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-20 15:17:35:94:261 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_12c/serializable/iat_mda_step_iat.txt b/result/result/oracle_12c/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..65b0f7e7 --- /dev/null +++ b/result/result/oracle_12c/serializable/iat_mda_step_iat.txt @@ -0,0 +1,86 @@ +#### db_type: oracle #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:32:469:345 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-20 15:17:32:473:217 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:32:571:509 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:17:32:575:171 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-5-20 15:17:32:669:674 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-20 15:17:32:673:672 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-20 15:17:32:774:528 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-20 15:17:32:872:925 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q10-T1 execute opt: 'COMMIT;' + Q11-T2 execute opt: 'COMMIT;' + Q9 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q9 failed at: 2022-5-20 15:17:33:875:296 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_12c/serializable/iat_sda_lost_update_committed.txt b/result/result/oracle_12c/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..85acbdcb --- /dev/null +++ b/result/result/oracle_12c/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,37 @@ +#### db_type: oracle #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:28:83:323 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 15:17:28:86:525 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:28:183:689 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 15:17:28:187:773 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-20 15:17:28:886:867 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_12c/serializable/iat_sda_non_repeatable_read_committed.txt b/result/result/oracle_12c/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..1a28a643 --- /dev/null +++ b/result/result/oracle_12c/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,56 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:27:616:593 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:17:27:622:7 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:27:716:431 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 15:17:27:719:656 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 15:17:27:821:275 +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:17:27:836:248 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/serializable/rat_dda_double_write_skew1.txt b/result/result/oracle_12c/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..c080b119 --- /dev/null +++ b/result/result/oracle_12c/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:47:655:785 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:47:672:981 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:47:753:696 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:47:758:559 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:47:763:740 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' +Q6 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-20 15:16:48:555:733 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_12c/serializable/rat_dda_double_write_skew1_committed.txt b/result/result/oracle_12c/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..2bc74c6b --- /dev/null +++ b/result/result/oracle_12c/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:48:811:449 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:48:815:45 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:48:911:308 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:48:914:657 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:48:917:128 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-5-20 15:16:49:714:397 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_12c/serializable/rat_dda_double_write_skew2.txt b/result/result/oracle_12c/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..136f8b4c --- /dev/null +++ b/result/result/oracle_12c/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:49:968:330 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:49:971:727 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:50:68:278 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:50:71:775 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:16:50:170:923 +Q7-T1 execute opt: 'COMMIT;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:16:50:672:567 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_12c/serializable/rat_dda_read_skew.txt b/result/result/oracle_12c/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..0ba2234f --- /dev/null +++ b/result/result/oracle_12c/serializable/rat_dda_read_skew.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:50:926:9 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:50:929:576 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:51:27:475 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:51:31:299 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:16:51:34:151 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:16:51:132:867 + Q7-T2 execute opt: 'COMMIT;' +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:51:332:936 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/serializable/rat_dda_read_skew2.txt b/result/result/oracle_12c/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..513d8ec3 --- /dev/null +++ b/result/result/oracle_12c/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:51:590:631 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:51:594:373 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:51:691:436 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:16:51:695:20 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:51:697:692 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:16:51:794:735 +Q7-T1 execute opt: 'COMMIT;' + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:51:897:277 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/serializable/rat_dda_read_skew2_committed.txt b/result/result/oracle_12c/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..0ed830d7 --- /dev/null +++ b/result/result/oracle_12c/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:52:143:779 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:52:147:289 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:52:243:781 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:16:52:247:336 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:52:249:959 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:16:52:349:369 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:52:355:691 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/serializable/rat_dda_write_read_skew.txt b/result/result/oracle_12c/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..e0ec5bf9 --- /dev/null +++ b/result/result/oracle_12c/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:46:510:665 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:46:514:324 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:46:612:971 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:46:616:637 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:46:619:290 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-20 15:16:46:715:492 + Q7-T2 execute opt: 'COMMIT;' +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:46:923:892 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_12c/serializable/rat_dda_write_read_skew_committed.txt b/result/result/oracle_12c/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..37330e0b --- /dev/null +++ b/result/result/oracle_12c/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:47:192:300 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:47:195:793 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:47:292:313 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:47:296:188 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:47:304:226 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:16:47:395:411 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-20 15:16:47:402:468 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_12c/serializable/rat_mda_step_rat.txt b/result/result/oracle_12c/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..c0aca434 --- /dev/null +++ b/result/result/oracle_12c/serializable/rat_mda_step_rat.txt @@ -0,0 +1,104 @@ +#### db_type: oracle #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:52:613:15 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:52:616:612 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:52:712:990 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:52:716:466 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-20 15:16:52:719:497 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-20 15:16:52:813:157 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-20 15:16:52:816:995 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-20 15:16:52:820:221 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-20 15:16:52:916:463 +Q10-T1 execute opt: 'COMMIT;' + Q11-T2 execute opt: 'COMMIT;' + Q12-T3 execute opt: 'COMMIT;' + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-20 15:16:53:122:176 + Q14-T4 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_12c/serializable/rat_sda_dirty_read.txt b/result/result/oracle_12c/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..307dcec7 --- /dev/null +++ b/result/result/oracle_12c/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,43 @@ +#### db_type: oracle #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:43:308:673 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:43:312:570 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:43:408:812 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:16:43:413:736 +Q5-T1 execute opt: 'ROLLBACK;' + Q6-T2 execute opt: 'COMMIT;' + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-20 15:16:43:618:840 + Q8-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/serializable/rat_sda_intermediate_read.txt b/result/result/oracle_12c/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..a4388a2f --- /dev/null +++ b/result/result/oracle_12c/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:44:528:819 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:44:532:144 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:44:628:892 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:16:44:632:527 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-20 15:16:44:732:91 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 15:16:44:936:558 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/serializable/rat_sda_intermediate_read_committed.txt b/result/result/oracle_12c/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..fa949de8 --- /dev/null +++ b/result/result/oracle_12c/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:45:185:202 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:45:189:162 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:45:285:754 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-20 15:16:45:289:106 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-20 15:16:45:390:286 +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-20 15:16:45:396:727 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/serializable/rat_sda_lost_self_update.txt b/result/result/oracle_12c/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..5b244dc9 --- /dev/null +++ b/result/result/oracle_12c/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,37 @@ +#### db_type: oracle #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:45:641:59 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:45:644:451 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:45:743:8 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:16:45:843:737 +Q6-T1 execute opt: 'COMMIT;' + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:16:46:250:16 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_12c/serializable/rat_sda_non_repeatable_read.txt b/result/result/oracle_12c/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..1dcda4ba --- /dev/null +++ b/result/result/oracle_12c/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,56 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:43:866:492 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:16:43:870:540 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:43:967:475 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-20 15:16:43:971:600 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:16:44:69:945 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:16:44:275:663 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/serializable/rat_sda_non_repeatable_read_pred_insert.txt b/result/result/oracle_12c/serializable/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..8ddee448 --- /dev/null +++ b/result/result/oracle_12c/serializable/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,55 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:34:125:533 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:17:34:130:375 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:34:227:476 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-20 15:17:34:231:365 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-20 15:17:34:328:596 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-20 15:17:34:531:501 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_12c/serializable/wat_dda_double_write_skew2_committed.txt b/result/result/oracle_12c/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..c2cd19e2 --- /dev/null +++ b/result/result/oracle_12c/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:57:840:73 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:57:843:560 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:57:940:179 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:57:943:711 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-20 15:16:58:46:324 +Q8-T1 execute opt: 'COMMIT;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:16:58:548:394 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_12c/serializable/wat_dda_full_write_skew_c1.txt b/result/result/oracle_12c/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..221fceb5 --- /dev/null +++ b/result/result/oracle_12c/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: oracle #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:58:800:131 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:58:803:738 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:58:900:127 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:16:58:904:202 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-5-20 15:17:2:545:934 +Q6 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q6 failed at: 2022-5-20 15:17:4:954:686 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/result/result/oracle_12c/serializable/wat_dda_full_write_skew_committed.txt b/result/result/oracle_12c/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..e59eead4 --- /dev/null +++ b/result/result/oracle_12c/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: oracle #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:5:201:371 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:17:5:204:795 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:5:303:498 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:17:5:307:51 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-5-20 15:17:8:922:305 +Q7 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q7 failed at: 2022-5-20 15:17:17:4:505 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/result/result/oracle_12c/serializable/wat_dda_read_write_skew1_c1.txt b/result/result/oracle_12c/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..0fad619b --- /dev/null +++ b/result/result/oracle_12c/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:17:254:147 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-20 15:17:17:257:554 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:17:354:319 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:17:17:357:680 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-20 15:17:17:360:247 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' +Q6 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-20 15:17:18:157:89 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_12c/serializable/wat_dda_read_write_skew2_c1.txt b/result/result/oracle_12c/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..4c1347f4 --- /dev/null +++ b/result/result/oracle_12c/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:18:406:447 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:17:18:410:45 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:18:506:371 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:17:18:509:882 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-20 15:17:18:610:518 +Q7-T1 execute opt: 'COMMIT;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:17:19:112:264 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_12c/serializable/wat_dda_read_write_skew2_committed.txt b/result/result/oracle_12c/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..10a40aec --- /dev/null +++ b/result/result/oracle_12c/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:19:360:706 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:17:19:364:612 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:19:463:450 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-20 15:17:19:466:850 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-20 15:17:19:563:459 +Q8-T1 execute opt: 'COMMIT;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-20 15:17:20:65:362 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_12c/serializable/wat_mda_step_wat_c1.txt b/result/result/oracle_12c/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..af74ad9d --- /dev/null +++ b/result/result/oracle_12c/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: oracle #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:17:20:316:127 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:17:20:319:588 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:17:20:416:157 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-20 15:17:20:419:653 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-20 15:17:20:516:192 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-20 15:17:20:519:930 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-5-20 15:17:24:38:28 + Q8 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 + Q8 failed at: 2022-5-20 15:17:27:248:322 +Q9 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q9 failed at: 2022-5-20 15:17:27:348:418 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/result/result/oracle_12c/serializable/wat_sda_dirty_write_2commit.txt b/result/result/oracle_12c/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..81523cb2 --- /dev/null +++ b/result/result/oracle_12c/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,28 @@ +#### db_type: oracle #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:53:379:136 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:53:382:714 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:53:479:264 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:16:53:988:744 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_12c/serializable/wat_sda_full_write.txt b/result/result/oracle_12c/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..a2c26b86 --- /dev/null +++ b/result/result/oracle_12c/serializable/wat_sda_full_write.txt @@ -0,0 +1,30 @@ +#### db_type: oracle #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:54:239:696 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:54:243:518 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:54:339:671 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-20 15:16:54:443:870 +Q6-T1 execute opt: 'COMMIT;' + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:16:54:845:848 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_12c/serializable/wat_sda_full_write_committed.txt b/result/result/oracle_12c/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..2cb00ee8 --- /dev/null +++ b/result/result/oracle_12c/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,30 @@ +#### db_type: oracle #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:55:89:152 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:55:92:775 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:55:189:84 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-20 15:16:55:291:990 +Q7-T1 execute opt: 'COMMIT;' + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:16:55:693:829 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_12c/serializable/wat_sda_lost_self_update_committed.txt b/result/result/oracle_12c/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..33f50bd6 --- /dev/null +++ b/result/result/oracle_12c/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,37 @@ +#### db_type: oracle #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:56:987:886 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-20 15:16:56:991:522 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:57:87:708 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-20 15:16:57:190:427 +Q7-T1 execute opt: 'COMMIT;' + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-20 15:16:57:592:89 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_12c/serializable/wat_sda_lost_update_c1.txt b/result/result/oracle_12c/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..6b614f8e --- /dev/null +++ b/result/result/oracle_12c/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,37 @@ +#### db_type: oracle #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-20 15:16:55:938:275 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-20 15:16:55:941:683 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-20 15:16:56:38:386 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-20 15:16:56:41:717 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' +Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q5 failed at: 2022-5-20 15:16:56:740:0 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_21c/read-committed/iat_dda_read_skew_committed.txt b/result/result/oracle_21c/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..57ae8a16 --- /dev/null +++ b/result/result/oracle_21c/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:28:371:464 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:40:28:417:100 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:28:871:497 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:40:28:913:520 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:40:28:955:145 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-26 0:40:29:413:388 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:40:29:542:911 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_21c/read-committed/iat_dda_read_write_skew1_committed.txt b/result/result/oracle_21c/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..b3a06d7b --- /dev/null +++ b/result/result/oracle_21c/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,50 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:30:885:648 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:40:30:929:941 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:31:385:731 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-26 0:40:31:427:931 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:40:31:469:395 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-26 0:40:31:926:806 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:40:32:57:692 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_21c/read-committed/iat_dda_write_skew.txt b/result/result/oracle_21c/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..a8ca8490 --- /dev/null +++ b/result/result/oracle_21c/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:33:405:101 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:40:33:449:832 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:33:905:114 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:40:33:947:353 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:40:33:988:803 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-26 0:40:34:446:524 +Q7-T1 execute opt: 'COMMIT;' + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:40:35:37:130 + Q8-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_21c/read-committed/iat_dda_write_skew_committed.txt b/result/result/oracle_21c/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..1f677af5 --- /dev/null +++ b/result/result/oracle_21c/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:36:393:782 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:40:36:438:309 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:36:893:675 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:40:36:935:823 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:40:36:977:724 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-26 0:40:37:436:355 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:40:37:567:52 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_21c/read-committed/iat_dda_write_skew_pred_insert.txt b/result/result/oracle_21c/read-committed/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..dc609713 --- /dev/null +++ b/result/result/oracle_21c/read-committed/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,55 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:47:664:468 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:40:47:710:635 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:48:164:564 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-26 0:40:48:210:944 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-26 0:40:48:290:811 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-26 0:40:48:705:495 +Q7-T1 execute opt: 'COMMIT;' + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-26 0:40:49:295:251 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_21c/read-committed/iat_mda_step_iat.txt b/result/result/oracle_21c/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..e7bb4368 --- /dev/null +++ b/result/result/oracle_21c/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,104 @@ +#### db_type: oracle #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:38:967:196 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-26 0:40:39:11:978 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:39:467:86 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-26 0:40:39:509:533 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-5-26 0:40:39:967:55 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-26 0:40:40:13:581 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-26 0:40:40:508:83 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-26 0:40:41:8:650 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-26 0:40:41:512:634 +Q10-T1 execute opt: 'COMMIT;' + Q11-T2 execute opt: 'COMMIT;' + Q12-T3 execute opt: 'COMMIT;' + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-26 0:40:43:85:867 + Q14-T4 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_21c/read-committed/iat_sda_lost_update_committed.txt b/result/result/oracle_21c/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..5c5f91c0 --- /dev/null +++ b/result/result/oracle_21c/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,47 @@ +#### db_type: oracle #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:25:852:916 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-26 0:40:25:899:45 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:26:352:801 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-26 0:40:26:394:774 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-5-26 0:40:26:893:638 +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-26 0:40:27:24:969 + Q9-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_21c/read-committed/iat_sda_non_repeatable_read_committed.txt b/result/result/oracle_21c/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..9a6c1c11 --- /dev/null +++ b/result/result/oracle_21c/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,54 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:23:356:104 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:40:23:400:324 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:23:856:37 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-26 0:40:23:898:295 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-26 0:40:24:399:712 +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-26 0:40:24:529:398 + Q9-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_21c/read-committed/rat_dda_double_write_skew1.txt b/result/result/oracle_21c/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..784e5fa8 --- /dev/null +++ b/result/result/oracle_21c/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,52 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:10:844:477 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:10:888:858 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:11:344:800 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:39:11:387:307 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:39:11:429:178 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-26 0:39:12:384:653 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-26 0:39:12:975:849 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/read-committed/rat_dda_double_write_skew1_committed.txt b/result/result/oracle_21c/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..14003511 --- /dev/null +++ b/result/result/oracle_21c/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,52 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:14:329:338 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:14:375:320 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:14:829:383 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:39:14:871:462 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:39:14:913:537 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-5-26 0:39:15:370:612 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-26 0:39:15:501:255 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/read-committed/rat_dda_double_write_skew2.txt b/result/result/oracle_21c/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..e0ea0e29 --- /dev/null +++ b/result/result/oracle_21c/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,52 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:16:850:760 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:16:894:969 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:17:350:783 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:39:17:393:149 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-26 0:39:17:892:300 +Q7-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-26 0:39:17:931:804 + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:39:18:482:103 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/read-committed/rat_dda_read_skew.txt b/result/result/oracle_21c/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..2e27bfb9 --- /dev/null +++ b/result/result/oracle_21c/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:19:838:442 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:39:19:882:904 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:20:338:646 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:39:20:381:174 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:39:20:422:564 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-26 0:39:20:880:48 + Q7-T2 execute opt: 'COMMIT;' +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:39:21:968:160 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/read-committed/rat_dda_read_skew2.txt b/result/result/oracle_21c/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..41b307c3 --- /dev/null +++ b/result/result/oracle_21c/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:23:328:311 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:23:372:422 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:23:828:368 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:39:23:870:871 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:39:23:913:49 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-26 0:39:24:369:750 +Q7-T1 execute opt: 'COMMIT;' + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:39:24:958:558 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/read-committed/rat_dda_read_skew2_committed.txt b/result/result/oracle_21c/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..702613dc --- /dev/null +++ b/result/result/oracle_21c/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:26:312:995 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:26:356:579 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:26:812:887 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:39:26:855:325 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:39:26:897:321 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-26 0:39:27:354:529 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:39:27:485:792 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/read-committed/rat_dda_write_read_skew.txt b/result/result/oracle_21c/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..5cfb0ec8 --- /dev/null +++ b/result/result/oracle_21c/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:4:846:314 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:4:890:124 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:5:345:519 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:39:5:387:822 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:39:5:429:891 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-26 0:39:5:887:667 + Q7-T2 execute opt: 'COMMIT;' +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:39:6:978:295 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_21c/read-committed/rat_dda_write_read_skew_committed.txt b/result/result/oracle_21c/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..43683159 --- /dev/null +++ b/result/result/oracle_21c/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:8:324:642 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:8:369:163 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:8:824:758 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:39:8:866:905 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:39:8:908:553 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-26 0:39:9:366:5 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:39:9:496:820 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/read-committed/rat_mda_step_rat.txt b/result/result/oracle_21c/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..ccce38fa --- /dev/null +++ b/result/result/oracle_21c/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,104 @@ +#### db_type: oracle #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:28:874:405 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:28:918:813 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:29:374:297 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:39:29:416:59 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:39:29:457:930 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-26 0:39:29:874:519 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-26 0:39:29:920:596 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-26 0:39:29:966:727 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-26 0:39:30:418:599 +Q10-T1 execute opt: 'COMMIT;' + Q11-T2 execute opt: 'COMMIT;' + Q12-T3 execute opt: 'COMMIT;' + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-26 0:39:31:498:927 + Q14-T4 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_21c/read-committed/rat_sda_dirty_read.txt b/result/result/oracle_21c/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..e6ef0d1b --- /dev/null +++ b/result/result/oracle_21c/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,43 @@ +#### db_type: oracle #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:38:49:554:1 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:38:49:601:915 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:38:50:54:194 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-26 0:38:50:98:6 +Q5-T1 execute opt: 'ROLLBACK;' + Q6-T2 execute opt: 'COMMIT;' + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-26 0:38:51:186:542 + Q8-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/read-committed/rat_sda_intermediate_read.txt b/result/result/oracle_21c/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..0fce9a77 --- /dev/null +++ b/result/result/oracle_21c/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:38:55:933:840 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:38:55:978:428 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:38:56:433:899 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-26 0:38:56:476:228 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-26 0:38:56:975:230 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-26 0:38:58:64:558 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/read-committed/rat_sda_intermediate_read_committed.txt b/result/result/oracle_21c/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..3517cebf --- /dev/null +++ b/result/result/oracle_21c/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:38:59:380:37 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:38:59:428:525 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:38:59:880:5 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-26 0:38:59:922:394 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-26 0:39:0:421:24 +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-26 0:39:0:551:620 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/read-committed/rat_sda_lost_self_update.txt b/result/result/oracle_21c/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..81716162 --- /dev/null +++ b/result/result/oracle_21c/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:1:863:165 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:1:911:201 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:2:363:112 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-26 0:39:2:904:275 +Q6-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-26 0:39:2:943:965 + Q7-T2 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-26 0:39:3:494:950 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/read-committed/rat_sda_non_repeatable_read.txt b/result/result/oracle_21c/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..f20c5e65 --- /dev/null +++ b/result/result/oracle_21c/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,56 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:38:52:484:794 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:38:52:528:467 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:38:52:984:903 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-26 0:38:53:27:324 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-26 0:38:53:527:859 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-26 0:38:54:616:848 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/read-committed/rat_sda_non_repeatable_read_pred_insert.txt b/result/result/oracle_21c/read-committed/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..52a3b77a --- /dev/null +++ b/result/result/oracle_21c/read-committed/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,55 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:44:306:974 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:40:44:353:532 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:44:806:826 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-26 0:40:44:891:118 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-26 0:40:45:350:258 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-26 0:40:46:437:321 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/read-committed/wat_dda_double_write_skew2_committed.txt b/result/result/oracle_21c/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..9f54d0cb --- /dev/null +++ b/result/result/oracle_21c/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,52 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:46:898:376 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:46:942:510 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:47:398:225 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:39:47:440:448 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-26 0:39:47:939:489 +Q8-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-26 0:39:47:979:4 + Q6-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:39:48:111:375 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/read-committed/wat_dda_full_write_skew_c1.txt b/result/result/oracle_21c/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..f070e54d --- /dev/null +++ b/result/result/oracle_21c/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: oracle #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:49:465:806 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:49:509:740 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:49:965:694 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-26 0:39:50:7:636 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-5-26 0:39:53:718:822 +Q6 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q6 failed at: 2022-5-26 0:39:56:755:796 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/result/result/oracle_21c/read-committed/wat_dda_full_write_skew_committed.txt b/result/result/oracle_21c/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..f1f5e4a8 --- /dev/null +++ b/result/result/oracle_21c/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: oracle #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:58:336:706 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:58:387:246 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:58:836:635 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-26 0:39:58:878:703 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-5-26 0:40:2:582:539 +Q7 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q7 failed at: 2022-5-26 0:40:4:830:361 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/result/result/oracle_21c/read-committed/wat_dda_read_write_skew1_c1.txt b/result/result/oracle_21c/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..495756f4 --- /dev/null +++ b/result/result/oracle_21c/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,50 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:6:361:726 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:40:6:405:773 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:6:861:763 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-26 0:40:6:903:849 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:40:6:945:175 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-26 0:40:7:903:409 +Q7-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:40:8:34:7 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_21c/read-committed/wat_dda_read_write_skew2_c1.txt b/result/result/oracle_21c/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..7ff551e6 --- /dev/null +++ b/result/result/oracle_21c/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,50 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:9:382:776 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:40:9:428:678 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:9:886:631 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:40:9:928:715 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-26 0:40:10:423:873 +Q7-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-26 0:40:10:463:594 + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:40:11:18:752 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_21c/read-committed/wat_dda_read_write_skew2_committed.txt b/result/result/oracle_21c/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..c6bc063e --- /dev/null +++ b/result/result/oracle_21c/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,50 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:12:365:450 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:40:12:410:102 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:12:865:492 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:40:12:907:710 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-26 0:40:13:406:890 +Q8-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-26 0:40:13:446:750 + Q6-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:40:13:578:326 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_21c/read-committed/wat_mda_step_wat_c1.txt b/result/result/oracle_21c/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..4dbedbc0 --- /dev/null +++ b/result/result/oracle_21c/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: oracle #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:14:969:295 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:40:15:14:191 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:15:469:228 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-26 0:40:15:511:427 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-26 0:40:15:969:333 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-26 0:40:16:15:725 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-5-26 0:40:19:213:697 + Q8 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 + Q8 failed at: 2022-5-26 0:40:21:758:572 +Q9 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q9 failed at: 2022-5-26 0:40:21:850:363 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/result/result/oracle_21c/read-committed/wat_sda_dirty_write_2commit.txt b/result/result/oracle_21c/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..881436d9 --- /dev/null +++ b/result/result/oracle_21c/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,42 @@ +#### db_type: oracle #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:32:799:974 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:32:843:384 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:33:300:40 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-26 0:39:33:839:350 + Q6-T2 execute opt: 'COMMIT;' + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-5-26 0:39:34:430:341 + Q8-T3 execute sql: 'DROP TABLE t1;' + Q8 finished at: 2022-5-26 0:39:34:539:750 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/read-committed/wat_sda_full_write.txt b/result/result/oracle_21c/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..7bac43c8 --- /dev/null +++ b/result/result/oracle_21c/read-committed/wat_sda_full_write.txt @@ -0,0 +1,42 @@ +#### db_type: oracle #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:35:870:21 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:35:914:175 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:36:370:193 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-26 0:39:36:912:585 +Q6-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-26 0:39:36:952:284 + Q7-T2 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-26 0:39:37:500:768 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/read-committed/wat_sda_full_write_committed.txt b/result/result/oracle_21c/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..6042823c --- /dev/null +++ b/result/result/oracle_21c/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,42 @@ +#### db_type: oracle #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:38:808:306 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:38:852:91 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:39:308:102 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-26 0:39:39:849:221 +Q7-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-26 0:39:39:888:916 + Q5-T2 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-26 0:39:40:19:956 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/read-committed/wat_sda_lost_self_update_committed.txt b/result/result/oracle_21c/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..d3f57686 --- /dev/null +++ b/result/result/oracle_21c/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:44:334:281 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:39:44:378:635 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:44:834:145 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-26 0:39:45:375:580 +Q7-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-26 0:39:45:415:133 + Q5-T2 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-26 0:39:45:546:635 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/read-committed/wat_sda_lost_update_c1.txt b/result/result/oracle_21c/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..79a626fc --- /dev/null +++ b/result/result/oracle_21c/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,47 @@ +#### db_type: oracle #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:39:41:344:869 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-26 0:39:41:395:109 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:39:41:844:539 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-26 0:39:41:886:377 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-26 0:39:42:884:787 +Q6-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-26 0:39:43:15:261 + Q9-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_21c/result_summary/read-committed_total-result.txt b/result/result/oracle_21c/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..74353e44 --- /dev/null +++ b/result/result/oracle_21c/result_summary/read-committed_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/result/result/oracle_21c/result_summary/serializable_total-result.txt b/result/result/oracle_21c/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..32dc3554 --- /dev/null +++ b/result/result/oracle_21c/result_summary/serializable_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Rollback + diff --git a/result/result/oracle_21c/serializable/iat_dda_read_skew_committed.txt b/result/result/oracle_21c/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..c5a076af --- /dev/null +++ b/result/result/oracle_21c/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:41:548:711 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:42:41:589:724 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:42:48:634 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:42:42:90:280 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:42:42:131:666 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-26 0:42:42:588:161 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:42:42:700:192 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/serializable/iat_dda_read_write_skew1_committed.txt b/result/result/oracle_21c/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..bc240831 --- /dev/null +++ b/result/result/oracle_21c/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:44:23:415 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:42:44:66:89 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:44:523:354 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-26 0:42:44:565:118 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:42:44:606:889 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-5-26 0:42:45:798:192 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_21c/serializable/iat_dda_write_skew.txt b/result/result/oracle_21c/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..06e8a6f3 --- /dev/null +++ b/result/result/oracle_21c/serializable/iat_dda_write_skew.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:47:324:384 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:42:47:366:198 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:47:824:617 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:42:47:866:663 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:42:47:908:210 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-26 0:42:48:364:604 +Q7-T1 execute opt: 'COMMIT;' + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:42:48:940:202 + Q8-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_21c/serializable/iat_dda_write_skew_committed.txt b/result/result/oracle_21c/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..da4a2183 --- /dev/null +++ b/result/result/oracle_21c/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,47 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:50:264:697 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:42:50:305:682 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:50:764:615 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:42:50:806:734 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:42:50:847:890 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-5-26 0:42:52:39:123 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_21c/serializable/iat_dda_write_skew_pred_insert.txt b/result/result/oracle_21c/serializable/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..9e790d76 --- /dev/null +++ b/result/result/oracle_21c/serializable/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,45 @@ +#### db_type: oracle #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:43:2:319:330 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:43:2:362:885 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:43:2:819:317 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-26 0:43:2:862:616 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-26 0:43:3:475:121 +Q6 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-26 0:43:3:993:445 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_21c/serializable/iat_mda_step_iat.txt b/result/result/oracle_21c/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..ba365254 --- /dev/null +++ b/result/result/oracle_21c/serializable/iat_mda_step_iat.txt @@ -0,0 +1,85 @@ +#### db_type: oracle #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:53:590:76 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-26 0:42:53:632:18 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:54:89:822 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-26 0:42:54:132:40 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-5-26 0:42:54:591:617 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-26 0:42:54:631:417 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-26 0:42:55:130:628 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-26 0:42:55:631:295 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q10-T1 execute opt: 'COMMIT;' + Q9 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q9 failed at: 2022-5-26 0:42:57:63:768 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_21c/serializable/iat_sda_lost_update_committed.txt b/result/result/oracle_21c/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..c63ca036 --- /dev/null +++ b/result/result/oracle_21c/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,37 @@ +#### db_type: oracle #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:38:365:573 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-26 0:42:38:406:482 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:38:865:584 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-26 0:42:38:907:226 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-26 0:42:40:40:289 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_21c/serializable/iat_sda_non_repeatable_read_committed.txt b/result/result/oracle_21c/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..99b8960c --- /dev/null +++ b/result/result/oracle_21c/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,56 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:35:925:896 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:42:35:968:422 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:36:425:961 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-26 0:42:36:468:228 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-5-26 0:42:36:963:442 +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-26 0:42:37:75:664 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/serializable/rat_dda_double_write_skew1.txt b/result/result/oracle_21c/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..9d7a184f --- /dev/null +++ b/result/result/oracle_21c/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:15:667:713 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:15:708:543 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:16:176:40 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:41:16:218:299 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:41:16:260:51 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' +Q6 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-26 0:41:17:846:949 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_21c/serializable/rat_dda_double_write_skew1_committed.txt b/result/result/oracle_21c/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..2a8c8cd8 --- /dev/null +++ b/result/result/oracle_21c/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:19:356:425 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:19:397:510 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:19:856:392 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:41:19:898:292 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:41:19:939:940 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q7 failed at: 2022-5-26 0:41:21:130:920 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_21c/serializable/rat_dda_double_write_skew2.txt b/result/result/oracle_21c/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..2c97f798 --- /dev/null +++ b/result/result/oracle_21c/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:22:650:197 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:22:691:39 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:23:150:189 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:41:23:191:997 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-26 0:41:23:688:894 +Q7-T1 execute opt: 'COMMIT;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-26 0:41:24:265:99 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_21c/serializable/rat_dda_read_skew.txt b/result/result/oracle_21c/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..182fb4df --- /dev/null +++ b/result/result/oracle_21c/serializable/rat_dda_read_skew.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:25:780:430 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:41:25:821:263 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:26:280:381 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:41:26:321:996 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:41:26:363:161 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-26 0:41:26:819:544 + Q7-T2 execute opt: 'COMMIT;' +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:41:27:893:231 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/serializable/rat_dda_read_skew2.txt b/result/result/oracle_21c/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..cf3ddfc4 --- /dev/null +++ b/result/result/oracle_21c/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:29:230:153 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:29:271:332 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:29:729:941 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:41:29:772:146 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:41:29:813:588 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-26 0:41:30:268:777 +Q7-T1 execute opt: 'COMMIT;' + Q8-T2 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:41:30:846:845 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/serializable/rat_dda_read_skew2_committed.txt b/result/result/oracle_21c/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..6d94af66 --- /dev/null +++ b/result/result/oracle_21c/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,59 @@ +#### db_type: oracle #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:32:177:611 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:32:219:571 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:32:677:619 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:41:32:719:740 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:41:32:761:238 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-26 0:41:33:215:982 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:41:33:330:611 + Q10-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/serializable/rat_dda_write_read_skew.txt b/result/result/oracle_21c/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..257f60ab --- /dev/null +++ b/result/result/oracle_21c/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:9:745:5 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:9:787:29 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:10:244:822 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:41:10:286:880 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:41:10:328:479 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-26 0:41:10:786:328 + Q7-T2 execute opt: 'COMMIT;' +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:41:11:858:259 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_21c/serializable/rat_dda_write_read_skew_committed.txt b/result/result/oracle_21c/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..ba8be152 --- /dev/null +++ b/result/result/oracle_21c/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,57 @@ +#### db_type: oracle #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:13:184:6 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:13:226:733 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:13:683:911 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:41:13:725:765 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:41:13:767:343 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-26 0:41:14:226:83 +Q8-T1 execute opt: 'COMMIT;' + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-26 0:41:14:339:192 + Q10-T3 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_21c/serializable/rat_mda_step_rat.txt b/result/result/oracle_21c/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..e8b4a792 --- /dev/null +++ b/result/result/oracle_21c/serializable/rat_mda_step_rat.txt @@ -0,0 +1,104 @@ +#### db_type: oracle #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:34:707:51 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:34:748:16 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:35:207:68 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:41:35:248:734 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-26 0:41:35:291:273 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-26 0:41:35:707:319 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-26 0:41:35:746:514 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-26 0:41:35:785:960 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-26 0:41:36:246:354 +Q10-T1 execute opt: 'COMMIT;' + Q11-T2 execute opt: 'COMMIT;' + Q12-T3 execute opt: 'COMMIT;' + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-26 0:41:37:321:776 + Q14-T4 execute opt: 'COMMIT;' + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/oracle_21c/serializable/rat_sda_dirty_read.txt b/result/result/oracle_21c/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..d546e843 --- /dev/null +++ b/result/result/oracle_21c/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,43 @@ +#### db_type: oracle #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:54:580:367 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:40:54:622:329 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:55:79:272 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-26 0:40:55:123:121 +Q5-T1 execute opt: 'ROLLBACK;' + Q6-T2 execute opt: 'COMMIT;' + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-26 0:40:56:193:503 + Q8-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/serializable/rat_sda_intermediate_read.txt b/result/result/oracle_21c/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..d0648ec3 --- /dev/null +++ b/result/result/oracle_21c/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:0:871:696 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:0:913:908 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:1:371:640 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-26 0:41:1:414:940 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-26 0:41:1:910:125 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-26 0:41:2:985:257 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/serializable/rat_sda_intermediate_read_committed.txt b/result/result/oracle_21c/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..6fea1632 --- /dev/null +++ b/result/result/oracle_21c/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,49 @@ +#### db_type: oracle #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:4:268:964 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:4:309:746 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:4:769:103 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-26 0:41:4:811:577 + Q5-T2 execute opt: 'COMMIT;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-26 0:41:5:307:368 +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-26 0:41:5:420:794 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/serializable/rat_sda_lost_self_update.txt b/result/result/oracle_21c/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..46a3f976 --- /dev/null +++ b/result/result/oracle_21c/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,37 @@ +#### db_type: oracle #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:6:710:136 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:6:751:147 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:7:210:367 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-26 0:41:7:750:462 +Q6-T1 execute opt: 'COMMIT;' + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-26 0:41:8:226:813 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_21c/serializable/rat_sda_non_repeatable_read.txt b/result/result/oracle_21c/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..7726b286 --- /dev/null +++ b/result/result/oracle_21c/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,56 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:40:57:481:394 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:40:57:522:958 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:40:57:981:162 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-26 0:40:58:23:405 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-26 0:40:58:521:177 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-26 0:40:59:595:569 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/serializable/rat_sda_non_repeatable_read_pred_insert.txt b/result/result/oracle_21c/serializable/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..5b1a34e3 --- /dev/null +++ b/result/result/oracle_21c/serializable/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,55 @@ +#### db_type: oracle #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:58:987:627 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:42:59:31:133 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:59:487:522 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-26 0:42:59:565:403 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-26 0:43:0:27:614 + Q6-T2 execute opt: 'COMMIT;' +Q7-T1 execute opt: 'COMMIT;' + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-26 0:43:1:103:998 + Q9-T3 execute opt: 'COMMIT;' + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/oracle_21c/serializable/wat_dda_double_write_skew2_committed.txt b/result/result/oracle_21c/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..7ae7995a --- /dev/null +++ b/result/result/oracle_21c/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:54:143:59 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:54:185:176 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:54:642:917 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-26 0:41:54:684:646 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-26 0:41:55:182:414 +Q8-T1 execute opt: 'COMMIT;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-26 0:41:55:758:596 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_21c/serializable/wat_dda_full_write_skew_c1.txt b/result/result/oracle_21c/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..464910e9 --- /dev/null +++ b/result/result/oracle_21c/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,33 @@ +#### db_type: oracle #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:57:270:743 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:57:312:612 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:57:770:593 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-26 0:41:57:812:256 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-5-26 0:42:1:521:288 +Q6 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q6 failed at: 2022-5-26 0:42:5:165:277 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/result/result/oracle_21c/serializable/wat_dda_full_write_skew_committed.txt b/result/result/oracle_21c/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..4ffa1577 --- /dev/null +++ b/result/result/oracle_21c/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: oracle #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:6:685:129 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:42:6:734:426 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:7:185:271 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-26 0:42:7:227:515 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-5-26 0:42:10:933:631 +Q7 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q7 failed at: 2022-5-26 0:42:15:181:738 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/result/result/oracle_21c/serializable/wat_dda_read_write_skew1_c1.txt b/result/result/oracle_21c/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..76268f8e --- /dev/null +++ b/result/result/oracle_21c/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:16:695:719 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-26 0:42:16:737:242 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:17:199:662 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-26 0:42:17:241:509 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-26 0:42:17:282:709 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' +Q6 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q6 failed at: 2022-5-26 0:42:18:874:458 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_21c/serializable/wat_dda_read_write_skew2_c1.txt b/result/result/oracle_21c/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..ebd2a2d1 --- /dev/null +++ b/result/result/oracle_21c/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:20:381:551 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:42:20:423:42 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:20:881:631 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:42:20:923:633 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-26 0:42:21:420:207 +Q7-T1 execute opt: 'COMMIT;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-26 0:42:21:996:175 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_21c/serializable/wat_dda_read_write_skew2_committed.txt b/result/result/oracle_21c/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..dc6454e9 --- /dev/null +++ b/result/result/oracle_21c/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,40 @@ +#### db_type: oracle #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:23:518:170 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:42:23:559:509 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:24:18:152 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-26 0:42:24:60:64 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-26 0:42:24:556:795 +Q8-T1 execute opt: 'COMMIT;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q5 failed at: 2022-5-26 0:42:25:132:987 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_21c/serializable/wat_mda_step_wat_c1.txt b/result/result/oracle_21c/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..6458d2c1 --- /dev/null +++ b/result/result/oracle_21c/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,41 @@ +#### db_type: oracle #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:42:26:686:495 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:42:26:727:505 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:42:27:186:701 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-26 0:42:27:228:858 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-26 0:42:27:686:712 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-26 0:42:27:725:905 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 failed reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource errcode: HY000 + Q5 failed at: 2022-5-26 0:42:30:948:613 + Q8 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 + Q8 failed at: 2022-5-26 0:42:34:344:638 +Q9 failed reason: [Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation errcode: HYT00 +Q9 failed at: 2022-5-26 0:42:34:445:305 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-00060: deadlock detected while waiting for resource + diff --git a/result/result/oracle_21c/serializable/wat_sda_dirty_write_2commit.txt b/result/result/oracle_21c/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..b0951ed2 --- /dev/null +++ b/result/result/oracle_21c/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,28 @@ +#### db_type: oracle #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:38:607:646 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:38:648:815 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:39:107:833 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-26 0:41:40:83:698 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_21c/serializable/wat_sda_full_write.txt b/result/result/oracle_21c/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..59b8ed51 --- /dev/null +++ b/result/result/oracle_21c/serializable/wat_sda_full_write.txt @@ -0,0 +1,30 @@ +#### db_type: oracle #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:41:591:936 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:41:636:96 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:42:91:859 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-26 0:41:42:630:468 +Q6-T1 execute opt: 'COMMIT;' + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-26 0:41:43:106:726 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_21c/serializable/wat_sda_full_write_committed.txt b/result/result/oracle_21c/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..298175bc --- /dev/null +++ b/result/result/oracle_21c/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,30 @@ +#### db_type: oracle #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:44:583:739 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:44:624:548 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:45:83:624 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-26 0:41:45:623:995 +Q7-T1 execute opt: 'COMMIT;' + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-26 0:41:46:100:383 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_21c/serializable/wat_sda_lost_self_update_committed.txt b/result/result/oracle_21c/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..efdf0d01 --- /dev/null +++ b/result/result/oracle_21c/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,37 @@ +#### db_type: oracle #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:51:121:630 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-26 0:41:51:162:963 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:51:621:409 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-26 0:41:52:160:883 +Q7-T1 execute opt: 'COMMIT;' + Q4 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 + Q4 failed at: 2022-5-26 0:41:52:637:241 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/oracle_21c/serializable/wat_sda_lost_update_c1.txt b/result/result/oracle_21c/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..5a5cf7af --- /dev/null +++ b/result/result/oracle_21c/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,37 @@ +#### db_type: oracle #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-26 0:41:47:574:565 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-26 0:41:47:615:341 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-26 0:41:48:74:636 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-26 0:41:48:116:282 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' +Q5 failed reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction errcode: HY000 +Q5 failed at: 2022-5-26 0:41:49:650:28 + +Test Result: Rollback +Reason: [Oracle][ODBC][Ora]ORA-08177: can't serialize access for this transaction + diff --git a/result/result/pg_12.4/read-committed/iat_dda_read_skew_committed.txt b/result/result/pg_12.4/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..ac6b736d --- /dev/null +++ b/result/result/pg_12.4/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:3:59:571:139 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:3:59:573:39 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:0:71:181 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:4:0:73:454 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:4:0:75:195 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:4:0:77:566 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 11:4:0:572:464 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:4:0:573:585 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:4:0:575:285 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:4:0:576:63 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/pg_12.4/read-committed/iat_dda_read_write_skew1_committed.txt b/result/result/pg_12.4/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..3271edd1 --- /dev/null +++ b/result/result/pg_12.4/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:1:591:443 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:4:1:593:333 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:2:91:534 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:4:2:93:464 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:4:2:94:856 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:4:2:97:85 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 11:4:2:592:578 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:4:2:594:764 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:4:2:596:726 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:4:2:597:626 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/pg_12.4/read-committed/iat_dda_write_skew.txt b/result/result/pg_12.4/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..faee0ecb --- /dev/null +++ b/result/result/pg_12.4/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:3:613:298 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:4:3:615:613 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:4:113:329 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:4:4:115:348 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:4:4:116:757 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 11:4:4:614:193 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:4:4:616:116 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:4:5:117:183 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:4:5:119:28 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:4:5:119:843 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/pg_12.4/read-committed/iat_dda_write_skew_committed.txt b/result/result/pg_12.4/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..24a30674 --- /dev/null +++ b/result/result/pg_12.4/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:6:134:695 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:4:6:136:486 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:6:634:957 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:4:6:637:159 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:4:6:638:783 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:4:6:641:28 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 11:4:7:136:566 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:4:7:138:497 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:4:7:140:220 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:4:7:140:969 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/pg_12.4/read-committed/iat_dda_write_skew_pred_insert.txt b/result/result/pg_12.4/read-committed/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..e9d96eb3 --- /dev/null +++ b/result/result/pg_12.4/read-committed/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,59 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:16:187:946 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:4:16:189:993 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:16:687:808 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-23 11:4:16:689:733 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-23 11:4:16:691:143 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-23 11:4:17:188:754 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:4:17:190:727 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:4:17:689:290 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-23 11:4:17:691:206 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:4:17:692:133 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/pg_12.4/read-committed/iat_mda_step_iat.txt b/result/result/pg_12.4/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..a4a459a3 --- /dev/null +++ b/result/result/pg_12.4/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: pg #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:8:156:180 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-23 11:4:8:158:952 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:8:656:147 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:4:8:658:521 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-5-23 11:4:9:156:37 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-23 11:4:9:158:322 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-23 11:4:9:656:981 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-23 11:4:10:157:236 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-23 11:4:10:657:15 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-23 11:4:11:157:585 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-23 11:4:11:657:821 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-23 11:4:12:157:882 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-23 11:4:12:160:723 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-23 11:4:12:161:660 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/pg_12.4/read-committed/iat_sda_lost_update_committed.txt b/result/result/pg_12.4/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..e46b19b2 --- /dev/null +++ b/result/result/pg_12.4/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:3:57:547:900 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 11:3:57:549:672 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:3:58:47:967 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-23 11:3:58:49:872 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:3:58:51:820 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-5-23 11:3:58:552:607 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:3:58:554:594 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:3:58:556:407 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:3:58:557:237 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/pg_12.4/read-committed/iat_sda_non_repeatable_read_committed.txt b/result/result/pg_12.4/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..e122b356 --- /dev/null +++ b/result/result/pg_12.4/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,58 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:3:55:531:410 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:3:55:533:413 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:3:56:31:447 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-23 11:3:56:33:319 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:3:56:35:209 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 11:3:56:532:251 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:3:56:533:107 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:3:56:534:776 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:3:56:535:590 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/pg_12.4/read-committed/rat_dda_double_write_skew1.txt b/result/result/pg_12.4/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..89584862 --- /dev/null +++ b/result/result/pg_12.4/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:7:440:353 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:7:442:124 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:7:943:642 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:1:7:945:549 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:1:7:947:213 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 11:1:8:941:991 + Q7 finished at: 2022-5-23 11:1:8:942:356 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:1:9:441:882 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-23 11:1:9:443:950 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:1:9:444:605 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/read-committed/rat_dda_double_write_skew1_committed.txt b/result/result/pg_12.4/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..b6a8a2ee --- /dev/null +++ b/result/result/pg_12.4/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:10:462:313 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:10:464:163 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:10:962:152 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:1:10:964:70 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:1:10:965:543 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:1:10:967:528 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-5-23 11:1:11:463:354 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:1:11:465:291 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-23 11:1:11:467:362 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:1:11:468:113 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/read-committed/rat_dda_double_write_skew2.txt b/result/result/pg_12.4/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..a1518096 --- /dev/null +++ b/result/result/pg_12.4/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:12:482:871 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:12:484:893 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:12:982:839 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:1:12:984:723 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 11:1:13:483:810 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:1:13:485:742 + Q5 finished at: 2022-5-23 11:1:13:485:877 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:1:13:984:84 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:1:13:985:932 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:1:13:986:537 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/read-committed/rat_dda_read_skew.txt b/result/result/pg_12.4/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..80af8b62 --- /dev/null +++ b/result/result/pg_12.4/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:14:999:964 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:1:15:1:922 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:15:499:976 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:1:15:501:798 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:1:15:503:222 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 11:1:16:0:972 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:1:16:501:453 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:1:17:3:787 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:1:17:5:806 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:1:17:6:512 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/read-committed/rat_dda_read_skew2.txt b/result/result/pg_12.4/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..11994733 --- /dev/null +++ b/result/result/pg_12.4/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:18:21:157 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:18:23:0 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:18:521:217 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:1:18:523:238 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:1:18:524:785 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 11:1:19:22:300 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:1:19:24:361 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:1:19:521:509 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:1:19:523:561 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:1:19:524:341 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/read-committed/rat_dda_read_skew2_committed.txt b/result/result/pg_12.4/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..92f20c0f --- /dev/null +++ b/result/result/pg_12.4/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:20:538:233 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:20:540:219 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:21:38:46 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:1:21:40:191 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:1:21:41:690 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:1:21:42:578 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 11:1:21:539:20 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:1:21:541:62 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:1:21:543:40 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:1:21:543:701 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/read-committed/rat_dda_write_read_skew.txt b/result/result/pg_12.4/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..09a3c4ad --- /dev/null +++ b/result/result/pg_12.4/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:2:397:108 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:2:399:228 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:2:897:308 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:1:2:899:446 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:1:2:901:651 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 11:1:3:398:246 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:1:3:898:733 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:1:4:400:867 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:1:4:402:989 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:1:4:403:739 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/pg_12.4/read-committed/rat_dda_write_read_skew_committed.txt b/result/result/pg_12.4/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..235847bd --- /dev/null +++ b/result/result/pg_12.4/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:5:420:487 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:5:422:235 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:5:920:392 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:1:5:922:107 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:1:5:923:589 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:1:5:925:462 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 11:1:6:421:351 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:1:6:423:246 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:1:6:425:109 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:1:6:425:846 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/read-committed/rat_mda_step_rat.txt b/result/result/pg_12.4/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..a86d035f --- /dev/null +++ b/result/result/pg_12.4/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: pg #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:22:558:900 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:22:560:739 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:23:59:567 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:1:23:61:617 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:1:23:63:529 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 11:1:23:558:873 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-23 11:1:23:560:770 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-23 11:1:23:562:595 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-23 11:1:24:60:179 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-23 11:1:24:62:168 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-23 11:1:24:560:394 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-23 11:1:25:60:385 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-23 11:1:25:63:198 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-23 11:1:25:63:874 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/pg_12.4/read-committed/rat_sda_dirty_read.txt b/result/result/pg_12.4/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..a10416d8 --- /dev/null +++ b/result/result/pg_12.4/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: pg #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:0:49:305:153 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:0:49:306:939 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:0:49:811:474 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:0:49:813:604 +Q5-T1 execute opt: 'ROLLBACK;' +Q5 finished at: 2022-5-23 11:0:50:305:397 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:0:50:805:401 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-23 11:0:50:807:224 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:0:50:807:962 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/read-committed/rat_sda_intermediate_read.txt b/result/result/pg_12.4/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..5f4666a9 --- /dev/null +++ b/result/result/pg_12.4/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:0:54:836:878 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:0:54:839:86 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:0:55:337:154 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:0:55:339:275 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-23 11:0:55:837:820 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:0:56:339:734 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:0:56:841:137 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 11:0:56:843:94 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:0:56:843:896 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/read-committed/rat_sda_intermediate_read_committed.txt b/result/result/pg_12.4/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..8e7dc58b --- /dev/null +++ b/result/result/pg_12.4/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:0:57:858:777 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:0:57:860:851 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:0:58:358:774 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:0:58:360:854 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:0:58:361:783 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-23 11:0:58:860:528 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:0:58:862:492 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 11:0:58:864:554 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:0:58:865:388 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/read-committed/rat_sda_lost_self_update.txt b/result/result/pg_12.4/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..22a4005f --- /dev/null +++ b/result/result/pg_12.4/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:0:59:878:690 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:0:59:880:884 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:0:378:450 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 11:1:0:880:427 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 11:1:0:882:269 + Q4 finished at: 2022-5-23 11:1:0:882:366 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:1:1:379:921 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:1:1:381:607 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:1:1:382:310 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/read-committed/rat_sda_non_repeatable_read.txt b/result/result/pg_12.4/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..73599571 --- /dev/null +++ b/result/result/pg_12.4/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:0:51:820:784 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:0:51:822:767 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:0:52:320:735 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-23 11:0:52:322:791 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 11:0:52:821:847 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:0:53:332:77 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:0:53:821:122 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:0:53:822:776 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:0:53:823:459 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/read-committed/rat_sda_non_repeatable_read_pred_insert.txt b/result/result/pg_12.4/read-committed/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..2f240100 --- /dev/null +++ b/result/result/pg_12.4/read-committed/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,59 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:13:173:415 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:4:13:175:363 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:13:673:505 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-23 11:4:13:675:476 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 11:4:14:174:260 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:4:14:674:902 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:4:15:173:773 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:4:15:175:426 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:4:15:176:227 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/read-committed/wat_dda_double_write_skew2_committed.txt b/result/result/pg_12.4/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..a9403560 --- /dev/null +++ b/result/result/pg_12.4/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:37:692:658 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:37:694:606 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:38:192:381 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:1:38:194:307 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 11:1:38:693:256 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:1:38:695:200 + Q5 finished at: 2022-5-23 11:1:38:695:267 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:1:38:697:113 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:1:38:698:879 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:1:38:699:681 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/read-committed/wat_dda_full_write_skew_c1.txt b/result/result/pg_12.4/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..ae6553ff --- /dev/null +++ b/result/result/pg_12.4/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:39:713:429 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:39:715:246 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:40:213:414 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:1:40:215:399 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q5 failed at: 2022-5-23 11:1:42:214:705 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-5-23 11:2:21:314:654 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/result/result/pg_12.4/read-committed/wat_dda_full_write_skew_committed.txt b/result/result/pg_12.4/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..d14a976e --- /dev/null +++ b/result/result/pg_12.4/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,34 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:2:22:329:585 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:2:22:331:561 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:2:22:831:608 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:2:22:833:720 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q5 failed at: 2022-5-23 11:2:24:830:965 +Q7 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q7 failed at: 2022-5-23 11:3:4:31:19 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/result/result/pg_12.4/read-committed/wat_dda_read_write_skew1_c1.txt b/result/result/pg_12.4/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..4b855426 --- /dev/null +++ b/result/result/pg_12.4/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:3:5:45:789 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:3:5:47:864 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:3:5:545:592 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:3:5:547:706 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:3:5:549:191 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:3:6:547:324 +Q6 finished at: 2022-5-23 11:3:6:547:386 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:3:6:549:37 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:3:6:550:837 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:3:6:551:654 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/pg_12.4/read-committed/wat_dda_read_write_skew2_c1.txt b/result/result/pg_12.4/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..2aa25560 --- /dev/null +++ b/result/result/pg_12.4/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:3:7:566:432 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:3:7:568:354 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:3:8:66:440 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:3:8:68:992 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 11:3:8:567:338 +Q7-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:3:8:569:421 +Q7 finished at: 2022-5-23 11:3:8:569:457 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:3:9:67:986 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:3:9:70:115 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:3:9:71:20 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/pg_12.4/read-committed/wat_dda_read_write_skew2_committed.txt b/result/result/pg_12.4/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..5649ab1d --- /dev/null +++ b/result/result/pg_12.4/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:3:10:86:145 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:3:10:88:38 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:3:10:586:255 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:3:10:588:437 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 11:3:11:88:545 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:3:11:90:482 + Q5 finished at: 2022-5-23 11:3:11:90:592 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:3:11:92:796 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:3:11:95:225 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:3:11:96:286 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/pg_12.4/read-committed/wat_mda_step_wat_c1.txt b/result/result/pg_12.4/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..6ff4ca71 --- /dev/null +++ b/result/result/pg_12.4/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:3:12:134:840 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:3:12:136:496 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:3:12:612:983 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:3:12:614:863 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 11:3:13:113:202 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-23 11:3:13:115:109 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q8 failed at: 2022-5-23 11:3:14:917:69 + Q5 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q5 failed at: 2022-5-23 11:3:54:115:961 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-5-23 11:3:54:516:69 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/result/result/pg_12.4/read-committed/wat_sda_dirty_write_2commit.txt b/result/result/pg_12.4/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..f3ac5c1c --- /dev/null +++ b/result/result/pg_12.4/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: pg #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:26:78:279 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:26:80:524 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:26:578:269 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-23 11:1:27:79:609 + Q4 finished at: 2022-5-23 11:1:27:79:669 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:1:27:585:994 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-5-23 11:1:27:588:52 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-5-23 11:1:27:590:348 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:1:27:592:892 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/read-committed/wat_sda_full_write.txt b/result/result/pg_12.4/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..767e5f72 --- /dev/null +++ b/result/result/pg_12.4/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: pg #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:28:607:710 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:28:609:644 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:29:115:256 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-23 11:1:29:609:588 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 11:1:29:611:516 + Q4 finished at: 2022-5-23 11:1:29:611:584 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:1:30:109:929 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-23 11:1:30:111:770 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:1:30:112:681 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/read-committed/wat_sda_full_write_committed.txt b/result/result/pg_12.4/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..87f0bcca --- /dev/null +++ b/result/result/pg_12.4/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: pg #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:31:125:189 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:31:126:907 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:31:625:131 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-23 11:1:32:126:93 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:1:32:129:566 + Q4 finished at: 2022-5-23 11:1:32:129:638 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:1:32:131:289 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-23 11:1:32:132:872 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:1:32:133:677 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/read-committed/wat_sda_lost_self_update_committed.txt b/result/result/pg_12.4/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..f4fb5c92 --- /dev/null +++ b/result/result/pg_12.4/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:35:667:647 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:1:35:670:182 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:36:167:447 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 11:1:36:668:280 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:1:36:670:368 + Q4 finished at: 2022-5-23 11:1:36:670:415 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:1:36:672:501 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:1:36:674:127 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:1:36:674:939 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/read-committed/wat_sda_lost_update_c1.txt b/result/result/pg_12.4/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..b8dc4210 --- /dev/null +++ b/result/result/pg_12.4/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:1:33:147:106 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 11:1:33:148:949 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:1:33:647:80 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-23 11:1:33:649:89 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:1:34:648:544 +Q5 finished at: 2022-5-23 11:1:34:648:603 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 11:1:34:650:277 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:1:34:652:147 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:1:34:652:966 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/pg_12.4/repeatable-read/iat_dda_read_skew_committed.txt b/result/result/pg_12.4/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..3a6c1218 --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:6:54:363:889 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:6:54:365:725 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:6:54:863:824 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:6:54:865:719 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:6:54:867:110 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:6:54:869:99 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 11:6:55:365:220 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:6:55:366:181 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:6:55:368:57 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:6:55:369:136 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/repeatable-read/iat_dda_read_write_skew1_committed.txt b/result/result/pg_12.4/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..c32ebe40 --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:6:56:384:63 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:6:56:386:161 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:6:56:884:186 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:6:56:886:302 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:6:56:888:54 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:6:56:889:956 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q7 failed at: 2022-5-23 11:6:58:85:533 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/repeatable-read/iat_dda_write_skew.txt b/result/result/pg_12.4/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..b4298081 --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:6:59:101:966 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:6:59:103:936 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:6:59:603:562 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:6:59:605:647 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:6:59:607:61 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 11:7:0:102:858 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:7:0:105:175 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:7:0:603:178 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:7:0:605:559 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:7:0:606:637 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/pg_12.4/repeatable-read/iat_dda_write_skew_committed.txt b/result/result/pg_12.4/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..a027c838 --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:1:620:726 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:7:1:622:501 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:2:120:683 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:7:2:122:870 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:7:2:124:293 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:7:2:126:108 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 11:7:2:621:662 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:7:2:623:889 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:7:2:625:661 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:7:2:626:535 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/pg_12.4/repeatable-read/iat_dda_write_skew_pred_insert.txt b/result/result/pg_12.4/repeatable-read/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..531ac01e --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,59 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:11:702:558 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:7:11:704:557 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:12:203:450 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-23 11:7:12:205:244 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-23 11:7:12:206:609 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-23 11:7:12:707:900 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:7:12:710:255 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:7:13:204:972 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-23 11:7:13:206:881 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:7:13:207:735 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/pg_12.4/repeatable-read/iat_mda_step_iat.txt b/result/result/pg_12.4/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..fe004d08 --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: pg #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:3:645:322 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-23 11:7:3:647:534 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:4:145:359 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:7:4:147:539 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-5-23 11:7:4:648:200 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-23 11:7:4:650:741 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-23 11:7:5:148:704 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-23 11:7:5:648:653 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-23 11:7:6:146:368 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-23 11:7:6:646:765 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-23 11:7:7:147:141 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-23 11:7:7:646:864 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-23 11:7:7:649:193 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-23 11:7:7:650:129 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/pg_12.4/repeatable-read/iat_sda_lost_update_committed.txt b/result/result/pg_12.4/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..3ab777a2 --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:6:51:746:620 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 11:6:51:748:419 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:6:52:246:631 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-23 11:6:52:248:458 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:6:52:250:415 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q6 failed at: 2022-5-23 11:6:53:347:735 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/result/result/pg_12.4/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..c6504eb9 --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:6:49:728:406 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:6:49:730:419 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:6:50:228:559 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-23 11:6:50:230:765 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:6:50:232:528 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 11:6:50:729:308 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:6:50:730:104 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:6:50:732:70 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:6:50:733:86 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/repeatable-read/rat_dda_double_write_skew1.txt b/result/result/pg_12.4/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..bea323a6 --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:36:938:298 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:36:940:107 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:37:438:335 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:4:37:440:208 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:4:37:441:679 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:4:38:440:128 +Q6 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q6 failed at: 2022-5-23 11:4:39:40:388 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/repeatable-read/rat_dda_double_write_skew1_committed.txt b/result/result/pg_12.4/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..f98e94ce --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:40:56:894 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:40:58:697 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:40:556:981 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:4:40:558:887 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:4:40:560:439 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:4:40:562:481 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q7 failed at: 2022-5-23 11:4:41:760:772 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/repeatable-read/rat_dda_double_write_skew2.txt b/result/result/pg_12.4/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..3e8e44a6 --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:42:777:823 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:42:779:625 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:43:277:824 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:4:43:279:636 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 11:4:43:778:791 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:4:43:781:98 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-5-23 11:4:44:281:720 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/repeatable-read/rat_dda_read_skew.txt b/result/result/pg_12.4/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..14e56f50 --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:45:297:402 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:4:45:299:607 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:45:797:162 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:4:45:799:59 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:4:45:800:421 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 11:4:46:298:221 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:4:46:801:255 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:4:47:300:234 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:4:47:302:425 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:4:47:303:190 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/repeatable-read/rat_dda_read_skew2.txt b/result/result/pg_12.4/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..8be9d566 --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:48:320:728 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:48:322:757 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:48:820:501 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:4:48:822:535 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:4:48:824:35 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 11:4:49:321:646 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:4:49:323:742 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:4:49:823:246 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:4:49:825:425 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:4:49:826:234 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/repeatable-read/rat_dda_read_skew2_committed.txt b/result/result/pg_12.4/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..71bad17c --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:50:841:491 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:50:843:501 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:51:341:316 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:4:51:343:409 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:4:51:344:902 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:4:51:345:770 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 11:4:51:842:148 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:4:51:844:300 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:4:51:846:195 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:4:51:846:896 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/repeatable-read/rat_dda_write_read_skew.txt b/result/result/pg_12.4/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..c7a2a826 --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:31:891:128 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:31:892:929 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:32:391:142 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:4:32:393:116 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:4:32:394:564 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 11:4:32:892:113 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:4:33:392:758 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:4:33:893:76 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:4:33:895:162 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:4:33:895:799 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/pg_12.4/repeatable-read/rat_dda_write_read_skew_committed.txt b/result/result/pg_12.4/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..d58eb5fd --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: pg #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:34:912:994 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:34:915:99 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:35:412:865 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:4:35:415:35 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:4:35:416:715 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:4:35:418:852 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 11:4:35:915:369 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:4:35:917:438 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:4:35:919:510 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:4:35:920:274 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/pg_12.4/repeatable-read/rat_mda_step_rat.txt b/result/result/pg_12.4/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..1509b79e --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: pg #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:52:862:222 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:52:863:938 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:53:362:255 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:4:53:364:279 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:4:53:366:153 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 11:4:53:862:399 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-23 11:4:53:864:602 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-23 11:4:53:866:486 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-23 11:4:54:365:232 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-23 11:4:54:368:50 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-23 11:4:54:865:301 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-23 11:4:55:365:39 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-23 11:4:55:367:868 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-23 11:4:55:368:872 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/pg_12.4/repeatable-read/rat_sda_dirty_read.txt b/result/result/pg_12.4/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..8bcd2469 --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: pg #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:18:798:701 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:18:800:488 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:19:298:560 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:4:19:300:644 +Q5-T1 execute opt: 'ROLLBACK;' +Q5 finished at: 2022-5-23 11:4:19:799:951 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:4:20:299:118 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-23 11:4:20:301:80 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:4:20:301:770 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/repeatable-read/rat_sda_intermediate_read.txt b/result/result/pg_12.4/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..082924d2 --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:24:337:167 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:24:339:252 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:24:839:787 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:4:24:842:430 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-23 11:4:25:340:397 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:4:25:843:772 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:4:26:338:618 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 11:4:26:340:501 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:4:26:341:260 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/repeatable-read/rat_sda_intermediate_read_committed.txt b/result/result/pg_12.4/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..aace45dc --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:27:355:398 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:27:357:356 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:27:855:368 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:4:27:857:357 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:4:27:858:306 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-23 11:4:28:356:247 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:4:28:358:271 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 11:4:28:359:997 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:4:28:360:712 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/repeatable-read/rat_sda_lost_self_update.txt b/result/result/pg_12.4/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..bc8f09b8 --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:29:377:520 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:29:379:539 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:29:877:454 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 11:4:30:379:86 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 11:4:30:381:3 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-5-23 11:4:30:781:702 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/repeatable-read/rat_sda_non_repeatable_read.txt b/result/result/pg_12.4/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..d1d7f5ad --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:21:318:586 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:4:21:320:973 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:21:819:627 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-23 11:4:21:821:710 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 11:4:22:320:836 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:4:22:820:204 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:4:23:319:109 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:4:23:320:942 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:4:23:321:653 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt b/result/result/pg_12.4/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..6fdb0f55 --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,59 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:8:662:862 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:7:8:664:871 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:9:163:97 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-23 11:7:9:165:75 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 11:7:9:663:438 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:7:10:164:418 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:7:10:675:175 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:7:10:676:827 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:7:10:677:932 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/repeatable-read/wat_dda_double_write_skew2_committed.txt b/result/result/pg_12.4/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..48368943 --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:5:9:270:434 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:5:9:272:305 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:5:9:770:482 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:5:9:772:674 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 11:5:10:271:658 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:5:10:274:193 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-5-23 11:5:10:774:545 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/repeatable-read/wat_dda_full_write_skew_c1.txt b/result/result/pg_12.4/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..fbcb5d05 --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:5:11:791:706 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:5:11:793:427 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:5:12:291:864 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:5:12:293:963 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q5 failed at: 2022-5-23 11:5:14:293:212 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-5-23 11:5:53:392:997 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/result/result/pg_12.4/repeatable-read/wat_dda_full_write_skew_committed.txt b/result/result/pg_12.4/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..db75d38c --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,33 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:5:54:414:453 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:5:54:416:396 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:5:54:914:904 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:5:54:917:302 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: ERROR: deadlock detected; errcode: 40P01 +Q7 failed at: 2022-5-23 11:5:57:116:127 + Q5 finished at: 2022-5-23 11:5:57:117:288 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/result/result/pg_12.4/repeatable-read/wat_dda_read_write_skew1_c1.txt b/result/result/pg_12.4/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..c3b70b06 --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:5:58:134:265 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:5:58:136:91 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:5:58:634:195 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:5:58:635:985 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:5:58:637:285 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:5:59:636:714 +Q6 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q6 failed at: 2022-5-23 11:6:0:237:22 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/repeatable-read/wat_dda_read_write_skew2_c1.txt b/result/result/pg_12.4/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..6cbd18bb --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:6:1:256:136 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:6:1:258:153 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:6:1:756:106 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:6:1:758:222 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 11:6:2:260:442 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:6:2:262:346 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-5-23 11:6:2:762:645 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/repeatable-read/wat_dda_read_write_skew2_committed.txt b/result/result/pg_12.4/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..10fd7b8c --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:6:3:783:606 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:6:3:785:323 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:6:4:283:447 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:6:4:285:468 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 11:6:4:784:326 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:6:4:790:900 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-5-23 11:6:5:291:666 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/repeatable-read/wat_mda_step_wat_c1.txt b/result/result/pg_12.4/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..74a63e3c --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:6:6:310:731 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:6:6:312:502 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:6:6:810:562 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:6:6:812:442 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 11:6:7:314:658 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-23 11:6:7:316:801 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q8 failed at: 2022-5-23 11:6:9:118:913 + Q5 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q5 failed at: 2022-5-23 11:6:48:312:429 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-5-23 11:6:48:712:215 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/result/result/pg_12.4/repeatable-read/wat_sda_dirty_write_2commit.txt b/result/result/pg_12.4/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..4f64667d --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,30 @@ +#### db_type: pg #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:56:382:417 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:56:384:529 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:56:882:628 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-23 11:4:57:384:783 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-5-23 11:4:57:785:187 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/repeatable-read/wat_sda_full_write.txt b/result/result/pg_12.4/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..339428ac --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,32 @@ +#### db_type: pg #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:4:58:897:590 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:4:58:899:432 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:4:59:397:618 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-23 11:4:59:898:334 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 11:4:59:900:170 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-5-23 11:5:0:300:559 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/repeatable-read/wat_sda_full_write_committed.txt b/result/result/pg_12.4/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..58dd750c --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,32 @@ +#### db_type: pg #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:5:1:412:828 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:5:1:414:562 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:5:1:912:801 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-23 11:5:2:416:459 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:5:2:418:497 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-5-23 11:5:2:818:772 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/repeatable-read/wat_sda_lost_self_update_committed.txt b/result/result/pg_12.4/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..8c865d6f --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:5:6:850:439 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:5:6:852:467 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:5:7:350:416 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 11:5:7:851:858 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:5:7:854:355 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-5-23 11:5:8:254:608 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/repeatable-read/wat_sda_lost_update_c1.txt b/result/result/pg_12.4/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..bc311aba --- /dev/null +++ b/result/result/pg_12.4/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:5:3:833:972 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 11:5:3:835:875 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:5:4:334:2 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-23 11:5:4:335:727 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:5:5:335:291 +Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q5 failed at: 2022-5-23 11:5:5:835:586 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/result_summary/read-committed_total-result.txt b/result/result/pg_12.4/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..74353e44 --- /dev/null +++ b/result/result/pg_12.4/result_summary/read-committed_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/result/result/pg_12.4/result_summary/repeatable-read_total-result.txt b/result/result/pg_12.4/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..5b0cabbd --- /dev/null +++ b/result/result/pg_12.4/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/result/result/pg_12.4/result_summary/serializable_total-result.txt b/result/result/pg_12.4/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..c82f8ecd --- /dev/null +++ b/result/result/pg_12.4/result_summary/serializable_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Rollback + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Rollback + diff --git a/result/result/pg_12.4/serializable/iat_dda_read_skew_committed.txt b/result/result/pg_12.4/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..e368f3eb --- /dev/null +++ b/result/result/pg_12.4/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:10:30:957:700 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:10:30:959:700 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:10:31:459:549 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:10:31:461:535 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:10:31:463:85 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:10:31:464:939 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 11:10:31:960:439 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:10:31:961:320 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:10:31:963:221 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:10:31:963:979 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/serializable/iat_dda_read_write_skew1_committed.txt b/result/result/pg_12.4/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..2a6e60d1 --- /dev/null +++ b/result/result/pg_12.4/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:10:32:977:452 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:10:32:979:358 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:10:33:478:408 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:10:33:480:469 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:10:33:482:16 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:10:33:484:866 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q7 failed at: 2022-5-23 11:10:34:678:494 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/serializable/iat_dda_write_skew.txt b/result/result/pg_12.4/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..40abe06e --- /dev/null +++ b/result/result/pg_12.4/serializable/iat_dda_write_skew.txt @@ -0,0 +1,51 @@ +#### db_type: pg #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:10:35:695:34 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:10:35:696:960 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:10:36:195:16 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:10:36:196:874 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:10:36:198:165 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 11:10:36:696:581 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:10:36:698:418 + Q8-T2 execute opt: 'COMMIT;' + Q8 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions errcode: 40001 + Q8 failed at: 2022-5-23 11:10:37:996:12 + +Test Result: Rollback +ERROR: could not serialize access due to read/write dependencies among transactions + diff --git a/result/result/pg_12.4/serializable/iat_dda_write_skew_committed.txt b/result/result/pg_12.4/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..91d663c6 --- /dev/null +++ b/result/result/pg_12.4/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,49 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:10:39:15:492 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:10:39:17:348 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:10:39:515:620 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:10:39:517:672 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:10:39:519:110 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:10:39:521:40 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions; errcode: 40001 +Q7 failed at: 2022-5-23 11:10:40:717:161 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to read/write dependencies among transactions; + diff --git a/result/result/pg_12.4/serializable/iat_dda_write_skew_pred_insert.txt b/result/result/pg_12.4/serializable/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..90beebbf --- /dev/null +++ b/result/result/pg_12.4/serializable/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,49 @@ +#### db_type: pg #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:10:50:363:553 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:10:50:365:902 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:10:50:863:423 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-23 11:10:50:865:400 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-23 11:10:50:867:15 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-23 11:10:51:363:940 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:10:51:366:138 + Q8-T2 execute opt: 'COMMIT;' + Q8 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions errcode: 40001 + Q8 failed at: 2022-5-23 11:10:52:664:118 + +Test Result: Rollback +ERROR: could not serialize access due to read/write dependencies among transactions + diff --git a/result/result/pg_12.4/serializable/iat_mda_step_iat.txt b/result/result/pg_12.4/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..659ebe26 --- /dev/null +++ b/result/result/pg_12.4/serializable/iat_mda_step_iat.txt @@ -0,0 +1,91 @@ +#### db_type: pg #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:10:41:733:447 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-23 11:10:41:735:576 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:10:42:233:470 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:10:42:235:875 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-5-23 11:10:42:735:516 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-23 11:10:42:737:842 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-23 11:10:43:234:625 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-23 11:10:43:736:395 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-23 11:10:44:235:527 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-23 11:10:44:735:409 + Q11-T2 execute opt: 'COMMIT;' + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-23 11:10:45:735:101 + Q11 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions errcode: 40001 + Q11 failed at: 2022-5-23 11:10:46:334:164 + +Test Result: Rollback +ERROR: could not serialize access due to read/write dependencies among transactions + diff --git a/result/result/pg_12.4/serializable/iat_sda_lost_update_committed.txt b/result/result/pg_12.4/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..f9553156 --- /dev/null +++ b/result/result/pg_12.4/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:10:28:330:933 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 11:10:28:332:921 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:10:28:830:810 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-23 11:10:28:832:735 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:10:28:834:798 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q6 failed at: 2022-5-23 11:10:29:932:238 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/serializable/iat_sda_non_repeatable_read_committed.txt b/result/result/pg_12.4/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..fcd69e33 --- /dev/null +++ b/result/result/pg_12.4/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:10:26:310:413 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:10:26:312:367 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:10:26:810:382 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-23 11:10:26:812:289 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:10:26:814:38 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 11:10:27:311:542 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:10:27:312:554 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:10:27:314:367 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:10:27:315:273 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/serializable/rat_dda_double_write_skew1.txt b/result/result/pg_12.4/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..58072fe8 --- /dev/null +++ b/result/result/pg_12.4/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:33:925:959 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:33:927:983 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:34:425:691 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:7:34:427:654 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:7:34:429:189 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:7:35:429:35 +Q6 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q6 failed at: 2022-5-23 11:7:36:29:346 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/serializable/rat_dda_double_write_skew1_committed.txt b/result/result/pg_12.4/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..db335d75 --- /dev/null +++ b/result/result/pg_12.4/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:37:56:704 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:37:58:798 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:37:556:608 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:7:37:558:362 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:7:37:559:836 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:7:37:561:601 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions; errcode: 40001 +Q7 failed at: 2022-5-23 11:7:38:760:802 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to read/write dependencies among transactions; + diff --git a/result/result/pg_12.4/serializable/rat_dda_double_write_skew2.txt b/result/result/pg_12.4/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..52cf7f9f --- /dev/null +++ b/result/result/pg_12.4/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:39:777:184 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:39:779:271 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:40:277:181 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:7:40:279:261 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 11:7:40:780:702 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:7:40:783:663 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-5-23 11:7:41:284:386 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/serializable/rat_dda_read_skew.txt b/result/result/pg_12.4/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..30837ada --- /dev/null +++ b/result/result/pg_12.4/serializable/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:42:307:414 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:7:42:309:539 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:42:807:510 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:7:42:809:738 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:7:42:811:260 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 11:7:43:308:616 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:7:43:813:235 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:7:44:309:552 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:7:44:312:78 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:7:44:312:777 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/serializable/rat_dda_read_skew2.txt b/result/result/pg_12.4/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..37cdecd3 --- /dev/null +++ b/result/result/pg_12.4/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:45:329:33 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:45:330:904 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:45:829:847 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:7:45:831:987 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:7:45:833:534 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 11:7:46:330:574 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:7:46:332:607 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:7:46:829:859 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:7:46:831:908 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:7:46:832:666 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/serializable/rat_dda_read_skew2_committed.txt b/result/result/pg_12.4/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..729d7cfe --- /dev/null +++ b/result/result/pg_12.4/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: pg #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:47:847:464 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:47:849:530 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:48:347:501 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:7:48:350:393 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:7:48:353:192 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:7:48:354:959 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 11:7:48:848:172 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:7:48:850:117 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 11:7:48:852:13 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 11:7:48:852:665 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/serializable/rat_dda_write_read_skew.txt b/result/result/pg_12.4/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..ebacd794 --- /dev/null +++ b/result/result/pg_12.4/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,51 @@ +#### db_type: pg #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:27:394:515 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:27:396:474 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:27:894:303 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:7:27:896:160 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:7:27:897:662 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 11:7:28:395:640 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:7:28:896:888 +Q8-T1 execute opt: 'COMMIT;' +Q8 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions errcode: 40001 +Q8 failed at: 2022-5-23 11:7:30:195:7 + +Test Result: Rollback +ERROR: could not serialize access due to read/write dependencies among transactions + diff --git a/result/result/pg_12.4/serializable/rat_dda_write_read_skew_committed.txt b/result/result/pg_12.4/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..9e5823ee --- /dev/null +++ b/result/result/pg_12.4/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:31:210:114 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:31:211:955 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:31:710:0 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:7:31:711:806 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:7:31:713:307 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:7:31:715:239 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q7 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions; errcode: 40001 +Q7 failed at: 2022-5-23 11:7:32:911:105 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to read/write dependencies among transactions; + diff --git a/result/result/pg_12.4/serializable/rat_mda_step_rat.txt b/result/result/pg_12.4/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..7ddfc2f4 --- /dev/null +++ b/result/result/pg_12.4/serializable/rat_mda_step_rat.txt @@ -0,0 +1,91 @@ +#### db_type: pg #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:49:869:203 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:49:871:210 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:50:370:605 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:7:50:372:814 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 11:7:50:375:286 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 11:7:50:869:189 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-23 11:7:50:871:68 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-23 11:7:50:872:847 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-23 11:7:51:370:903 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-23 11:7:51:373:141 + Q11-T2 execute opt: 'COMMIT;' + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-23 11:7:52:370:872 + Q11 failed reason: ERROR: could not serialize access due to read/write dependencies among transactions errcode: 40001 + Q11 failed at: 2022-5-23 11:7:52:969:714 + +Test Result: Rollback +ERROR: could not serialize access due to read/write dependencies among transactions + diff --git a/result/result/pg_12.4/serializable/rat_sda_dirty_read.txt b/result/result/pg_12.4/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..4a56a6a8 --- /dev/null +++ b/result/result/pg_12.4/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: pg #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:14:307:440 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:14:309:691 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:14:807:53 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:7:14:808:987 +Q5-T1 execute opt: 'ROLLBACK;' +Q5 finished at: 2022-5-23 11:7:15:307:386 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:7:15:807:537 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-23 11:7:15:809:484 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:7:15:810:220 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/serializable/rat_sda_intermediate_read.txt b/result/result/pg_12.4/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..d6b41a05 --- /dev/null +++ b/result/result/pg_12.4/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:19:838:154 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:19:840:220 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:20:338:188 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:7:20:340:226 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-23 11:7:20:839:189 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:7:21:338:619 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:7:21:841:100 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 11:7:21:843:261 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:7:21:844:63 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/serializable/rat_sda_intermediate_read_committed.txt b/result/result/pg_12.4/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..b21bbf60 --- /dev/null +++ b/result/result/pg_12.4/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: pg #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:22:859:714 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:22:862:185 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:23:359:612 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 11:7:23:361:880 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 11:7:23:362:800 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-23 11:7:23:860:610 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:7:23:862:785 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 11:7:23:864:532 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:7:23:865:304 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/serializable/rat_sda_lost_self_update.txt b/result/result/pg_12.4/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..70e3a1bd --- /dev/null +++ b/result/result/pg_12.4/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:24:878:92 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:24:880:27 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:25:378:236 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 11:7:25:879:223 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 11:7:25:881:74 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-5-23 11:7:26:281:506 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/serializable/rat_sda_non_repeatable_read.txt b/result/result/pg_12.4/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..fa258441 --- /dev/null +++ b/result/result/pg_12.4/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:16:822:547 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:7:16:824:674 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:17:322:440 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-23 11:7:17:324:594 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 11:7:17:823:384 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:7:18:324:133 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:7:18:822:843 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:7:18:824:605 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:7:18:825:302 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/serializable/rat_sda_non_repeatable_read_pred_insert.txt b/result/result/pg_12.4/serializable/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..4644d4fc --- /dev/null +++ b/result/result/pg_12.4/serializable/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,59 @@ +#### db_type: pg #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:10:47:348:418 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:10:47:350:313 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:10:47:848:511 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-23 11:10:47:850:626 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 11:10:48:349:688 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 11:10:48:849:834 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:10:49:349:50 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 11:10:49:350:815 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 11:10:49:351:656 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/pg_12.4/serializable/wat_dda_double_write_skew2_committed.txt b/result/result/pg_12.4/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..46a3d137 --- /dev/null +++ b/result/result/pg_12.4/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:8:6:878:851 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:8:6:880:502 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:8:7:378:967 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 11:8:7:380:856 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 11:8:7:883:455 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:8:7:885:537 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-5-23 11:8:8:385:833 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/serializable/wat_dda_full_write_skew_c1.txt b/result/result/pg_12.4/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..6e9444dd --- /dev/null +++ b/result/result/pg_12.4/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,34 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:8:9:402:914 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:8:9:404:740 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:8:9:902:839 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:8:9:904:859 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q5 failed at: 2022-5-23 11:8:11:904:94 +Q6 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q6 failed at: 2022-5-23 11:8:51:4:320 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/result/result/pg_12.4/serializable/wat_dda_full_write_skew_committed.txt b/result/result/pg_12.4/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..52b183b9 --- /dev/null +++ b/result/result/pg_12.4/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,34 @@ +#### db_type: pg #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:8:52:20:288 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:8:52:22:414 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:8:52:520:296 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:8:52:522:281 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q5 failed at: 2022-5-23 11:8:54:521:592 +Q7 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q7 failed at: 2022-5-23 11:9:33:721:777 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/result/result/pg_12.4/serializable/wat_dda_read_write_skew1_c1.txt b/result/result/pg_12.4/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..269c2fbf --- /dev/null +++ b/result/result/pg_12.4/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:9:34:737:979 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 11:9:34:739:918 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:9:35:237:944 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:9:35:239:650 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 11:9:35:240:942 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 11:9:36:239:330 +Q6 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q6 failed at: 2022-5-23 11:9:36:839:584 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/serializable/wat_dda_read_write_skew2_c1.txt b/result/result/pg_12.4/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..740dcea6 --- /dev/null +++ b/result/result/pg_12.4/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:9:37:856:583 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:9:37:858:533 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:9:38:359:478 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:9:38:361:400 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 11:9:38:857:159 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:9:38:859:208 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-5-23 11:9:39:359:539 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/serializable/wat_dda_read_write_skew2_committed.txt b/result/result/pg_12.4/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..ca0f9856 --- /dev/null +++ b/result/result/pg_12.4/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:9:40:374:534 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:9:40:376:613 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:9:40:874:491 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 11:9:40:876:293 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 11:9:41:375:381 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 11:9:41:377:480 + Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q5 failed at: 2022-5-23 11:9:41:877:873 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/serializable/wat_mda_step_wat_c1.txt b/result/result/pg_12.4/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..0362ee90 --- /dev/null +++ b/result/result/pg_12.4/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: pg #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:9:42:895:313 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:9:42:897:151 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:9:43:395:429 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 11:9:43:397:471 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 11:9:43:895:449 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-23 11:9:43:897:257 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 failed reason: ERROR: deadlock detected; errcode: 40P01 + Q8 failed at: 2022-5-23 11:9:45:699:195 + Q5 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 + Q5 failed at: 2022-5-23 11:10:24:896:720 +Q9 failed reason: ERROR: canceling statement due to lock timeout; errcode: 55P03 +Q9 failed at: 2022-5-23 11:10:25:296:802 + +Test Result: Rollback +Reason: ERROR: deadlock detected; + diff --git a/result/result/pg_12.4/serializable/wat_sda_dirty_write_2commit.txt b/result/result/pg_12.4/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..91824fc3 --- /dev/null +++ b/result/result/pg_12.4/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,30 @@ +#### db_type: pg #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:53:984:506 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:53:986:432 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:54:484:36 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-23 11:7:54:985:907 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-5-23 11:7:55:386:312 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/serializable/wat_sda_full_write.txt b/result/result/pg_12.4/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..f61a1aa6 --- /dev/null +++ b/result/result/pg_12.4/serializable/wat_sda_full_write.txt @@ -0,0 +1,32 @@ +#### db_type: pg #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:56:500:355 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:56:502:77 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:57:0:393 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-23 11:7:57:501:551 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 11:7:57:503:666 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-5-23 11:7:57:904:93 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/serializable/wat_sda_full_write_committed.txt b/result/result/pg_12.4/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..524ac48e --- /dev/null +++ b/result/result/pg_12.4/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,32 @@ +#### db_type: pg #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:7:59:19:635 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:7:59:21:344 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:7:59:519:493 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-23 11:8:0:20:678 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:8:0:23:51 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-5-23 11:8:0:423:770 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/serializable/wat_sda_lost_self_update_committed.txt b/result/result/pg_12.4/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..fcaa986a --- /dev/null +++ b/result/result/pg_12.4/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:8:4:459:314 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 11:8:4:461:486 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:8:4:959:351 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 11:8:5:460:328 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 11:8:5:463:432 + Q4 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 + Q4 failed at: 2022-5-23 11:8:5:863:738 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/pg_12.4/serializable/wat_sda_lost_update_c1.txt b/result/result/pg_12.4/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..ff47adc9 --- /dev/null +++ b/result/result/pg_12.4/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: pg #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 11:8:1:438:800 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 11:8:1:440:945 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 11:8:1:938:868 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-23 11:8:1:941:35 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 11:8:2:941:957 +Q5 failed reason: ERROR: could not serialize access due to concurrent update; errcode: 40001 +Q5 failed at: 2022-5-23 11:8:3:442:258 + +Test Result: Rollback +Reason: ERROR: could not serialize access due to concurrent update; + diff --git a/result/result/sqlserver_15.0/rcsnapshot/iat_dda_read_skew_committed.txt b/result/result/sqlserver_15.0/rcsnapshot/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..dcd30011 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:20:676:897 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:20:719:478 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:20:776:931 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:14:20:816:700 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:14:20:855:348 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:14:20:900:937 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 15:14:20:918:15 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:14:20:959:369 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:20:997:712 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:21:34:624 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/iat_dda_read_write_skew1_committed.txt b/result/result/sqlserver_15.0/rcsnapshot/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..acae42c8 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:21:463:643 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:21:506:299 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:21:563:401 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:14:21:603:475 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:14:21:642:115 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:14:21:688:259 +Q7 finished at: 2022-4-2 15:14:21:704:283 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:14:21:753:956 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:21:792:212 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:21:829:19 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew.txt b/result/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew.txt new file mode 100644 index 00000000..0265ff07 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:22:247:950 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:22:290:656 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:22:348:4 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:14:22:386:854 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:14:22:426:529 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:14:22:489:141 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:14:22:539:412 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:14:22:596:573 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:22:635:32 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:14:22:671:794 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew_committed.txt b/result/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..bbff1fa4 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:24:835:511 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:24:878:231 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:24:935:614 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:14:24:974:522 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:14:25:14:645 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:14:25:62:465 +Q7 finished at: 2022-4-2 15:14:25:76:630 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:14:25:128:28 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:25:166:392 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:25:203:309 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew_predicate_based-intersecting_data.txt b/result/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..1d14cba4 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:23:179:382 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 15:14:23:232:180 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 15:14:23:273:860 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 15:14:23:279:117 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute opt: 'COMMIT'; + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 15:14:23:425:396 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' +Q8 finished at: 2022-4-2 15:14:23:427:903 + Q6 finished at: 2022-4-2 15:14:23:464:109 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:14:23:510:227 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 15:14:23:548:318 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 15:14:23:585:877 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:14:23:622:816 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/result/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..d6bc77f6 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:24:46:73 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 15:14:24:102:464 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:24:146:26 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 15:14:24:185:143 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 15:14:24:225:721 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q6 finished at: 2022-4-2 15:14:24:271:758 +Q7 finished at: 2022-4-2 15:14:24:287:880 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:14:24:340:621 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 15:14:24:378:867 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:24:415:671 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat.txt b/result/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat.txt new file mode 100644 index 00000000..779ada60 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:25:665:548 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 15:14:25:708:431 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:25:765:824 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:14:25:805:451 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:14:25:865:579 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 15:14:25:903:475 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 15:14:26:7:711 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 15:14:26:105:636 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 15:14:26:202:261 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:14:26:323:465 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:14:26:411:980 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:14:26:507:832 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 15:14:26:552:766 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:14:26:595:775 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_causality_violation_anomaly.txt b/result/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..c86062f1 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:31:741:622 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:31:784:598 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:31:841:606 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:14:31:881:296 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:14:31:934:613 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:14:31:941:875 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 15:14:31:980:2 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 15:14:32:17:351 + Q9-T3 execute opt: 'COMMIT'; +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9 finished at: 2022-4-2 15:14:32:62:607 + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 15:14:32:83:61 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 15:14:32:124:572 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 15:14:32:169:570 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 15:14:32:212:970 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_cross_phenomenon.txt b/result/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..bab073cd --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:30:692:265 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:30:736:238 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:30:794:947 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:14:30:835:8 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:14:30:892:278 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 15:14:30:930:849 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:14:30:978:894 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 15:14:30:994:708 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 15:14:31:38:519 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:31:92:122 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 15:14:31:134:810 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:14:31:173:97 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 15:14:31:234:264 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 15:14:31:275:817 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 15:14:31:315:561 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 15:14:31:316:482 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_predicate_based_delete.txt b/result/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..0fc1b1df --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:27:62:270 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 15:14:27:106:355 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:27:162:132 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:14:27:201:35 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:14:27:262:241 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 15:14:27:299:900 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 15:14:27:403:909 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 15:14:27:500:306 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 15:14:27:600:223 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:14:27:708:813 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:14:27:814:468 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:14:27:903:556 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 15:14:27:948:259 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:14:27:991:300 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_predicate_based_insert.txt b/result/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..d3ab8570 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:28:330:5 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 15:14:28:373:188 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:28:430:112 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 15:14:28:469:566 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:14:28:529:763 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 15:14:28:567:667 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 15:14:28:671:471 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 15:14:28:767:860 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 15:14:28:868:673 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:14:28:978:959 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:14:29:77:949 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:14:29:183:83 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 15:14:29:228:36 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:14:29:271:114 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt b/result/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..9bbb5f83 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:32:636:132 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 15:14:32:679:196 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 15:14:32:721:395 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 15:14:32:735:702 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 15:14:32:774:817 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 15:14:32:814:561 + Q7-T2 execute opt: 'COMMIT'; + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 15:14:32:838:262 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q7 finished at: 2022-4-2 15:14:32:868:59 + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 15:14:32:875:879 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 15:14:32:913:629 + Q11-T3 execute opt: 'COMMIT'; +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q11 finished at: 2022-4-2 15:14:32:950:595 +Q12 finished at: 2022-4-2 15:14:32:977:405 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 15:14:33:33:254 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 15:14:33:71:964 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 15:14:33:108:941 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_uname_anomaly.txt b/result/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..fb853aa3 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:29:736:404 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 15:14:29:779:714 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:29:836:302 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 15:14:29:875:813 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:14:29:915:950 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 15:14:29:936:184 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 15:14:29:955:118 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 15:14:29:974:7 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 15:14:29:993:824 + Q8-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:14:30:11:407 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + Q8 finished at: 2022-4-2 15:14:30:50:278 + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 15:14:30:52:411 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 15:14:30:89:696 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:14:30:136:621 + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 15:14:30:138:414 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 15:14:30:179:865 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 15:14:30:225:61 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-2 15:14:30:268:285 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/iat_sda_lost_update_committed.txt b/result/result/sqlserver_15.0/rcsnapshot/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..c378cb0f --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:19:887:367 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 15:14:19:929:929 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:19:987:714 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 15:14:20:27:630 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:14:20:74:554 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 15:14:20:128:455 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:14:20:183:85 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:14:20:221:24 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:14:20:257:786 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/iat_sda_non_repeatable_read_committed.txt b/result/result/sqlserver_15.0/rcsnapshot/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..48764b43 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:19:144:782 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:19:187:589 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:19:244:762 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:14:19:284:606 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:14:19:332:225 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 15:14:19:388:484 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:14:19:429:755 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:14:19:467:933 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:14:19:504:823 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:19:505:875 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/rat_dda_double_write_skew1.txt b/result/result/sqlserver_15.0/rcsnapshot/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..e09e1e11 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:23:972:968 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:24:15:900 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:24:72:426 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:24:111:107 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:13:25:310:48 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:13:25:358:783 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 15:13:25:912:665 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/rcsnapshot/rat_dda_double_write_skew1_committed.txt b/result/result/sqlserver_15.0/rcsnapshot/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..196289b5 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:26:375:904 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:26:419:339 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:26:475:294 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:26:514:209 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:13:27:185:826 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:27:232:178 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 15:13:27:888:55 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/rcsnapshot/rat_dda_double_write_skew2.txt b/result/result/sqlserver_15.0/rcsnapshot/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..2558f82d --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/rat_dda_double_write_skew2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:28:349:944 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:28:392:660 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:28:449:908 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:28:488:672 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:13:29:60:835 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:13:29:107:566 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 15:13:29:663:695 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew.txt b/result/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew.txt new file mode 100644 index 00000000..d17d7188 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:30:142:773 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:13:30:185:447 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:30:242:715 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:30:282:215 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:13:30:320:986 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:13:30:489:84 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 15:13:30:492:0 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:13:30:583:286 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:13:30:621:874 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:13:30:622:638 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew2.txt b/result/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew2.txt new file mode 100644 index 00000000..7daa8f83 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew2.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:32:452:459 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:32:495:148 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:32:552:225 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:13:32:591:753 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:13:32:693:357 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:13:32:740:69 +Q7 finished at: 2022-4-2 15:13:32:742:429 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:13:32:792:582 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:13:32:830:915 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:13:32:831:708 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew2_committed.txt b/result/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..af92d858 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew2_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:33:251:362 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:33:293:987 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:33:351:369 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:13:33:390:913 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 15:13:33:492:599 +Q8-T1 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:13:33:539:5 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:13:33:541:364 + Q6 finished at: 2022-4-2 15:13:33:577:49 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:13:33:615:486 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:13:33:616:267 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew_predicate_based_delete.txt b/result/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..39865a16 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:31:42:844 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 15:13:31:94:532 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:31:142:890 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:31:182:323 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:13:31:221:75 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 15:13:31:272:127 + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 15:13:31:283:809 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:13:31:324:881 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 15:13:31:363:253 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:13:31:363:957 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew_predicate_based_insert.txt b/result/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..62521231 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:31:699:608 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 15:13:31:742:391 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:31:799:754 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 15:13:31:839:379 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 15:13:31:878:29 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 15:13:31:946:795 + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 15:13:31:949:918 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:13:31:990:987 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 15:13:32:29:264 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:13:32:30:116 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/rat_dda_write_read_skew.txt b/result/result/sqlserver_15.0/rcsnapshot/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..282bb578 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/rat_dda_write_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:16:897:504 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:16:940:127 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:16:997:550 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:17:36:221 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:13:17:808:886 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:13:17:853:67 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 15:13:18:411:567 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/rcsnapshot/rat_dda_write_read_skew_committed.txt b/result/result/sqlserver_15.0/rcsnapshot/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..be8b756a --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:18:874:68 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:18:916:898 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:18:974:62 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:19:12:771 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:13:22:809:517 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:22:854:725 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 15:13:23:512:82 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat.txt b/result/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat.txt new file mode 100644 index 00000000..b89edd83 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:34:78:497 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:34:121:293 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:34:178:580 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:34:217:295 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:13:34:314:630 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 15:13:34:352:209 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:13:34:688:97 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:13:34:737:127 + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 15:13:34:739:386 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:13:34:785:674 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 15:13:35:590:46 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat_long_fork.txt b/result/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..41521eab --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,207 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 15:13:36:98:382 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 15:13:36:143:783 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 15:13:36:156:290 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 15:13:36:199:134 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:13:36:256:240 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 15:13:36:294:893 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 15:13:36:356:369 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 15:13:36:395:153 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q11-T1 execute opt: 'COMMIT'; + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + *(7) expected_result: + (0,1) + *(8) expected_result: + (0,1) + *(9) expected_result: + (0,1) + (10) expected_result: + (0,0) + (11) expected_result: + (0,0) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + (14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 15:13:36:603:962 +Q11 finished at: 2022-4-2 15:13:36:604:219 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:13:36:701:467 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 15:13:36:706:136 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 15:13:36:792:409 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:13:36:835:619 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 15:13:36:880:796 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 15:13:36:923:820 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat_predicate_based_delete.txt b/result/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..699dcf39 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:37:393:43 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:37:435:812 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:37:492:857 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:37:531:559 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:13:37:592:996 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 15:13:37:630:751 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 15:13:39:688:311 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:13:39:750:832 + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 15:13:39:752:970 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:13:39:800:856 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 15:13:40:590:607 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat_predicate_based_insert.txt b/result/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..9cf20e1b --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,71 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:40:972:289 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 15:13:41:14:882 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:41:71:904 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 15:13:41:111:6 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:13:41:172:488 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 15:13:41:210:44 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 15:13:42:191:603 +Q10-T1 execute opt: 'COMMIT'; + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 15:13:42:236:518 + Q11-T2 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:13:42:238:606 + Q11 finished at: 2022-4-2 15:13:42:287:52 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 15:13:42:990:170 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/rcsnapshot/rat_sda_dirty_read.txt b/result/result/sqlserver_15.0/rcsnapshot/rat_sda_dirty_read.txt new file mode 100644 index 00000000..56945a45 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_read #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:11:493:346 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:11:536:92 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:11:592:313 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:13:11:693:564 +Q5 finished at: 2022-4-2 15:13:11:695:997 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:11:790:42 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 15:13:11:827:959 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:13:11:828:703 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/rcsnapshot/rat_sda_intermediate_read.txt b/result/result/sqlserver_15.0/rcsnapshot/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..0301308e --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:13:63:718 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:13:106:478 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:13:166:234 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 15:13:13:304:926 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:13:13:518:719 + Q6-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:13:521:114 + Q6 finished at: 2022-4-2 15:13:13:556:672 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 15:13:13:594:961 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:13:595:683 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/rcsnapshot/rat_sda_intermediate_read_committed.txt b/result/result/sqlserver_15.0/rcsnapshot/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..86424d49 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:13:979:112 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:14:21:894 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:14:79:151 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 15:13:14:223:141 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:13:14:275:723 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:14:277:983 + Q5 finished at: 2022-4-2 15:13:14:313:730 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 15:13:14:352:187 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:14:352:883 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/rcsnapshot/rat_sda_lost_self_update.txt b/result/result/sqlserver_15.0/rcsnapshot/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..d637c167 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:16:95:93 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:16:137:677 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:16:195:95 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 15:13:16:337:280 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 15:13:16:387:550 +Q6 finished at: 2022-4-2 15:13:16:390:58 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:13:16:440:785 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:13:16:478:979 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:16:479:748 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/rcsnapshot/rat_sda_non_repeatable_read.txt b/result/result/sqlserver_15.0/rcsnapshot/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..b99277b4 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/rat_sda_non_repeatable_read.txt @@ -0,0 +1,58 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:12:204:230 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:13:12:247:146 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:12:304:103 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:13:12:343:897 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:12:550:72 + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 15:13:12:553:285 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:12:644:590 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:13:12:682:662 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:12:683:456 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/result/result/sqlserver_15.0/rcsnapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..fe013b6b --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:14:737:544 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 15:13:14:786:168 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:14:837:541 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:13:14:877:119 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:13:14:922:163 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 15:13:14:978:414 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:15:19:675 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 15:13:15:57:681 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:15:58:526 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/result/result/sqlserver_15.0/rcsnapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..e5785a5a --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:15:398:551 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 15:13:15:441:382 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:15:498:631 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 15:13:15:538:247 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:13:15:582:32 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 15:13:15:639:513 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:15:680:573 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 15:13:15:718:689 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:15:719:553 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/wat_dda_double_write_skew2_committed.txt b/result/result/sqlserver_15.0/rcsnapshot/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..675fa8ed --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:49:331:645 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:49:374:618 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:49:431:532 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:49:470:303 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:13:52:814:764 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:52:866:751 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 15:13:53:517:623 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/rcsnapshot/wat_dda_full_write_skew_c1.txt b/result/result/sqlserver_15.0/rcsnapshot/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..5155481d --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:53:980:983 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:54:23:613 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:54:81:404 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:54:120:192 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:13:57:815:361 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:13:57:862:821 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 15:13:58:418:287 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/rcsnapshot/wat_dda_full_write_skew_c2.txt b/result/result/sqlserver_15.0/rcsnapshot/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..231dbef2 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:58:881:120 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:58:923:857 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:58:981:366 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:13:59:22:711 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:14:0:315:862 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:14:0:363:356 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 15:14:0:918:769 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/rcsnapshot/wat_dda_full_write_skew_committed.txt b/result/result/sqlserver_15.0/rcsnapshot/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..3347e15f --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:1:386:62 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:14:1:429:278 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:1:486:275 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:14:1:525:403 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:14:2:191:581 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:14:2:241:707 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 15:14:2:894:460 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew1_c1.txt b/result/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..c148e191 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:3:364:701 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:3:407:397 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:3:464:714 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:14:3:504:649 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:14:3:543:486 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:14:3:711:10 +Q6 finished at: 2022-4-2 15:14:3:713:731 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:14:3:809:696 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:3:847:988 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:3:885:321 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew1_c2.txt b/result/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..07fd49a9 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:4:304:695 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:14:4:347:564 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:4:404:791 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:14:4:444:498 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:14:4:483:223 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:14:4:657:374 +Q6 finished at: 2022-4-2 15:14:4:660:86 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:14:4:761:678 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:4:799:909 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:4:836:663 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew2_c1.txt b/result/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..96078af6 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:5:257:27 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:14:5:299:779 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:5:356:717 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:14:5:396:441 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:14:5:497:994 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:14:5:551:434 +Q7 finished at: 2022-4-2 15:14:5:554:253 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:14:5:605:40 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:5:643:292 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:5:680:41 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew2_c2.txt b/result/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..dbcd7f40 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:6:107:650 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:14:6:150:415 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:6:207:639 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:14:6:247:165 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:14:6:348:922 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:14:6:551:698 + Q7-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:14:6:554:357 + Q7 finished at: 2022-4-2 15:14:6:601:465 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:6:639:726 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:6:676:719 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew2_committed.txt b/result/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..bcefd9d3 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:7:98:307 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:14:7:141:97 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:7:197:983 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:14:7:237:443 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 15:14:7:339:2 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:14:7:382:447 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:14:7:385:230 + Q6 finished at: 2022-4-2 15:14:7:430:866 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:14:7:469:279 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:7:505:995 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/wat_mda_step_wat_c1.txt b/result/result/sqlserver_15.0/rcsnapshot/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..ac89e359 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c1 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:7:971:615 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:14:8:14:607 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:8:71:448 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:14:8:110:219 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:14:8:171:515 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 15:14:8:208:834 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 15:14:12:818:110 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:14:12:866:813 + Q8 finished at: 2022-4-2 15:14:12:868:470 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:14:12:913:959 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 15:14:13:720:903 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/rcsnapshot/wat_mda_step_wat_c2.txt b/result/result/sqlserver_15.0/rcsnapshot/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..805f6ebb --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c2 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:14:14:232:513 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:14:14:275:565 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:14:14:334:250 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:14:14:373:179 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:14:14:435:569 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 15:14:14:672:650 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 15:14:17:818:755 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:14:17:869:186 + Q8 finished at: 2022-4-2 15:14:17:871:50 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:14:17:919:858 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 15:14:18:721:655 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/rcsnapshot/wat_sda_dirty_write_1abort.txt b/result/result/sqlserver_15.0/rcsnapshot/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..c8d62f2d --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:43:379:403 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:43:422:449 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:43:479:688 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 15:13:43:619:369 +Q5 finished at: 2022-4-2 15:13:43:620:150 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:43:742:579 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 15:13:43:816:298 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 15:13:43:854:314 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:43:911:522 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/rcsnapshot/wat_sda_dirty_write_2commit.txt b/result/result/sqlserver_15.0/rcsnapshot/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..d117f5eb --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:44:297:315 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:44:340:132 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:44:399:597 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 15:13:44:545:808 +Q5 finished at: 2022-4-2 15:13:44:548:574 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:44:645:664 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 15:13:44:684:146 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 15:13:44:722:158 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:44:763:816 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/rcsnapshot/wat_sda_full_write.txt b/result/result/sqlserver_15.0/rcsnapshot/wat_sda_full_write.txt new file mode 100644 index 00000000..23a6a398 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:45:146:139 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:45:188:812 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:45:246:252 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 15:13:45:387:454 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 15:13:45:433:780 +Q6 finished at: 2022-4-2 15:13:45:436:396 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:13:45:491:445 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 15:13:45:529:571 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:45:566:273 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/rcsnapshot/wat_sda_full_write_committed.txt b/result/result/sqlserver_15.0/rcsnapshot/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..d1125e4b --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:45:945:270 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:45:987:976 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:46:45:317 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 15:13:46:186:184 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 15:13:46:230:353 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:46:232:997 + Q5 finished at: 2022-4-2 15:13:46:280:188 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 15:13:46:318:198 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:46:355:125 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/rcsnapshot/wat_sda_lost_self_update_committed.txt b/result/result/sqlserver_15.0/rcsnapshot/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..9df55a0d --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:48:500:143 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:13:48:542:947 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:48:600:74 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 15:13:48:741:963 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 15:13:48:787:193 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:48:789:900 + Q5 finished at: 2022-4-2 15:13:48:834:823 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:13:48:872:943 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:48:909:720 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/rcsnapshot/wat_sda_lost_update_c1.txt b/result/result/sqlserver_15.0/rcsnapshot/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..b4ea4ba8 --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c1 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:46:741:164 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 15:13:46:783:564 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:46:841:243 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 15:13:46:880:899 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:13:47:86:576 +Q5 finished at: 2022-4-2 15:13:47:89:318 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 15:13:47:146:262 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:13:47:184:149 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:47:220:896 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/rcsnapshot/wat_sda_lost_update_c2.txt b/result/result/sqlserver_15.0/rcsnapshot/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..a7e6f24a --- /dev/null +++ b/result/result/sqlserver_15.0/rcsnapshot/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c2 #### +#### isolation: rcsnapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = rcsnapshot for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:13:47:596:894 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 15:13:47:639:386 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:13:47:696:886 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 15:13:47:736:593 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:13:47:944:838 +Q5 finished at: 2022-4-2 15:13:47:947:520 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:13:48:48:763 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:13:48:86:855 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:13:48:123:562 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/iat_dda_read_skew_committed.txt b/result/result/sqlserver_15.0/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..60186395 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:5:819:404 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:5:867:700 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:5:919:91 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:5:961:316 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:53:6:2:465 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:53:6:56:562 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 14:53:6:66:87 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:53:6:112:848 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:53:6:153:293 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:6:191:978 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/iat_dda_read_write_skew1_committed.txt b/result/result/sqlserver_15.0/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..f2872527 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:6:648:835 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:6:699:222 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:6:748:879 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:6:791:298 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:53:6:832:584 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:53:6:887:348 +Q7 finished at: 2022-4-2 14:53:6:895:334 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:53:6:951:699 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:53:6:991:852 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:7:30:641 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/iat_dda_write_skew.txt b/result/result/sqlserver_15.0/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..244c97c7 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:7:477:596 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:7:525:715 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:7:577:601 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:53:7:619:325 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:53:7:661:497 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:53:7:726:12 +Q7-T1 execute opt: 'COMMIT'; + Q8-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:7:780:827 + Q8 finished at: 2022-4-2 14:53:7:824:857 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:53:7:864:957 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:53:7:903:512 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/iat_dda_write_skew_committed.txt b/result/result/sqlserver_15.0/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..ddab9728 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:10:191:405 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:10:239:573 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:10:291:530 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:53:10:333:72 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:53:10:375:205 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:53:10:429:117 +Q7 finished at: 2022-4-2 14:53:10:441:902 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:53:10:496:865 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:53:10:536:990 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:10:575:667 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/result/result/sqlserver_15.0/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..a2c8838f --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:8:450:537 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 14:53:8:509:882 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 14:53:8:550:477 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q3 finished at: 2022-4-2 14:53:8:557:86 +Q8-T1 execute opt: 'COMMIT'; + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 14:53:8:701:414 +Q8 finished at: 2022-4-2 14:53:8:702:564 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 14:53:8:742:854 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:53:8:792:712 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 14:53:8:832:591 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 14:53:8:871:904 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:53:8:910:564 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/result/result/sqlserver_15.0/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..cc40176f --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:9:363:887 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 14:53:9:421:519 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:9:463:857 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 14:53:9:505:517 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 14:53:9:548:563 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q6 finished at: 2022-4-2 14:53:9:597:567 +Q7 finished at: 2022-4-2 14:53:9:611:58 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:53:9:666:738 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 14:53:9:706:791 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:9:745:466 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/iat_mda_step_iat.txt b/result/result/sqlserver_15.0/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..c4019c16 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:11:69:238 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:53:11:118:255 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:11:169:150 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:53:11:210:919 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:53:11:269:147 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:53:11:308:833 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 14:53:11:416:614 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:53:11:509:969 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 14:53:11:608:515 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:53:11:728:435 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:53:11:822:513 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:53:11:913:906 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:53:11:958:380 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:53:12:0:902 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/result/result/sqlserver_15.0/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..1a676b67 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:17:333:489 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:17:381:929 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:17:433:494 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:53:17:475:777 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:53:17:528:248 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:53:17:533:419 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:53:17:572:983 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:53:17:612:134 + Q9-T3 execute opt: 'COMMIT'; +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:53:17:656:519 + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 14:53:17:680:557 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 14:53:17:727:296 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 14:53:17:771:729 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:53:17:814:391 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/result/result/sqlserver_15.0/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..20607600 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:16:245:240 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:16:294:30 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:16:345:202 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:53:16:387:507 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:53:16:445:258 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 14:53:16:485:495 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:53:16:536:667 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:53:16:545:291 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:53:16:588:332 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:16:636:292 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 14:53:16:686:983 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:53:16:727:894 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 14:53:16:792:856 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 14:53:16:839:733 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 14:53:16:880:995 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 14:53:16:881:997 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/result/result/sqlserver_15.0/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..b90a7749 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:12:502:371 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 14:53:12:550:914 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:12:602:515 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:53:12:644:298 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:53:12:702:433 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:53:12:742:177 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 14:53:12:849:937 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:53:12:942:849 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 14:53:13:41:189 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:53:13:159:68 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:53:13:254:711 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:53:13:346:664 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 14:53:13:390:765 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:53:13:433:535 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/result/result/sqlserver_15.0/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..2fce071c --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:13:790:344 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:53:13:838:685 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:13:890:314 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 14:53:13:932:156 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:53:13:990:353 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 14:53:14:30:37 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 14:53:14:137:832 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 14:53:14:231:11 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 14:53:14:329:187 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:53:14:448:232 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:53:14:538:689 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:53:14:634:296 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:53:14:679:189 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:53:14:721:709 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/result/result/sqlserver_15.0/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..101cccc1 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:18:268:608 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:53:18:317:269 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + Q4-T2 execute opt: 'BEGIN;' + *(1) expected_result: + (1,0) + *(2) expected_result: + Q4 finished at: 2022-4-2 14:53:18:368:814 + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 14:53:18:369:191 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 14:53:18:410:731 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 14:53:18:453:541 + Q7-T2 execute opt: 'COMMIT'; + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:53:18:468:821 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q7 finished at: 2022-4-2 14:53:18:505:955 + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 14:53:18:508:477 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:53:18:548:231 + Q11-T3 execute opt: 'COMMIT'; +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q11 finished at: 2022-4-2 14:53:18:586:959 +Q12 finished at: 2022-4-2 14:53:18:617:399 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 14:53:18:674:353 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 14:53:18:715:148 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 14:53:18:754:125 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/iat_mda_step_iat_uname_anomaly.txt b/result/result/sqlserver_15.0/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..3928f330 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:15:224:363 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 14:53:15:272:711 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:15:324:375 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 14:53:15:366:273 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:53:15:408:547 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 14:53:15:424:446 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:53:15:450:235 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 14:53:15:464:255 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:53:15:491:445 + Q8-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:53:15:503:712 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 14:53:15:546:455 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q8 finished at: 2022-4-2 14:53:15:548:145 + Q13 finished at: 2022-4-2 14:53:15:585:911 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:53:15:640:399 + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 14:53:15:644:14 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 14:53:15:690:839 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 14:53:15:735:472 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-2 14:53:15:778:85 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/iat_sda_lost_update_committed.txt b/result/result/sqlserver_15.0/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..aa447eb5 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:4:981:929 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:53:5:30:163 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:5:82:15 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:53:5:124:682 + Q5-T2 execute opt: 'COMMIT'; +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:53:5:182:657 +Q6 finished at: 2022-4-2 14:53:5:228:441 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:5:294:262 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:53:5:334:453 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:5:373:230 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/iat_sda_non_repeatable_read_committed.txt b/result/result/sqlserver_15.0/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..1cd8c29f --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:4:207:148 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:4:255:372 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:4:307:75 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:53:4:349:311 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:53:4:399:362 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:53:4:453:866 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:4:500:738 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:53:4:540:516 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:4:579:146 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:4:580:104 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/rat_dda_double_write_skew1.txt b/result/result/sqlserver_15.0/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..ee8bd493 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:9:41:682 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:9:89:855 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:9:141:747 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:9:182:997 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:52:10:348:958 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:52:10:401:502 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:52:10:950:200 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/read-committed/rat_dda_double_write_skew1_committed.txt b/result/result/sqlserver_15.0/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..57b4d99d --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:11:441:676 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:11:489:877 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:11:541:728 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:11:583:54 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:52:12:224:613 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:52:12:275:261 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:52:12:925:806 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/read-committed/rat_dda_double_write_skew2.txt b/result/result/sqlserver_15.0/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..ee946e14 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:13:428:573 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:13:476:750 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:13:531:19 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:13:572:513 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:52:14:100:12 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:52:14:153:32 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:52:14:701:597 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/read-committed/rat_dda_read_skew.txt b/result/result/sqlserver_15.0/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..17239fda --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:15:197:902 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:52:15:245:946 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:15:297:961 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:15:340:276 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:52:15:381:861 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:52:15:549:656 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 14:52:15:551:403 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:52:15:644:31 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:15:684:534 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:15:685:386 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/rat_dda_read_skew2.txt b/result/result/sqlserver_15.0/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..2eb52222 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:17:613:123 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:17:661:751 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:17:712:710 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:52:17:754:798 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:52:17:859:290 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:52:17:913:307 + Q8-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:52:17:914:357 + Q8 finished at: 2022-4-2 14:52:17:953:889 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:17:994:123 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:17:994:856 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/rat_dda_read_skew2_committed.txt b/result/result/sqlserver_15.0/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..3dcf78cb --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:18:444:480 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:18:492:584 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:18:544:410 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:52:18:586:458 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:52:18:691:38 +Q8-T1 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:52:18:745:670 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:52:18:746:689 + Q6 finished at: 2022-4-2 14:52:18:786:688 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:18:826:768 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:18:827:608 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/result/result/sqlserver_15.0/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..51234636 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:16:136:752 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:52:16:192:414 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:16:236:717 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:16:279:134 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:52:16:320:442 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 14:52:16:367:369 + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:52:16:384:904 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:52:16:431:479 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 14:52:16:472:61 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:16:472:888 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/result/result/sqlserver_15.0/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..02396295 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:16:822:748 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:52:16:870:975 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:16:922:658 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 14:52:16:964:781 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 14:52:17:6:70 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 14:52:17:53:936 + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:52:17:69:185 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:52:17:115:707 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 14:52:17:155:804 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:17:156:645 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/rat_dda_write_read_skew.txt b/result/result/sqlserver_15.0/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..46d61d77 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:59:535:437 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:59:583:772 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:59:635:293 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:59:676:411 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:52:2:847:829 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:52:2:905:806 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:52:3:449:147 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/read-committed/rat_dda_write_read_skew_committed.txt b/result/result/sqlserver_15.0/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..213a05f0 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:3:942:578 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:3:990:737 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:4:42:758 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:4:84:131 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:52:7:848:382 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:52:7:901:220 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:52:8:549:701 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/read-committed/rat_mda_step_rat.txt b/result/result/sqlserver_15.0/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..e17cbf5c --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:19:325:461 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:19:373:728 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:19:425:403 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:19:466:743 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:52:19:563:422 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:52:19:602:772 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:52:19:726:763 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 14:52:19:773:375 + Q11 finished at: 2022-4-2 14:52:19:774:308 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:52:19:884:59 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:52:20:627:788 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/read-committed/rat_mda_step_rat_long_fork.txt b/result/result/sqlserver_15.0/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..3fdc6d15 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,207 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 14:52:21:182:316 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 14:52:21:227:508 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 14:52:21:240:328 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 14:52:21:288:845 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:52:21:340:661 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 14:52:21:381:109 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:52:21:440:559 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:52:21:481:842 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q11-T1 execute opt: 'COMMIT'; + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + *(7) expected_result: + (0,1) + *(8) expected_result: + (0,1) + *(9) expected_result: + (0,1) + (10) expected_result: + (0,0) + (11) expected_result: + (0,0) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + (14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:52:21:691:197 +Q11 finished at: 2022-4-2 14:52:21:692:927 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:52:21:793:587 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:52:21:795:805 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:52:21:878:529 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:52:21:921:209 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 14:52:21:966:227 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 14:52:22:8:690 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/result/result/sqlserver_15.0/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..51b5f574 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:22:512:317 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:22:560:332 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:22:612:258 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:22:653:535 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:52:22:712:464 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:52:22:751:647 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:52:24:727:428 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 14:52:24:783:445 + Q12-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:52:24:784:340 + Q12 finished at: 2022-4-2 14:52:24:837:127 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:52:25:628:363 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/result/result/sqlserver_15.0/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..0311c220 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,71 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:26:30:58 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 14:52:26:78:401 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:26:129:930 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 14:52:26:171:137 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:52:26:229:878 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 14:52:26:269:117 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 14:52:27:229:429 +Q10-T1 execute opt: 'COMMIT'; + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:52:27:284:195 + Q11-T2 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:52:27:285:45 + Q11 finished at: 2022-4-2 14:52:27:333:579 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 14:52:28:25:926 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/read-committed/rat_sda_dirty_read.txt b/result/result/sqlserver_15.0/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..d71052c1 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:53:868:853 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:53:917:411 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:53:962:881 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:51:54:67:973 +Q5 finished at: 2022-4-2 14:51:54:69:122 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:51:54:163:639 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:51:54:203:444 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:51:54:204:121 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/read-committed/rat_sda_intermediate_read.txt b/result/result/sqlserver_15.0/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..0c0df1ce --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:55:513:692 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:55:561:723 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:55:613:707 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 14:51:55:760:464 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:51:55:972:7 + Q6-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:55:973:65 + Q6 finished at: 2022-4-2 14:51:56:12:725 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:51:56:52:777 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:56:53:479 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/read-committed/rat_sda_intermediate_read_committed.txt b/result/result/sqlserver_15.0/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..bf8be142 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:56:458:11 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:56:506:230 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:56:557:977 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 14:51:56:704:632 +Q7-T1 execute opt: 'COMMIT'; + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:51:56:761:498 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:56:762:499 + Q5 finished at: 2022-4-2 14:51:56:802:95 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:51:56:841:864 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:56:842:574 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/read-committed/rat_sda_lost_self_update.txt b/result/result/sqlserver_15.0/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..206f680e --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:58:691:302 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:58:739:542 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:58:791:324 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:51:58:938:818 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:51:58:997:6 + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:51:58:998:362 + Q7 finished at: 2022-4-2 14:51:59:45:912 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:51:59:85:815 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:59:86:549 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/read-committed/rat_sda_non_repeatable_read.txt b/result/result/sqlserver_15.0/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..cac68cf9 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,58 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:54:622:767 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:54:671:46 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:54:722:860 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:51:54:765:126 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:51:54:978:922 + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:51:54:980:727 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:55:69:304 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:51:55:109:394 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:55:110:63 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/result/result/sqlserver_15.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..328aa815 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:57:255:218 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:51:57:309:738 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:57:355:97 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:51:57:397:220 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:57:443:454 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:51:57:501:602 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:57:548:159 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 14:51:57:588:98 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:57:588:892 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/result/result/sqlserver_15.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..84c04273 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:57:945:257 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:51:57:993:408 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:58:45:259 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 14:51:58:87:464 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:58:135:149 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:51:58:191:842 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:58:238:380 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 14:51:58:279:492 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:58:280:309 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/wat_dda_double_write_skew2_committed.txt b/result/result/sqlserver_15.0/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..66086f21 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:34:597:707 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:34:645:857 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:34:697:787 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:34:738:990 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:52:37:853:798 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:52:37:902:721 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:52:38:555:355 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/read-committed/wat_dda_full_write_skew_c1.txt b/result/result/sqlserver_15.0/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..24650656 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:39:51:265 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:39:99:243 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:39:151:347 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:39:192:655 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:52:42:855:251 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:52:42:913:954 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:52:43:455:877 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/read-committed/wat_dda_full_write_skew_c2.txt b/result/result/sqlserver_15.0/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..4b0c00fe --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:43:959:964 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:44:8:144 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:44:60:91 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:44:101:206 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:52:45:354:919 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:52:45:416:204 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:52:45:956:492 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/read-committed/wat_dda_full_write_skew_committed.txt b/result/result/sqlserver_15.0/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..304dacac --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:46:456:443 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:46:504:847 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:46:558:993 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:46:600:912 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:52:47:230:538 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:52:47:285:247 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:52:47:932:98 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew1_c1.txt b/result/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..fc5585c4 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:48:435:875 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:52:48:484:96 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:48:535:901 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:48:578:259 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:52:48:619:529 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:52:48:789:852 +Q6 finished at: 2022-4-2 14:52:48:791:303 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:52:48:849:654 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:48:890:88 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:48:928:840 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew1_c2.txt b/result/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..7aff5b5c --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:49:387:969 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:52:49:436:48 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:49:487:935 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:49:530:327 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:52:49:571:707 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:52:49:739:870 +Q6 finished at: 2022-4-2 14:52:49:741:257 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:52:49:848:156 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:49:888:428 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:49:926:995 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew2_c1.txt b/result/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..d69818c9 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:50:384:896 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:50:432:981 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:50:484:966 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:52:50:527:84 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:52:50:631:761 +Q7-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:52:50:682:458 +Q7 finished at: 2022-4-2 14:52:50:683:889 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:52:50:737:487 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:50:777:637 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:50:816:290 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew2_c2.txt b/result/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..cfb18a3f --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:51:267:421 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:51:315:560 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:51:367:372 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:52:51:409:552 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:52:51:514:185 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:52:51:718:724 + Q7-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:52:51:720:78 + Q7 finished at: 2022-4-2 14:52:51:771:539 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:51:811:711 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:51:850:241 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew2_committed.txt b/result/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..938c8c0a --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:52:304:20 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:52:352:307 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:52:404:19 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:52:52:446:45 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:52:52:550:637 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:52:52:606:6 + Q6-T2 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:52:52:607:328 + Q6 finished at: 2022-4-2 14:52:52:654:851 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:52:52:695:91 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:52:52:733:720 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/wat_mda_step_wat_c1.txt b/result/result/sqlserver_15.0/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..36976f0c --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:53:232:433 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:53:280:617 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:53:332:446 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:53:373:648 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:52:53:432:516 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:52:53:471:909 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 14:52:57:857:158 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:52:57:908:60 + Q12-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:52:57:909:576 + Q12 finished at: 2022-4-2 14:52:57:955:988 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:52:58:758:742 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/read-committed/wat_mda_step_wat_c2.txt b/result/result/sqlserver_15.0/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..1e8f72f8 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:59:300:735 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:59:348:936 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:59:400:908 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:52:59:442:160 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:52:59:500:713 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:52:59:739:547 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 14:53:2:857:880 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:53:2:908:371 + Q12-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:2:909:772 + Q12 finished at: 2022-4-2 14:53:2:956:464 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:53:3:759:415 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/read-committed/wat_sda_dirty_write_1abort.txt b/result/result/sqlserver_15.0/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..88d476fd --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:28:428:140 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:28:476:350 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:28:530:421 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 14:52:28:672:690 +Q5 finished at: 2022-4-2 14:52:28:674:58 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:52:28:779:109 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:52:28:856:702 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:52:28:896:883 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:52:28:940:734 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/read-committed/wat_sda_dirty_write_2commit.txt b/result/result/sqlserver_15.0/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..14227b70 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:29:343:68 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:29:391:305 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:29:443:275 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:52:29:594:372 +Q5 finished at: 2022-4-2 14:52:29:595:774 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:52:29:693:399 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:52:29:733:637 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:52:29:773:538 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:52:29:817:125 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/read-committed/wat_sda_full_write.txt b/result/result/sqlserver_15.0/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..979f421f --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:30:216:552 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:30:264:891 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:30:316:623 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 14:52:30:466:334 +Q6-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:52:30:516:891 + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:52:30:518:313 + Q7 finished at: 2022-4-2 14:52:30:564:617 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:52:30:604:816 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:52:30:643:389 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/read-committed/wat_sda_full_write_committed.txt b/result/result/sqlserver_15.0/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..9651d365 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:31:51:517 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:31:100:48 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:31:151:410 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 14:52:31:297:943 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:52:31:353:545 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:52:31:354:893 + Q5 finished at: 2022-4-2 14:52:31:407:53 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:52:31:447:100 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:52:31:485:790 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/read-committed/wat_sda_lost_self_update_committed.txt b/result/result/sqlserver_15.0/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..1d4fc8e1 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:33:720:423 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:52:33:768:554 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:33:820:614 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:52:33:967:879 +Q7-T1 execute opt: 'COMMIT'; + Q4 finished at: 2022-4-2 14:52:34:20:585 + Q5-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:52:34:21:896 + Q5 finished at: 2022-4-2 14:52:34:71:259 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:52:34:111:131 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:52:34:149:758 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/read-committed/wat_sda_lost_update_c1.txt b/result/result/sqlserver_15.0/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..52840ddd --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:31:890:599 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:52:31:942:697 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:31:997:764 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:52:32:40:293 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:52:32:243:70 +Q5 finished at: 2022-4-2 14:52:32:244:448 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:52:32:304:729 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:52:32:344:974 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:52:32:383:641 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-committed/wat_sda_lost_update_c2.txt b/result/result/sqlserver_15.0/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..9e3e5bb5 --- /dev/null +++ b/result/result/sqlserver_15.0/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:52:32:783:120 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:52:32:831:7 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:52:32:883:211 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:52:32:925:447 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:52:33:137:0 +Q5 finished at: 2022-4-2 14:52:33:140:443 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:52:33:243:609 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:52:33:283:829 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:52:33:322:449 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/iat_dda_read_skew_committed.txt b/result/result/sqlserver_15.0/read-uncommitted/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..db4e409d --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:39:337:142 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:39:377:994 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:39:439:625 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:39:477:187 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:51:39:513:501 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:51:39:560:405 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 14:51:39:576:365 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:51:39:616:37 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:39:660:647 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:39:703:602 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/iat_dda_read_write_skew1_committed.txt b/result/result/sqlserver_15.0/read-uncommitted/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..805399f9 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:40:116:792 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:40:157:773 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:40:216:725 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:40:254:362 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:51:40:290:627 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:51:40:334:560 +Q7 finished at: 2022-4-2 14:51:40:357:680 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:51:40:407:528 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:40:452:120 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:40:495:282 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew.txt b/result/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew.txt new file mode 100644 index 00000000..e4f11e86 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:40:908:589 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:40:949:725 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:41:11:564 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:51:41:48:24 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:51:41:85:718 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:51:41:147:577 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:41:193:150 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:51:41:251:468 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:41:296:193 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:51:41:339:640 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew_committed.txt b/result/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..04545ec3 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:43:406:162 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:43:447:87 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:43:507:144 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:51:43:543:785 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:51:43:581:0 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:51:43:623:998 +Q7 finished at: 2022-4-2 14:51:43:645:324 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:51:43:694:621 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:43:738:841 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:43:781:889 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt b/result/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..3d4c68d7 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:41:831:266 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 14:51:41:880:963 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 14:51:41:920:909 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 14:51:41:931:208 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 14:51:41:967:997 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 14:51:42:4:369 + Q7-T2 execute opt: 'COMMIT'; +Q8-T1 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:51:42:48:706 +Q8 finished at: 2022-4-2 14:51:42:76:537 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 14:51:42:120:493 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 14:51:42:164:307 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:51:42:207:458 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/result/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..80292264 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:42:617:970 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 14:51:42:665:614 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:42:718:134 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 14:51:42:754:848 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 14:51:42:792:769 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q6 finished at: 2022-4-2 14:51:42:836:675 +Q7 finished at: 2022-4-2 14:51:42:858:102 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:51:42:903:864 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 14:51:42:948:232 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:42:991:190 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat.txt b/result/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat.txt new file mode 100644 index 00000000..00bc936b --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:44:231:571 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:51:44:272:807 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:44:331:885 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:51:44:368:670 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:51:44:431:862 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:51:44:475:713 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 14:51:44:571:909 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:51:44:667:248 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 14:51:44:774:403 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:51:44:877:560 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:51:44:976:2 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:51:45:79:209 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:51:45:121:297 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:51:45:161:513 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt b/result/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..e2d18b41 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:50:227:985 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:50:269:7 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:50:328:40 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:51:50:365:293 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:50:409:543 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:51:50:427:946 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:51:50:471:693 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:51:50:515:55 + Q9-T3 execute opt: 'COMMIT'; +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:51:50:563:853 + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 14:51:50:567:666 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 14:51:50:607:205 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 14:51:50:649:436 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:51:50:689:761 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt b/result/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..c7def312 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:49:182:85 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:49:223:683 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:49:282:478 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:51:49:319:982 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:51:49:382:283 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 14:51:49:426:876 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:51:49:481:692 + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:51:49:482:247 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:51:49:523:30 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:49:568:761 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 14:51:49:618:846 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:51:49:654:666 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 14:51:49:722:415 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 14:51:49:762:30 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 14:51:49:804:198 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 14:51:49:805:138 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt b/result/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..ff7d9f92 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:45:615:411 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 14:51:45:656:453 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:45:714:338 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:51:45:750:903 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:51:45:815:154 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:51:45:859:115 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 14:51:45:955:200 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:51:46:50:562 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 14:51:46:162:108 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:51:46:272:768 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:51:46:358:650 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:51:46:463:960 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 14:51:46:505:819 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:51:46:546:140 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt b/result/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..48e5037e --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:46:876:128 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:51:46:917:222 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:46:976:83 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 14:51:47:12:859 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:51:47:76:48 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 14:51:47:119:995 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 14:51:47:216:279 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 14:51:47:311:571 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 14:51:47:418:928 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:51:47:520:257 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:51:47:617:818 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:51:47:724:365 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:51:47:766:558 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:51:47:806:919 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt b/result/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..eabbf415 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:51:101:565 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:51:51:142:637 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 14:51:51:182:902 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 14:51:51:201:514 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 14:51:51:237:976 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 14:51:51:275:326 + Q7-T2 execute opt: 'COMMIT'; + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:51:51:301:584 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q7 finished at: 2022-4-2 14:51:51:322:536 + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 14:51:51:345:484 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:51:51:389:419 + Q11-T3 execute opt: 'COMMIT'; +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q11 finished at: 2022-4-2 14:51:51:432:355 +Q12 finished at: 2022-4-2 14:51:51:440:720 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 14:51:51:488:123 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 14:51:51:533:919 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 14:51:51:577:165 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt b/result/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..f2f70675 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:48:259:990 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 14:51:48:301:437 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:48:359:995 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 14:51:48:396:902 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:51:48:434:349 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 14:51:48:460:2 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:51:48:471:227 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 14:51:48:504:61 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:51:48:507:610 + Q8-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:51:48:547:445 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8 finished at: 2022-4-2 14:51:48:550:410 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 14:51:48:591:417 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 14:51:48:599:490 +Q16-T1 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:51:48:635:33 + Q14-T3 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 14:51:48:638:935 + Q14 finished at: 2022-4-2 14:51:48:684:960 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-2 14:51:48:727:372 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-2 14:51:48:767:755 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/iat_sda_lost_update_committed.txt b/result/result/sqlserver_15.0/read-uncommitted/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..875d393b --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:38:553:529 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:51:38:594:352 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:38:653:479 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:51:38:690:795 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:38:737:402 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 14:51:38:792:546 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:38:839:780 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:51:38:884:244 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:38:927:217 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/iat_sda_non_repeatable_read_committed.txt b/result/result/sqlserver_15.0/read-uncommitted/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..492334e3 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:37:772:635 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:37:813:575 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:37:872:919 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:51:37:910:162 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:37:953:138 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:51:38:12:77 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:38:51:492 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:51:38:137:417 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:38:180:468 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:38:181:543 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/rat_dda_double_write_skew1.txt b/result/result/sqlserver_15.0/read-uncommitted/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..f6b2e831 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/rat_dda_double_write_skew1.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:51:6:438 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:51:47:519 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:51:106:405 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:51:142:750 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:50:51:179:962 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:50:51:350:351 + Q7 finished at: 2022-4-2 14:50:51:350:379 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:51:454:124 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 14:50:51:498:665 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:51:499:495 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/rat_dda_double_write_skew1_committed.txt b/result/result/sqlserver_15.0/read-uncommitted/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..ad7ad9fd --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:51:910:434 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:51:951:436 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:52:10:368 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:52:46:730 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:50:52:83:834 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q6 finished at: 2022-4-2 14:50:52:125:34 +Q7 finished at: 2022-4-2 14:50:52:149:722 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:52:195:827 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-2 14:50:52:240:265 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:52:241:10 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/rat_dda_double_write_skew2.txt b/result/result/sqlserver_15.0/read-uncommitted/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..e352d511 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/rat_dda_double_write_skew2.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:52:652:26 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:52:692:927 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:52:752:34 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:52:788:228 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 14:50:52:893:819 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:50:52:940:442 + Q5 finished at: 2022-4-2 14:50:52:940:759 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:50:52:995:35 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:50:53:39:456 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:53:40:254 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew.txt b/result/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew.txt new file mode 100644 index 00000000..931f9f50 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:53:453:149 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:50:53:494:194 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:53:552:890 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:53:589:989 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:50:53:626:166 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 14:50:53:692:474 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:50:53:795:543 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:53:891:491 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:50:53:935:856 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:53:936:608 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew2.txt b/result/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew2.txt new file mode 100644 index 00000000..ed560591 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew2.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:55:743:216 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:55:784:213 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:55:843:76 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:50:55:880:352 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:50:55:916:622 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:50:55:982:506 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:50:56:35:620 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:50:56:78:98 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:50:56:122:358 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:56:123:133 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew2_committed.txt b/result/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..bd59a4dc --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew2_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:56:534:917 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:56:575:758 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:56:634:799 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:50:56:671:771 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:50:56:708:261 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:50:56:743:864 +Q7 finished at: 2022-4-2 14:50:56:774:354 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:56:820:594 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:50:56:864:914 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:56:865:686 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt b/result/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..ba47085e --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:54:355:656 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:50:54:403:371 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:54:455:702 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:54:492:953 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:50:54:529:235 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 14:50:54:570:390 + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:50:54:594:999 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:54:634:284 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 14:50:54:678:610 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:54:679:392 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt b/result/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..b06e68ac --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:55:10:10 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:50:55:51:55 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:55:109:888 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 14:50:55:146:965 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 14:50:55:183:308 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 14:50:55:227:873 + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:50:55:249:236 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:55:288:737 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 14:50:55:333:344 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:55:334:83 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/rat_dda_write_read_skew.txt b/result/result/sqlserver_15.0/read-uncommitted/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..ff8ceabf --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:49:364:157 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:49:405:317 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:49:464:354 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:49:500:693 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:50:49:537:977 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 14:50:49:606:792 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:50:49:705:24 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:49:807:896 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:50:49:852:215 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:49:852:976 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/rat_dda_write_read_skew_committed.txt b/result/result/sqlserver_15.0/read-uncommitted/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..cb0a1fb1 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:50:265:286 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:50:306:404 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:50:365:265 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:50:401:734 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:50:50:438:871 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:50:50:480:645 + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 14:50:50:504:703 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:50:50:549:198 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:50:50:593:715 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:50:50:594:513 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat.txt b/result/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat.txt new file mode 100644 index 00000000..5d0eddef --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:57:316:429 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:57:357:304 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:57:416:429 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:57:452:782 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + (3) expected_result: + (0,0) + (4) expected_result: + (0,0) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:50:57:490:261 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:50:57:558:400 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:50:57:601:919 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 14:50:57:645:780 + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + *(4) expected_result: + (2,1) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q9 finished at: 2022-4-2 14:50:57:655:902 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:50:57:705:693 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:50:57:755:660 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:50:57:863:989 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:50:57:905:942 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:50:57:906:711 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat_long_fork.txt b/result/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..8a35dd9c --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,207 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 14:50:58:359:599 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 14:50:58:402:464 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 14:50:58:420:98 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 14:50:58:461:247 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:50:58:520:432 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 14:50:58:565:385 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + *(5) expected_result: + (0,1) + (6) expected_result: + (0,0) + *(7) expected_result: + (0,1) + *(8) expected_result: + (0,1) + *(9) expected_result: + (0,1) + (10) expected_result: + (0,0) + (11) expected_result: + (0,0) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + (14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:50:58:610:428 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:50:58:620:245 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:50:58:656:672 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:50:58:761:283 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 14:50:58:871:971 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:50:58:961:238 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:50:59:62:548 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:50:59:103:23 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 14:50:59:145:956 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 14:50:59:186:132 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt b/result/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..b94da1b4 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:59:638:199 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:59:678:948 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:59:738:157 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:50:59:774:309 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:50:59:812:106 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:50:59:838:449 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:50:59:882:189 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 14:50:59:926:70 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + (3) expected_result: + (1,) + *(4) expected_result: + (,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 14:50:59:978:275 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:51:0:27:89 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:51:0:89:50 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:51:0:185:841 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 14:51:0:227:715 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:51:0:267:860 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt b/result/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..31ef7810 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:0:596:348 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 14:51:0:637:381 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:0:696:415 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 14:51:0:732:752 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:51:0:770:276 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:51:0:796:421 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 14:51:0:839:795 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + (4) expected_result: + (,) + *(5) expected_result: + (1,) + (6) expected_result: + (,) + + Q8 finished at: 2022-4-2 14:51:0:883:866 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-2 14:51:0:936:859 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:51:0:985:50 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:51:1:43:805 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:51:1:144:159 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:51:1:186:596 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:51:1:226:946 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/rat_sda_dirty_read.txt b/result/result/sqlserver_15.0/read-uncommitted/rat_sda_dirty_read.txt new file mode 100644 index 00000000..e2453a32 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/rat_sda_dirty_read.txt @@ -0,0 +1,45 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:44:82:385 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:44:123:438 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:44:179:2 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:50:44:216:468 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 14:50:44:282:499 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:50:44:379:105 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:50:44:423:206 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:50:44:423:823 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/rat_sda_intermediate_read.txt b/result/result/sqlserver_15.0/read-uncommitted/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..aecb5f08 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/rat_sda_intermediate_read.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:45:653:620 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:45:694:907 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:45:755:186 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:50:45:792:642 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 14:50:45:892:893 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:50:45:988:452 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:50:46:99:562 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:50:46:143:654 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:50:46:144:469 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/rat_sda_intermediate_read_committed.txt b/result/result/sqlserver_15.0/read-uncommitted/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..52dfd314 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:46:514:973 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:46:555:890 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:46:614:963 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:50:46:651:980 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:50:46:687:496 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 14:50:46:754:194 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:50:46:798:855 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:50:46:843:34 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:50:46:843:897 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/rat_sda_lost_self_update.txt b/result/result/sqlserver_15.0/read-uncommitted/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..05b110f7 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:48:559:840 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:50:48:600:770 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:48:659:785 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:50:48:800:14 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:50:48:847:412 + Q4 finished at: 2022-4-2 14:50:48:847:703 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:50:48:903:400 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:50:48:947:740 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:50:48:948:462 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/read-uncommitted/rat_sda_non_repeatable_read.txt b/result/result/sqlserver_15.0/read-uncommitted/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..8df41be5 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/rat_sda_non_repeatable_read.txt @@ -0,0 +1,58 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:44:794:956 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:50:44:835:789 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:44:894:932 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:50:44:931:973 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:50:45:34:433 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:50:45:142:648 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:50:45:233:626 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:50:45:277:932 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:50:45:278:604 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/result/result/sqlserver_15.0/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..20533f31 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:47:214:972 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:50:47:262:328 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:47:314:908 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 14:50:47:352:6 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:50:47:392:78 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:50:47:454:155 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:50:47:493:434 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 14:50:47:537:754 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:50:47:538:664 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/result/result/sqlserver_15.0/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..19cdff1e --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:50:47:866:791 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:50:47:909:232 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:50:47:966:946 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 14:50:48:4:470 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:50:48:45:959 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:50:48:106:395 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:50:48:145:649 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 14:50:48:189:967 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:50:48:190:840 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/wat_dda_double_write_skew2_committed.txt b/result/result/sqlserver_15.0/read-uncommitted/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..aadbbdbf --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:7:579:68 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:7:619:951 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:7:679:159 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:7:715:662 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 14:51:7:819:116 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:51:7:866:477 + Q5 finished at: 2022-4-2 14:51:7:866:733 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:51:7:910:957 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:7:955:553 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:7:998:415 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/wat_dda_full_write_skew_c1.txt b/result/result/sqlserver_15.0/read-uncommitted/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..73b0bda8 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:8:407:714 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:8:448:560 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:8:507:801 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:8:544:266 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:51:13:473:62 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:51:13:522:527 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:51:14:75:383 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/read-uncommitted/wat_dda_full_write_skew_c2.txt b/result/result/sqlserver_15.0/read-uncommitted/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..c07cea01 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:14:528:446 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:14:569:357 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:14:628:338 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:14:664:506 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:51:18:466:338 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:51:18:509:762 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:51:19:66:415 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/read-uncommitted/wat_dda_full_write_skew_committed.txt b/result/result/sqlserver_15.0/read-uncommitted/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..f8d147d8 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:19:517:988 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:19:558:855 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:19:618:27 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:19:654:567 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:51:20:966:951 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:51:21:9:911 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:51:21:667:43 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew1_c1.txt b/result/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..5af3b00c --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:22:115:34 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:22:156:44 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:22:215:100 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:22:252:538 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:51:22:289:236 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:51:22:461:250 + Q8 finished at: 2022-4-2 14:51:22:461:319 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:22:511:19 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:22:555:461 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:22:598:408 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew1_c2.txt b/result/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..7083ee46 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:23:8:12 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:51:23:48:842 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:23:108:42 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:23:145:599 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:51:23:181:939 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:51:23:356:365 + Q7 finished at: 2022-4-2 14:51:23:356:407 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:51:23:464:727 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:23:509:249 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:23:552:575 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew2_c1.txt b/result/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..7b79479d --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:23:964:628 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:24:5:772 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:24:64:641 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:51:24:101:976 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:51:24:204:10 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:24:257:141 + Q5 finished at: 2022-4-2 14:51:24:257:345 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:51:24:324:535 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:24:368:918 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:24:411:875 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew2_c2.txt b/result/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..90cf32e8 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:24:824:605 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:24:865:604 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:24:924:627 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:51:24:961:924 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:51:25:64:118 +Q8-T1 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:25:275:230 +Q8 finished at: 2022-4-2 14:51:25:275:96 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:51:25:320:578 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:25:365:85 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:25:408:36 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew2_committed.txt b/result/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..444030fa --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:25:816:892 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:25:857:756 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:25:916:949 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:51:25:954:363 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:51:26:56:383 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:51:26:106:641 + Q5 finished at: 2022-4-2 14:51:26:106:851 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:51:26:150:244 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 14:51:26:194:779 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:26:237:618 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/wat_mda_step_wat_c1.txt b/result/result/sqlserver_15.0/read-uncommitted/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..819f062d --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:26:687:291 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:26:728:300 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:26:787:244 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:26:823:465 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:51:26:887:477 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:51:26:930:954 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-2 14:51:31:593:312 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:51:31:659:907 + Q5 finished at: 2022-4-2 14:51:31:660:130 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:51:31:711:380 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 14:51:32:397:272 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/read-uncommitted/wat_mda_step_wat_c2.txt b/result/result/sqlserver_15.0/read-uncommitted/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..628a1220 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:32:857:329 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:32:898:657 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:32:957:269 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:51:32:993:661 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:51:33:57:306 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:51:33:342:202 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-2 14:51:36:594:149 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 14:51:36:642:813 + Q6 finished at: 2022-4-2 14:51:36:643:260 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:51:36:690:861 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 14:51:37:398:143 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/read-uncommitted/wat_sda_dirty_write_1abort.txt b/result/result/sqlserver_15.0/read-uncommitted/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..4be606f4 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:1:633:531 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:1:674:427 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:1:733:432 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 14:51:1:872:115 + Q4 finished at: 2022-4-2 14:51:1:872:351 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:51:1:973:540 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:51:2:18:6 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:51:2:62:447 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:2:115:994 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/read-uncommitted/wat_sda_dirty_write_2commit.txt b/result/result/sqlserver_15.0/read-uncommitted/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..c3120f69 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:2:491:904 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:2:532:848 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:2:591:853 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 14:51:2:747:467 + Q4 finished at: 2022-4-2 14:51:2:747:711 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:51:2:842:923 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:51:2:886:980 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:51:2:931:130 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:2:979:280 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/read-uncommitted/wat_sda_full_write.txt b/result/result/sqlserver_15.0/read-uncommitted/wat_sda_full_write.txt new file mode 100644 index 00000000..d4aa7806 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:3:352:394 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:3:393:201 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:3:452:387 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 14:51:3:591:924 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:51:3:640:683 + Q4 finished at: 2022-4-2 14:51:3:641:8 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:51:3:706:428 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:51:3:750:867 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:3:793:716 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/read-uncommitted/wat_sda_full_write_committed.txt b/result/result/sqlserver_15.0/read-uncommitted/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..b82f6621 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:4:166:527 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:4:207:418 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:4:266:611 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 14:51:4:405:801 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:4:458:762 + Q4 finished at: 2022-4-2 14:51:4:458:993 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:4:502:815 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:51:4:546:961 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:4:589:804 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/read-uncommitted/wat_sda_lost_self_update_committed.txt b/result/result/sqlserver_15.0/read-uncommitted/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..e1840fde --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:6:736:774 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:51:6:777:846 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:6:836:646 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:51:6:976:901 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:7:26:13 + Q4 finished at: 2022-4-2 14:51:7:26:233 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:51:7:70:972 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:51:7:115:189 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:7:158:251 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/read-uncommitted/wat_sda_lost_update_c1.txt b/result/result/sqlserver_15.0/read-uncommitted/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..d15a8b6e --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:4:959:35 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:51:4:999:808 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:5:59:228 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:51:5:96:348 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 14:51:5:312:257 + Q7 finished at: 2022-4-2 14:51:5:312:316 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:51:5:362:416 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:51:5:406:631 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:5:449:714 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/read-uncommitted/wat_sda_lost_update_c2.txt b/result/result/sqlserver_15.0/read-uncommitted/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..dd5f34d4 --- /dev/null +++ b/result/result/sqlserver_15.0/read-uncommitted/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-uncommitted #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-uncommitted for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:51:5:829:643 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:51:5:870:541 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:51:5:929:481 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 14:51:5:966:799 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 14:51:6:178:124 + Q6 finished at: 2022-4-2 14:51:6:178:184 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:51:6:279:37 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:51:6:323:372 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:51:6:366:254 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/repeatable-read/iat_dda_read_skew_committed.txt b/result/result/sqlserver_15.0/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..23ed881b --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:31:735:594 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:31:776:670 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:31:835:676 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:31:878:518 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:32:550:233 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:54:32:621:194 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:54:33:248:25 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/iat_dda_read_write_skew1_committed.txt b/result/result/sqlserver_15.0/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..2eca52f1 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:33:705:805 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:33:746:682 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:33:805:818 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:33:848:248 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:35:47:21 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:54:35:103:354 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:54:35:744:697 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew.txt b/result/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..70eb1d93 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,49 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:36:200:445 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:36:241:445 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:36:300:537 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:54:36:342:319 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:36:919:355 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:54:36:975:48 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:54:37:517:210 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew_committed.txt b/result/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..51474bc2 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,49 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:41:199:77 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:41:240:38 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:41:299:1 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:54:41:340:626 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:42:537:76 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:54:42:596:836 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:54:43:234:962 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/result/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..8516e6c6 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:38:50:977 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 14:54:38:102:936 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 14:54:38:143:8 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 14:54:38:150:873 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:54:38:295:886 + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 14:54:38:298:455 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 14:54:38:339:873 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:54:38:389:467 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 14:54:38:426:108 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 14:54:38:462:382 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:54:38:497:913 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/result/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..535b0bb9 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,49 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:38:914:613 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 14:54:38:965:226 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:39:14:557 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 14:54:39:56:453 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q5 finished at: 2022-4-2 14:54:40:40:467 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:54:40:91:653 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:54:40:738:281 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat.txt b/result/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..89058e45 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,89 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:43:728:45 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:54:43:769:366 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:43:828:441 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:54:43:870:502 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:54:43:928:64 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:54:43:964:725 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 finished at: 2022-4-2 14:54:44:409:787 + Q11-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:54:44:476:63 +Q10-T1 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:54:44:478:366 +Q10 finished at: 2022-4-2 14:54:44:524:785 + Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q9 failed at: 2022-4-2 14:54:45:307:676 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/result/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..079301e1 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:56:772:878 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:56:814:152 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:56:872:673 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:54:56:972:907 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 14:54:57:112:802 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 14:54:57:152:512 + Q4 finished at: 2022-4-2 14:54:57:154:850 + Q5-T2 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:54:57:210:852 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:57:212:438 + Q8 finished at: 2022-4-2 14:54:57:246:955 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:54:57:292:350 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 14:54:57:334:213 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:54:57:374:104 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/result/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..38082465 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,140 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:53:231:55 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:53:272:885 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:53:330:713 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:54:53:373:445 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:54:53:430:707 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:54:53:530:937 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q6 finished at: 2022-4-2 14:54:55:18:718 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:54:55:67:295 + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 14:54:55:70:706 + Q12-T2 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:54:55:110:936 + Q12 finished at: 2022-4-2 14:54:55:111:600 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:54:55:160:473 +Q13 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q13 failed at: 2022-4-2 14:54:56:318:815 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/result/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..262142d7 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,89 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:45:761:120 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 14:54:45:802:541 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:45:861:312 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:54:45:903:414 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:54:45:961:378 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:54:46:32:248 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q8 finished at: 2022-4-2 14:54:47:530:853 + Q11-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:54:47:581:477 +Q10-T1 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:54:47:583:888 +Q10 finished at: 2022-4-2 14:54:47:629:629 + Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q9 failed at: 2022-4-2 14:54:48:428:795 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/result/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..1ee15601 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:48:761:386 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:54:48:802:624 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:48:861:366 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 14:54:48:903:660 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:54:48:961:777 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 14:54:49:32:631 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 14:54:49:101:489 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 14:54:49:202:250 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 14:54:49:296:949 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:54:49:415:243 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:54:49:513:628 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:54:49:607:440 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 14:54:49:649:427 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:54:49:689:436 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/result/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..909d0019 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,120 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:57:789:622 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:54:57:830:946 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 14:54:57:871:542 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 14:54:57:889:615 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 14:54:57:931:503 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:54:57:989:693 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 14:54:58:26:295 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q6 finished at: 2022-4-2 14:54:58:761:494 + Q7-T2 execute opt: 'COMMIT'; + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:54:58:809:957 + Q11-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:54:58:811:427 + Q11 finished at: 2022-4-2 14:54:58:845:653 +Q12 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q12 failed at: 2022-4-2 14:54:59:959:303 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/result/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..386186b8 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,127 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:50:140:861 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 14:54:50:182:215 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:50:240:788 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 14:54:50:282:738 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:54:50:325:14 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 14:54:50:340:929 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:54:50:366:990 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 14:54:50:377:361 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-2 14:54:50:413:312 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:54:51:275:733 + Q8-T2 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 14:54:51:327:762 + Q8 finished at: 2022-4-2 14:54:51:328:932 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 14:54:51:364:93 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:54:51:409:376 +Q15 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q15 failed at: 2022-4-2 14:54:52:773:569 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/iat_sda_lost_update_committed.txt b/result/result/sqlserver_15.0/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..ea7d0326 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:30:897:423 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:54:30:938:379 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:30:997:399 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 14:54:31:136:825 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:54:31:191:335 + Q4 finished at: 2022-4-2 14:54:31:193:633 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:54:31:246:591 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:54:31:283:364 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:54:31:318:801 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/result/result/sqlserver_15.0/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..73008b53 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:30:119:421 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:30:160:479 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:30:219:441 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:54:30:358:649 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:54:30:398:158 + Q4 finished at: 2022-4-2 14:54:30:400:451 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:54:30:451:22 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:54:30:488:39 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:54:30:523:541 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:54:30:524:330 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/repeatable-read/rat_dda_double_write_skew1.txt b/result/result/sqlserver_15.0/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..207959a0 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:35:263:907 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:35:305:43 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:35:363:872 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:35:405:366 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:53:36:611:508 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:53:36:658:47 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:53:37:209:128 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/rat_dda_double_write_skew1_committed.txt b/result/result/sqlserver_15.0/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..d1cba120 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:37:663:703 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:37:704:782 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:37:763:668 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:37:805:161 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:53:38:488:797 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:38:537:558 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:53:39:186:382 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/rat_dda_double_write_skew2.txt b/result/result/sqlserver_15.0/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..f1409b52 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:39:643:330 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:39:684:418 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:39:743:379 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:39:784:800 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:53:40:364:94 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:53:40:419:491 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:53:40:961:983 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew.txt b/result/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..4f32c719 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:41:427:458 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:41:468:386 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:41:527:615 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:41:570:22 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:53:42:239:666 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:53:42:289:259 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:53:42:837:591 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew2.txt b/result/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..c7dd489d --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:44:767:546 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:44:808:689 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:44:867:469 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:53:44:909:972 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:53:45:363:340 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:45:411:390 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:53:45:865:766 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew2_committed.txt b/result/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..1e259a12 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:46:279:20 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:46:319:869 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:46:379:22 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:53:46:461:97 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:53:47:864:2 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:53:47:911:514 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:53:48:366:432 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/result/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..2d709e2d --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:43:302:124 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:53:43:351:97 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:43:392:630 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:53:43:532:207 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:53:43:571:707 + Q4 finished at: 2022-4-2 14:53:43:574:179 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:53:43:615:555 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:43:665:800 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 14:53:43:702:813 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:43:703:628 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/result/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..2367d6fb --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:44:34:931 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:53:44:75:956 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:44:134:708 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 14:53:44:179:406 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 14:53:44:220:963 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 14:53:44:272:549 + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:53:44:273:885 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:53:44:313:243 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 14:53:44:350:161 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:53:44:350:959 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/repeatable-read/rat_dda_write_read_skew.txt b/result/result/sqlserver_15.0/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..5a425957 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:26:348:594 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:26:389:466 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:26:448:458 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:26:490:13 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:53:29:110:446 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:53:29:164:378 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:53:29:708:37 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/rat_dda_write_read_skew_committed.txt b/result/result/sqlserver_15.0/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..07d75a35 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:30:160:727 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:30:202:31 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:30:260:622 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:30:301:931 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:53:34:110:916 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:34:167:303 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:53:34:808:494 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat.txt b/result/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..2ba49290 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:48:816:911 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:48:857:910 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:48:916:919 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:48:998:119 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:53:49:51:650 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:53:49:88:27 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:53:49:742:396 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 14:53:49:791:263 + Q12-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:53:49:792:629 + Q12 finished at: 2022-4-2 14:53:49:835:854 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:53:50:639:789 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat_long_fork.txt b/result/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..07f12f92 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,169 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 14:53:51:131:598 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 14:53:51:174:108 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 14:53:51:192:476 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:53:51:292:486 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 14:53:51:329:753 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:53:51:392:643 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:53:51:616:380 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:53:51:827:532 + Q9 finished at: 2022-4-2 14:53:51:829:866 + Q12-T2 execute opt: 'COMMIT'; + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + (3) expected_result: + (1,0) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + *(6) expected_result: + (1,1) + (7) expected_result: + (1,0) + *(8) expected_result: + (1,1) + *(9) expected_result: + (1,1) + *(10) expected_result: + (1,1) + Q12 finished at: 2022-4-2 14:53:51:892:633 + *(11) expected_result: + (1,1) + (12) expected_result: + (1,0) + (13) expected_result: + (1,0) + (14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:53:51:893:304 +Q4 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q4 failed at: 2022-4-2 14:53:52:15:421 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/result/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..0912df3e --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:52:570:623 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:52:611:546 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:52:666:811 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:53:52:708:507 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:53:52:766:571 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:53:52:802:740 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:53:53:494:463 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 14:53:53:545:773 + Q12-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:53:53:547:211 + Q12 finished at: 2022-4-2 14:53:53:589:159 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:53:54:391:284 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/result/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..46e5e086 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,71 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:54:767:186 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 14:53:54:808:550 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:54:863:677 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 14:53:54:905:392 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:53:54:965:297 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 14:53:55:1:489 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 14:53:55:367:495 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:53:55:412:220 + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:53:55:415:53 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:53:55:469:587 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 14:53:56:167:193 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/rat_sda_dirty_read.txt b/result/result/sqlserver_15.0/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..2451c9d2 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:20:855:564 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:20:896:622 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:20:957:107 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 14:53:21:55:788 + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:53:21:58:413 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:21:156:965 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:53:21:193:856 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:53:21:194:834 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/repeatable-read/rat_sda_intermediate_read.txt b/result/result/sqlserver_15.0/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..557d70fe --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:22:466:39 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:22:507:190 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:22:566:41 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 14:53:22:705:701 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:22:921:165 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:53:22:923:802 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:22:964:666 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:53:23:4:372 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:23:5:48 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/repeatable-read/rat_sda_intermediate_read_committed.txt b/result/result/sqlserver_15.0/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..6f162d01 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:23:395:31 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:23:436:40 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:23:494:967 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 14:53:23:634:530 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:23:688:800 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:53:23:691:505 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:53:23:732:255 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:53:23:768:857 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:23:769:613 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/repeatable-read/rat_sda_lost_self_update.txt b/result/result/sqlserver_15.0/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..da59c8a8 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:25:546:639 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:25:587:709 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:25:646:711 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:53:25:786:975 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:53:25:844:858 + Q4 finished at: 2022-4-2 14:53:25:847:329 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:53:25:900:472 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:53:25:937:133 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:25:937:789 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/repeatable-read/rat_sda_non_repeatable_read.txt b/result/result/sqlserver_15.0/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..3e366d08 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:21:565:363 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:53:21:606:571 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:21:665:525 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:53:21:806:918 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:22:4:244 + Q4 finished at: 2022-4-2 14:53:22:6:696 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:22:54:46 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:53:22:92:261 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:22:92:984 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/result/result/sqlserver_15.0/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..f4c96ce6 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:24:143:974 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:53:24:202:565 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:24:243:904 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:53:24:383:393 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:24:422:747 + Q4 finished at: 2022-4-2 14:53:24:425:120 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:53:24:477:636 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 14:53:24:514:370 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:24:515:69 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/result/result/sqlserver_15.0/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..cb75541c --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:24:852:163 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:53:24:893:210 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:24:952:132 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 14:53:24:994:512 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:53:25:45:673 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:53:25:91:433 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:25:130:854 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 14:53:25:167:578 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:25:168:283 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/repeatable-read/wat_dda_double_write_skew2_committed.txt b/result/result/sqlserver_15.0/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..0cf25576 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:2:484:879 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:2:525:938 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:2:584:871 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:2:626:297 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:5:995:684 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:54:6:53:593 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:54:6:693:631 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/wat_dda_full_write_skew_c1.txt b/result/result/sqlserver_15.0/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..2aa5deab --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:7:169:727 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:7:210:886 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:7:269:920 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:7:311:515 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:10:996:240 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:54:11:47:452 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:54:11:594:57 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/wat_dda_full_write_skew_c2.txt b/result/result/sqlserver_15.0/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..2b6233ba --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:12:51:164 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:12:92:704 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:12:151:57 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:12:192:569 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:13:496:808 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:54:13:558:537 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:54:14:94:636 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/wat_dda_full_write_skew_committed.txt b/result/result/sqlserver_15.0/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..b12a3009 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:14:554:370 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:14:595:565 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:14:654:309 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:14:695:945 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:15:372:324 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:54:15:426:128 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:54:16:70:133 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew1_c1.txt b/result/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..ec5308e5 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:16:523:501 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:16:564:653 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:16:623:645 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:16:666:342 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:17:247:871 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:54:17:296:261 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:54:17:845:781 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew1_c2.txt b/result/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..1756b4c0 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:18:310:965 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:54:18:351:897 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:18:410:948 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:18:453:377 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:54:19:123:467 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:54:19:180:966 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:54:19:721:316 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew2_c1.txt b/result/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..b6b4d81a --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:20:172:365 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:20:213:302 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:20:272:331 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:54:20:314:876 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:54:20:997:239 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:54:21:42:820 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:54:21:499:678 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew2_c2.txt b/result/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..213cc50b --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:21:912:376 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:21:953:443 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:22:12:276 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:54:22:94:565 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:54:22:247:402 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:54:22:358:760 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:54:22:749:882 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew2_committed.txt b/result/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..2b344c39 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:23:162:737 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:23:203:596 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:23:262:769 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:54:23:344:899 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:54:23:809:306 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:54:23:856:404 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:54:24:311:673 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/wat_mda_step_wat_c1.txt b/result/result/sqlserver_15.0/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..7020c418 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:24:767:142 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:24:808:228 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:24:866:997 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:24:948:363 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:54:24:967:60 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:54:25:3:177 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 14:54:25:684:474 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:54:25:731:895 + Q12-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:54:25:733:972 + Q12 finished at: 2022-4-2 14:54:25:782:514 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:54:26:582:317 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/wat_mda_step_wat_c2.txt b/result/result/sqlserver_15.0/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..6bc0f237 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:27:78:919 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:27:120:70 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:27:178:872 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:54:27:220:456 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:54:27:279:253 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:54:27:514:517 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 14:54:28:805:564 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:54:28:859:419 + Q12-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:54:28:861:425 + Q12 finished at: 2022-4-2 14:54:28:908:412 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:54:29:703:423 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/repeatable-read/wat_sda_dirty_write_1abort.txt b/result/result/sqlserver_15.0/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..d095fc9b --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:56:546:795 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:56:587:928 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:56:646:802 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 14:53:56:785:676 + Q4 finished at: 2022-4-2 14:53:56:788:1 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:56:895:376 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:53:56:966:602 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:53:57:3:488 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:57:50:883 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/repeatable-read/wat_sda_dirty_write_2commit.txt b/result/result/sqlserver_15.0/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..1a74e848 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:57:428:78 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:57:469:59 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:57:528:307 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 14:53:57:675:374 + Q4 finished at: 2022-4-2 14:53:57:677:732 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:53:57:777:776 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:53:57:814:696 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:53:57:851:616 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:57:896:73 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/repeatable-read/wat_sda_full_write.txt b/result/result/sqlserver_15.0/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..df6841fb --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:58:283:807 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:58:324:822 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:58:383:389 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 14:53:58:523:178 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:53:58:568:622 + Q4 finished at: 2022-4-2 14:53:58:570:958 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:53:58:637:468 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:53:58:674:296 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:58:709:812 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/repeatable-read/wat_sda_full_write_committed.txt b/result/result/sqlserver_15.0/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..c8f2f8b2 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:59:88:843 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:53:59:130:93 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:59:189:62 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 14:53:59:328:193 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:53:59:376:181 + Q4 finished at: 2022-4-2 14:53:59:378:477 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:53:59:435:508 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:53:59:472:462 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:53:59:507:800 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/repeatable-read/wat_sda_lost_self_update_committed.txt b/result/result/sqlserver_15.0/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..1de6b24f --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:1:638:442 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:54:1:679:569 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:1:738:405 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:54:1:878:632 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:54:1:925:865 + Q4 finished at: 2022-4-2 14:54:1:928:180 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:54:1:977:681 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:54:2:21:926 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:54:2:57:427 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/repeatable-read/wat_sda_lost_update_c1.txt b/result/result/sqlserver_15.0/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..c1c1ba4f --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:53:59:888:641 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:53:59:929:491 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:53:59:988:666 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-2 14:54:0:128:97 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:54:0:178:114 + Q4 finished at: 2022-4-2 14:54:0:180:430 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:54:0:242:472 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:54:0:279:445 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:54:0:314:960 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/repeatable-read/wat_sda_lost_update_c2.txt b/result/result/sqlserver_15.0/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..64fe5e49 --- /dev/null +++ b/result/result/sqlserver_15.0/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:54:0:687:337 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:54:0:728:368 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:54:0:787:351 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-2 14:54:0:926:825 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:54:1:136:344 + Q4 finished at: 2022-4-2 14:54:1:138:526 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:54:1:191:309 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:54:1:228:149 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:54:1:263:574 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/result_summary/rcsnapshot_total-result.txt b/result/result/sqlserver_15.0/result_summary/rcsnapshot_total-result.txt new file mode 100644 index 00000000..45f42a10 --- /dev/null +++ b/result/result/sqlserver_15.0/result_summary/rcsnapshot_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Anomaly + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Anomaly + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Anomaly + +rat_dda_read_skew2_committed: Anomaly + +rat_mda_step_rat: Rollback + +rat_mda_step_rat_long_fork: Anomaly + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Rollback + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/result/result/sqlserver_15.0/result_summary/read-committed_total-result.txt b/result/result/sqlserver_15.0/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..45f42a10 --- /dev/null +++ b/result/result/sqlserver_15.0/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Anomaly + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Anomaly + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Anomaly + +rat_dda_read_skew2_committed: Anomaly + +rat_mda_step_rat: Rollback + +rat_mda_step_rat_long_fork: Anomaly + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Rollback + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/result/result/sqlserver_15.0/result_summary/read-uncommitted_total-result.txt b/result/result/sqlserver_15.0/result_summary/read-uncommitted_total-result.txt new file mode 100644 index 00000000..f709ccda --- /dev/null +++ b/result/result/sqlserver_15.0/result_summary/read-uncommitted_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Anomaly + +rat_sda_non_repeatable_read: Anomaly + +rat_sda_intermediate_read: Anomaly + +rat_sda_intermediate_read_committed: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Anomaly + +rat_dda_double_write_skew1_committed: Anomaly + +rat_dda_double_write_skew2: Anomaly + +rat_dda_read_skew: Anomaly + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Anomaly + +rat_dda_read_skew2_committed: Anomaly + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Anomaly + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Anomaly + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/result/result/sqlserver_15.0/result_summary/repeatable-read_total-result.txt b/result/result/sqlserver_15.0/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..f872970f --- /dev/null +++ b/result/result/sqlserver_15.0/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Rollback + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Rollback + +rat_dda_read_skew2_committed: Rollback + +rat_mda_step_rat: Rollback + +rat_mda_step_rat_long_fork: Rollback + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Rollback + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Avoid + +wat_sda_lost_update_c2: Avoid + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Avoid + +iat_dda_read_skew_committed: Rollback + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +iat_mda_step_iat_predicate_based_delete: Rollback + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Rollback + +iat_mda_step_iat_cross_phenomenon: Rollback + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Rollback + diff --git a/result/result/sqlserver_15.0/result_summary/serializable_total-result.txt b/result/result/sqlserver_15.0/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..db50cb37 --- /dev/null +++ b/result/result/sqlserver_15.0/result_summary/serializable_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Rollback + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Rollback + +rat_dda_read_skew2_committed: Rollback + +rat_mda_step_rat: Rollback + +rat_mda_step_rat_long_fork: Rollback + +rat_mda_step_rat_predicate_based_delete: Rollback + +rat_mda_step_rat_predicate_based_insert: Rollback + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Avoid + +wat_sda_lost_update_c2: Avoid + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Avoid + +iat_dda_read_skew_committed: Rollback + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_predicate_based-intersecting_data: Avoid + +iat_dda_write_skew_predicate_based-overdraft_protection: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +iat_mda_step_iat_predicate_based_delete: Rollback + +iat_mda_step_iat_predicate_based_insert: Rollback + +iat_mda_step_iat_uname_anomaly: Rollback + +iat_mda_step_iat_cross_phenomenon: Rollback + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Rollback + diff --git a/result/result/sqlserver_15.0/result_summary/snapshot_total-result.txt b/result/result/sqlserver_15.0/result_summary/snapshot_total-result.txt new file mode 100644 index 00000000..554aa7a2 --- /dev/null +++ b/result/result/sqlserver_15.0/result_summary/snapshot_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Rollback + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/result/result/sqlserver_15.0/serializable/iat_dda_read_skew_committed.txt b/result/result/sqlserver_15.0/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..0cb31fa1 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:40:131:36 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:56:40:173:852 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:40:231:576 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:40:273:658 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:40:935:311 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:40:984:412 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:56:41:633:924 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/iat_dda_read_write_skew1_committed.txt b/result/result/sqlserver_15.0/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..0386255a --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:42:84:828 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:56:42:125:654 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:42:184:846 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:42:227:12 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:43:431:648 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:43:488:967 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:56:44:130:286 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/iat_dda_write_skew.txt b/result/result/sqlserver_15.0/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..9d78878b --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/iat_dda_write_skew.txt @@ -0,0 +1,49 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:44:582:841 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:56:44:623:584 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:44:682:792 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:56:44:723:724 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:45:304:370 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:56:45:355:608 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:56:45:903:16 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/iat_dda_write_skew_committed.txt b/result/result/sqlserver_15.0/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..0eeb6543 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,49 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:49:576:5 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:56:49:616:630 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:49:675:967 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:56:49:716:941 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:50:921:931 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:50:970:603 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:56:51:620:589 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt b/result/result/sqlserver_15.0/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..5f840c80 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:46:439:311 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 14:56:46:487:540 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 14:56:46:527:558 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 14:56:46:539:276 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:56:46:689:917 + current_result: + (330,) + *(1) expected_result: + (330,) + (2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 14:56:46:691:759 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 14:56:46:732:745 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:56:46:780:457 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 14:56:46:821:656 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 14:56:46:862:428 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:56:46:902:447 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/result/result/sqlserver_15.0/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..4ec3332e --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,49 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:47:316:574 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 14:56:47:364:670 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:47:416:587 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 14:56:47:457:969 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q5 finished at: 2022-4-2 14:56:48:425:246 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:48:473:721 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:56:49:123:832 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/iat_mda_step_iat.txt b/result/result/sqlserver_15.0/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..e1117103 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/iat_mda_step_iat.txt @@ -0,0 +1,89 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:52:117:921 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:56:52:159:238 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:52:219:581 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:56:52:260:953 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:56:52:317:917 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:56:52:358:866 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 finished at: 2022-4-2 14:56:52:794:456 + Q11-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:52:868:759 +Q10-T1 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:56:52:870:393 +Q10 finished at: 2022-4-2 14:56:52:918:863 + Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q9 failed at: 2022-4-2 14:56:53:693:578 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/iat_mda_step_iat_causality_violation_anomaly.txt b/result/result/sqlserver_15.0/serializable/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..e9dead33 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:57:4:924:323 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:57:4:965:334 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:57:5:24:163 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:57:5:124:102 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 14:57:5:264:21 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 14:57:5:303:600 + Q4 finished at: 2022-4-2 14:57:5:305:178 + Q5-T2 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:57:5:359:310 + Q5 finished at: 2022-4-2 14:57:5:359:794 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 14:57:5:399:936 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:57:5:452:562 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 14:57:5:494:517 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 14:57:5:534:725 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/serializable/iat_mda_step_iat_cross_phenomenon.txt b/result/result/sqlserver_15.0/serializable/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..e9f1e37e --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,140 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:57:2:244:246 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:57:2:285:853 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:57:2:344:338 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:57:2:386:741 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:57:2:444:285 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:57:2:544:287 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9 finished at: 2022-4-2 14:57:3:407:245 + Q10-T4 execute opt: 'COMMIT'; + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 14:57:3:456:576 +Q14-T1 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:57:3:458:157 +Q14 finished at: 2022-4-2 14:57:3:496:179 + Q6 finished at: 2022-4-2 14:57:3:496:789 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:57:3:552:802 + Q11 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q11 failed at: 2022-4-2 14:57:4:506:301 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/iat_mda_step_iat_predicate_based_delete.txt b/result/result/sqlserver_15.0/serializable/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..196fae42 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,89 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:54:145:100 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 14:56:54:186:234 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:54:245:105 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:56:54:286:945 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:56:54:345:129 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:56:54:425:174 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q8 finished at: 2022-4-2 14:56:55:915:701 + Q11-T2 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:55:967:356 +Q10-T1 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:56:55:968:856 +Q10 finished at: 2022-4-2 14:56:56:19:45 + Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q9 failed at: 2022-4-2 14:56:56:814:938 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/iat_mda_step_iat_predicate_based_insert.txt b/result/result/sqlserver_15.0/serializable/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..f58982da --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,85 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:57:144:514 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 14:56:57:185:664 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:57:244:779 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 14:56:57:286:403 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:56:57:344:669 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 14:56:57:424:796 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q7 finished at: 2022-4-2 14:56:58:411:111 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:56:58:457:611 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 14:56:59:212:576 + Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q9 failed at: 2022-4-2 14:56:59:311:750 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt b/result/result/sqlserver_15.0/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..55c27f8a --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,120 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:57:5:952:208 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:57:5:993:588 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 14:57:6:34:310 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 14:57:6:51:688 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 14:57:6:93:15 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:57:6:151:857 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 14:57:6:193:65 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q6 finished at: 2022-4-2 14:57:7:150:832 + Q7-T2 execute opt: 'COMMIT'; + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:57:7:201:693 + Q7 finished at: 2022-4-2 14:57:7:201:876 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:57:7:241:736 +Q12 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q12 failed at: 2022-4-2 14:57:8:349:417 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/iat_mda_step_iat_uname_anomaly.txt b/result/result/sqlserver_15.0/serializable/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..c74c21e5 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,127 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:59:763:702 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 14:56:59:804:802 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:59:863:651 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 14:56:59:944:380 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 14:56:59:963:643 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + Q5 finished at: 2022-4-2 14:56:59:986:257 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 14:57:0:27:774 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 14:57:0:43:957 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + Q11 finished at: 2022-4-2 14:57:0:84:629 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q7 finished at: 2022-4-2 14:57:0:284:940 + Q8-T2 execute opt: 'COMMIT'; + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 14:57:0:334:263 + Q8 finished at: 2022-4-2 14:57:0:334:505 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-2 14:57:0:374:763 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 14:57:0:422:769 +Q15 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q15 failed at: 2022-4-2 14:57:1:783:575 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/iat_sda_lost_update_committed.txt b/result/result/sqlserver_15.0/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..f892f940 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:39:289:234 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:56:39:330:347 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:39:391:466 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-2 14:56:39:528:308 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:39:578:941 + Q4 finished at: 2022-4-2 14:56:39:580:528 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:56:39:628:369 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:56:39:670:874 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:39:710:917 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/serializable/iat_sda_non_repeatable_read_committed.txt b/result/result/sqlserver_15.0/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..d4049826 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:38:501:533 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:56:38:542:568 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:38:603:568 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:56:38:743:57 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:38:782:557 + Q4 finished at: 2022-4-2 14:56:38:784:53 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:56:38:832:956 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:56:38:874:534 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:38:914:774 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:56:38:915:624 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/serializable/rat_dda_double_write_skew1.txt b/result/result/sqlserver_15.0/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..6dbf6abf --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:16:146:787 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:16:187:755 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:16:251:509 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:16:292:495 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:55:17:495:457 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:55:17:542:201 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:55:18:93:795 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/rat_dda_double_write_skew1_committed.txt b/result/result/sqlserver_15.0/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..d931383c --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:18:546:585 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:18:587:443 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:18:646:476 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:18:687:190 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:55:19:371:3 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:55:19:422:717 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:55:20:69:322 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/rat_dda_double_write_skew2.txt b/result/result/sqlserver_15.0/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..5c938e61 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:20:519:455 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:20:560:249 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:20:619:684 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:20:660:549 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:55:21:246:445 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:55:21:300:358 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:55:21:844:943 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/rat_dda_read_skew.txt b/result/result/sqlserver_15.0/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..09268b81 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/rat_dda_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:22:308:385 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:55:22:349:263 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:22:408:513 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:22:450:519 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:55:23:121:991 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:55:23:175:658 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:55:23:720:561 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/rat_dda_read_skew2.txt b/result/result/sqlserver_15.0/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..7cb14060 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:25:745:536 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:25:786:258 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:25:845:539 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:55:25:887:128 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:55:26:246:390 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:55:26:297:191 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:55:26:748:71 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/rat_dda_read_skew2_committed.txt b/result/result/sqlserver_15.0/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..2b9cfee0 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:27:158:358 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:27:199:336 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:27:258:421 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:55:27:339:398 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:55:28:747:82 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:55:28:797:826 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:55:29:248:753 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/rat_dda_read_skew_predicate_based_delete.txt b/result/result/sqlserver_15.0/serializable/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..b3f3a52f --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:24:180:375 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:55:24:234:680 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:24:280:418 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:55:24:419:689 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:55:24:458:967 + Q4 finished at: 2022-4-2 14:55:24:460:641 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 14:55:24:501:337 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:55:24:550:468 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 14:55:24:592:55 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:55:24:592:804 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/serializable/rat_dda_read_skew_predicate_based_insert.txt b/result/result/sqlserver_15.0/serializable/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..41e5e3a4 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:24:920:997 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 14:55:24:961:725 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:25:21:11 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 14:55:25:160:272 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:55:25:199:549 + Q4 finished at: 2022-4-2 14:55:25:201:264 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 14:55:25:242:20 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:55:25:290:785 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 14:55:25:332:281 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:55:25:333:11 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/serializable/rat_dda_write_read_skew.txt b/result/result/sqlserver_15.0/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..3872e2e9 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:7:689:45 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:7:729:958 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:7:789:262 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:7:830:126 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:55:9:994:505 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:55:10:54:121 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:55:10:592:770 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/rat_dda_write_read_skew_committed.txt b/result/result/sqlserver_15.0/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..ef3f3a87 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:11:46:653 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:11:87:599 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:11:146:599 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:11:187:466 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:55:14:994:795 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:55:15:47:414 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:55:15:693:137 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/rat_mda_step_rat.txt b/result/result/sqlserver_15.0/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..fe41b529 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/rat_mda_step_rat.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:29:698:124 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:29:738:934 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:29:798:75 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:29:877:996 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:55:29:937:451 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:55:29:977:880 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 14:55:30:625:59 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 14:55:30:673:709 + Q11 finished at: 2022-4-2 14:55:30:674:196 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:55:30:728:861 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:55:31:523:31 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/rat_mda_step_rat_long_fork.txt b/result/result/sqlserver_15.0/serializable/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..9b9e85da --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,167 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 14:55:32:21:740 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 14:55:32:65:182 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 14:55:32:80:374 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:55:32:183:726 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 14:55:32:225:679 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 14:55:32:283:664 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 14:55:32:502:723 + Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q9 failed at: 2022-4-2 14:55:33:400:286 + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:55:52:124:43 +Q4 failed reason: errcode: 00000 +Q4 failed at: 2022-4-2 14:55:52:522:583 +Q4 finished at: 2022-4-2 14:55:52:522:710 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/rat_mda_step_rat_predicate_based_delete.txt b/result/result/sqlserver_15.0/serializable/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..94f070b1 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,74 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:52:978:520 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:53:19:288 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:53:78:719 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:55:53:158:643 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:55:53:178:526 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 14:55:53:219:1 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:55:58:128:626 + Q11-T2 execute opt: 'COMMIT'; + current_result: + (,) + *(1) expected_result: + (,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 14:55:58:184:832 + Q11 finished at: 2022-4-2 14:55:58:185:7 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 14:55:58:233:993 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:55:59:26:748 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/rat_mda_step_rat_predicate_based_insert.txt b/result/result/sqlserver_15.0/serializable/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..01d1ba51 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,71 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:59:401:906 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 14:55:59:442:605 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:59:501:871 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 14:55:59:542:658 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:55:59:602:196 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 14:55:59:642:877 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 14:56:3:127:797 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 14:56:3:188:635 + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 14:56:3:190:922 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:56:3:242:704 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 14:56:3:928:32 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/rat_sda_dirty_read.txt b/result/result/sqlserver_15.0/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..5deae19b --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:2:149:777 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:2:190:654 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:2:250:383 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 14:55:2:349:603 + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:55:2:351:501 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:55:2:450:458 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 14:55:2:491:785 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:55:2:492:635 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/serializable/rat_sda_intermediate_read.txt b/result/result/sqlserver_15.0/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..1039b521 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:3:770:404 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:3:811:469 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:3:870:382 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 14:55:4:9:834 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:55:4:237:790 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:55:4:239:710 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:55:4:279:885 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:55:4:321:219 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:55:4:321:943 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/serializable/rat_sda_intermediate_read_committed.txt b/result/result/sqlserver_15.0/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..f1961064 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:4:698:934 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:4:739:610 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:4:798:870 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 14:55:4:938:219 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:55:4:989:678 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 14:55:4:991:486 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:55:5:31:505 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 14:55:5:72:660 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:55:5:73:370 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/serializable/rat_sda_lost_self_update.txt b/result/result/sqlserver_15.0/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..ebfa11d2 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:6:888:685 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:55:6:929:817 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:6:988:758 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:55:7:128:901 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:55:7:185:662 + Q4 finished at: 2022-4-2 14:55:7:187:423 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:55:7:238:252 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:55:7:279:610 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:55:7:280:383 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/serializable/rat_sda_non_repeatable_read.txt b/result/result/sqlserver_15.0/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..9baa5bb1 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:2:863:946 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:55:2:904:848 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:2:964:315 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 14:55:3:103:339 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:55:3:302:708 + Q4 finished at: 2022-4-2 14:55:3:304:351 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:55:3:349:947 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:55:3:391:158 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:55:3:391:841 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/result/result/sqlserver_15.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..4c7d1a44 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:5:450:143 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:55:5:501:166 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:5:549:984 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:55:5:689:246 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:55:5:728:356 + Q4 finished at: 2022-4-2 14:55:5:730:138 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:55:5:775:379 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 14:55:5:816:666 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:55:5:817:386 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/result/result/sqlserver_15.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..03c81edb --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:55:6:148:128 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 14:55:6:189:124 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:55:6:248:31 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 14:55:6:387:336 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:55:6:426:465 + Q4 finished at: 2022-4-2 14:55:6:428:199 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:55:6:477:909 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 14:55:6:519:498 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:55:6:520:240 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/serializable/wat_dda_double_write_skew2_committed.txt b/result/result/sqlserver_15.0/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..c35d88f3 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:10:284:850 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:10:325:905 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:10:384:693 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:10:425:547 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:14:380:102 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:14:434:590 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:56:15:78:699 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/wat_dda_full_write_skew_c1.txt b/result/result/sqlserver_15.0/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..350e1769 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:15:530:588 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:15:571:533 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:15:630:286 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:15:671:175 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:19:380:753 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:56:19:431:844 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:56:19:979:396 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/wat_dda_full_write_skew_c2.txt b/result/result/sqlserver_15.0/serializable/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..718506ea --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:20:441:132 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:20:482:149 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:20:540:926 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:20:581:786 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:21:881:419 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:56:21:932:989 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:56:22:480:346 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/wat_dda_full_write_skew_committed.txt b/result/result/sqlserver_15.0/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..70bc6fc2 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:22:937:643 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:22:978:634 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:23:37:710 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:23:78:914 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:23:757:59 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:23:818:488 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 14:56:24:455:624 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/wat_dda_read_write_skew1_c1.txt b/result/result/sqlserver_15.0/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..82fe2386 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:24:910:887 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:56:24:951:545 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:25:10:944 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:25:52:836 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:25:632:512 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:56:25:684:516 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:56:26:231:87 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/wat_dda_read_write_skew1_c2.txt b/result/result/sqlserver_15.0/serializable/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..11d7eedc --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:26:685:785 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 14:56:26:726:782 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:26:785:667 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:26:827:484 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 14:56:27:508:676 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:56:27:560:145 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 14:56:28:107:303 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/wat_dda_read_write_skew2_c1.txt b/result/result/sqlserver_15.0/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..54924ddf --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:28:558:760 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:28:599:596 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:28:658:778 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:56:28:700:602 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:56:29:382:632 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:29:431:236 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:56:29:884:391 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/wat_dda_read_write_skew2_c2.txt b/result/result/sqlserver_15.0/serializable/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..f65bb713 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:30:296:181 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:30:337:291 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:30:396:97 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:56:30:476:968 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 14:56:30:633:105 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:56:30:745:255 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:56:31:134:782 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/wat_dda_read_write_skew2_committed.txt b/result/result/sqlserver_15.0/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..91365b1c --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:31:548:494 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:31:589:298 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:31:648:356 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 14:56:31:729:531 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 14:56:32:195:65 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 14:56:32:243:391 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q5 failed at: 2022-4-2 14:56:32:696:788 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 52) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/wat_mda_step_wat_c1.txt b/result/result/sqlserver_15.0/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..47b77edf --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:33:150:271 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:33:191:405 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:33:250:266 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:33:330:468 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 14:56:33:350:205 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:56:33:390:986 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-2 14:56:34:69:635 + Q11-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:56:34:123:912 + Q12-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 14:56:34:124:741 + Q12 finished at: 2022-4-2 14:56:34:183:684 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:56:34:968:227 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/wat_mda_step_wat_c2.txt b/result/result/sqlserver_15.0/serializable/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..f834d0f1 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:35:461:402 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:35:502:227 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:35:561:377 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 14:56:35:602:191 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 14:56:35:661:371 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 14:56:35:901:771 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-2 14:56:37:191:359 + Q10-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 14:56:37:239:593 + Q12-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 14:56:37:240:409 + Q12 finished at: 2022-4-2 14:56:37:287:850 +Q9 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q9 failed at: 2022-4-2 14:56:38:89:124 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/serializable/wat_sda_dirty_write_1abort.txt b/result/result/sqlserver_15.0/serializable/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..79ad9662 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:4:308:566 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:4:349:496 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:4:408:530 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 14:56:4:547:58 + Q4 finished at: 2022-4-2 14:56:4:548:664 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:4:661:970 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:56:4:742:428 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:56:4:783:778 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:4:828:598 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/serializable/wat_sda_dirty_write_2commit.txt b/result/result/sqlserver_15.0/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..3788f9d8 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:5:204:284 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:5:245:397 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:5:304:161 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 14:56:5:450:722 + Q4 finished at: 2022-4-2 14:56:5:452:287 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:5:552:118 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 14:56:5:593:469 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 14:56:5:634:664 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:5:679:927 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/serializable/wat_sda_full_write.txt b/result/result/sqlserver_15.0/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..4ebc03fa --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:6:49:671 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:6:90:783 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:6:149:649 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 14:56:6:289:389 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:56:6:337:583 + Q4 finished at: 2022-4-2 14:56:6:339:204 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:56:6:399:318 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:56:6:441:623 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:6:481:779 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/serializable/wat_sda_full_write_committed.txt b/result/result/sqlserver_15.0/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..170e1dd9 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:6:858:894 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:6:899:806 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:6:959:553 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 14:56:7:99:913 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:7:144:223 + Q4 finished at: 2022-4-2 14:56:7:145:794 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:56:7:194:787 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-2 14:56:7:239:649 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:7:279:717 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/serializable/wat_sda_lost_self_update_committed.txt b/result/result/sqlserver_15.0/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..14c91b40 --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:9:444:200 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 14:56:9:485:228 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:9:543:298 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 14:56:9:683:324 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:9:729:636 + Q4 finished at: 2022-4-2 14:56:9:731:219 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 14:56:9:780:476 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:56:9:821:695 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:9:861:794 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/serializable/wat_sda_lost_update_c1.txt b/result/result/sqlserver_15.0/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..a2792eed --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:7:671:11 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:56:7:711:825 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:7:771:29 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-2 14:56:7:911:68 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 14:56:7:955:68 + Q4 finished at: 2022-4-2 14:56:7:956:644 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 14:56:8:23:227 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:56:8:71:515 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:8:111:631 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/serializable/wat_sda_lost_update_c2.txt b/result/result/sqlserver_15.0/serializable/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..acb7837e --- /dev/null +++ b/result/result/sqlserver_15.0/serializable/wat_sda_lost_update_c2.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 14:56:8:482:849 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 14:56:8:523:430 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 14:56:8:582:842 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-2 14:56:8:721:951 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 14:56:8:927:47 + Q4 finished at: 2022-4-2 14:56:8:928:571 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 14:56:8:978:900 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 14:56:9:23:677 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 14:56:9:63:651 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/snapshot/iat_dda_read_skew_committed.txt b/result/result/sqlserver_15.0/snapshot/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..a8edadcf --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:54:844:373 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:54:888:288 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:54:944:267 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:54:983:504 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:55:21:789 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:10:55:76:701 + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 15:10:55:86:561 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:55:129:55 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:55:169:164 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:55:207:585 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/snapshot/iat_dda_read_write_skew1_committed.txt b/result/result/sqlserver_15.0/snapshot/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..97e1e93b --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:55:639:345 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:55:683:138 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:55:739:310 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:55:778:723 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:55:817:59 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:10:55:870:479 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q7 failed at: 2022-4-2 15:10:56:582:607 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/result/result/sqlserver_15.0/snapshot/iat_dda_write_skew.txt b/result/result/sqlserver_15.0/snapshot/iat_dda_write_skew.txt new file mode 100644 index 00000000..254129a7 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:57:63:989 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:57:108:135 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:57:164:595 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:10:57:203:276 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:57:242:630 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:10:57:306:266 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:57:358:260 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:10:57:411:834 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:57:451:666 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:10:57:490:241 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/snapshot/iat_dda_write_skew_committed.txt b/result/result/sqlserver_15.0/snapshot/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..3db68a8b --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:59:626:332 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:59:670:478 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:59:726:260 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:10:59:764:750 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:59:803:961 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:10:59:849:969 +Q7 finished at: 2022-4-2 15:10:59:868:428 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:59:922:273 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:59:961:999 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:11:0:0:546 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/snapshot/iat_dda_write_skew_predicate_based-intersecting_data.txt b/result/result/sqlserver_15.0/snapshot/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..cbf23179 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:58:7:793 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-2 15:10:58:58:880 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-2 15:10:58:102:420 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 15:10:58:107:998 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-2 15:10:58:152:398 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-2 15:10:58:191:80 + Q7-T2 execute opt: 'COMMIT'; +Q8-T1 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:10:58:239:286 +Q8 finished at: 2022-4-2 15:10:58:263:169 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-2 15:10:58:302:619 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-2 15:10:58:341:917 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:10:58:380:477 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/snapshot/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/result/result/sqlserver_15.0/snapshot/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..efccc514 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:58:825:37 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + *(1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-2 15:10:58:876:789 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:58:924:945 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (checking,500,) (saving,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + *(2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-2 15:10:58:963:706 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-2 15:10:59:3:931 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' + Q6 finished at: 2022-4-2 15:10:59:58:351 +Q7 finished at: 2022-4-2 15:10:59:68:128 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:59:120:945 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,checking,1400) (kevin,saving,1400) + *(1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + *(2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-2 15:10:59:160:542 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:59:199:22 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/snapshot/iat_mda_step_iat.txt b/result/result/sqlserver_15.0/snapshot/iat_mda_step_iat.txt new file mode 100644 index 00000000..1d72a779 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:11:0:475:210 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 15:11:0:519:543 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:11:0:575:685 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:11:0:614:468 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:11:0:675:158 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 15:11:0:714:590 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-2 15:11:0:818:415 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 15:11:0:912:626 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-2 15:11:1:13:469 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:11:1:139:663 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:11:1:222:484 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:11:1:319:496 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 15:11:1:359:999 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:11:1:398:739 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/snapshot/iat_mda_step_iat_causality_violation_anomaly.txt b/result/result/sqlserver_15.0/snapshot/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..f45c6b9a --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:11:7:671:948 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:11:7:715:880 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:11:7:772:70 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:11:7:811:217 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:11:7:861:272 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:11:7:871:961 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 15:11:7:911:173 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-2 15:11:7:950:132 + Q9-T3 execute opt: 'COMMIT'; +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9 finished at: 2022-4-2 15:11:7:998:922 + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-2 15:11:8:14:588 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 15:11:8:57:177 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-2 15:11:8:97:740 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 15:11:8:136:462 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/snapshot/iat_mda_step_iat_cross_phenomenon.txt b/result/result/sqlserver_15.0/snapshot/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..f640590c --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:11:6:618:347 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:11:6:663:659 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:11:6:718:277 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:11:6:757:616 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:11:6:818:462 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-2 15:11:6:895:795 + Q7-T3 execute opt: 'COMMIT'; + Q8-T4 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 15:11:6:918:291 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-2 15:11:6:948:728 + Q9 finished at: 2022-4-2 15:11:6:957:528 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:11:7:2:562 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-2 15:11:7:56:692 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:11:7:94:387 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-2 15:11:7:161:339 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-2 15:11:7:203:949 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 15:11:7:242:202 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 15:11:7:243:91 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/snapshot/iat_mda_step_iat_predicate_based_delete.txt b/result/result/sqlserver_15.0/snapshot/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..bf846cb9 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:11:1:872:964 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-2 15:11:1:916:808 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:11:1:972:947 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:11:2:11:612 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:11:2:73:95 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 15:11:2:112:397 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-2 15:11:2:216:335 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-2 15:11:2:310:543 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-2 15:11:2:411:563 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:11:2:522:452 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:11:2:626:19 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:11:2:716:115 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 15:11:2:756:437 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:11:2:795:237 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/snapshot/iat_mda_step_iat_predicate_based_insert.txt b/result/result/sqlserver_15.0/snapshot/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..824b2ced --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:11:3:135:439 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-2 15:11:3:179:736 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:11:3:235:332 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-2 15:11:3:273:945 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:11:3:335:349 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-2 15:11:3:374:702 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-2 15:11:3:478:357 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-2 15:11:3:572:787 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-2 15:11:3:673:634 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:11:3:785:187 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:11:3:885:944 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:11:3:978:231 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 15:11:4:18:986 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:11:4:57:700 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/snapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt b/result/result/sqlserver_15.0/snapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..7989fb25 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:11:8:566:962 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 15:11:8:611:93 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-2 15:11:8:654:736 + Q4-T2 execute opt: 'BEGIN;' + Q4 finished at: 2022-4-2 15:11:8:666:985 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-2 15:11:8:705:599 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-2 15:11:8:744:844 + Q7-T2 execute opt: 'COMMIT'; + Q8-T3 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 15:11:8:766:963 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q7 finished at: 2022-4-2 15:11:8:793:768 + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-2 15:11:8:806:410 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 15:11:8:845:728 + Q11-T3 execute opt: 'COMMIT'; +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' + Q11 finished at: 2022-4-2 15:11:8:884:288 +Q12 finished at: 2022-4-2 15:11:8:909:346 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-2 15:11:8:962:494 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-2 15:11:9:2:724 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-2 15:11:9:41:168 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/snapshot/iat_mda_step_iat_uname_anomaly.txt b/result/result/sqlserver_15.0/snapshot/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..653afee1 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,142 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:11:4:532:278 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-2 15:11:4:576:738 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:11:4:632:232 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-2 15:11:4:670:950 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:11:4:710:142 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q9-T3 execute opt: 'BEGIN;' + Q9 finished at: 2022-4-2 15:11:4:732:383 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-2 15:11:4:748:576 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-2 15:11:4:771:712 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 15:11:4:786:568 + Q8-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:11:4:810:637 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q8 finished at: 2022-4-2 15:11:4:834:374 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q12 finished at: 2022-4-2 15:11:4:849:970 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-2 15:11:4:878:258 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-2 15:11:4:920:993 + Q13 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q13 failed at: 2022-4-2 15:11:6:189:277 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/result/result/sqlserver_15.0/snapshot/iat_sda_lost_update_committed.txt b/result/result/sqlserver_15.0/snapshot/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..3a1a6167 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:53:523:638 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 15:10:53:567:808 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:53:623:647 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 15:10:53:662:888 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:10:53:710:816 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q6 failed at: 2022-4-2 15:10:54:366:205 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/result/result/sqlserver_15.0/snapshot/iat_sda_non_repeatable_read_committed.txt b/result/result/sqlserver_15.0/snapshot/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..5160c7af --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:52:740:575 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:52:784:751 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:52:836:952 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:10:52:912:690 + Q5-T2 execute opt: 'COMMIT'; +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:52:958:147 + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 15:10:52:979:104 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:53:21:675 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:10:53:98:573 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:10:53:136:988 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:53:137:707 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/snapshot/rat_dda_double_write_skew1.txt b/result/result/sqlserver_15.0/snapshot/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..0c6d0ef8 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:4:459:73 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:4:502:849 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:4:559:68 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:4:597:298 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:10:4:636:322 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:10:4:804:683 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q6 failed at: 2022-4-2 15:10:5:408:848 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/result/result/sqlserver_15.0/snapshot/rat_dda_double_write_skew1_committed.txt b/result/result/sqlserver_15.0/snapshot/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..4be1bfa1 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:5:878:767 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:5:923:206 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:5:978:668 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:6:17:150 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:10:6:56:452 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q6 finished at: 2022-4-2 15:10:6:101:746 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q7 failed at: 2022-4-2 15:10:6:821:697 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/result/result/sqlserver_15.0/snapshot/rat_dda_double_write_skew2.txt b/result/result/sqlserver_15.0/snapshot/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..8e7ff5b4 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/rat_dda_double_write_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:7:293:294 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:7:337:279 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:7:393:199 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:7:431:321 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 15:10:7:536:610 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:7:586:894 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q5 failed at: 2022-4-2 15:10:8:83:849 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/result/result/sqlserver_15.0/snapshot/rat_dda_read_skew.txt b/result/result/sqlserver_15.0/snapshot/rat_dda_read_skew.txt new file mode 100644 index 00000000..e3c70822 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:8:511:426 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:8:555:173 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:8:611:431 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:8:687:386 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:10:8:725:714 + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 15:10:8:753:772 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:10:8:855:206 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:8:953:116 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:8:993:279 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:8:994:35 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/snapshot/rat_dda_read_skew2.txt b/result/result/sqlserver_15.0/snapshot/rat_dda_read_skew2.txt new file mode 100644 index 00000000..980640f3 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:10:840:563 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:10:884:525 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:10:940:474 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:10:10:979:579 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:10:11:18:297 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:10:11:82:840 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:11:132:948 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:10:11:178:628 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:11:218:605 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:11:219:569 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/snapshot/rat_dda_read_skew2_committed.txt b/result/result/sqlserver_15.0/snapshot/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..23024a81 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew2_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:11:645:912 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:11:689:827 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:11:745:875 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:10:11:784:993 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:10:11:823:187 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:10:11:860:667 +Q7 finished at: 2022-4-2 15:10:11:888:451 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:11:936:525 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:11:976:427 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:11:977:240 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/snapshot/rat_dda_read_skew_predicate_based_delete.txt b/result/result/sqlserver_15.0/snapshot/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..7d338fd6 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:9:425:495 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 15:10:9:481:999 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:9:526:15 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:9:564:969 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:9:603:17 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 15:10:9:646:33 + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 15:10:9:668:511 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:9:710:872 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-2 15:10:9:750:637 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:9:751:402 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/snapshot/rat_dda_read_skew_predicate_based_insert.txt b/result/result/sqlserver_15.0/snapshot/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..e3d29eb7 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:10:89:109 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-2 15:10:10:132:947 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:10:189:148 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-2 15:10:10:228:317 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-2 15:10:10:266:411 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + Q6 finished at: 2022-4-2 15:10:10:311:724 + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-2 15:10:10:331:665 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:10:374:245 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-2 15:10:10:414:101 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:10:414:873 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/snapshot/rat_dda_write_read_skew.txt b/result/result/sqlserver_15.0/snapshot/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..847c7999 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:2:780:2 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:2:823:926 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:2:879:935 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:2:954:608 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:10:2:993:572 + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-2 15:10:3:22:705 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:10:3:122:354 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:3:227:555 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:3:267:276 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:3:268:25 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/snapshot/rat_dda_write_read_skew_committed.txt b/result/result/sqlserver_15.0/snapshot/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..b1884297 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: sqlserver #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:3:691:857 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:3:735:869 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:3:791:731 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:3:829:812 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:10:3:868:834 + Q6-T2 execute opt: 'COMMIT'; +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q6 finished at: 2022-4-2 15:10:3:918:783 + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 15:10:3:933:993 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:3:987:56 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-2 15:10:4:26:760 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-2 15:10:4:27:450 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/snapshot/rat_mda_step_rat.txt b/result/result/sqlserver_15.0/snapshot/rat_mda_step_rat.txt new file mode 100644 index 00000000..58be1c74 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:12:445:15 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:12:489:40 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:12:544:994 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:12:583:27 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-2 15:10:12:622:516 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:10:12:682:683 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-2 15:10:12:725:246 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-2 15:10:12:764:724 + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-2 15:10:12:789:927 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:10:12:846:887 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:10:12:891:531 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:10:12:988:91 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 15:10:13:29:35 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:10:13:29:839 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/snapshot/rat_mda_step_rat_long_fork.txt b/result/result/sqlserver_15.0/snapshot/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..1f3924b2 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute opt: 'BEGIN;' + Q1 finished at: 2022-4-2 15:10:13:493:886 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-2 15:10:13:535:120 +Q3-T1 execute opt: 'BEGIN;' +Q3 finished at: 2022-4-2 15:10:13:556:325 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-2 15:10:13:600:170 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:10:13:655:995 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-2 15:10:13:696:182 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 15:10:13:736:254 + Q8-T2 execute opt: 'BEGIN;' + Q8 finished at: 2022-4-2 15:10:13:756:66 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-2 15:10:13:794:371 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-2 15:10:13:895:628 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 15:10:14:9:897 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:10:14:107:356 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-2 15:10:14:193:923 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:10:14:232:811 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-2 15:10:14:274:99 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-2 15:10:14:312:719 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/snapshot/rat_mda_step_rat_predicate_based_delete.txt b/result/result/sqlserver_15.0/snapshot/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..e9f7f591 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:14:783:490 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:14:827:101 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:14:883:153 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:14:921:341 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 15:10:14:960:825 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:10:14:983:301 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-2 15:10:15:22:136 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-2 15:10:15:61:884 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-2 15:10:15:126:183 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:10:15:180:433 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:10:15:235:2 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:10:15:332:518 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-2 15:10:15:372:939 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:10:15:411:665 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/snapshot/rat_mda_step_rat_predicate_based_insert.txt b/result/result/sqlserver_15.0/snapshot/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..1e4ce153 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:15:752:584 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-2 15:10:15:796:343 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:15:852:336 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-2 15:10:15:890:370 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-2 15:10:15:930:42 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:10:15:952:448 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-2 15:10:15:991:259 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-2 15:10:16:30:759 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-2 15:10:16:95:91 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:10:16:147:162 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-2 15:10:16:198:518 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-2 15:10:16:311:211 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-2 15:10:16:352:558 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-2 15:10:16:391:129 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/sqlserver_15.0/snapshot/rat_sda_dirty_read.txt b/result/result/sqlserver_15.0/snapshot/rat_sda_dirty_read.txt new file mode 100644 index 00000000..417b28c4 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_read #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:9:57:71:725 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:9:57:115:528 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:9:57:167:35 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:9:57:206:126 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-2 15:9:57:271:960 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:9:57:367:64 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-2 15:9:57:406:564 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:9:57:407:272 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/snapshot/rat_sda_intermediate_read.txt b/result/result/sqlserver_15.0/snapshot/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..2f580eab --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:9:58:665:47 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:9:58:709:7 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:9:58:765:27 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:9:58:803:941 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-2 15:9:58:907:331 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:9:59:1:957 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:9:59:130:303 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 15:9:59:169:919 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:9:59:170:685 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/snapshot/rat_sda_intermediate_read_committed.txt b/result/result/sqlserver_15.0/snapshot/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..040b732d --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: sqlserver #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:9:59:555:526 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:9:59:599:883 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:9:59:655:323 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-2 15:9:59:694:519 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:9:59:731:904 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-2 15:9:59:801:749 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:9:59:849:671 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-2 15:9:59:889:374 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:9:59:890:73 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/snapshot/rat_sda_lost_self_update.txt b/result/result/sqlserver_15.0/snapshot/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..dc7f81bb --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/rat_sda_lost_self_update.txt @@ -0,0 +1,39 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:1:647:425 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:1:691:648 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:1:745:924 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 15:10:1:888:910 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 15:10:1:953:238 + Q4 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q4 failed at: 2022-4-2 15:10:2:350:232 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/result/result/sqlserver_15.0/snapshot/rat_sda_non_repeatable_read.txt b/result/result/sqlserver_15.0/snapshot/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..e881ba50 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:9:57:788:580 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:9:57:832:445 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:9:57:888:655 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:9:57:927:669 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-2 15:9:58:31:209 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:9:58:141:320 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:9:58:236:409 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-2 15:9:58:275:889 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:9:58:276:702 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/result/result/sqlserver_15.0/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..56b252e4 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:0:275:757 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 15:10:0:327:647 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:0:375:639 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-2 15:10:0:414:551 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:10:0:457:730 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 15:10:0:517:960 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:0:560:338 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-2 15:10:0:599:977 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:10:0:600:707 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/result/result/sqlserver_15.0/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..21c291c2 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: sqlserver #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:0:937:523 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-2 15:10:0:981:240 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:1:37:550 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-2 15:10:1:76:277 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-2 15:10:1:127:189 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-2 15:10:1:179:728 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:1:222:71 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-2 15:10:1:261:954 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:10:1:262:956 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/snapshot/wat_dda_double_write_skew2_committed.txt b/result/result/sqlserver_15.0/snapshot/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..3b7adebe --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:24:551:59 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:24:595:361 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:24:651:54 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:24:725:934 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-2 15:10:24:794:895 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:24:844:809 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q5 failed at: 2022-4-2 15:10:25:341:902 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/result/result/sqlserver_15.0/snapshot/wat_dda_full_write_skew_c1.txt b/result/result/sqlserver_15.0/snapshot/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..7c2bbffe --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:25:772:221 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:25:817:158 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:25:872:364 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:25:947:10 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:10:28:422:459 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:10:28:469:100 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 15:10:29:26:165 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/snapshot/wat_dda_full_write_skew_c2.txt b/result/result/sqlserver_15.0/snapshot/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..d7724aa3 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:29:495:570 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:29:539:346 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:29:595:718 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:29:634:175 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:10:33:423:35 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:10:33:485:796 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q6 failed at: 2022-4-2 15:10:34:26:694 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/snapshot/wat_dda_full_write_skew_committed.txt b/result/result/sqlserver_15.0/snapshot/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..f2940d12 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: sqlserver #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:34:503:411 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:34:547:349 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:34:603:462 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:34:641:702 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-2 15:10:35:923:502 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:10:35:969:285 +Q7 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 +Q7 failed at: 2022-4-2 15:10:36:627:217 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 51) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. + diff --git a/result/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew1_c1.txt b/result/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..23651f4e --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:37:93:838 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:37:137:714 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:37:193:811 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:37:233:129 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:37:271:564 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-2 15:10:37:442:940 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q6 failed at: 2022-4-2 15:10:38:47:27 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/result/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew1_c2.txt b/result/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..4e8e23a3 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:38:523:388 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-2 15:10:38:567:456 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:38:623:570 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:38:662:836 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-2 15:10:38:701:67 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:10:38:876:469 +Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q6 failed at: 2022-4-2 15:10:39:480:599 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/result/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew2_c1.txt b/result/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..cba25d2d --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:39:952:183 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:39:996:301 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:40:52:109 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:10:40:91:445 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:10:40:201:234 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:40:255:55 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q5 failed at: 2022-4-2 15:10:40:751:942 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/result/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew2_c2.txt b/result/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..5c10895c --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:41:182:841 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:41:226:971 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:41:282:637 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:10:41:358:467 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-2 15:10:41:425:594 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:41:633:197 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q5 failed at: 2022-4-2 15:10:42:130:75 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/result/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew2_committed.txt b/result/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..681c81b6 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: sqlserver #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:42:558:652 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:42:602:549 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:42:658:664 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-2 15:10:42:734:488 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-2 15:10:42:800:880 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-2 15:10:42:858:240 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q5 failed at: 2022-4-2 15:10:43:358:405 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/result/result/sqlserver_15.0/snapshot/wat_mda_step_wat_c1.txt b/result/result/sqlserver_15.0/snapshot/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..b4263d86 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/wat_mda_step_wat_c1.txt @@ -0,0 +1,43 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:43:832:781 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:43:876:996 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:43:932:948 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:44:7:694 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-4-2 15:10:44:32:869 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 15:10:44:72:329 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-2 15:10:46:553:844 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-2 15:10:46:607:907 + Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q5 failed at: 2022-4-2 15:10:47:104:887 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 15:10:47:350:363 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/result/result/sqlserver_15.0/snapshot/wat_mda_step_wat_c2.txt b/result/result/sqlserver_15.0/snapshot/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..bb1062a3 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/wat_mda_step_wat_c2.txt @@ -0,0 +1,43 @@ +#### db_type: sqlserver #### +#### test_type: mda_step_wat_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:47:819:404 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:47:863:228 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:47:919:426 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-2 15:10:47:994:22 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-4-2 15:10:48:19:491 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-2 15:10:48:295:239 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-2 15:10:51:554:132 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-2 15:10:51:610:89 + Q6 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q6 failed at: 2022-4-2 15:10:52:207:90 + Q8 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. errcode: 40001 + Q8 failed at: 2022-4-2 15:10:52:350:757 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/result/result/sqlserver_15.0/snapshot/wat_sda_dirty_write_1abort.txt b/result/result/sqlserver_15.0/snapshot/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..80c59d67 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:16:775:581 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:16:819:504 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:16:875:500 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; + Q4 finished at: 2022-4-2 15:10:17:17:5 +Q5 finished at: 2022-4-2 15:10:17:17:409 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:10:17:127:707 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-2 15:10:17:167:283 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-2 15:10:17:206:932 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-2 15:10:17:251:280 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/sqlserver_15.0/snapshot/wat_sda_dirty_write_2commit.txt b/result/result/sqlserver_15.0/snapshot/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..fa49b5aa --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,30 @@ +#### db_type: sqlserver #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:17:632:221 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:17:676:406 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:17:732:399 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-2 15:10:17:882:260 + Q4 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q4 failed at: 2022-4-2 15:10:18:279:187 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/result/result/sqlserver_15.0/snapshot/wat_sda_full_write.txt b/result/result/sqlserver_15.0/snapshot/wat_sda_full_write.txt new file mode 100644 index 00000000..1ae0a561 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/wat_sda_full_write.txt @@ -0,0 +1,32 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:18:666:204 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:18:710:218 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:18:766:310 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-2 15:10:18:908:618 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-2 15:10:18:958:521 + Q4 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q4 failed at: 2022-4-2 15:10:19:355:510 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/result/result/sqlserver_15.0/snapshot/wat_sda_full_write_committed.txt b/result/result/sqlserver_15.0/snapshot/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..d82e312a --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/wat_sda_full_write_committed.txt @@ -0,0 +1,32 @@ +#### db_type: sqlserver #### +#### test_type: sda_full_write_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:19:753:984 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:19:798:250 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:19:853:845 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-2 15:10:19:997:516 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:20:53:361 + Q4 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q4 failed at: 2022-4-2 15:10:20:450:355 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/result/result/sqlserver_15.0/snapshot/wat_sda_lost_self_update_committed.txt b/result/result/sqlserver_15.0/snapshot/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..63b87de3 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:23:425:74 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-2 15:10:23:469:126 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:23:526:379 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-2 15:10:23:670:640 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-2 15:10:23:726:104 + Q4 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 + Q4 failed at: 2022-4-2 15:10:24:123:79 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/result/result/sqlserver_15.0/snapshot/wat_sda_lost_update_c1.txt b/result/result/sqlserver_15.0/snapshot/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..2b7fbe4b --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c1 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:20:855:508 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 15:10:20:899:548 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:20:955:445 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 15:10:21:31:202 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-2 15:10:21:206:775 +Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q5 failed at: 2022-4-2 15:10:21:710:728 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/result/result/sqlserver_15.0/snapshot/wat_sda_lost_update_c2.txt b/result/result/sqlserver_15.0/snapshot/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..2b2cc732 --- /dev/null +++ b/result/result/sqlserver_15.0/snapshot/wat_sda_lost_update_c2.txt @@ -0,0 +1,39 @@ +#### db_type: sqlserver #### +#### test_type: sda_lost_update_c2 #### +#### isolation: snapshot #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = snapshot for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-4-2 15:10:22:142:650 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-2 15:10:22:186:656 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-4-2 15:10:22:242:621 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-2 15:10:22:281:747 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-2 15:10:22:490:902 +Q5 failed reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row errcode: 42000 +Q5 failed at: 2022-4-2 15:10:22:994:953 + +Test Result: Rollback +Reason: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.t1' directly or indirectly in database 'test' to update, delete, or insert the row + diff --git a/result/result/tdsql_2.0.1/read-committed/iat_dda_read_skew_committed.txt b/result/result/tdsql_2.0.1/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..a6dae861 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:41:152:179 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:53:41:232:579 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:41:656:401 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:53:41:734:365 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:53:41:812:339 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:53:41:889:807 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 10:53:42:156:447 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:53:42:237:361 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:53:42:317:916 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:53:42:399:700 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/read-committed/iat_dda_read_write_skew1_committed.txt b/result/result/tdsql_2.0.1/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..3a9e175c --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:43:902:125 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:53:43:980:529 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:44:398:972 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:53:44:477:656 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:53:44:579:205 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:53:44:656:717 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 10:53:44:899:795 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:53:44:977:207 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:53:45:57:870 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:53:45:137:333 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/read-committed/iat_dda_write_skew.txt b/result/result/tdsql_2.0.1/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..eee9dfc2 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:46:684:513 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:53:46:762:288 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:47:189:214 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:53:47:267:978 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:53:47:345:749 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 10:53:47:685:434 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:53:47:762:832 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:53:48:185:364 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:53:48:265:806 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:53:48:348:844 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/read-committed/iat_dda_write_skew_committed.txt b/result/result/tdsql_2.0.1/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..485ed0ca --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:49:867:203 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:53:49:945:565 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:50:367:36 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:53:50:445:627 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:53:50:532:102 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:53:50:609:549 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 10:53:50:867:541 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:53:50:945:361 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:53:51:26:61 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:53:51:106:782 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/read-committed/iat_dda_write_skew_pred_insert.txt b/result/result/tdsql_2.0.1/read-committed/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..524e1ec6 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:1:692:127 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:54:1:770:701 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:2:268:408 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-23 10:54:2:346:423 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-23 10:54:2:424:327 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-23 10:54:2:769:276 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:54:2:846:409 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:54:3:268:860 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-23 10:54:3:349:415 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:54:3:428:668 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/read-committed/iat_mda_step_iat.txt b/result/result/tdsql_2.0.1/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..8dbee85d --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:52:740:84 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-23 10:53:52:818:473 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:53:239:4 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 10:53:53:317:872 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-5-23 10:53:53:745:784 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-23 10:53:53:827:501 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-23 10:53:54:245:26 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-23 10:53:54:740:724 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-23 10:53:55:241:977 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-23 10:53:55:740:347 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-23 10:53:56:239:532 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-23 10:53:56:747:389 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-23 10:53:56:826:151 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-23 10:53:56:902:855 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/read-committed/iat_sda_lost_update_committed.txt b/result/result/tdsql_2.0.1/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..75482b25 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:38:375:296 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 10:53:38:504:822 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:38:856:520 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-23 10:53:38:934:370 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:53:39:38:593 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-5-23 10:53:39:360:492 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:53:39:491:337 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:53:39:572:78 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:53:39:651:431 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/read-committed/iat_sda_non_repeatable_read_committed.txt b/result/result/tdsql_2.0.1/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..93b9a1ee --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,58 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:35:696:144 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:53:35:774:352 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:36:119:934 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-23 10:53:36:198:952 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:53:36:276:347 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 10:53:36:700:715 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:53:36:777:549 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:53:36:858:204 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:53:36:937:708 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/read-committed/rat_dda_double_write_skew1.txt b/result/result/tdsql_2.0.1/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..eed2272c --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:33:11:395 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:33:89:488 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:33:511:280 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:52:33:589:235 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:52:33:667:234 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 10:52:34:515:864 + Q7 finished at: 2022-5-23 10:52:34:516:686 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:52:35:12:149 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-23 10:52:35:96:13 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:52:35:177:991 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/read-committed/rat_dda_double_write_skew1_committed.txt b/result/result/tdsql_2.0.1/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..db328ff9 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:36:729:103 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:36:806:967 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:37:232:967 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:52:37:311:18 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:52:37:388:901 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:52:37:466:880 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-5-23 10:52:37:730:296 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:52:37:809:251 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-23 10:52:37:889:620 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:52:37:968:472 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/read-committed/rat_dda_double_write_skew2.txt b/result/result/tdsql_2.0.1/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..a006c414 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:39:530:357 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:39:608:220 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:40:29:541 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:52:40:111:486 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 10:52:40:530:364 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:52:40:611:768 + Q5 finished at: 2022-5-23 10:52:40:612:949 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:52:41:30:83 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:52:41:110:831 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:52:41:189:674 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/read-committed/rat_dda_read_skew.txt b/result/result/tdsql_2.0.1/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..23424713 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:42:727:242 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:52:42:804:981 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:43:227:17 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:52:43:304:859 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:52:43:382:655 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 10:52:43:728:42 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:52:44:237:623 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:52:44:731:831 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:52:44:812:77 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:52:44:890:919 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/read-committed/rat_dda_read_skew2.txt b/result/result/tdsql_2.0.1/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..305ff0ff --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:46:458:119 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:46:536:359 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:46:883:807 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:52:46:963:944 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:52:47:41:927 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 10:52:47:446:449 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:52:47:523:958 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:52:47:883:773 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:52:47:964:393 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:52:48:43:604 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/read-committed/rat_dda_read_skew2_committed.txt b/result/result/tdsql_2.0.1/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..d08d1147 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:49:600:104 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:49:683:178 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:50:100:584 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:52:50:178:477 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:52:50:256:300 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:52:50:333:592 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 10:52:50:609:750 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:52:50:687:250 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:52:50:767:672 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:52:50:846:514 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/read-committed/rat_dda_write_read_skew.txt b/result/result/tdsql_2.0.1/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..d5313973 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:26:616:988 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:26:695:185 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:27:117:56 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:52:27:195:179 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:52:27:275:296 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 10:52:27:628:156 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:52:28:117:588 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:52:28:617:778 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:52:28:700:142 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:52:28:779:79 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/read-committed/rat_dda_write_read_skew_committed.txt b/result/result/tdsql_2.0.1/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..3bccbfe5 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:30:271:420 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:30:349:36 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:30:771:322 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:52:30:849:376 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:52:30:927:513 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:52:31:5:267 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 10:52:31:272:318 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:52:31:349:460 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:52:31:429:885 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:52:31:516:90 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/read-committed/rat_mda_step_rat.txt b/result/result/tdsql_2.0.1/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..51390655 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:52:488:778 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:52:569:346 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:52:919:73 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:52:52:997:171 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:52:53:75:602 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 10:52:53:421:133 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-23 10:52:53:504:337 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-23 10:52:53:584:996 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-23 10:52:53:921:55 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-23 10:52:53:998:380 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-23 10:52:54:420:339 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-23 10:52:54:926:388 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-23 10:52:55:87:587 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-23 10:52:55:164:129 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/read-committed/rat_sda_dirty_read.txt b/result/result/tdsql_2.0.1/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..c4113bce --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:10:319:939 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:10:439:69 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:10:819:725 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 10:52:10:979:70 +Q5-T1 execute opt: 'ROLLBACK;' +Q5 finished at: 2022-5-23 10:52:11:320:100 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:52:11:820:124 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-23 10:52:11:986:985 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:52:12:66:96 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/read-committed/rat_sda_intermediate_read.txt b/result/result/tdsql_2.0.1/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..055dd270 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:17:115:593 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:17:193:359 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:17:617:54 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 10:52:17:698:680 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-23 10:52:18:116:708 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:52:18:620:661 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:52:19:117:417 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 10:52:19:197:719 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:52:19:276:564 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/read-committed/rat_sda_intermediate_read_committed.txt b/result/result/tdsql_2.0.1/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..b633e570 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:20:745:853 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:20:823:678 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:21:244:985 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 10:52:21:323:475 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:52:21:400:613 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-23 10:52:21:745:431 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:52:21:822:746 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 10:52:21:903:95 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:52:21:984:384 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/read-committed/rat_sda_lost_self_update.txt b/result/result/tdsql_2.0.1/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..0ea438a8 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:23:455:965 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:23:533:896 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:23:899:377 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 10:52:24:459:271 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 10:52:24:536:520 + Q4 finished at: 2022-5-23 10:52:24:537:699 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:52:24:900:502 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:52:24:982:281 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:52:25:61:244 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/read-committed/rat_sda_non_repeatable_read.txt b/result/result/tdsql_2.0.1/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..5968e9f1 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:13:520:629 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:52:13:602:249 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:14:17:84 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-23 10:52:14:96:7 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 10:52:14:517:542 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:52:15:17:839 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:52:15:517:48 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:52:15:597:152 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:52:15:676:323 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/read-committed/rat_sda_non_repeatable_read_pred_insert.txt b/result/result/tdsql_2.0.1/read-committed/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..dea924e5 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:58:164:450 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:53:58:244:366 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:58:744:11 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-23 10:53:58:822:22 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 10:53:59:244:861 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:53:59:741:337 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:54:0:240:726 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:54:0:321:121 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:54:0:401:983 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/read-committed/wat_dda_double_write_skew2_committed.txt b/result/result/tdsql_2.0.1/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..291c1678 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:11:724:395 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:53:11:805:753 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:12:224:865 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:53:12:304:411 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 10:53:12:725:643 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:53:12:803:278 + Q5 finished at: 2022-5-23 10:53:12:804:595 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:53:12:881:961 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:53:12:962:985 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:53:13:43:785 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/read-committed/wat_dda_full_write_skew_c1.txt b/result/result/tdsql_2.0.1/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..361f68ed --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:14:574:154 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:53:14:653:886 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:15:75:795 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:53:15:153:728 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:53:15:577:80 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:53:16:82:81 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-2a-628af71a-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-5-23 10:53:16:176:845 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-2a-628af71a-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/read-committed/wat_dda_full_write_skew_committed.txt b/result/result/tdsql_2.0.1/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..a58ae7c0 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:18:143:938 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:53:18:221:924 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:18:566:912 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:53:18:644:983 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:53:19:145:402 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:53:19:222:860 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-2d-628af71e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-5-23 10:53:19:844:845 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-2d-628af71e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/read-committed/wat_dda_read_write_skew1_c1.txt b/result/result/tdsql_2.0.1/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..8a8491db --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:21:869:977 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:53:21:948:113 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:22:293:888 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:53:22:372:118 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:53:22:449:974 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 10:53:23:369:983 +Q7-T1 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:53:23:370:889 +Q7 finished at: 2022-5-23 10:53:23:503:573 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:53:23:584:52 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:53:23:663:245 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/read-committed/wat_dda_read_write_skew2_c1.txt b/result/result/tdsql_2.0.1/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..44905049 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:25:175:426 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:53:25:258:315 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:25:675:923 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:53:25:753:869 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 10:53:26:176:440 +Q7-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:53:26:255:177 +Q7 finished at: 2022-5-23 10:53:26:256:733 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:53:26:676:327 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:53:26:757:17 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:53:26:837:113 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/read-committed/wat_dda_read_write_skew2_committed.txt b/result/result/tdsql_2.0.1/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..f916a61e --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:28:331:348 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:53:28:448:595 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:28:831:657 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:53:28:910:557 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 10:53:29:335:232 +Q8-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:53:29:430:917 + Q6-T2 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:53:29:465:680 + Q6 finished at: 2022-5-23 10:53:29:508:626 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:53:29:589:208 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:53:29:668:577 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/read-committed/wat_mda_step_wat_c1.txt b/result/result/tdsql_2.0.1/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..4311bb10 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:31:246:907 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:53:31:324:757 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:31:743:780 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:53:31:822:11 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 10:53:32:244:314 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-23 10:53:32:325:122 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-5-23 10:53:32:745:163 + Q11-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:53:33:248:9 + Q11 finished at: 2022-5-23 10:53:33:248:135 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-36-628af72b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-5-23 10:53:33:644:20 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-36-628af72b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/read-committed/wat_sda_dirty_write_2commit.txt b/result/result/tdsql_2.0.1/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..5a48d44d --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:56:633:312 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:56:711:173 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:52:57:133:751 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-23 10:52:57:631:43 + Q4 finished at: 2022-5-23 10:52:57:633:767 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:52:58:134:300 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-5-23 10:52:58:214:410 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-5-23 10:52:58:315:674 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:52:58:397:299 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/read-committed/wat_sda_full_write.txt b/result/result/tdsql_2.0.1/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..07ef1c47 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:52:59:825:873 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:52:59:904:11 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:0:327:349 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-23 10:53:0:826:226 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 10:53:0:903:583 + Q4 finished at: 2022-5-23 10:53:0:904:714 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:53:1:326:298 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-23 10:53:1:406:492 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:53:1:485:647 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/read-committed/wat_sda_full_write_committed.txt b/result/result/tdsql_2.0.1/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..181f0009 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:2:902:332 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:53:2:980:108 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:3:402:435 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-23 10:53:3:903:866 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:53:3:981:199 + Q4 finished at: 2022-5-23 10:53:3:982:246 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:53:4:59:513 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-23 10:53:4:140:259 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:53:4:219:565 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/read-committed/wat_sda_lost_self_update_committed.txt b/result/result/tdsql_2.0.1/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..83551c09 --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:8:862:36 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:53:8:939:803 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:9:364:992 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 10:53:9:865:29 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:53:9:942:315 + Q4 finished at: 2022-5-23 10:53:9:943:463 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:53:10:21:5 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:53:10:111:884 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:53:10:191:867 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/read-committed/wat_sda_lost_update_c1.txt b/result/result/tdsql_2.0.1/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..853c4c5e --- /dev/null +++ b/result/result/tdsql_2.0.1/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:53:5:693:513 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 10:53:5:771:651 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:53:6:193:572 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-23 10:53:6:271:819 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-23 10:53:7:195:647 +Q6-T1 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:53:7:196:525 +Q6 finished at: 2022-5-23 10:53:7:273:230 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:53:7:360:254 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:53:7:444:806 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/repeatable-read/iat_dda_read_skew_committed.txt b/result/result/tdsql_2.0.1/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..d5b7c617 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:39:991:445 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:55:40:68:660 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:40:497:955 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:55:40:580:871 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:55:40:662:333 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:55:40:742:536 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 10:55:40:996:987 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:55:41:73:138 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:55:41:154:925 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:55:41:236:39 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/repeatable-read/iat_dda_read_write_skew1_committed.txt b/result/result/tdsql_2.0.1/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..328669c8 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:42:761:39 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:55:42:838:240 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:43:231:518 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:55:43:312:364 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:55:43:392:855 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:55:43:472:902 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 10:55:43:772:359 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:55:43:850:519 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:55:43:935:761 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:55:44:20:63 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/repeatable-read/iat_dda_write_skew.txt b/result/result/tdsql_2.0.1/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..d999de29 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:45:521:897 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:55:45:598:627 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:46:26:703 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:55:46:107:495 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:55:46:188:455 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 10:55:46:522:389 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:55:46:599:9 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:55:47:25:497 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:55:47:107:221 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:55:47:187:693 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/repeatable-read/iat_dda_write_skew_committed.txt b/result/result/tdsql_2.0.1/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..7738e2ed --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:48:722:143 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:55:48:799:141 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:49:179:981 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:55:49:269:398 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:55:49:349:823 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:55:49:431:367 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 10:55:49:728:947 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:55:49:805:762 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:55:49:887:688 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:55:49:967:875 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/repeatable-read/iat_dda_write_skew_pred_insert.txt b/result/result/tdsql_2.0.1/repeatable-read/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..83623b7f --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:0:480:505 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:56:0:558:860 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:1:59:361 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-23 10:56:1:140:277 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q5 finished at: 2022-5-23 10:56:1:220:817 +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' +Q6 finished at: 2022-5-23 10:56:1:556:566 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:56:1:633:86 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:56:2:60:632 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,3) + *(1) expected_result: + (0,1) (1,3) + *(2) expected_result: + (0,1) (1,3) + + Q9 finished at: 2022-5-23 10:56:2:142:332 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:56:2:223:811 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/repeatable-read/iat_mda_step_iat.txt b/result/result/tdsql_2.0.1/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..053edad3 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:51:540:727 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-23 10:55:51:617:955 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:52:46:483 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 10:55:52:127:958 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-5-23 10:55:52:544:939 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-23 10:55:52:627:556 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-5-23 10:55:53:44:754 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-5-23 10:55:53:547:14 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-5-23 10:55:54:47:702 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-23 10:55:54:543:476 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-23 10:55:55:45:445 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-23 10:55:55:545:749 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-23 10:55:55:634:918 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-23 10:55:55:712:805 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/repeatable-read/iat_sda_lost_update_committed.txt b/result/result/tdsql_2.0.1/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..cf671e62 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:37:220:241 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 10:55:37:297:419 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:37:720:257 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-23 10:55:37:801:343 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:55:37:881:522 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-5-23 10:55:38:218:776 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:55:38:295:153 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:55:38:376:922 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:55:38:457:237 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/result/result/tdsql_2.0.1/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..e509a3bc --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:34:530:617 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:55:34:607:700 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:34:955:330 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-23 10:55:35:36:561 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:55:35:116:822 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 10:55:35:536:385 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:55:35:612:407 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:55:35:723:609 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:55:35:804:309 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/repeatable-read/rat_dda_double_write_skew1.txt b/result/result/tdsql_2.0.1/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..e6efeb30 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:31:909:819 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:31:986:581 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:32:413:807 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:54:32:494:703 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:54:32:575:547 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 10:54:33:414:872 + Q7 finished at: 2022-5-23 10:54:33:414:972 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:54:33:919:728 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-23 10:54:34:1:305 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:54:34:81:412 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/repeatable-read/rat_dda_double_write_skew1_committed.txt b/result/result/tdsql_2.0.1/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..b93e4462 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:35:593:354 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:35:720:581 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:36:98:759 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:54:36:179:897 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:54:36:265:429 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:54:36:345:811 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-5-23 10:54:36:593:581 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:54:36:716:399 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-5-23 10:54:36:799:741 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:54:36:880:109 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/repeatable-read/rat_dda_double_write_skew2.txt b/result/result/tdsql_2.0.1/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..e2c3d24f --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:38:376:892 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:38:453:853 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:38:882:933 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:54:38:964:490 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 10:54:39:377:799 +Q7-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:54:39:454:268 +Q7 finished at: 2022-5-23 10:54:39:454:466 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:54:39:907:321 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:54:39:989:187 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:54:40:69:550 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/repeatable-read/rat_dda_read_skew.txt b/result/result/tdsql_2.0.1/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..cfbf65f5 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:41:569:150 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:54:41:647:200 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:42:85:371 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:54:42:166:346 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:54:42:246:941 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 10:54:42:569:894 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:54:43:72:843 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:54:43:569:165 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:54:43:655:626 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:54:43:758:345 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/repeatable-read/rat_dda_read_skew2.txt b/result/result/tdsql_2.0.1/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..b0b363fe --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:45:252:942 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:45:330:140 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:45:756:383 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:54:45:837:699 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:54:45:918:451 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 10:54:46:253:701 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:54:46:330:707 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:54:46:756:735 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:54:46:841:126 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:54:46:921:202 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/repeatable-read/rat_dda_read_skew2_committed.txt b/result/result/tdsql_2.0.1/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..618b9a53 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:48:421:12 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:48:497:761 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:48:913:359 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:54:48:994:552 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:54:49:75:145 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:54:49:155:225 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 10:54:49:409:843 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:54:49:486:543 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:54:49:568:122 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:54:49:650:272 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/repeatable-read/rat_dda_write_read_skew.txt b/result/result/tdsql_2.0.1/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..498ecaa2 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:25:431:56 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:25:510:96 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:25:935:203 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:54:26:16:619 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:54:26:97:273 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-5-23 10:54:26:435:501 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:54:26:948:552 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:54:27:431:829 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:54:27:514:196 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:54:27:595:777 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/repeatable-read/rat_dda_write_read_skew_committed.txt b/result/result/tdsql_2.0.1/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..c1df7959 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:29:108:967 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:29:185:788 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:29:610:971 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:54:29:696:317 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:54:29:777:753 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:54:29:861:530 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 10:54:30:124:742 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:54:30:201:469 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:54:30:283:357 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:54:30:363:542 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/repeatable-read/rat_mda_step_rat.txt b/result/result/tdsql_2.0.1/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..d8038e18 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:51:264:432 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:51:341:966 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:51:768:258 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:54:51:849:415 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:54:51:950:100 + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 10:54:52:267:929 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-23 10:54:52:349:596 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-5-23 10:54:52:431:397 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-5-23 10:54:52:767:947 +Q10-T1 execute opt: 'COMMIT;' +Q10 finished at: 2022-5-23 10:54:52:844:601 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-23 10:54:53:267:722 + Q12-T3 execute opt: 'COMMIT;' + Q12 finished at: 2022-5-23 10:54:53:768:498 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-5-23 10:54:53:926:744 + Q14-T4 execute opt: 'COMMIT;' + Q14 finished at: 2022-5-23 10:54:54:5:705 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/repeatable-read/rat_sda_dirty_read.txt b/result/result/tdsql_2.0.1/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..9f67bc77 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:9:166:943 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:9:244:162 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:9:670:602 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 10:54:9:833:648 +Q5-T1 execute opt: 'ROLLBACK;' +Q5 finished at: 2022-5-23 10:54:10:167:216 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:54:10:671:508 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-23 10:54:10:838:615 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:54:10:919:266 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/repeatable-read/rat_sda_intermediate_read.txt b/result/result/tdsql_2.0.1/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..34d77a59 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:15:948:716 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:16:26:271 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:16:456:549 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 10:54:16:537:762 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-23 10:54:16:949:800 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:54:17:454:895 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:54:17:949:587 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 10:54:18:31:205 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:54:18:113:760 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/repeatable-read/rat_sda_intermediate_read_committed.txt b/result/result/tdsql_2.0.1/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..21ffbf48 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:19:549:134 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:19:626:350 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:20:42:798 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 10:54:20:127:604 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:54:20:207:580 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-23 10:54:20:542:321 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:54:20:623:80 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 10:54:20:757:727 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:54:20:838:75 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/repeatable-read/rat_sda_lost_self_update.txt b/result/result/tdsql_2.0.1/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..cc59b1c0 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:22:259:493 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:22:344:621 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:22:762:709 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 10:54:23:260:381 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 10:54:23:338:751 + Q4 finished at: 2022-5-23 10:54:23:338:861 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:54:23:763:738 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:54:23:845:321 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:54:23:925:543 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/repeatable-read/rat_sda_non_repeatable_read.txt b/result/result/tdsql_2.0.1/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..f7f70989 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:12:343:31 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:54:12:425:259 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:12:846:783 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-5-23 10:54:12:929:896 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 10:54:13:344:894 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:54:13:852:291 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:54:14:343:374 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:54:14:424:988 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:54:14:505:182 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt b/result/result/tdsql_2.0.1/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..6c144989 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:56:974:333 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:55:57:64:280 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:57:553:716 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' + Q4 finished at: 2022-5-23 10:55:57:634:428 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 10:55:58:51:959 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:55:58:554:288 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:55:59:55:740 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:55:59:137:368 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:55:59:218:251 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/repeatable-read/wat_dda_double_write_skew2_committed.txt b/result/result/tdsql_2.0.1/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..847e1d8c --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:10:535:752 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:55:10:612:542 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:11:34:982 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:55:11:116:417 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-5-23 10:55:11:532:493 +Q8-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:55:11:608:542 +Q8 finished at: 2022-5-23 10:55:11:608:872 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:55:11:688:803 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:55:11:780:5 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:55:11:861:11 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/repeatable-read/wat_dda_full_write_skew_c1.txt b/result/result/tdsql_2.0.1/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..661f6bd9 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:13:356:5 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:55:13:432:805 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:13:858:915 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:55:13:940:79 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:55:14:356:0 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:55:14:863:795 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-34-43-628af791-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-5-23 10:55:14:956:850 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-34-43-628af791-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/repeatable-read/wat_dda_full_write_skew_committed.txt b/result/result/tdsql_2.0.1/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..47e7cd51 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:16:993:117 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:55:17:71:556 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:17:431:879 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:55:17:512:854 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:55:17:994:423 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:55:18:76:447 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-34-46-628af795-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-5-23 10:55:18:695:524 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-34-46-628af795-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/repeatable-read/wat_dda_read_write_skew1_c1.txt b/result/result/tdsql_2.0.1/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..7ae22dab --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:20:734:558 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:55:20:811:881 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:21:103:714 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:55:21:184:686 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-5-23 10:55:21:265:325 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 10:55:22:183:904 + Q8 finished at: 2022-5-23 10:55:22:184:244 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:55:22:260:755 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:55:22:342:750 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:55:22:423:474 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/repeatable-read/wat_dda_read_write_skew2_c1.txt b/result/result/tdsql_2.0.1/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..3da013c1 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:23:973:288 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:55:24:54:340 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:24:476:691 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:55:24:560:294 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 10:55:24:973:460 +Q7-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:55:25:49:897 +Q7 finished at: 2022-5-23 10:55:25:50:163 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:55:25:480:252 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:55:25:561:905 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:55:25:642:188 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/repeatable-read/wat_dda_read_write_skew2_committed.txt b/result/result/tdsql_2.0.1/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..027e95db --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:27:182:535 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:55:27:259:588 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:27:685:832 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:55:27:766:644 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 10:55:28:185:173 +Q8-T1 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:55:28:262:343 +Q8 finished at: 2022-5-23 10:55:28:262:830 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:55:28:343:29 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-5-23 10:55:28:437:282 + Q10-T3 execute opt: 'COMMIT;' + Q10 finished at: 2022-5-23 10:55:28:517:814 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/repeatable-read/wat_mda_step_wat_c1.txt b/result/result/tdsql_2.0.1/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..6daaf051 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:30:102:867 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:55:30:193:350 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:30:606:48 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:55:30:687:96 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 10:55:31:106:639 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-23 10:55:31:188:509 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-5-23 10:55:31:603:727 + Q11-T2 execute opt: 'COMMIT;' + Q11 finished at: 2022-5-23 10:55:32:106:599 + Q8 finished at: 2022-5-23 10:55:32:108:370 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-34-4f-628af7a2-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-5-23 10:55:32:504:531 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='3-34-4f-628af7a2-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/repeatable-read/wat_sda_dirty_write_2commit.txt b/result/result/tdsql_2.0.1/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..be27aa38 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:55:420:957 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:55:497:988 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:55:928:860 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-23 10:54:56:420:996 +Q5 finished at: 2022-5-23 10:54:56:421:135 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:54:56:925:85 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-5-23 10:54:57:13:79 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-5-23 10:54:57:115:952 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:54:57:196:424 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/repeatable-read/wat_sda_full_write.txt b/result/result/tdsql_2.0.1/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..c31b1538 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:54:58:636:710 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:54:58:768:899 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:54:59:121:555 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-23 10:54:59:617:897 +Q6-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-23 10:54:59:771:35 +Q6 finished at: 2022-5-23 10:54:59:771:998 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:55:0:120:881 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-23 10:55:0:203:405 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:55:0:283:835 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/repeatable-read/wat_sda_full_write_committed.txt b/result/result/tdsql_2.0.1/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..0eae7713 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:1:758:610 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:55:1:836:27 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:2:208:313 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-23 10:55:2:729:435 +Q7-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-23 10:55:2:805:420 +Q7 finished at: 2022-5-23 10:55:2:805:677 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:55:2:886:80 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-23 10:55:2:968:932 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:55:3:62:10 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/repeatable-read/wat_sda_lost_self_update_committed.txt b/result/result/tdsql_2.0.1/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..5f1b08d8 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:7:650:188 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:55:7:770:138 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:8:156:62 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 10:55:8:721:441 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:55:8:798:84 + Q4 finished at: 2022-5-23 10:55:8:798:255 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:55:8:878:805 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:55:8:960:338 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:55:9:40:806 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/repeatable-read/wat_sda_lost_update_c1.txt b/result/result/tdsql_2.0.1/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..a90d3408 --- /dev/null +++ b/result/result/tdsql_2.0.1/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:55:4:496:699 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 10:55:4:573:862 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:55:4:996:622 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-5-23 10:55:5:80:458 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:55:5:997:440 +Q5 finished at: 2022-5-23 10:55:5:997:997 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 10:55:6:75:37 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:55:6:156:840 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:55:6:237:454 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tdsql_2.0.1/result_summary/read-committed_total-result.txt b/result/result/tdsql_2.0.1/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..74353e44 --- /dev/null +++ b/result/result/tdsql_2.0.1/result_summary/read-committed_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/result/result/tdsql_2.0.1/result_summary/repeatable-read_total-result.txt b/result/result/tdsql_2.0.1/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..23612b46 --- /dev/null +++ b/result/result/tdsql_2.0.1/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Anomaly + diff --git a/result/result/tdsql_2.0.1/result_summary/serializable_total-result.txt b/result/result/tdsql_2.0.1/result_summary/serializable_total-result.txt new file mode 100644 index 00000000..7b3773f2 --- /dev/null +++ b/result/result/tdsql_2.0.1/result_summary/serializable_total-result.txt @@ -0,0 +1,70 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Rollback + +rat_dda_write_read_skew_committed: Rollback + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Rollback + +rat_dda_read_skew2: Rollback + +rat_dda_read_skew2_committed: Rollback + +rat_mda_step_rat: Rollback + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Rollback + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Rollback + +iat_dda_write_skew_committed: Rollback + +iat_mda_step_iat: Rollback + +rat_sda_non_repeatable_read_pred_insert: Avoid + +iat_dda_write_skew_pred_insert: Rollback + diff --git a/result/result/tdsql_2.0.1/serializable/iat_dda_read_skew_committed.txt b/result/result/tdsql_2.0.1/serializable/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..5bbdb8e4 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/iat_dda_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:47:518:93 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:57:47:599:43 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:47:938:594 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:57:48:21:949 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:57:48:521:847 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:57:48:603:341 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-4e-628af82b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-5-23 10:57:49:219:422 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-4e-628af82b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/iat_dda_read_write_skew1_committed.txt b/result/result/tdsql_2.0.1/serializable/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..3236d5af --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:51:249:10 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:57:51:330:172 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:51:671:570 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:57:51:753:982 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:57:52:256:297 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:57:52:340:311 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-51-628af82f-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-5-23 10:57:52:950:255 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-51-628af82f-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/iat_dda_write_skew.txt b/result/result/tdsql_2.0.1/serializable/iat_dda_write_skew.txt new file mode 100644 index 00000000..aa57d81a --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/iat_dda_write_skew.txt @@ -0,0 +1,49 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:55:24:555 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:57:55:106:128 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:55:445:311 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:57:55:532:814 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:57:56:27:965 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:57:56:530:482 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-54-628af833-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-5-23 10:57:56:626:163 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-54-628af833-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/iat_dda_write_skew_committed.txt b/result/result/tdsql_2.0.1/serializable/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..7f8ffb47 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/iat_dda_write_skew_committed.txt @@ -0,0 +1,49 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:58:633:253 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:57:58:781:611 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:59:54:50 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:57:59:143:920 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:57:59:637:58 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:57:59:718:590 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-57-628af836-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-5-23 10:58:0:335:197 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-57-628af836-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/iat_dda_write_skew_pred_insert.txt b/result/result/tdsql_2.0.1/serializable/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..b644cf8d --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,47 @@ +#### db_type: tdsql #### +#### test_type: dda_write_skew_pred_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_dda_write_skew_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_dda_write_skew_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:58:31:89:504 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v<2; ' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:58:31:171:302 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:58:31:670:233 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE v>2;' + current_result: + null + (1) expected_result: + (1,3) + *(2) expected_result: + null + + Q4 finished at: 2022-5-23 10:58:31:752:350 + Q5-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q6-T1 execute sql: 'INSERT INTO t1 VALUES (1, 3);' + Q5 finished at: 2022-5-23 10:58:32:173:553 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:58:32:671:197 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-60-628af857-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-5-23 10:58:32:786:427 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-60-628af857-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/iat_mda_step_iat.txt b/result/result/tdsql_2.0.1/serializable/iat_mda_step_iat.txt new file mode 100644 index 00000000..e3a55422 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/iat_mda_step_iat.txt @@ -0,0 +1,86 @@ +#### db_type: tdsql #### +#### test_type: mda_step_iat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_mda_step_iat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:58:2:437:465 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-5-23 10:58:2:519:903 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:58:2:858:8 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 10:58:2:940:234 + Q5-T3 execute opt: 'BEGIN;' + Q5 finished at: 2022-5-23 10:58:3:364:579 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-5-23 10:58:3:441:580 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q8 finished at: 2022-5-23 10:58:4:939:557 + Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-c3-628af83b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q9 failed at: 2022-5-23 10:58:5:836:489 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]set_1653273267_1:Lock wait timeout exceeded; try restarting transaction errcode: HY000 +Q7 failed at: 2022-5-23 10:58:25:639:966 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-c3-628af83b-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/iat_sda_lost_update_committed.txt b/result/result/tdsql_2.0.1/serializable/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..ea18cdd5 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/iat_sda_lost_update_committed.txt @@ -0,0 +1,39 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:44:122:826 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 10:57:44:204:138 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:44:623:564 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-5-23 10:57:45:126:182 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:57:45:211:211 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-b3-628af828-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q4 failed at: 2022-5-23 10:57:45:528:506 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-b3-628af828-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/iat_sda_non_repeatable_read_committed.txt b/result/result/tdsql_2.0.1/serializable/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..c5458c93 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:41:256:614 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:57:41:338:993 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:41:677:221 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 10:57:42:270:660 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:57:42:351:75 + Q4 finished at: 2022-5-23 10:57:42:353:212 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:57:42:492:35 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:57:42:568:881 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:57:42:644:475 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/serializable/rat_dda_double_write_skew1.txt b/result/result/tdsql_2.0.1/serializable/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..029234e0 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/rat_dda_double_write_skew1.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:32:527:138 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:32:608:246 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:32:946:718 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:56:33:29:972 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:56:33:541:294 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:56:34:27:759 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-12-628af7e0-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-5-23 10:56:34:139:331 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-12-628af7e0-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/rat_dda_double_write_skew1_committed.txt b/result/result/tdsql_2.0.1/serializable/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..b17962fa --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:36:474:482 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:36:555:481 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:36:895:185 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:56:36:977:396 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:56:37:483:262 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:56:37:564:861 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-15-628af7e4-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-5-23 10:56:38:176:299 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-15-628af7e4-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/rat_dda_double_write_skew2.txt b/result/result/tdsql_2.0.1/serializable/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..18ef247c --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/rat_dda_double_write_skew2.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:40:213:331 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:40:299:108 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:40:633:712 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:56:40:715:929 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:56:41:216:502 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:56:41:716:85 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-18-628af7e8-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-5-23 10:56:41:814:875 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-18-628af7e8-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/rat_dda_read_skew.txt b/result/result/tdsql_2.0.1/serializable/rat_dda_read_skew.txt new file mode 100644 index 00000000..fa68e179 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/rat_dda_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:43:865:698 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:56:43:947:307 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:44:286:543 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:56:44:368:633 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:56:44:867:36 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:56:45:365:71 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-1b-628af7eb-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-5-23 10:56:45:465:222 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-1b-628af7eb-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/rat_dda_read_skew2.txt b/result/result/tdsql_2.0.1/serializable/rat_dda_read_skew2.txt new file mode 100644 index 00000000..ad24bdba --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/rat_dda_read_skew2.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:47:825:200 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:47:906:157 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:48:245:789 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:56:48:329:623 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 10:56:48:826:604 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:56:48:907:204 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-85-628af7f0-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-5-23 10:56:49:328:940 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-85-628af7f0-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/rat_dda_read_skew2_committed.txt b/result/result/tdsql_2.0.1/serializable/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..08b1bf27 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/rat_dda_read_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:51:354:523 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:51:436:174 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:51:774:929 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:56:51:858:389 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 10:56:52:355:602 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:56:52:437:619 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-87-628af7f3-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-5-23 10:56:52:858:139 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-87-628af7f3-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/rat_dda_write_read_skew.txt b/result/result/tdsql_2.0.1/serializable/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..39c73e4d --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/rat_dda_write_read_skew.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:24:811:829 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:24:893:204 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:25:311:772 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:56:25:394:41 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:56:25:814:835 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:56:26:314:634 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-c-628af7d8-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-5-23 10:56:26:413:171 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-c-628af7d8-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/rat_dda_write_read_skew_committed.txt b/result/result/tdsql_2.0.1/serializable/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..6f22eb36 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:28:769:261 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:28:851:979 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:29:142:394 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:56:29:224:775 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:56:29:782:136 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:56:29:863:558 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-f-628af7dc-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-5-23 10:56:30:480:166 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-f-628af7dc-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/rat_mda_step_rat.txt b/result/result/tdsql_2.0.1/serializable/rat_mda_step_rat.txt new file mode 100644 index 00000000..baa7ae5e --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/rat_mda_step_rat.txt @@ -0,0 +1,72 @@ +#### db_type: tdsql #### +#### test_type: mda_step_rat #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_mda_step_rat test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:54:971:910 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:55:52:871 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:55:392:766 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:56:55:520:404 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 10:56:55:971:371 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-5-23 10:56:56:49:53 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-5-23 10:56:56:492:388 + Q11-T2 execute opt: 'COMMIT;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + *(4) expected_result: + (1,1) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q8 finished at: 2022-5-23 10:56:56:973:177 + Q11 finished at: 2022-5-23 10:56:56:975:492 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-24-628af7f7-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-5-23 10:56:57:379:473 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-24-628af7f7-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/rat_sda_dirty_read.txt b/result/result/tdsql_2.0.1/serializable/rat_sda_dirty_read.txt new file mode 100644 index 00000000..722a45ad --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:8:130:174 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:8:220:399 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:8:631:32 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' +Q5-T1 execute opt: 'ROLLBACK;' +Q5 finished at: 2022-5-23 10:56:9:130:743 + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 10:56:9:132:979 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:56:9:631:873 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-5-23 10:56:9:815:832 + Q8-T3 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:56:9:891:730 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/serializable/rat_sda_intermediate_read.txt b/result/result/tdsql_2.0.1/serializable/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..182f4558 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:15:121:900 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:15:202:801 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:15:622:224 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-5-23 10:56:16:147:358 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:56:17:138:173 + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + + Q4 finished at: 2022-5-23 10:56:17:140:697 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:56:17:222:95 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 10:56:17:299:556 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:56:17:375:482 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/serializable/rat_sda_intermediate_read_committed.txt b/result/result/tdsql_2.0.1/serializable/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..8c97bf79 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:18:848:216 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:18:931:966 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:19:348:943 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-5-23 10:56:19:848:561 +Q7-T1 execute opt: 'COMMIT;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,0) + +Q7 finished at: 2022-5-23 10:56:19:931:708 + Q4 finished at: 2022-5-23 10:56:19:931:814 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:56:20:12:824 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-5-23 10:56:20:89:411 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:56:20:166:386 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/serializable/rat_sda_lost_self_update.txt b/result/result/tdsql_2.0.1/serializable/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..bb4f4cf9 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:21:611:38 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:21:741:69 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:22:107:710 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 10:56:22:605:489 +Q6-T1 execute opt: 'COMMIT;' + Q4 finished at: 2022-5-23 10:56:22:688:272 +Q6 finished at: 2022-5-23 10:56:22:729:289 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:56:23:107:450 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:56:23:183:968 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:56:23:260:959 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/serializable/rat_sda_non_repeatable_read.txt b/result/result/tdsql_2.0.1/serializable/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..bbaad2e5 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:11:340:336 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:56:11:422:896 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:11:837:239 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 10:56:12:338:861 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:56:13:336:641 + Q4 finished at: 2022-5-23 10:56:13:338:884 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:56:13:488:810 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:56:13:565:438 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:56:13:641:40 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/serializable/rat_sda_non_repeatable_read_pred_insert.txt b/result/result/tdsql_2.0.1/serializable/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..23fb9a4c --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tdsql #### +#### test_type: sda_non_repeatable_read_pred_insert #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------rat_sda_non_repeatable_read_pred_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT;' + +----------rat_sda_non_repeatable_read_pred_insert test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:58:27:435:455 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:58:27:519:126 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:58:27:935:599 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE v>0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,1) + +Q5 finished at: 2022-5-23 10:58:28:526:447 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:58:29:517:852 + Q4 finished at: 2022-5-23 10:58:29:519:957 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:58:29:601:496 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:58:29:731:930 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:58:29:807:730 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/serializable/wat_dda_double_write_skew2_committed.txt b/result/result/tdsql_2.0.1/serializable/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..71abec16 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:14:733:97 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:57:14:819:384 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:15:202:565 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-5-23 10:57:15:284:835 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:57:15:705:820 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:57:15:787:169 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-33-628af80a-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-5-23 10:57:16:431:743 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-33-628af80a-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/wat_dda_full_write_skew_c1.txt b/result/result/tdsql_2.0.1/serializable/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..872f6a28 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:18:484:210 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:57:18:565:230 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:18:904:770 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:57:18:986:731 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:57:19:490:604 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:57:19:985:519 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-36-628af80e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-5-23 10:57:20:86:762 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-36-628af80e-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/wat_dda_full_write_skew_committed.txt b/result/result/tdsql_2.0.1/serializable/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..c2c624f7 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tdsql #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:22:163:837 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:57:22:244:800 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:22:584:300 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:57:22:666:884 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:57:23:178:100 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:57:23:259:739 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-39-628af812-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q7 failed at: 2022-5-23 10:57:23:876:687 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-39-628af812-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/wat_dda_read_write_skew1_c1.txt b/result/result/tdsql_2.0.1/serializable/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..ce54f716 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:25:951:925 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-5-23 10:57:26:33:926 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:26:369:716 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:57:26:526:191 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-5-23 10:57:26:952:572 + Q8-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:57:27:529:135 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-3c-628af815-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q6 failed at: 2022-5-23 10:57:27:550:848 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-3c-628af815-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/wat_dda_read_write_skew2_c1.txt b/result/result/tdsql_2.0.1/serializable/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..9b1b2816 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:29:552:919 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:57:29:634:12 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:29:973:764 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:57:30:56:305 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-5-23 10:57:30:554:801 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:57:30:635:133 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-a6-628af81a-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-5-23 10:57:31:57:249 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-a6-628af81a-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/wat_dda_read_write_skew2_committed.txt b/result/result/tdsql_2.0.1/serializable/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..3350d2e8 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:33:156:414 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:57:33:237:365 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:33:576:969 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-5-23 10:57:33:659:916 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-5-23 10:57:34:158:613 +Q8-T1 execute opt: 'COMMIT;' +Q8 finished at: 2022-5-23 10:57:34:239:158 + Q5 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-a9-628af81d-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q5 failed at: 2022-5-23 10:57:34:660:771 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-a9-628af81d-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/wat_mda_step_wat_c1.txt b/result/result/tdsql_2.0.1/serializable/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..1165c510 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/wat_mda_step_wat_c1.txt @@ -0,0 +1,42 @@ +#### db_type: tdsql #### +#### test_type: mda_step_wat_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:36:816:752 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:57:36:897:774 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:37:237:516 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-5-23 10:57:37:320:571 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute opt: 'BEGIN;' + Q6 finished at: 2022-5-23 10:57:37:737:666 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-5-23 10:57:37:814:281 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-5-23 10:57:38:321:573 + Q11-T2 execute opt: 'COMMIT;' + Q8 finished at: 2022-5-23 10:57:38:816:459 + Q11 finished at: 2022-5-23 10:57:38:819:901 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-45-628af820-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 +Q9 failed at: 2022-5-23 10:57:39:219:953 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='4-91-45-628af820-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tdsql_2.0.1/serializable/wat_sda_dirty_write_2commit.txt b/result/result/tdsql_2.0.1/serializable/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..f4c79c3e --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:56:59:395:62 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:56:59:476:150 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:56:59:814:643 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT;' +Q5 finished at: 2022-5-23 10:57:0:394:739 + Q4 finished at: 2022-5-23 10:57:0:398:233 + Q6-T2 execute opt: 'COMMIT;' + Q6 finished at: 2022-5-23 10:57:0:896:392 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-5-23 10:57:0:973:180 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-5-23 10:57:1:70:44 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:57:1:145:425 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/serializable/wat_sda_full_write.txt b/result/result/tdsql_2.0.1/serializable/wat_sda_full_write.txt new file mode 100644 index 00000000..80ffed24 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:2:581:820 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:57:2:664:768 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:3:82:802 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-5-23 10:57:3:582:649 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 10:57:3:663:254 + Q4 finished at: 2022-5-23 10:57:3:665:335 + Q7-T2 execute opt: 'COMMIT;' + Q7 finished at: 2022-5-23 10:57:4:83:175 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-23 10:57:4:159:771 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:57:4:235:443 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/serializable/wat_sda_full_write_committed.txt b/result/result/tdsql_2.0.1/serializable/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..3d6d7e18 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: tdsql #### +#### test_type: sda_full_write_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:5:727:458 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:57:5:816:158 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:6:174:38 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-5-23 10:57:6:733:265 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:57:6:815:226 + Q4 finished at: 2022-5-23 10:57:6:816:200 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:57:6:897:633 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-5-23 10:57:6:978:932 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:57:7:54:873 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/serializable/wat_sda_lost_self_update_committed.txt b/result/result/tdsql_2.0.1/serializable/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..411e33f4 --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:11:857:6 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-5-23 10:57:11:941:968 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:12:277:95 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-5-23 10:57:12:857:275 +Q7-T1 execute opt: 'COMMIT;' +Q7 finished at: 2022-5-23 10:57:12:937:891 + Q4 finished at: 2022-5-23 10:57:12:940:65 + Q5-T2 execute opt: 'COMMIT;' + Q5 finished at: 2022-5-23 10:57:13:21:603 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-5-23 10:57:13:109:34 + Q9-T3 execute opt: 'COMMIT;' + Q9 finished at: 2022-5-23 10:57:13:185:472 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tdsql_2.0.1/serializable/wat_sda_lost_update_c1.txt b/result/result/tdsql_2.0.1/serializable/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..d7a2fb1a --- /dev/null +++ b/result/result/tdsql_2.0.1/serializable/wat_sda_lost_update_c1.txt @@ -0,0 +1,39 @@ +#### db_type: tdsql #### +#### test_type: sda_lost_update_c1 #### +#### isolation: serializable #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = serializable for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT;' + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute opt: 'BEGIN;' +Q1 finished at: 2022-5-23 10:57:8:490:801 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-5-23 10:57:8:571:706 + Q3-T2 execute opt: 'BEGIN;' + Q3 finished at: 2022-5-23 10:57:8:991:541 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-5-23 10:57:9:492:259 +Q6-T1 execute opt: 'COMMIT;' +Q6 finished at: 2022-5-23 10:57:9:572:927 + Q4 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-95-628af805-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' errcode: HY000 + Q4 failed at: 2022-5-23 10:57:9:894:568 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22-v18-txsql-2.0.1-V2.0R710D002-20210517-2251]Got an error in the state of 'ABORTING', xid='1-ab-95-628af805-0', errmsg='XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected' + diff --git a/result/result/tidb_opt_4.0.5/read-committed/iat_dda_read_skew_committed.txt b/result/result/tidb_opt_4.0.5/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..03d8ec55 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:14:599:440 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:14:601:339 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:14:700:260 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:26:14:702:231 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:14:703:981 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:26:14:705:754 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:26:14:811:770 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:26:14:813:11 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:26:14:815:631 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:26:14:816:746 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_opt_4.0.5/read-committed/iat_dda_read_write_skew1_committed.txt b/result/result/tidb_opt_4.0.5/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..f91a52bb --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:15:60:303 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:15:64:659 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:15:160:235 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:26:15:162:165 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:15:164:119 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:26:15:165:615 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:26:15:264:519 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224383810928640, conflictStartTS=432224383837143040, conflictCommitTS=432224383838453760, key={tableID=2670, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:26:16:66:803 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224383810928640, conflictStartTS=432224383837143040, conflictCommitTS=432224383838453760, key={tableID=2670, handle=1} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew.txt b/result/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..c6a07684 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:16:313:314 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:16:315:258 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:16:415:564 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:26:16:417:679 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:16:419:640 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:26:16:514:462 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:26:16:516:136 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:26:16:613:796 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:26:16:616:585 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:26:16:617:699 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew_committed.txt b/result/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..76b2127c --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:17:788:658 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:17:790:394 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:17:888:615 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:26:17:890:280 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:17:891:932 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:26:17:893:404 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:26:17:989:123 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:26:17:990:488 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:26:17:992:670 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:26:17:993:667 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/result/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..ce0b370b --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:16:868:522 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 17:26:16:871:730 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 17:26:16:873:604 + Q4-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q4 finished at: 2022-4-1 17:26:16:968:300 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 17:26:16:971:212 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 17:26:16:972:886 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:26:16:974:159 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:26:17:68:856 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 17:26:17:72:28 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 17:26:17:75:236 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:26:17:76:541 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/result/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..1d8a71a9 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:17:325:246 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 17:26:17:328:237 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:17:425:871 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + (2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 17:26:17:428:939 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 17:26:17:431:407 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:26:17:432:676 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 17:26:17:529:625 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:26:17:531:50 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 17:26:17:533:695 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:26:17:534:852 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat.txt b/result/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..d18b1444 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:18:237:943 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:26:18:240:267 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:18:337:883 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:26:18:340:5 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-1 17:26:18:437:919 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:26:18:440:104 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:26:18:538:589 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:26:18:638:731 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:26:18:738:547 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:26:18:838:278 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:26:18:938:588 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:26:19:38:462 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:26:19:41:276 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:26:19:42:234 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/result/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..bca19063 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:22:686:57 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:22:688:176 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:22:786:71 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:26:22:787:846 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:26:22:789:429 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-1 17:26:22:886:192 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:26:22:888:295 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:26:22:889:872 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:26:22:891:146 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 17:26:22:986:934 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:26:22:988:107 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 17:26:22:990:728 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:26:22:991:759 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/result/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..a1d91353 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:21:930:6 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:21:932:675 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:22:29:898 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:26:22:32:726 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-1 17:26:22:129:918 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 17:26:22:131:599 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:26:22:132:855 + Q8-T4 execute sql: 'BEGIN OPTIMISTIC;' + Q8 finished at: 2022-4-1 17:26:22:231:964 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:26:22:233:839 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:26:22:235:241 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 17:26:22:333:828 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:26:22:335:249 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 17:26:22:431:523 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 17:26:22:432:784 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:26:22:436:630 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:26:22:437:592 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/result/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..3fc812ef --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:19:285:322 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 17:26:19:287:226 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:19:384:851 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:26:19:386:829 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-1 17:26:19:488:5 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:26:19:490:114 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:26:19:585:354 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:26:19:685:530 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:26:19:785:536 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:26:19:885:449 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:26:19:985:415 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:26:20:85:532 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:26:20:88:77 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:26:20:89:166 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/result/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..7cc7df23 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:20:326:913 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:26:20:331:344 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:20:428:67 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 17:26:20:430:230 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-1 17:26:20:529:331 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 17:26:20:531:444 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 17:26:20:627:662 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 17:26:20:732:840 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 17:26:20:827:512 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:26:20:927:474 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:26:21:27:561 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:26:21:127:667 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:26:21:130:322 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:26:21:131:269 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/result/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..c02257e6 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:23:235:893 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:26:23:237:812 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 17:26:23:239:841 + Q4-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q4 finished at: 2022-4-1 17:26:23:335:613 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 17:26:23:337:644 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 17:26:23:339:244 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:26:23:340:475 + Q8-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q8 finished at: 2022-4-1 17:26:23:435:572 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 17:26:23:437:555 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:26:23:439:468 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:26:23:440:602 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 17:26:23:536:165 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 17:26:23:537:589 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 17:26:23:540:389 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 17:26:23:541:729 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_uname_anomaly.txt b/result/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..cc600077 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:21:377:352 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 17:26:21:379:602 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:21:477:300 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 17:26:21:479:444 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:21:481:124 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:26:21:483:31 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 17:26:21:484:537 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:26:21:485:870 + Q9-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q9 finished at: 2022-4-1 17:26:21:577:382 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 17:26:21:579:682 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 17:26:21:581:246 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 17:26:21:583:156 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 17:26:21:584:764 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:26:21:586:126 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 17:26:21:680:985 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 17:26:21:682:129 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 17:26:21:684:965 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 17:26:21:686:74 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_opt_4.0.5/read-committed/iat_sda_lost_update_committed.txt b/result/result/tidb_opt_4.0.5/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..7f60c5bd --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:13:442:818 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:26:13:447:179 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:13:544:92 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:26:13:545:840 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:26:13:547:183 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 17:26:13:644:109 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224383386779648, conflictStartTS=432224383413256192, conflictCommitTS=432224383414042624, key={tableID=2664, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-1 17:26:14:345:998 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224383386779648, conflictStartTS=432224383413256192, conflictCommitTS=432224383414042624, key={tableID=2664, handle=0} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/read-committed/iat_sda_non_repeatable_read_committed.txt b/result/result/tidb_opt_4.0.5/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..5bc8b91a --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:12:960:836 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:12:962:564 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:13:75:102 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:26:13:76:772 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:26:13:77:974 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:26:13:176:601 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:26:13:177:751 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:26:13:180:29 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:26:13:181:63 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:26:13:182:89 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_opt_4.0.5/read-committed/rat_dda_double_write_skew1.txt b/result/result/tidb_opt_4.0.5/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..61704a56 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:39:234:302 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:39:236:269 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:39:334:847 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:39:336:734 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:25:39:338:504 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q6 finished at: 2022-4-1 17:25:39:441:520 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:25:39:536:409 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224374419357696, conflictStartTS=432224374445572096, conflictCommitTS=432224374498525184, key={tableID=2571, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:25:40:440:915 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224374419357696, conflictStartTS=432224374445572096, conflictCommitTS=432224374498525184, key={tableID=2571, handle=1} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/read-committed/rat_dda_double_write_skew1_committed.txt b/result/result/tidb_opt_4.0.5/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..18156228 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:40:678:74 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:40:680:90 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:40:778:258 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:40:780:381 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:25:40:782:204 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:40:783:572 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 17:25:40:880:749 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224374797631488, conflictStartTS=432224374824108032, conflictCommitTS=432224374825418752, key={tableID=2574, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:25:41:682:584 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224374797631488, conflictStartTS=432224374824108032, conflictCommitTS=432224374825418752, key={tableID=2574, handle=1} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/read-committed/rat_dda_double_write_skew2.txt b/result/result/tidb_opt_4.0.5/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..9debebeb --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:41:917:791 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:41:919:761 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:42:18:48 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:42:20:193 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:25:42:22:16 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:25:42:120:829 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:42:122:262 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224375148904448, conflictStartTS=432224375122690048, conflictCommitTS=432224375176429568, key={tableID=2577, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-1 17:25:43:19:587 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224375148904448, conflictStartTS=432224375122690048, conflictCommitTS=432224375176429568, key={tableID=2577, handle=0} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew.txt b/result/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..793fdddd --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:43:250:886 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:25:43:252:739 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:43:350:735 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:43:352:461 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:25:43:354:27 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:25:43:451:884 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:25:43:551:162 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:25:43:651:16 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:25:43:654:948 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:25:43:656:18 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew2.txt b/result/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..6ecd261a --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:44:792:829 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:44:794:615 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:44:892:770 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:25:44:894:411 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:25:44:895:952 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:25:44:993:465 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:44:994:781 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:25:45:92:693 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:25:45:95:208 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:25:45:96:271 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew2_committed.txt b/result/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..cf8736f8 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:45:327:837 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:45:329:586 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:45:427:915 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:25:45:430:70 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:25:45:432:141 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:45:433:101 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:25:45:528:732 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:25:45:529:975 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:25:45:532:179 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:25:45:533:100 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/result/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..b933b0a8 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:43:919:793 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:25:43:922:894 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:44:20:100 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:44:21:788 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:25:44:31:550 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:44:33:426 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:25:44:121:358 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:25:44:122:543 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 17:25:44:124:786 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:25:44:125:721 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/result/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..89133cb7 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:44:353:712 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:25:44:358:408 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:44:455:540 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 17:25:44:457:121 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 17:25:44:458:601 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:44:459:794 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:25:44:557:111 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:25:44:558:29 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 17:25:44:560:186 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:25:44:561:21 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_opt_4.0.5/read-committed/rat_dda_write_read_skew.txt b/result/result/tidb_opt_4.0.5/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..aca2e633 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:38:139:615 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:38:141:251 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:38:239:656 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:38:241:323 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:25:38:243:27 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:25:38:344:667 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:25:38:439:673 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:25:38:544:135 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:25:38:546:446 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:25:38:547:386 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_opt_4.0.5/read-committed/rat_dda_write_read_skew_committed.txt b/result/result/tidb_opt_4.0.5/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..76aee8ac --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:38:795:853 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:38:797:789 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:38:895:783 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:38:897:446 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:25:38:899:201 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:38:900:577 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:25:38:996:353 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:25:38:997:514 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:25:39:0:103 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:25:39:1:92 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat.txt b/result/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..98b3ae84 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:45:766:975 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:45:768:700 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:45:866:951 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:45:868:660 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:25:45:870:565 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-1 17:25:45:967:81 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:25:45:968:763 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 17:25:45:970:741 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 17:25:46:68:76 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:25:46:69:299 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:25:46:167:187 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:25:46:267:262 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:25:46:271:22 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:25:46:271:920 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat_long_fork.txt b/result/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..23b8a8ec --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN OPTIMISTIC;' + Q1 finished at: 2022-4-1 17:25:46:505:882 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 17:25:46:508:568 +Q3-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q3 finished at: 2022-4-1 17:25:46:605:917 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 17:25:46:607:667 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-1 17:25:46:705:832 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 17:25:46:708:508 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:25:46:710:981 + Q8-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q8 finished at: 2022-4-1 17:25:46:808:176 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:25:46:809:895 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:25:46:908:40 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:25:47:6:153 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:25:47:106:241 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:25:47:206:4 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:25:47:207:192 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:25:47:210:218 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:25:47:211:104 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/result/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..368b43cf --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:47:446:623 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:47:448:497 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:47:546:935 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:47:548:620 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:25:47:551:187 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-1 17:25:47:646:648 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:25:47:648:237 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 17:25:47:650:545 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:25:47:750:571 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:25:47:752:4 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:25:47:847:114 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:25:47:947:25 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:25:47:949:365 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:25:47:950:315 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/result/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..9b20828e --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:48:180:63 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 17:25:48:182:102 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:48:279:745 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 17:25:48:281:413 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:25:48:286:405 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-1 17:25:48:380:89 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 17:25:48:382:104 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 17:25:48:384:945 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:25:48:481:444 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:25:48:482:830 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:25:48:580:202 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:25:48:680:213 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:25:48:682:920 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:25:48:683:832 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_opt_4.0.5/read-committed/rat_sda_dirty_read.txt b/result/result/tidb_opt_4.0.5/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..2e1b32d0 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:33:630:992 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:33:632:746 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:33:731:962 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:25:33:733:707 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:25:33:831:974 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:33:931:834 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:25:33:934:466 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:25:33:935:332 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_opt_4.0.5/read-committed/rat_sda_intermediate_read.txt b/result/result/tidb_opt_4.0.5/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..bc851245 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:34:848:123 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:34:849:876 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:34:948:133 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:25:34:949:950 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 17:25:35:52:562 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:35:148:201 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:35:248:426 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:25:35:250:644 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:25:35:251:768 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_opt_4.0.5/read-committed/rat_sda_intermediate_read_committed.txt b/result/result/tidb_opt_4.0.5/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..0ffda640 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:35:511:840 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:35:513:438 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:35:611:885 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:25:35:613:654 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:25:35:614:569 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 17:25:35:712:348 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:35:713:507 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:25:35:715:461 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:25:35:716:324 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_opt_4.0.5/read-committed/rat_sda_lost_self_update.txt b/result/result/tidb_opt_4.0.5/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..6ee6cbb3 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:36:907:809 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:36:909:457 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:37:7:937 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:37:9:828 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:25:37:108:337 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:25:37:109:812 + Q7-T2 execute opt: 'COMMIT'; + Q7 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224373835563008, conflictStartTS=432224373809348608, conflictCommitTS=432224373862301696, key={tableID=2562, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q7 failed at: 2022-4-1 17:25:37:908:601 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224373835563008, conflictStartTS=432224373809348608, conflictCommitTS=432224373862301696, key={tableID=2562, handle=0} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/read-committed/rat_sda_non_repeatable_read.txt b/result/result/tidb_opt_4.0.5/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..679a6997 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:34:190:649 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:25:34:192:594 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:34:290:610 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:34:292:321 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:25:34:391:560 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:34:490:921 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:34:590:592 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:25:34:592:751 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:25:34:593:663 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_opt_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/result/result/tidb_opt_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..76214967 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:35:984:170 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:25:35:986:792 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:36:71:464 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:36:73:245 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:25:36:74:437 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:25:36:172:571 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:36:173:586 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 17:25:36:175:570 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:25:36:176:504 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_opt_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/result/result/tidb_opt_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..05e53a0a --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:36:429:867 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:25:36:434:637 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:36:529:865 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 17:25:36:531:496 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:25:36:532:618 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:25:36:631:88 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:36:632:155 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 17:25:36:634:492 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:25:36:637:814 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_opt_4.0.5/read-committed/wat_dda_double_write_skew2_committed.txt b/result/result/tidb_opt_4.0.5/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..a598a18e --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:56:689:319 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:56:691:50 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:56:789:891 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:56:791:677 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:25:56:793:288 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:56:794:495 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:25:56:892:683 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378995081216, conflictStartTS=432224379021295616, conflictCommitTS=432224379022606336, key={tableID=2628, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:25:57:694:255 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378995081216, conflictStartTS=432224379021295616, conflictCommitTS=432224379022606336, key={tableID=2628, handle=0} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/read-committed/wat_dda_full_write_skew_c1.txt b/result/result/tidb_opt_4.0.5/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..439ee212 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,37 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:57:932:315 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:57:934:46 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:58:33:404 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:58:35:58 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:25:58:36:662 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:25:58:132:767 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:25:58:134:20 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224379347402752, conflictStartTS=432224379320926208, conflictCommitTS=432224379373617152, key={tableID=2631, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-1 17:25:59:35:979 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224379347402752, conflictStartTS=432224379320926208, conflictCommitTS=432224379373617152, key={tableID=2631, handle=0} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/read-committed/wat_dda_full_write_skew_c2.txt b/result/result/tidb_opt_4.0.5/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..a5446bcf --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,37 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:59:276:488 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:59:278:138 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:59:376:492 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:25:59:378:83 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:25:59:379:785 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:25:59:477:587 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:25:59:576:900 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224379673247744, conflictStartTS=432224379699462144, conflictCommitTS=432224379751890944, key={tableID=2634, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:26:0:477:327 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224379673247744, conflictStartTS=432224379699462144, conflictCommitTS=432224379751890944, key={tableID=2634, handle=0} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/read-committed/wat_dda_full_write_skew_committed.txt b/result/result/tidb_opt_4.0.5/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..6bd3d3d4 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,37 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:0:717:160 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:26:0:719:164 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:0:817:209 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:26:0:819:102 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:0:820:650 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:26:0:821:880 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:26:0:917:598 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224380050735104, conflictStartTS=432224380076949504, conflictCommitTS=432224380078260224, key={tableID=2637, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:26:1:719:437 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224380050735104, conflictStartTS=432224380076949504, conflictCommitTS=432224380078260224, key={tableID=2637, handle=0} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew1_c1.txt b/result/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..b5e4aabc --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:1:958:635 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:1:960:429 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:2:59:440 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:26:2:61:951 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:2:63:695 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:26:2:161:99 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:26:2:162:630 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224380402794496, conflictStartTS=432224380376317952, conflictCommitTS=432224380429795328, key={tableID=2640, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-1 17:26:3:59:510 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224380402794496, conflictStartTS=432224380376317952, conflictCommitTS=432224380429795328, key={tableID=2640, handle=1} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew1_c2.txt b/result/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..e1ac6532 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:3:299:448 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:26:3:301:212 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:3:399:491 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:26:3:401:59 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:3:402:511 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:26:3:500:141 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:26:3:599:677 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224380727853056, conflictStartTS=432224380754067456, conflictCommitTS=432224380806496256, key={tableID=2643, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:26:4:500:121 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224380727853056, conflictStartTS=432224380754067456, conflictCommitTS=432224380806496256, key={tableID=2643, handle=1} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew2_c1.txt b/result/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..b800534c --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:4:739:809 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:26:4:741:470 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:4:839:795 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:26:4:841:453 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:4:842:953 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:26:4:940:402 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:26:4:941:752 + Q8-T2 execute opt: 'COMMIT'; + Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224381131554816, conflictStartTS=432224381105340416, conflictCommitTS=432224381158293504, key={tableID=2646, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q8 failed at: 2022-4-1 17:26:5:840:390 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224381131554816, conflictStartTS=432224381105340416, conflictCommitTS=432224381158293504, key={tableID=2646, handle=0} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew2_c2.txt b/result/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..9f8074b2 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:6:79:629 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:26:6:81:307 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:6:179:517 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:26:6:181:178 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:6:182:728 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:26:6:280:72 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:26:6:379:899 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224381456613376, conflictStartTS=432224381482827776, conflictCommitTS=432224381535256576, key={tableID=2649, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:26:7:280:225 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224381456613376, conflictStartTS=432224381482827776, conflictCommitTS=432224381535256576, key={tableID=2649, handle=0} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew2_committed.txt b/result/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..f949704b --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:7:522:136 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:26:7:524:95 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:7:622:82 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:26:7:623:804 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:7:625:569 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:26:7:627:44 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:26:7:722:575 +Q8-T1 execute opt: 'COMMIT'; +Q8 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224381834625024, conflictStartTS=432224381860839424, conflictCommitTS=432224381862150144, key={tableID=2652, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q8 failed at: 2022-4-1 17:26:8:524:319 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224381834625024, conflictStartTS=432224381860839424, conflictCommitTS=432224381862150144, key={tableID=2652, handle=0} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/read-committed/wat_mda_step_wat_c1.txt b/result/result/tidb_opt_4.0.5/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..8225bb49 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:8:766:639 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:26:8:768:770 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:8:866:356 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:26:8:868:96 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q5 finished at: 2022-4-1 17:26:8:871:606 + Q6-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q6 finished at: 2022-4-1 17:26:8:966:494 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:26:8:968:202 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' + Q8 finished at: 2022-4-1 17:26:8:969:719 +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-1 17:26:9:68:781 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:26:9:70:425 + Q11-T2 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; + Q11 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224382187208704, conflictStartTS=432224382160994304, conflictCommitTS=432224382240686080, key={tableID=2655, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q11 failed at: 2022-4-1 17:26:10:268:732 + Q12 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224382213423104, conflictStartTS=432224382160994304, conflictCommitTS=432224382240686080, key={tableID=2655, handle=2} primary=[]byte(nil) [try again later] errcode: HY000 + Q12 failed at: 2022-4-1 17:26:10:467:631 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224382187208704, conflictStartTS=432224382160994304, conflictCommitTS=432224382240686080, key={tableID=2655, handle=0} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/read-committed/wat_mda_step_wat_c2.txt b/result/result/tidb_opt_4.0.5/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..47b785fb --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:26:10:712:173 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:26:10:714:284 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:26:10:811:918 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:26:10:813:584 + Q5-T3 execute sql: 'BEGIN OPTIMISTIC;' + Q5 finished at: 2022-4-1 17:26:10:911:931 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6 finished at: 2022-4-1 17:26:11:12:973 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:26:11:112:836 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' + Q8 finished at: 2022-4-1 17:26:11:114:429 +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' +Q9 finished at: 2022-4-1 17:26:11:212:758 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:26:11:312:586 +Q11-T1 execute opt: 'COMMIT'; + Q12-T3 execute opt: 'COMMIT'; +Q11 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224382670864384, conflictStartTS=432224382697078784, conflictCommitTS=432224382828412928, key={tableID=2658, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q11 failed at: 2022-4-1 17:26:12:517:725 + Q12 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224382723293184, conflictStartTS=432224382697078784, conflictCommitTS=432224382828412928, key={tableID=2658, handle=1} primary=[]byte(nil) [try again later] errcode: HY000 + Q12 failed at: 2022-4-1 17:26:12:712:980 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224382670864384, conflictStartTS=432224382697078784, conflictCommitTS=432224382828412928, key={tableID=2658, handle=0} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/read-committed/wat_sda_dirty_write_1abort.txt b/result/result/tidb_opt_4.0.5/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..6e6db82a --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:48:917:62 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:48:918:649 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:49:17:81 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:49:18:779 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:25:49:116:969 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:49:220:436 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:25:49:222:788 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:25:49:238:123 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:25:49:239:295 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_opt_4.0.5/read-committed/wat_sda_dirty_write_2commit.txt b/result/result/tidb_opt_4.0.5/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..93929313 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,32 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:49:456:757 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:49:458:596 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:49:556:694 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:49:558:374 +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:25:49:656:932 + Q6-T2 execute opt: 'COMMIT'; + Q6 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224377125208064, conflictStartTS=432224377098993664, conflictCommitTS=432224377151422464, key={tableID=2610, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q6 failed at: 2022-4-1 17:25:50:357:539 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224377125208064, conflictStartTS=432224377098993664, conflictCommitTS=432224377151422464, key={tableID=2610, handle=0} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/read-committed/wat_sda_full_write.txt b/result/result/tidb_opt_4.0.5/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..56aa410e --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/wat_sda_full_write.txt @@ -0,0 +1,34 @@ +#### db_type: tidb #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:50:592:926 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:50:594:629 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:50:693:157 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:50:695:188 +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 17:25:50:793:607 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:25:50:795:52 + Q7-T2 execute opt: 'COMMIT'; + Q7 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224377423265792, conflictStartTS=432224377396789248, conflictCommitTS=432224377449742336, key={tableID=2613, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q7 failed at: 2022-4-1 17:25:51:596:568 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224377423265792, conflictStartTS=432224377396789248, conflictCommitTS=432224377449742336, key={tableID=2613, handle=0} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/read-committed/wat_sda_full_write_committed.txt b/result/result/tidb_opt_4.0.5/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..9d1026d9 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,34 @@ +#### db_type: tidb #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:51:833:44 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:51:834:798 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:51:931:959 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:51:933:739 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:25:51:935:2 +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 17:25:52:32:384 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224377721847808, conflictStartTS=432224377747800064, conflictCommitTS=432224377748586496, key={tableID=2616, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-1 17:25:52:734:517 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224377721847808, conflictStartTS=432224377747800064, conflictCommitTS=432224377748586496, key={tableID=2616, handle=0} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/read-committed/wat_sda_lost_self_update_committed.txt b/result/result/tidb_opt_4.0.5/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..398127af --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:55:550:641 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:25:55:552:710 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:55:651:180 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:55:653:91 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:25:55:654:504 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:25:55:750:224 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378696499200, conflictStartTS=432224378722713600, conflictCommitTS=432224378723762176, key={tableID=2625, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-1 17:25:56:452:235 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378696499200, conflictStartTS=432224378722713600, conflictCommitTS=432224378723762176, key={tableID=2625, handle=0} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/read-committed/wat_sda_lost_update_c1.txt b/result/result/tidb_opt_4.0.5/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..536ed4cb --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:52:976:770 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:25:52:978:377 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:53:76:711 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:53:78:529 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-1 17:25:53:177:323 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:25:53:178:645 + Q7-T2 execute opt: 'COMMIT'; + Q7 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378047954944, conflictStartTS=432224378021740544, conflictCommitTS=432224378074693632, key={tableID=2619, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 + Q7 failed at: 2022-4-1 17:25:53:977:408 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378047954944, conflictStartTS=432224378021740544, conflictCommitTS=432224378074693632, key={tableID=2619, handle=0} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/read-committed/wat_sda_lost_update_c2.txt b/result/result/tidb_opt_4.0.5/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..c7841396 --- /dev/null +++ b/result/result/tidb_opt_4.0.5/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,41 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN OPTIMISTIC;' +Q1 finished at: 2022-4-1 17:25:54:213:51 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:25:54:214:849 + Q3-T2 execute sql: 'BEGIN OPTIMISTIC;' + Q3 finished at: 2022-4-1 17:25:54:312:901 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:25:54:314:707 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q5 finished at: 2022-4-1 17:25:54:416:620 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:25:54:516:256 +Q7-T1 execute opt: 'COMMIT'; +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378345750528, conflictStartTS=432224378371964928, conflictCommitTS=432224378425180160, key={tableID=2622, handle=0} primary=[]byte(nil) [try again later] errcode: HY000 +Q7 failed at: 2022-4-1 17:25:55:313:751 + +Test Result: Rollback +[MySQL][ODBC 8.0(w) Driver]Write conflict, txnStartTS=432224378345750528, conflictStartTS=432224378371964928, conflictCommitTS=432224378425180160, key={tableID=2622, handle=0} primary=[]byte(nil) [try again later] + diff --git a/result/result/tidb_opt_4.0.5/result_summary/read-committed_total-result.txt b/result/result/tidb_opt_4.0.5/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..45e2cffc --- /dev/null +++ b/result/result/tidb_opt_4.0.5/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Rollback + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Rollback + +rat_dda_double_write_skew1_committed: Rollback + +rat_dda_double_write_skew2: Rollback + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Rollback + +wat_sda_full_write: Rollback + +wat_sda_full_write_committed: Rollback + +wat_sda_lost_update_c1: Rollback + +wat_sda_lost_update_c2: Rollback + +wat_sda_lost_self_update_committed: Rollback + +wat_dda_double_write_skew2_committed: Rollback + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Rollback + +wat_dda_read_write_skew1_c2: Rollback + +wat_dda_read_write_skew2_c1: Rollback + +wat_dda_read_write_skew2_c2: Rollback + +wat_dda_read_write_skew2_committed: Rollback + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Rollback + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Rollback + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/result/result/tidb_per_4.0.5/read-committed/iat_dda_read_skew_committed.txt b/result/result/tidb_per_4.0.5/read-committed/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..8c7f8b21 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/iat_dda_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:14:759:122 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:14:761:81 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:14:860:233 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:14:862:445 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:14:864:294 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:14:865:934 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:18:14:962:429 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:14:963:598 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:14:966:154 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:14:967:167 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/iat_dda_read_write_skew1_committed.txt b/result/result/tidb_per_4.0.5/read-committed/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..112ec1f7 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:15:204:606 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:15:206:319 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:15:304:901 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:15:306:846 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:15:308:477 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:15:309:977 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:15:405:431 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:15:406:951 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:15:424:219 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:15:425:427 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew.txt b/result/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew.txt new file mode 100644 index 00000000..b634c160 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:15:662:808 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:15:664:591 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:15:762:711 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:15:764:557 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:15:766:137 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:18:15:863:308 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:15:864:735 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:15:964:385 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:15:966:764 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:15:967:867 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew_committed.txt b/result/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..d8486cc1 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:17:233:579 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:17:235:356 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:17:336:358 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:17:338:323 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:17:340:234 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:17:341:774 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:17:434:266 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:17:435:719 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:17:438:158 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:17:439:436 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt b/result/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..f85b2866 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:16:227:229 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 17:18:16:249:442 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 17:18:16:251:304 + Q4-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q4 finished at: 2022-4-1 17:18:16:327:513 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 17:18:16:330:423 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 17:18:16:332:151 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:16:333:628 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:16:428:438 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 17:18:16:431:422 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 17:18:16:434:5 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:16:435:57 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/result/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..fe67e21f --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:16:771:733 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 17:18:16:775:200 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:16:871:520 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + (2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 17:18:16:874:356 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 17:18:16:877:982 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:16:879:402 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 17:18:16:984:345 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:16:985:832 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 17:18:16:988:571 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:16:989:724 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat.txt b/result/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat.txt new file mode 100644 index 00000000..f2ea1158 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:17:696:585 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:18:17:698:635 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:17:800:203 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:18:17:802:545 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:17:898:214 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:18:17:900:337 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:18:17:997:556 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:18:18:97:429 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:18:18:197:552 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:18:297:75 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:18:397:201 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:18:497:390 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:18:18:500:379 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:18:501:585 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt b/result/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..2600a199 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:22:140:966 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:22:142:998 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:22:241:76 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:22:242:985 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:22:244:361 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:18:22:341:273 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:18:22:343:484 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:18:22:345:240 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:22:346:749 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,1) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + *(6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 17:18:22:441:970 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:18:22:443:185 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 17:18:22:445:716 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:18:22:446:695 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_cross_phenomenon.txt b/result/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..7cf85e90 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,207 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:21:370:783 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:21:374:385 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:21:470:483 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:21:473:153 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:21:571:434 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 17:18:21:573:365 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:21:574:853 + Q8-T4 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-1 17:18:21:673:481 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:18:21:676:49 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:21:677:554 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + (7) expected_result: + (0,0) + (8) expected_result: + (0,0) + *(9) expected_result: + (0,1) + *(10) expected_result: + (0,1) + *(11) expected_result: + (0,1) + (12) expected_result: + (0,0) + *(13) expected_result: + (0,1) + *(14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 17:18:21:772:226 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:21:773:422 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + (2) expected_result: + (1,0) + (3) expected_result: + (1,0) + (4) expected_result: + (1,0) + *(5) expected_result: + (1,1) + (6) expected_result: + (1,0) + *(7) expected_result: + (1,1) + *(8) expected_result: + (1,1) + (9) expected_result: + (1,0) + *(10) expected_result: + (1,1) + *(11) expected_result: + (1,1) + *(12) expected_result: + (1,1) + (13) expected_result: + (1,0) + *(14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 17:18:21:873:804 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 17:18:21:875:178 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:18:21:879:468 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:18:21:880:639 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_predicate_based_delete.txt b/result/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..27eaa1eb --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:18:742:179 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 17:18:18:744:238 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:18:842:117 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:18:18:844:184 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:18:942:159 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:18:18:944:128 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:18:19:42:806 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:18:19:144:627 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:18:19:242:904 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:19:342:830 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:19:442:702 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:19:542:756 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:18:19:545:271 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:19:546:410 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_predicate_based_insert.txt b/result/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..00bb4379 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:19:779:86 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:18:19:783:351 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:19:879:9 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 17:18:19:880:986 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:19:979:293 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 17:18:19:981:567 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 17:18:20:79:807 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 17:18:20:179:847 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 17:18:20:280:55 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:20:379:600 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:20:479:608 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:20:579:819 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:18:20:582:483 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:20:583:625 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt b/result/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..5a580e12 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:22:685:674 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:18:22:687:804 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 17:18:22:689:749 + Q4-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q4 finished at: 2022-4-1 17:18:22:785:692 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 17:18:22:787:860 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 17:18:22:789:673 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:22:791:696 + Q8-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-1 17:18:22:885:725 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 17:18:22:887:955 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:18:22:890:38 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:22:891:184 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 17:18:22:988:972 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 17:18:22:990:574 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 17:18:22:993:524 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 17:18:22:994:532 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_uname_anomaly.txt b/result/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..4a66559f --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,162 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:20:825:498 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 17:18:20:827:553 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:20:928:71 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 17:18:20:930:268 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:20:932:96 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:18:20:934:38 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 17:18:20:935:785 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:20:937:198 + Q9-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q9 finished at: 2022-4-1 17:18:21:25:522 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 17:18:21:27:683 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 17:18:21:29:370 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 17:18:21:31:394 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 17:18:21:33:53 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:21:34:420 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,1) + (1) expected_result: + (2,0) + (2) expected_result: + (2,0) + (3) expected_result: + (2,0) + (4) expected_result: + (2,2) + *(5) expected_result: + (2,1) + *(6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 17:18:21:126:537 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 17:18:21:127:772 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 17:18:21:130:713 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 17:18:21:131:796 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/iat_sda_lost_update_committed.txt b/result/result/tidb_per_4.0.5/read-committed/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..26427bda --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:14:316:260 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:18:14:320:587 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:14:416:134 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:14:417:805 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:14:419:89 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 17:18:14:518:242 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:14:519:677 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:14:521:743 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:14:522:794 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/iat_sda_non_repeatable_read_committed.txt b/result/result/tidb_per_4.0.5/read-committed/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..40a6a7d2 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:13:871:278 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:13:873:269 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:13:972:99 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:13:973:945 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:13:975:889 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + (1) expected_result: + (0,0) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:18:14:72:735 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:14:73:804 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:14:75:985 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:14:77:198 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:14:78:270 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/rat_dda_double_write_skew1.txt b/result/result/tidb_per_4.0.5/read-committed/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..6fcc1918 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:52:447:732 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:52:449:688 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:52:547:640 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:52:549:412 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:17:52:551:84 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:17:52:762:853 +Q6 finished at: 2022-4-1 17:17:52:795:218 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:52:848:184 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:17:52:850:988 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:52:852:116 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/read-committed/rat_dda_double_write_skew1_committed.txt b/result/result/tidb_per_4.0.5/read-committed/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..c4b2dc4a --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:53:108:887 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:53:110:741 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:53:208:892 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:53:211:256 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:17:53:213:400 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:53:214:824 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 17:17:53:312:761 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:53:314:76 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:17:53:316:427 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:53:317:359 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/read-committed/rat_dda_double_write_skew2.txt b/result/result/tidb_per_4.0.5/read-committed/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..4bfd525a --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:53:567:987 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:53:569:879 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:53:668:191 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:53:670:229 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:17:53:770:884 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:17:53:776:131 + Q5 finished at: 2022-4-1 17:17:53:776:671 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:17:53:868:202 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:17:53:870:447 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:53:871:363 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew.txt b/result/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew.txt new file mode 100644 index 00000000..531d1e18 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:54:121:952 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:17:54:123:764 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:54:221:897 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:54:223:779 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:17:54:225:297 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:17:54:322:754 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:17:54:422:152 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:54:521:894 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:17:54:524:235 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:54:525:118 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew2.txt b/result/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew2.txt new file mode 100644 index 00000000..25c1a1f0 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:55:706:739 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:55:708:619 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:55:808:192 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:17:55:822:53 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:17:55:824:12 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:17:55:914:420 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:17:55:920:788 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:17:56:12:262 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:17:56:15:209 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:56:16:423 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew2_committed.txt b/result/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..f0f86f41 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:56:318:757 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:56:320:771 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:56:420:141 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:17:56:421:969 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:17:56:423:939 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:56:424:986 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:17:56:523:175 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:56:524:506 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:17:56:526:952 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:56:528:23 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew_predicate_based_delete.txt b/result/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..e001425a --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:54:780:204 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:17:54:782:844 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:54:879:991 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:54:881:691 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:17:54:883:280 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:54:884:456 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:17:54:983:360 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:54:984:334 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 17:17:54:986:273 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:54:987:205 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew_predicate_based_insert.txt b/result/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..c1386b3e --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:55:238:688 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:17:55:243:763 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:55:338:894 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 17:17:55:340:885 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 17:17:55:342:784 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:55:344:173 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:17:55:440:5 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:55:441:40 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 17:17:55:443:280 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:55:444:375 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/rat_dda_write_read_skew.txt b/result/result/tidb_per_4.0.5/read-committed/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..fc6fc91a --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:51:337:450 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:51:339:206 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:51:437:597 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:51:439:597 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:17:51:441:348 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:17:51:538:245 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:17:51:640:184 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:51:737:630 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:17:51:739:960 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:51:740:990 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/rat_dda_write_read_skew_committed.txt b/result/result/tidb_per_4.0.5/read-committed/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..1b93be75 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:51:994:273 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:51:996:263 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:52:94:438 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:52:96:799 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:17:52:98:573 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:52:99:856 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,1) + (1) expected_result: + (1,0) + *(2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:17:52:194:745 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:17:52:195:927 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:17:52:198:207 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:17:52:199:180 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat.txt b/result/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat.txt new file mode 100644 index 00000000..f04c3125 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:56:809:848 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:56:811:741 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:56:912:94 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:56:913:947 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:17:56:915:933 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:17:57:12:133 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:17:57:14:13 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 17:17:57:16:85 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 17:17:57:111:109 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:17:57:112:495 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:17:57:212:393 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:17:57:310:775 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:17:57:314:467 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:17:57:315:572 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat_long_fork.txt b/result/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..cbf4a886 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN PESSIMISTIC;' + Q1 finished at: 2022-4-1 17:17:57:600:213 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 17:17:57:602:929 +Q3-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q3 finished at: 2022-4-1 17:17:57:713:470 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 17:17:57:719:499 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:17:57:801:574 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 17:17:57:804:339 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:17:57:807:19 + Q8-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-1 17:17:57:900:578 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:17:57:902:544 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:17:58:4:206 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:17:58:102:450 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:17:58:200:738 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:17:58:300:550 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:17:58:301:784 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:17:58:305:178 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:17:58:306:106 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat_predicate_based_delete.txt b/result/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..2053927e --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:58:567:406 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:58:570:480 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:58:674:990 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:17:58:677:25 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:17:58:711:868 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:17:58:767:639 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:17:58:769:467 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 17:17:58:771:909 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:17:58:869:771 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:17:58:871:396 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:17:58:968:277 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:17:59:68:68 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:17:59:70:578 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:17:59:71:491 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat_predicate_based_insert.txt b/result/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..7dabf720 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:59:324:782 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 17:17:59:329:51 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:59:432:425 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 17:17:59:434:200 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:17:59:436:814 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:17:59:527:998 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 17:17:59:529:803 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 17:17:59:532:125 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:17:59:626:206 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:17:59:627:517 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:17:59:724:986 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:17:59:828:267 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:17:59:831:155 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:17:59:832:201 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/rat_sda_dirty_read.txt b/result/result/tidb_per_4.0.5/read-committed/rat_sda_dirty_read.txt new file mode 100644 index 00000000..4dac8098 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:47:518:552 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:47:520:345 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:47:620:909 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:17:47:622:572 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:17:47:718:531 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:47:818:469 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:17:47:821:287 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:17:47:822:342 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/read-committed/rat_sda_intermediate_read.txt b/result/result/tidb_per_4.0.5/read-committed/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..da7fb7e6 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:48:746:422 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:48:748:247 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:48:846:447 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:17:48:848:227 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 17:17:48:948:557 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:49:46:282 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:17:49:148:77 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:17:49:150:248 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:17:49:151:139 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/read-committed/rat_sda_intermediate_read_committed.txt b/result/result/tidb_per_4.0.5/read-committed/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..b4c89394 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:49:409:445 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:49:411:456 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:49:509:666 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:17:49:511:952 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:17:49:513:109 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 17:17:49:609:833 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:17:49:611:82 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:17:49:613:305 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:17:49:614:307 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/read-committed/rat_sda_lost_self_update.txt b/result/result/tidb_per_4.0.5/read-committed/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..b0627806 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:50:769:928 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:17:50:771:783 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:50:869:976 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:17:50:970:571 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:17:50:990:655 + Q4 finished at: 2022-4-1 17:17:51:63:993 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:17:51:82:538 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:17:51:84:783 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:17:51:85:586 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/read-committed/rat_sda_non_repeatable_read.txt b/result/result/tidb_per_4.0.5/read-committed/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..939a8782 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:48:88:955 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:17:48:90:969 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:48:188:708 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:17:48:190:399 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:17:48:289:444 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:17:48:389:5 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:17:48:491:897 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:17:48:494:232 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:17:48:495:153 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/result/result/tidb_per_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..c68a3c71 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,58 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:49:864:265 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:17:49:866:605 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:49:964:282 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:17:49:966:126 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:17:49:967:473 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:17:50:65:406 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:17:50:66:655 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 17:17:50:68:565 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:17:50:69:544 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/result/result/tidb_per_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..6f8fb380 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,57 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:17:50:314:454 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:17:50:368:164 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:17:50:414:458 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 17:17:50:416:321 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:17:50:417:440 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:17:50:516:228 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:17:50:517:162 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 17:17:50:519:391 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:17:50:520:204 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/wat_dda_double_write_skew2_committed.txt b/result/result/tidb_per_4.0.5/read-committed/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..a196f58c --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:4:23:316 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:4:25:168 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:4:124:124 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:4:125:966 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:18:4:227:633 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:4:248:652 + Q5 finished at: 2022-4-1 17:18:4:280:195 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:4:281:510 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:4:284:410 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:4:285:511 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/read-committed/wat_dda_full_write_skew_c1.txt b/result/result/tidb_per_4.0.5/read-committed/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..67f3bd0b --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:4:520:498 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:4:522:376 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:4:620:415 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:4:622:299 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:18:4:766:889 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:4:820:814 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:18:5:431:565 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/tidb_per_4.0.5/read-committed/wat_dda_full_write_skew_c2.txt b/result/result/tidb_per_4.0.5/read-committed/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..38757763 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:5:667:766 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:5:670:834 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:5:767:333 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:5:769:168 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:18:5:880:677 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:5:967:859 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:18:6:480:823 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/tidb_per_4.0.5/read-committed/wat_dda_full_write_skew_committed.txt b/result/result/tidb_per_4.0.5/read-committed/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..cccc0977 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:6:716:61 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:6:717:811 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:6:816:158 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:6:817:967 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:18:6:941:872 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:6:943:309 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:18:7:639:788 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew1_c1.txt b/result/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..f358b76c --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:7:874:757 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:7:876:649 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:7:974:225 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:7:975:963 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:7:977:610 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:8:179:388 +Q6 finished at: 2022-4-1 17:18:8:180:107 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:8:181:467 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:8:183:940 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:8:184:962 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew1_c2.txt b/result/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..7ad20233 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:8:417:932 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:8:419:702 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:8:518:86 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:8:520:2 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:8:521:679 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:8:733:253 +Q6 finished at: 2022-4-1 17:18:8:761:750 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:8:818:352 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:8:820:737 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:8:821:762 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew2_c1.txt b/result/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..c4163b6c --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:9:54:136 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:9:55:998 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:9:154:265 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:9:156:201 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:18:9:267:207 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:9:283:201 + Q5 finished at: 2022-4-1 17:18:9:283:528 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:9:354:429 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:9:356:769 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:9:357:790 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew2_c2.txt b/result/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..43309280 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:9:591:549 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:9:593:205 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:9:691:512 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:9:693:496 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:18:9:804:511 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:10:6:819 + Q5 finished at: 2022-4-1 17:18:10:47:740 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:10:49:249 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:10:51:587 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:10:52:570 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew2_committed.txt b/result/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..f76ea842 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:10:285:560 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:10:287:509 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:10:385:645 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:10:387:422 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:10:493:354 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:10:504:9 + Q5 finished at: 2022-4-1 17:18:10:504:298 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:10:505:615 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:10:508:2 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:10:508:883 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/wat_mda_step_wat_c1.txt b/result/result/tidb_per_4.0.5/read-committed/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..1f4869d4 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:10:744:702 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:10:746:856 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:10:844:530 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:10:846:363 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:18:10:944:594 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:18:10:958:782 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-1 17:18:11:75:920 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:11:148:827 + Q8 finished at: 2022-4-1 17:18:11:149:214 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:11:245:82 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:18:11:965:622 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/tidb_per_4.0.5/read-committed/wat_mda_step_wat_c2.txt b/result/result/tidb_per_4.0.5/read-committed/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..6bb05d14 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:12:206:698 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:12:208:725 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:12:306:711 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:12:308:681 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:12:406:733 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:18:12:612:997 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-1 17:18:12:729:424 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:12:823:166 + Q8 finished at: 2022-4-1 17:18:12:855:286 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:13:9:13 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:18:13:624:444 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/tidb_per_4.0.5/read-committed/wat_sda_dirty_write_1abort.txt b/result/result/tidb_per_4.0.5/read-committed/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..367b0a52 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:0:202:793 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:0:204:534 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:0:335:899 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:18:0:406:215 + Q4 finished at: 2022-4-1 17:18:0:432:437 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:0:503:132 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:18:0:505:288 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:18:0:539:222 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:0:543:729 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/read-committed/wat_sda_dirty_write_2commit.txt b/result/result/tidb_per_4.0.5/read-committed/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..67b4dbdb --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:0:776:525 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:0:778:220 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:0:876:400 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:18:0:987:415 + Q4 finished at: 2022-4-1 17:18:0:987:859 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:1:80:378 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:18:1:82:640 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:18:1:96:629 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:1:98:626 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/read-committed/wat_sda_full_write.txt b/result/result/tidb_per_4.0.5/read-committed/wat_sda_full_write.txt new file mode 100644 index 00000000..1b576a5a --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_full_write #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:1:315:447 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:1:317:227 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:1:415:479 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 17:18:1:515:943 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:18:1:527:907 + Q4 finished at: 2022-4-1 17:18:1:587:730 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:1:615:689 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:18:1:618:691 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:1:619:525 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/read-committed/wat_sda_full_write_committed.txt b/result/result/tidb_per_4.0.5/read-committed/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..d5e87209 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_full_write_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:1:847:239 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:1:849:47 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:1:947:256 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 17:18:2:47:820 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:2:59:888 + Q4 finished at: 2022-4-1 17:18:2:88:449 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:2:89:864 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:18:2:91:982 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:2:93:51 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/read-committed/wat_sda_lost_self_update_committed.txt b/result/result/tidb_per_4.0.5/read-committed/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..f651510c --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:3:530:183 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:3:532:23 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:3:630:70 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:18:3:730:652 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:3:751:632 + Q4 finished at: 2022-4-1 17:18:3:787:408 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:3:788:812 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:3:790:994 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:3:791:947 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/read-committed/wat_sda_lost_update_c1.txt b/result/result/tidb_per_4.0.5/read-committed/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..54215405 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:2:322:116 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:18:2:323:794 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:2:422:101 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:2:423:966 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:2:632:394 +Q5 finished at: 2022-4-1 17:18:2:660:990 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:18:2:662:645 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:2:664:865 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:2:665:805 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/read-committed/wat_sda_lost_update_c2.txt b/result/result/tidb_per_4.0.5/read-committed/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..70f63738 --- /dev/null +++ b/result/result/tidb_per_4.0.5/read-committed/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: read-committed #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = read-committed for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:2:897:458 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:18:2:899:241 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:2:997:478 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:2:999:484 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:3:212:643 +Q5 finished at: 2022-4-1 17:18:3:244:885 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:3:297:618 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:3:299:723 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:3:300:744 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/iat_dda_read_skew_committed.txt b/result/result/tidb_per_4.0.5/repeatable-read/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..14e114fe --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/iat_dda_read_skew_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:50:282:523 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:50:284:223 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:50:384:50 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:50:386:80 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:50:387:732 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:50:389:120 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:18:50:483:43 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:50:484:126 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:50:486:192 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:50:487:270 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/iat_dda_read_write_skew1_committed.txt b/result/result/tidb_per_4.0.5/repeatable-read/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..11751c74 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_read_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_read_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:50:741:146 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:50:743:10 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:50:841:29 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:50:843:64 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:50:845:10 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:50:846:433 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:50:941:996 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:50:943:422 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:50:945:989 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:50:947:119 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew.txt b/result/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew.txt new file mode 100644 index 00000000..2494bef8 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:51:204:505 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:51:206:151 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:51:304:528 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:51:306:222 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:51:307:968 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:18:51:408:875 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:51:410:317 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:51:504:986 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:51:507:613 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:51:508:643 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew_committed.txt b/result/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..f86954bb --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:52:729:190 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0; ' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:52:730:948 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:52:829:266 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:52:831:86 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:52:832:867 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:52:834:304 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:52:929:979 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:52:931:517 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:52:933:811 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:52:934:869 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt b/result/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt new file mode 100644 index 00000000..d0484c17 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew_predicate_based-intersecting_data.txt @@ -0,0 +1,72 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-intersecting_data #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-intersecting_data test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS mytab;' +Q0-T1 execute sql: 'CREATE TABLE mytab(class int NOT NULL, value int NOT NULL);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 10);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (1, 20);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 100);' +Q0-T1 execute sql: 'INSERT INTO mytab VALUES (2, 200);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-intersecting_data test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:51:792:93 +Q2-T1 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (30,) + *(1) expected_result: + (30,) + (2) expected_result: + (330,) + +Q2 finished at: 2022-4-1 17:18:51:794:887 +Q3-T1 execute sql: 'INSERT INTO mytab VALUES (2, 30);' +Q3 finished at: 2022-4-1 17:18:51:796:703 + Q4-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q4 finished at: 2022-4-1 17:18:51:892:38 + Q5-T2 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (300,) + (1) expected_result: + (330,) + *(2) expected_result: + (300,) + + Q5 finished at: 2022-4-1 17:18:51:894:878 + Q6-T2 execute sql: 'INSERT INTO mytab VALUES (1, 300);' + Q6 finished at: 2022-4-1 17:18:51:896:667 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:51:898:19 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:51:992:459 + Q9-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 1;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q9 finished at: 2022-4-1 17:18:51:995:395 + Q10-T3 execute sql: 'SELECT SUM(value) FROM mytab WHERE class = 2;' + current_result: + (330,) + *(1) expected_result: + (330,) + *(2) expected_result: + (330,) + + Q10 finished at: 2022-4-1 17:18:52:17:11 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:52:18:320 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt b/result/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt new file mode 100644 index 00000000..97915f9e --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/iat_dda_write_skew_predicate_based-overdraft_protection.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_skew_predicate_based-overdraft_protection #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_dda_write_skew_predicate_based-overdraft_protection test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS account;' +Q0-T1 execute sql: 'create table account (name varchar(255) not null, type varchar(255) not null, balance int not null, primary key (name, type))' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','saving', 500);' +Q0-T1 execute sql: 'INSERT into account VALUES ('kevin','checking', 500);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_dda_write_skew_predicate_based-overdraft_protection test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:52:272:338 +Q2-T1 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,500,) + (2) expected_result: + (checking,1400,) (saving,500,) + +Q2 finished at: 2022-4-1 17:18:52:275:353 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:52:372:473 + Q4-T2 execute sql: 'SELECT type, balance FROM account WHERE name = 'kevin';' + current_result: + (saving,500,) (checking,500,) + (1) expected_result: + (checking,500,) (saving,1400,) + (2) expected_result: + (checking,500,) (saving,500,) + + Q4 finished at: 2022-4-1 17:18:52:376:201 + Q5-T2 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'saving';' + Q5 finished at: 2022-4-1 17:18:52:379:43 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:52:380:507 +Q7-T1 execute sql: 'UPDATE account SET balance = balance + 900 WHERE name = 'kevin' and type = 'checking';' +Q7 finished at: 2022-4-1 17:18:52:474:286 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:52:475:571 + Q9-T3 execute sql: 'SELECT * FROM account;' + current_result: + (kevin,saving,1400) (kevin,checking,1400) + (1) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + (2) expected_result: + (kevin,checking,1400) (kevin,saving,1400) + + Q9 finished at: 2022-4-1 17:18:52:477:746 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:52:478:777 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat.txt b/result/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat.txt new file mode 100644 index 00000000..a005a361 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:53:190:390 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:18:53:192:537 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:53:290:310 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:18:53:292:443 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:53:392:212 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:18:53:394:298 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:18:53:491:82 + Q8-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:18:53:591:371 + Q9-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:18:53:691:347 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:53:791:19 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:53:891:58 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:53:991:89 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:18:53:993:927 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:53:997:549 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt b/result/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt new file mode 100644 index 00000000..ce54079c --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_causality_violation_anomaly.txt @@ -0,0 +1,108 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_causality_violation_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_causality_violation_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_causality_violation_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:57:701:203 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:57:703:186 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:57:802:14 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:57:804:2 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:57:805:397 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:18:57:901:199 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:18:57:903:797 + Q8-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:18:57:905:480 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:57:906:818 +Q10-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + (6) expected_result: + (1,1) + +Q10 finished at: 2022-4-1 17:18:58:2:354 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:18:58:3:548 + Q12-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + + Q12 finished at: 2022-4-1 17:18:58:6:281 + Q13-T4 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:18:58:7:454 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt b/result/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt new file mode 100644 index 00000000..5930da18 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_cross_phenomenon.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_cross_phenomenon #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_cross_phenomenon test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_cross_phenomenon test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:56:931:108 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + (6) expected_result: + (0,1) + (7) expected_result: + (0,1) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:56:933:786 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:57:31:145 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + (13) expected_result: + (1,1) + *(14) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:57:33:835 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:57:131:140 + Q6-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6 finished at: 2022-4-1 17:18:57:133:44 + Q7-T3 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:57:134:436 + Q8-T4 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-1 17:18:57:232:93 + Q9-T4 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:18:57:234:91 + Q10-T4 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:57:235:518 + Q11-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + *(7) expected_result: + (0,0) + *(8) expected_result: + (0,0) + (9) expected_result: + (0,1) + (10) expected_result: + (0,1) + (11) expected_result: + (0,1) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + (14) expected_result: + (0,1) + + Q11 finished at: 2022-4-1 17:18:57:332:848 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:57:334:21 +Q13-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + (5) expected_result: + (1,1) + *(6) expected_result: + (1,0) + (7) expected_result: + (1,1) + (8) expected_result: + (1,1) + *(9) expected_result: + (1,0) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + (12) expected_result: + (1,1) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + +Q13 finished at: 2022-4-1 17:18:57:433:728 +Q14-T1 execute opt: 'COMMIT'; +Q14 finished at: 2022-4-1 17:18:57:435:1 + Q15-T5 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:18:57:439:101 + Q16-T5 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:18:57:440:182 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt b/result/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt new file mode 100644 index 00000000..bef0d401 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:54:256:184 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + null + (5) expected_result: + null + (6) expected_result: + null + +Q2 finished at: 2022-4-1 17:18:54:258:397 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:54:356:97 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + null + (2) expected_result: + null + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + null + *(6) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:18:54:358:122 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:54:456:88 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + null + *(2) expected_result: + (1,0) + (3) expected_result: + null + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:18:54:457:959 +Q7-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q7 finished at: 2022-4-1 17:18:54:556:826 + Q8-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q8 finished at: 2022-4-1 17:18:54:656:712 + Q9-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q9 finished at: 2022-4-1 17:18:54:760:759 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:54:856:628 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:54:956:695 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:55:57:24 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:18:55:59:491 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:55:60:539 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt b/result/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt new file mode 100644 index 00000000..954fe524 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:55:307:587 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q2 finished at: 2022-4-1 17:18:55:311:953 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:55:407:651 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + null + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + null + *(4) expected_result: + null + (5) expected_result: + (0,1) + *(6) expected_result: + null + + Q4 finished at: 2022-4-1 17:18:55:409:755 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:55:507:558 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + null + (1) expected_result: + (1,1) + *(2) expected_result: + null + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + null + *(6) expected_result: + null + + Q6 finished at: 2022-4-1 17:18:55:509:581 +Q7-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q7 finished at: 2022-4-1 17:18:55:608:352 + Q8-T2 execute sql: 'INSERT INTO t1 VALUES (1, 0);' + Q8 finished at: 2022-4-1 17:18:55:708:614 + Q9-T3 execute sql: 'INSERT INTO t1 VALUES (2, 0);' + Q9 finished at: 2022-4-1 17:18:55:808:578 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:55:908:46 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:56:8:412 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:56:108:35 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) (2,0) + (1) expected_result: + (0,1) (1,1) (2,1) + (2) expected_result: + (0,1) (1,1) (2,1) + (3) expected_result: + (0,1) (1,1) (2,1) + (4) expected_result: + (0,1) (1,1) (2,1) + (5) expected_result: + (0,1) (1,1) (2,1) + (6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:18:56:110:722 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:56:111:752 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt b/result/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt new file mode 100644 index 00000000..25319fe8 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_read_only_transaction_anomaly.txt @@ -0,0 +1,140 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_read_only_transaction_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_read_only_transaction_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_read_only_transaction_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:58:265:658 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:18:58:267:749 +Q3-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,20) + (4) expected_result: + (1,20) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,20) + +Q3 finished at: 2022-4-1 17:18:58:269:824 + Q4-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q4 finished at: 2022-4-1 17:18:58:365:700 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q5 finished at: 2022-4-1 17:18:58:367:995 + Q6-T2 execute sql: 'UPDATE t1 SET v=20 WHERE k=1;' + Q6 finished at: 2022-4-1 17:18:58:370:1 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:58:371:356 + Q8-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-1 17:18:58:465:628 + Q9-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,11) + (2) expected_result: + (0,11) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,11) + *(5) expected_result: + (0,0) + *(6) expected_result: + (0,0) + + Q9 finished at: 2022-4-1 17:18:58:467:815 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,20) + *(1) expected_result: + (1,20) + (2) expected_result: + (1,0) + *(3) expected_result: + (1,20) + *(4) expected_result: + (1,20) + (5) expected_result: + (1,0) + (6) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:18:58:469:876 + Q11-T3 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:58:471:10 +Q12-T1 execute sql: 'UPDATE t1 SET v=11 WHERE k=0;' +Q12 finished at: 2022-4-1 17:18:58:566:403 +Q13-T1 execute opt: 'COMMIT'; +Q13 finished at: 2022-4-1 17:18:58:567:913 + Q14-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,11) (1,20) + *(1) expected_result: + (0,11) (1,20) + *(2) expected_result: + (0,11) (1,20) + *(3) expected_result: + (0,11) (1,20) + *(4) expected_result: + (0,11) (1,20) + *(5) expected_result: + (0,11) (1,20) + *(6) expected_result: + (0,11) (1,20) + + Q14 finished at: 2022-4-1 17:18:58:570:640 + Q15-T3 execute opt: 'COMMIT'; + Q15 finished at: 2022-4-1 17:18:58:571:805 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_uname_anomaly.txt b/result/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_uname_anomaly.txt new file mode 100644 index 00000000..8ad969aa --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/iat_mda_step_iat_uname_anomaly.txt @@ -0,0 +1,164 @@ +#### db_type: tidb #### +#### test_type: mda_step_iat_uname_anomaly #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_mda_step_iat_uname_anomaly test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_mda_step_iat_uname_anomaly test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:56:366:289 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,2) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + +Q2 finished at: 2022-4-1 17:18:56:368:417 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:56:466:234 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,2) + (6) expected_result: + (0,2) + + Q4 finished at: 2022-4-1 17:18:56:468:499 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:56:470:188 + Q6-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + *(3) expected_result: + (1,0) + *(4) expected_result: + (1,0) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q6 finished at: 2022-4-1 17:18:56:472:319 + Q7-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7 finished at: 2022-4-1 17:18:56:474:129 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:56:475:578 + Q9-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q9 finished at: 2022-4-1 17:18:56:566:275 + Q10-T3 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + *(4) expected_result: + (2,0) + *(5) expected_result: + (2,0) + *(6) expected_result: + (2,0) + + Q10 finished at: 2022-4-1 17:18:56:568:376 + Q11-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q11 finished at: 2022-4-1 17:18:56:570:21 + Q12-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + (2) expected_result: + (0,0) + *(3) expected_result: + (0,1) + *(4) expected_result: + (0,1) + (5) expected_result: + (0,0) + (6) expected_result: + (0,0) + + Q12 finished at: 2022-4-1 17:18:56:571:981 + Q13-T3 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q13 finished at: 2022-4-1 17:18:56:573:596 + Q14-T3 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:56:574:963 +Q15-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,2) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q15 finished at: 2022-4-1 17:18:56:667:487 +Q16-T1 execute opt: 'COMMIT'; +Q16 finished at: 2022-4-1 17:18:56:668:701 + Q17-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) (2,1) + *(1) expected_result: + (0,2) (1,1) (2,1) + *(2) expected_result: + (0,2) (1,1) (2,1) + *(3) expected_result: + (0,2) (1,1) (2,1) + *(4) expected_result: + (0,2) (1,1) (2,1) + *(5) expected_result: + (0,2) (1,1) (2,1) + *(6) expected_result: + (0,2) (1,1) (2,1) + + Q17 finished at: 2022-4-1 17:18:56:671:432 + Q18-T4 execute opt: 'COMMIT'; + Q18 finished at: 2022-4-1 17:18:56:672:415 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/iat_sda_lost_update_committed.txt b/result/result/tidb_per_4.0.5/repeatable-read/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..c7d0b286 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/iat_sda_lost_update_committed.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_lost_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_lost_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:49:812:969 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:18:49:814:851 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:49:916:341 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:49:918:346 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:49:919:885 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q6 finished at: 2022-4-1 17:18:50:14:70 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:50:15:517 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:50:17:873 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:50:18:977 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/iat_sda_non_repeatable_read_committed.txt b/result/result/tidb_per_4.0.5/repeatable-read/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..94cae838 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,62 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------iat_sda_non_repeatable_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------iat_sda_non_repeatable_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:49:351:711 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:49:353:431 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:49:451:816 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:49:453:678 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:49:454:952 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:18:49:552:238 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:49:553:497 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:49:555:579 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:49:556:577 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:49:557:448 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_double_write_skew1.txt b/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..aca8bdff --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_double_write_skew1.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:28:138:748 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:28:140:648 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:28:239:473 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:28:241:395 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:18:28:243:160 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:28:441:732 +Q6 finished at: 2022-4-1 17:18:28:442:240 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:28:539:148 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:18:28:541:816 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:28:542:945 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_double_write_skew1_committed.txt b/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..70a229b1 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew1_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew1_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew1_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:28:788:384 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:28:790:351 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:28:888:319 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:28:890:393 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:18:28:892:374 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:28:893:595 +Q7-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:28:989:292 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:28:990:668 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,2) + (1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,2) + + Q9 finished at: 2022-4-1 17:18:28:993:224 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:28:994:272 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_double_write_skew2.txt b/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..cbd6eeb1 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_double_write_skew2.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_double_write_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_double_write_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:29:244:577 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:29:246:796 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:29:344:454 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:29:345:987 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:18:29:451:966 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:29:462:756 + Q5 finished at: 2022-4-1 17:18:29:463:476 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:29:545:854 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:29:548:441 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:29:549:500 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew.txt b/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew.txt new file mode 100644 index 00000000..48ffd56d --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:29:804:940 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:29:806:847 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:29:908:199 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:29:911:129 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:29:913:132 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:18:30:8:805 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:30:106:512 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:30:205:139 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:30:207:970 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:30:209:37 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew2.txt b/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew2.txt new file mode 100644 index 00000000..89330ca0 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew2.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:31:389:299 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:31:391:502 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:31:488:264 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:31:490:480 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:18:31:492:406 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:18:31:588:997 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:31:590:309 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:31:687:923 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:31:690:578 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:31:692:60 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew2_committed.txt b/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..c8593962 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew2_committed.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:31:956:142 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:31:957:945 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:32:57:522 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:32:59:404 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:18:32:61:352 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:32:62:346 +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:32:161:33 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:32:162:475 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:32:165:488 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:32:166:585 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt b/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt new file mode 100644 index 00000000..a943b74a --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew_predicate_based_delete.txt @@ -0,0 +1,63 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:30:478:821 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:18:30:481:599 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:30:580:254 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:30:582:245 + Q5-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:30:584:42 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:30:585:586 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) (1,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:18:30:680:414 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:30:681:659 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + + Q9 finished at: 2022-4-1 17:18:30:683:809 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:30:684:794 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt b/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt new file mode 100644 index 00000000..aee32930 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_read_skew_predicate_based_insert.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_read_skew_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_read_skew_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_read_skew_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:30:932:928 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q2 finished at: 2022-4-1 17:18:30:941:337 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:31:32:161 + Q4-T2 execute sql: 'INSERT into t1 VALUES(1,0);' + Q4 finished at: 2022-4-1 17:18:31:34:288 + Q5-T2 execute sql: 'INSERT into t1 VALUES(0,0);' + Q5 finished at: 2022-4-1 17:18:31:36:75 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:31:37:441 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) (1,0) + +Q7 finished at: 2022-4-1 17:18:31:133:687 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:31:134:768 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,0) (1,0) + *(1) expected_result: + (0,0) (1,0) + *(2) expected_result: + (0,0) (1,0) + + Q9 finished at: 2022-4-1 17:18:31:137:277 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:31:138:399 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_write_read_skew.txt b/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..35ab3b08 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_write_read_skew.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:27:42:324 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:27:44:53 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:27:142:591 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:27:144:598 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:18:27:146:611 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=1; ' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q6 finished at: 2022-4-1 17:18:27:242:964 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:27:342:758 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:27:442:580 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:27:444:919 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:27:445:844 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_write_read_skew_committed.txt b/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..2cda2b7b --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,61 @@ +#### db_type: tidb #### +#### test_type: dda_write_read_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_dda_write_read_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_dda_write_read_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:27:688:525 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:27:690:229 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:27:788:397 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:27:790:120 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:18:27:791:784 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:27:792:952 +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:18:27:889:167 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:27:890:325 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:27:892:528 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:27:893:466 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat.txt b/result/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat.txt new file mode 100644 index 00000000..25612b58 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:32:421:217 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:32:441:957 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:32:524:124 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:32:525:995 + Q5-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,1) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + *(4) expected_result: + (0,0) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + + Q5 finished at: 2022-4-1 17:18:32:527:868 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:18:32:621:211 + Q7-T3 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:18:32:623:57 + Q8-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + *(6) expected_result: + (1,0) + + Q8 finished at: 2022-4-1 17:18:32:625:121 +Q9-T1 execute sql: 'SELECT * FROM t1 WHERE k=2;' + current_result: + (2,0) + *(1) expected_result: + (2,0) + *(2) expected_result: + (2,0) + *(3) expected_result: + (2,0) + (4) expected_result: + (2,1) + (5) expected_result: + (2,1) + (6) expected_result: + (2,1) + +Q9 finished at: 2022-4-1 17:18:32:722:306 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:32:723:685 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:32:821:546 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:32:921:503 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:18:32:925:124 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:32:926:239 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat_long_fork.txt b/result/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat_long_fork.txt new file mode 100644 index 00000000..d655be63 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat_long_fork.txt @@ -0,0 +1,209 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_long_fork #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_long_fork test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_long_fork test run---------- + Q1-T4 execute sql: 'BEGIN PESSIMISTIC;' + Q1 finished at: 2022-4-1 17:18:33:175:349 + Q2-T4 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + *(3) expected_result: + (0,0) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + *(9) expected_result: + (0,0) + (10) expected_result: + (0,1) + *(11) expected_result: + (0,0) + (12) expected_result: + (0,1) + *(13) expected_result: + (0,0) + *(14) expected_result: + (0,0) + + Q2 finished at: 2022-4-1 17:18:33:178:48 +Q3-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q3 finished at: 2022-4-1 17:18:33:275:332 +Q4-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q4 finished at: 2022-4-1 17:18:33:277:24 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:33:376:151 + Q6-T3 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + *(2) expected_result: + (1,0) + (3) expected_result: + (1,1) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + (7) expected_result: + (1,1) + *(8) expected_result: + (1,0) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + *(11) expected_result: + (1,0) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + (14) expected_result: + (1,1) + + Q6 finished at: 2022-4-1 17:18:33:379:154 + Q7-T3 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + (3) expected_result: + (0,1) + (4) expected_result: + (0,1) + (5) expected_result: + (0,1) + *(6) expected_result: + (0,0) + (7) expected_result: + (0,1) + (8) expected_result: + (0,1) + (9) expected_result: + (0,1) + *(10) expected_result: + (0,0) + *(11) expected_result: + (0,0) + *(12) expected_result: + (0,0) + (13) expected_result: + (0,1) + *(14) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:18:33:382:46 + Q8-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q8 finished at: 2022-4-1 17:18:33:476:92 + Q9-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q9 finished at: 2022-4-1 17:18:33:478:21 + Q10-T4 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + *(3) expected_result: + (1,0) + (4) expected_result: + (1,1) + *(5) expected_result: + (1,0) + (6) expected_result: + (1,1) + *(7) expected_result: + (1,0) + (8) expected_result: + (1,1) + (9) expected_result: + (1,1) + (10) expected_result: + (1,1) + (11) expected_result: + (1,1) + *(12) expected_result: + (1,0) + *(13) expected_result: + (1,0) + *(14) expected_result: + (1,0) + + Q10 finished at: 2022-4-1 17:18:33:577:317 +Q11-T1 execute opt: 'COMMIT'; +Q11 finished at: 2022-4-1 17:18:33:675:683 + Q12-T2 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:33:775:786 + Q13-T3 execute opt: 'COMMIT'; + Q13 finished at: 2022-4-1 17:18:33:875:531 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:33:876:755 + Q15-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + *(1) expected_result: + (0,1) (1,1) + *(2) expected_result: + (0,1) (1,1) + *(3) expected_result: + (0,1) (1,1) + *(4) expected_result: + (0,1) (1,1) + *(5) expected_result: + (0,1) (1,1) + *(6) expected_result: + (0,1) (1,1) + *(7) expected_result: + (0,1) (1,1) + *(8) expected_result: + (0,1) (1,1) + *(9) expected_result: + (0,1) (1,1) + *(10) expected_result: + (0,1) (1,1) + *(11) expected_result: + (0,1) (1,1) + *(12) expected_result: + (0,1) (1,1) + *(13) expected_result: + (0,1) (1,1) + *(14) expected_result: + (0,1) (1,1) + + Q15 finished at: 2022-4-1 17:18:33:880:56 + Q16-T4 execute opt: 'COMMIT'; + Q16 finished at: 2022-4-1 17:18:33:880:967 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt b/result/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt new file mode 100644 index 00000000..cebe2755 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat_predicate_based_delete.txt @@ -0,0 +1,109 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 1);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:34:126:580 +Q2-T1 execute sql: 'DELETE FROM t1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:34:128:346 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:34:226:456 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:34:228:73 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (1,) + (1) expected_result: + (,) + (2) expected_result: + (,) + *(3) expected_result: + (1,) + *(4) expected_result: + (1,) + (5) expected_result: + (,) + *(6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:18:34:230:716 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:18:34:326:558 + Q7-T3 execute sql: 'DELETE FROM t1 WHERE k=2;' + Q7 finished at: 2022-4-1 17:18:34:328:327 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (1,) + (1) expected_result: + (,) + *(2) expected_result: + (1,) + (3) expected_result: + (,) + *(4) expected_result: + (1,) + *(5) expected_result: + (1,) + *(6) expected_result: + (1,) + + Q8 finished at: 2022-4-1 17:18:34:330:967 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (1,) + *(1) expected_result: + (1,) + *(2) expected_result: + (1,) + *(3) expected_result: + (1,) + (4) expected_result: + (,) + (5) expected_result: + (,) + (6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:18:34:433:684 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:34:435:312 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:34:526:767 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:34:626:835 + Q13-T4 execute sql: 'SELECT * FROM t1;' + current_result: + null + *(1) expected_result: + null + *(2) expected_result: + null + *(3) expected_result: + null + *(4) expected_result: + null + *(5) expected_result: + null + *(6) expected_result: + null + + Q13 finished at: 2022-4-1 17:18:34:628:946 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:34:629:912 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt b/result/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt new file mode 100644 index 00000000..91a9724b --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/rat_mda_step_rat_predicate_based_insert.txt @@ -0,0 +1,106 @@ +#### db_type: tidb #### +#### test_type: mda_step_rat_predicate_based_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_mda_step_rat_predicate_based_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_mda_step_rat_predicate_based_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:34:868:785 +Q2-T1 execute sql: 'INSERT INTO t1 VALUES (0, 1);' +Q2 finished at: 2022-4-1 17:18:34:872:877 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:34:968:938 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + Q4 finished at: 2022-4-1 17:18:34:970:802 + Q5-T2 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 0;' + current_result: + (,) + *(1) expected_result: + (,) + *(2) expected_result: + (,) + *(3) expected_result: + (,) + (4) expected_result: + (1,) + (5) expected_result: + (1,) + (6) expected_result: + (1,) + + Q5 finished at: 2022-4-1 17:18:34:973:126 + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:18:35:68:941 + Q7-T3 execute sql: 'INSERT INTO t1 VALUES (2, 1);' + Q7 finished at: 2022-4-1 17:18:35:70:663 + Q8-T3 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 1;' + current_result: + (,) + (1) expected_result: + (1,) + (2) expected_result: + (1,) + *(3) expected_result: + (,) + *(4) expected_result: + (,) + (5) expected_result: + (1,) + *(6) expected_result: + (,) + + Q8 finished at: 2022-4-1 17:18:35:73:89 +Q9-T1 execute sql: 'SELECT SUM(v) FROM t1 WHERE k = 2;' + current_result: + (,) + (1) expected_result: + (1,) + *(2) expected_result: + (,) + (3) expected_result: + (1,) + (4) expected_result: + (1,) + *(5) expected_result: + (,) + *(6) expected_result: + (,) + +Q9 finished at: 2022-4-1 17:18:35:170:447 +Q10-T1 execute opt: 'COMMIT'; +Q10 finished at: 2022-4-1 17:18:35:171:726 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:35:269:112 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:35:372:213 + Q13-T4 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) (2,1) + *(1) expected_result: + (0,1) (1,1) (2,1) + *(2) expected_result: + (0,1) (1,1) (2,1) + *(3) expected_result: + (0,1) (1,1) (2,1) + *(4) expected_result: + (0,1) (1,1) (2,1) + *(5) expected_result: + (0,1) (1,1) (2,1) + *(6) expected_result: + (0,1) (1,1) (2,1) + + Q13 finished at: 2022-4-1 17:18:35:375:42 + Q14-T4 execute opt: 'COMMIT'; + Q14 finished at: 2022-4-1 17:18:35:376:80 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/rat_sda_dirty_read.txt b/result/result/tidb_per_4.0.5/repeatable-read/rat_sda_dirty_read.txt new file mode 100644 index 00000000..f2f8c6df --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/rat_sda_dirty_read.txt @@ -0,0 +1,47 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_dirty_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_dirty_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:23:340:585 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:23:342:483 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:23:441:152 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k = 0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:18:23:442:965 +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:18:23:543:99 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:23:640:304 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + + Q7 finished at: 2022-4-1 17:18:23:642:911 + Q8-T3 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:23:643:834 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/rat_sda_intermediate_read.txt b/result/result/tidb_per_4.0.5/repeatable-read/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..e54303fd --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/rat_sda_intermediate_read.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:24:524:952 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:24:526:999 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:24:624:877 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:18:24:626:601 +Q5-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5 finished at: 2022-4-1 17:18:24:728:575 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:24:824:939 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:24:926:390 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:18:24:928:728 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:24:929:876 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/rat_sda_intermediate_read_committed.txt b/result/result/tidb_per_4.0.5/repeatable-read/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..06b3e66d --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_intermediate_read_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_intermediate_read_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_intermediate_read_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:25:169:701 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:25:171:733 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:25:269:676 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,0) + + Q4 finished at: 2022-4-1 17:18:25:271:819 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:25:273:581 +Q6-T1 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6 finished at: 2022-4-1 17:18:25:370:474 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:25:371:815 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + *(2) expected_result: + (0,2) + + Q8 finished at: 2022-4-1 17:18:25:373:932 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:25:374:912 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/rat_sda_lost_self_update.txt b/result/result/tidb_per_4.0.5/repeatable-read/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..95584d5f --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/rat_sda_lost_self_update.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_lost_self_update test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_lost_self_update test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:26:496:957 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:26:498:608 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:26:597:25 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:18:26:697:678 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:18:26:713:125 + Q4 finished at: 2022-4-1 17:18:26:747:442 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:26:797:191 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:26:799:257 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:26:800:94 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/rat_sda_non_repeatable_read.txt b/result/result/tidb_per_4.0.5/repeatable-read/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..5d195ed9 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/rat_sda_non_repeatable_read.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:23:881:129 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:23:882:814 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:23:981:190 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:23:982:928 +Q5-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q5 finished at: 2022-4-1 17:18:24:81:768 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:24:181:367 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:24:281:132 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:24:283:324 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:24:284:186 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt b/result/result/tidb_per_4.0.5/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt new file mode 100644 index 00000000..d6b6c4a7 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_delete.txt @@ -0,0 +1,60 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_delete #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_delete test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:25:613:427 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:18:25:615:709 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:25:713:446 + Q4-T2 execute sql: 'DELETE FROM t1 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:25:715:99 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:25:716:215 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + (0,0) + (1) expected_result: + null + *(2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:18:25:814:728 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:25:815:707 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + null + (1) expected_result: + (0,0) + *(2) expected_result: + null + + Q8 finished at: 2022-4-1 17:18:25:817:454 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:25:818:300 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt b/result/result/tidb_per_4.0.5/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt new file mode 100644 index 00000000..42195cfc --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/rat_sda_non_repeatable_read_predicate_based-phantom_insert.txt @@ -0,0 +1,59 @@ +#### db_type: tidb #### +#### test_type: sda_non_repeatable_read_predicate_based-phantom_insert #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute opt: 'COMMIT'; + +----------rat_sda_non_repeatable_read_predicate_based-phantom_insert test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:26:53:8 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q2 finished at: 2022-4-1 17:18:26:57:856 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:26:153:74 + Q4-T2 execute sql: 'INSERT INTO t1 VALUES (0, 0);' + Q4 finished at: 2022-4-1 17:18:26:155:17 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:26:156:234 +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + +Q6 finished at: 2022-4-1 17:18:26:254:22 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:26:255:10 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + *(2) expected_result: + (0,0) + + Q8 finished at: 2022-4-1 17:18:26:256:875 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:26:257:770 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/tidb_half-predicate-read-skew_repeatable-read.txt b/result/result/tidb_per_4.0.5/repeatable-read/tidb_half-predicate-read-skew_repeatable-read.txt new file mode 100644 index 00000000..9392d87b --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/tidb_half-predicate-read-skew_repeatable-read.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: half-predicate-read-skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------tidb_half-predicate-read-skew test prepare---------- +T1 execute sql: 'DROP TABLE IF EXISTS t1;' +T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + +----------tidb_half-predicate-read-skew test run---------- +T1 execute sql: 'select * from t1 where v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + + T2 execute sql: 'update t1 set v=2 where k=1;' + T2 execute sql: 'insert into t1 values(0,0);' +T1 execute sql: 'select * from t1 where k=1;' + current_result: + (1,1) + *(1) expected_result: + (1,1) + (2) expected_result: + (1,2) + + T3 execute sql: 'select * from t1;' + current_result: + (0,0) (1,2) + *(1) expected_result: + (0,0) (1,2) + *(2) expected_result: + (0,0) (1,2) + + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/tidb_half-predicate-write-skew_repeatable-read.txt b/result/result/tidb_per_4.0.5/repeatable-read/tidb_half-predicate-write-skew_repeatable-read.txt new file mode 100644 index 00000000..ef528ad4 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/tidb_half-predicate-write-skew_repeatable-read.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: half-predicate-write-skew #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------tidb_half-predicate-write-skew test prepare---------- +T1 execute sql: 'DROP TABLE IF EXISTS t1;' +T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +T1 execute sql: 'INSERT INTO t1 VALUES (1, 1);' + +----------tidb_half-predicate-write-skew test run---------- +T1 execute sql: 'select * from t1 where v=0;' + current_result: + null + *(1) expected_result: + null + (2) expected_result: + (0,0) + + T2 execute sql: 'select * from t1 where k=1;' + current_result: + (1,1) + (1) expected_result: + (1,2) + *(2) expected_result: + (1,1) + +T1 execute sql: 'update t1 set v=2 where k=1;' + T2 execute sql: 'insert into t1 values(0,0);' + T3 execute sql: 'select * from t1;' + current_result: + (0,0) (1,2) + *(1) expected_result: + (0,0) (1,2) + *(2) expected_result: + (0,0) (1,2) + + +Test Result: Exception +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_double_write_skew2_committed.txt b/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..b5987602 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,56 @@ +#### db_type: tidb #### +#### test_type: dda_double_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_double_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_double_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:39:456:404 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:39:458:134 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:39:556:527 + Q4-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:39:558:289 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + *(1) expected_result: + (1,0) + (2) expected_result: + (1,1) + +Q7 finished at: 2022-4-1 17:18:39:664:20 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:39:669:237 + Q5 finished at: 2022-4-1 17:18:39:669:533 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:39:670:828 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:39:673:157 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:39:674:42 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_full_write_skew_c1.txt b/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..ff5b2b98 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,35 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:39:919:549 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:39:921:293 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:40:19:806 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:40:21:628 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:18:40:140:366 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:40:219:938 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:18:40:738:250 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_full_write_skew_c2.txt b/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_full_write_skew_c2.txt new file mode 100644 index 00000000..a5bc1ae6 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_full_write_skew_c2.txt @@ -0,0 +1,35 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:40:992:612 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:40:994:500 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:41:92:591 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:41:94:573 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:18:41:217:550 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:41:294:149 +Q6 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q6 failed at: 2022-4-1 17:18:41:815:491 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_full_write_skew_committed.txt b/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..2d318df2 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,35 @@ +#### db_type: tidb #### +#### test_type: dda_full_write_skew_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_full_write_skew_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_full_write_skew_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:42:64:173 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:42:65:861 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:42:164:117 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:42:165:846 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q5 finished at: 2022-4-1 17:18:42:284:635 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:42:285:986 +Q7 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q7 failed at: 2022-4-1 17:18:42:982:480 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew1_c1.txt b/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..5642a1f3 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:43:233:215 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:43:234:834 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:43:333:235 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:43:335:173 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:43:336:759 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:43:543:321 +Q6 finished at: 2022-4-1 17:18:43:543:771 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:43:545:119 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:43:547:365 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:43:548:404 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew1_c2.txt b/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew1_c2.txt new file mode 100644 index 00000000..9aee3526 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew1_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew1_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew1_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew1_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:43:800:846 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,1) + +Q2 finished at: 2022-4-1 17:18:43:802:505 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:43:904:125 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:43:906:337 + Q5-T2 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q5 finished at: 2022-4-1 17:18:43:908:331 +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:44:121:557 +Q6 finished at: 2022-4-1 17:18:44:121:880 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:44:201:368 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,1) (1,1) + (1) expected_result: + (0,1) (1,2) + *(2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:44:203:758 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:44:204:741 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew2_c1.txt b/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..55275f9c --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:44:464:798 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:44:466:616 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:44:567:1 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:44:569:647 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:18:44:670:231 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:44:685:987 + Q5 finished at: 2022-4-1 17:18:44:718:311 + Q8-T2 execute opt: 'COMMIT'; + Q8 finished at: 2022-4-1 17:18:44:765:234 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:44:767:659 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:44:768:716 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew2_c2.txt b/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew2_c2.txt new file mode 100644 index 00000000..c38774ba --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew2_c2.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:45:23:698 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:45:25:469 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:45:123:609 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:45:125:363 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q6 finished at: 2022-4-1 17:18:45:232:662 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:45:430:631 + Q5 finished at: 2022-4-1 17:18:45:477:930 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:45:479:338 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:45:482:74 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:45:483:163 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew2_committed.txt b/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..8b8510dd --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,54 @@ +#### db_type: tidb #### +#### test_type: dda_read_write_skew2_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_dda_read_write_skew2_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_dda_read_write_skew2_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:45:733:818 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:45:735:590 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:45:833:625 + Q4-T2 execute sql: 'SELECT * FROM t1 WHERE k=1;' + current_result: + (1,0) + (1) expected_result: + (1,1) + *(2) expected_result: + (1,0) + + Q4 finished at: 2022-4-1 17:18:45:835:455 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q7-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=1;' +Q7 finished at: 2022-4-1 17:18:45:941:569 +Q8-T1 execute opt: 'COMMIT'; +Q8 finished at: 2022-4-1 17:18:45:957:453 + Q5 finished at: 2022-4-1 17:18:45:957:842 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:45:959:216 + Q9-T3 execute sql: 'SELECT * FROM t1 ORDER BY k;' + current_result: + (0,2) (1,1) + *(1) expected_result: + (0,2) (1,1) + (2) expected_result: + (0,1) (1,1) + + Q9 finished at: 2022-4-1 17:18:45:964:820 + Q10-T3 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:45:965:963 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/wat_mda_step_wat_c1.txt b/result/result/tidb_per_4.0.5/repeatable-read/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..e59c9f71 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/wat_mda_step_wat_c1.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:46:221:206 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:46:223:106 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:46:321:192 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:46:323:25 + Q5-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q6-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q6 finished at: 2022-4-1 17:18:46:424:27 + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:18:46:434:556 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q5 finished at: 2022-4-1 17:18:46:534:511 + Q11-T2 execute opt: 'COMMIT'; + Q11 finished at: 2022-4-1 17:18:46:628:209 + Q8 finished at: 2022-4-1 17:18:46:628:520 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:46:721:954 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:18:47:434:504 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/wat_mda_step_wat_c2.txt b/result/result/tidb_per_4.0.5/repeatable-read/wat_mda_step_wat_c2.txt new file mode 100644 index 00000000..2bd1da08 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/wat_mda_step_wat_c2.txt @@ -0,0 +1,44 @@ +#### db_type: tidb #### +#### test_type: mda_step_wat_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_mda_step_wat_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (1, 0);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (2, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_mda_step_wat_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:47:689:987 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:47:691:750 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:47:790:686 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=1;' + Q4 finished at: 2022-4-1 17:18:47:792:661 + Q5-T3 execute sql: 'BEGIN PESSIMISTIC;' + Q5 finished at: 2022-4-1 17:18:47:892:71 + Q6-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q7-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=2;' + Q7 finished at: 2022-4-1 17:18:48:95:309 + Q8-T3 execute sql: 'UPDATE t1 SET v=3 WHERE k=1;' +Q9-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=2;' + Q6 finished at: 2022-4-1 17:18:48:200:495 + Q10-T2 execute opt: 'COMMIT'; + Q10 finished at: 2022-4-1 17:18:48:302:211 + Q8 finished at: 2022-4-1 17:18:48:342:272 + Q12-T3 execute opt: 'COMMIT'; + Q12 finished at: 2022-4-1 17:18:48:491:37 +Q9 failed reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction errcode: HY000 +Q9 failed at: 2022-4-1 17:18:49:100:688 + +Test Result: Rollback +Reason: [MySQL][ODBC 8.0(w) Driver][mysqld-5.7.25-TiDB-v4.0.10]Deadlock found when trying to get lock; try restarting transaction + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/wat_sda_dirty_write_1abort.txt b/result/result/tidb_per_4.0.5/repeatable-read/wat_sda_dirty_write_1abort.txt new file mode 100644 index 00000000..c2ae16f5 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/wat_sda_dirty_write_1abort.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_1abort #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_1abort test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_1abort test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:35:621:612 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:35:623:482 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:35:721:575 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'ROLLBACK'; +Q5 finished at: 2022-4-1 17:18:35:822:416 + Q4 finished at: 2022-4-1 17:18:35:822:549 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:35:921:778 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:18:35:923:951 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:18:35:948:426 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:35:949:734 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/wat_sda_dirty_write_2commit.txt b/result/result/tidb_per_4.0.5/repeatable-read/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..f62b8419 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_dirty_write_2commit #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_dirty_write_2commit test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_dirty_write_2commit test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:36:171:816 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:36:173:508 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:36:271:738 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute opt: 'COMMIT'; +Q5 finished at: 2022-4-1 17:18:36:378:337 + Q4 finished at: 2022-4-1 17:18:36:378:621 + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:36:472:270 + Q7-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + (1) expected_result: + (0,1) + *(2) expected_result: + (0,2) + + Q7 finished at: 2022-4-1 17:18:36:474:591 + Q8-T3 execute sql: 'DROP TABLE IF EXISTS t1;' + Q8 finished at: 2022-4-1 17:18:36:496:216 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:36:497:395 + +The current result is consistent with the [(2) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/wat_sda_full_write.txt b/result/result/tidb_per_4.0.5/repeatable-read/wat_sda_full_write.txt new file mode 100644 index 00000000..79754370 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/wat_sda_full_write.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_full_write #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:36:726:925 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:36:728:791 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:36:826:967 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q5-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q5 finished at: 2022-4-1 17:18:36:927:342 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:18:36:932:775 + Q4 finished at: 2022-4-1 17:18:36:933:137 + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:37:27:145 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:18:37:29:486 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:37:30:425 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/wat_sda_full_write_committed.txt b/result/result/tidb_per_4.0.5/repeatable-read/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..c6cb147c --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/wat_sda_full_write_committed.txt @@ -0,0 +1,46 @@ +#### db_type: tidb #### +#### test_type: sda_full_write_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_full_write_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_full_write_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:37:277:443 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:37:279:91 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:37:377:292 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'UPDATE t1 SET v=3 WHERE k=0;' +Q6 finished at: 2022-4-1 17:18:37:477:773 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:37:488:445 + Q4 finished at: 2022-4-1 17:18:37:488:738 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:37:489:903 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,3) + + Q8 finished at: 2022-4-1 17:18:37:491:986 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:37:492:963 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/wat_sda_lost_self_update_committed.txt b/result/result/tidb_per_4.0.5/repeatable-read/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..74875ee6 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,53 @@ +#### db_type: tidb #### +#### test_type: sda_lost_self_update_committed #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_self_update_committed test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_self_update_committed test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:38:953:266 +Q2-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' +Q2 finished at: 2022-4-1 17:18:38:955:48 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:39:53:300 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' +Q6-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,1) + *(1) expected_result: + (0,1) + *(2) expected_result: + (0,1) + +Q6 finished at: 2022-4-1 17:18:39:153:833 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:39:169:936 + Q4 finished at: 2022-4-1 17:18:39:203:317 + Q5-T2 execute opt: 'COMMIT'; + Q5 finished at: 2022-4-1 17:18:39:204:807 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,2) + *(1) expected_result: + (0,2) + (2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:39:207:130 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:39:208:236 + +The current result is consistent with the [(1) expected_result] of serial scheduling + +Test Result: Avoid +Reason: Data anomaly did not occur and the data is consistent + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/wat_sda_lost_update_c1.txt b/result/result/tidb_per_4.0.5/repeatable-read/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..78524700 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/wat_sda_lost_update_c1.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c1 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c1 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c1 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:37:735:732 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:18:37:737:319 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:37:835:664 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:37:837:558 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q7-T2 execute opt: 'COMMIT'; + Q7 finished at: 2022-4-1 17:18:38:50:696 +Q5 finished at: 2022-4-1 17:18:38:51:106 +Q6-T1 execute opt: 'COMMIT'; +Q6 finished at: 2022-4-1 17:18:38:52:418 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:38:54:550 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:38:55:608 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/repeatable-read/wat_sda_lost_update_c2.txt b/result/result/tidb_per_4.0.5/repeatable-read/wat_sda_lost_update_c2.txt new file mode 100644 index 00000000..047ebb94 --- /dev/null +++ b/result/result/tidb_per_4.0.5/repeatable-read/wat_sda_lost_update_c2.txt @@ -0,0 +1,51 @@ +#### db_type: tidb #### +#### test_type: sda_lost_update_c2 #### +#### isolation: repeatable-read #### + +current_result: The query result of the current SQL statement. Each row of table is separated by a space, and the fields in each row are separated by commas +expected_result: The expected result is the expected query result for each SQL that conforms to the serializability theory + +set TXN_ISOLATION = repeatable-read for each session +----------wat_sda_lost_update_c2 test prepare---------- +Q0-T1 execute sql: 'DROP TABLE IF EXISTS t1;' +Q0-T1 execute sql: 'CREATE TABLE t1 (k INT PRIMARY KEY, v INT);' +Q0-T1 execute sql: 'INSERT INTO t1 VALUES (0, 0);' +Q0-T1 execute opt: 'COMMIT'; + +----------wat_sda_lost_update_c2 test run---------- +Q1-T1 execute sql: 'BEGIN PESSIMISTIC;' +Q1 finished at: 2022-4-1 17:18:38:302:254 +Q2-T1 execute sql: 'SELECT * FROM t1 WHERE k=0;' + current_result: + (0,0) + *(1) expected_result: + (0,0) + (2) expected_result: + (0,2) + +Q2 finished at: 2022-4-1 17:18:38:304:184 + Q3-T2 execute sql: 'BEGIN PESSIMISTIC;' + Q3 finished at: 2022-4-1 17:18:38:402:343 + Q4-T2 execute sql: 'UPDATE t1 SET v=2 WHERE k=0;' + Q4 finished at: 2022-4-1 17:18:38:404:211 +Q5-T1 execute sql: 'UPDATE t1 SET v=1 WHERE k=0;' + Q6-T2 execute opt: 'COMMIT'; + Q6 finished at: 2022-4-1 17:18:38:612:120 +Q5 finished at: 2022-4-1 17:18:38:612:440 +Q7-T1 execute opt: 'COMMIT'; +Q7 finished at: 2022-4-1 17:18:38:702:519 + Q8-T3 execute sql: 'SELECT * FROM t1;' + current_result: + (0,1) + (1) expected_result: + (0,2) + *(2) expected_result: + (0,1) + + Q8 finished at: 2022-4-1 17:18:38:704:894 + Q9-T3 execute opt: 'COMMIT'; + Q9 finished at: 2022-4-1 17:18:38:706:128 + +Test Result: Anomaly +Reason: Data anomaly is not recognized by the database, resulting in data inconsistencies + diff --git a/result/result/tidb_per_4.0.5/result_summary/read-committed_total-result.txt b/result/result/tidb_per_4.0.5/result_summary/read-committed_total-result.txt new file mode 100644 index 00000000..38745346 --- /dev/null +++ b/result/result/tidb_per_4.0.5/result_summary/read-committed_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Anomaly + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Anomaly + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Avoid + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Anomaly + +rat_dda_read_skew_predicate_based_insert: Anomaly + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Anomaly + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Anomaly + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Anomaly + +iat_mda_step_iat_cross_phenomenon: Anomaly + +iat_mda_step_iat_causality_violation_anomaly: Anomaly + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/result/result/tidb_per_4.0.5/result_summary/repeatable-read_total-result.txt b/result/result/tidb_per_4.0.5/result_summary/repeatable-read_total-result.txt new file mode 100644 index 00000000..42d5fc7b --- /dev/null +++ b/result/result/tidb_per_4.0.5/result_summary/repeatable-read_total-result.txt @@ -0,0 +1,108 @@ +rat_sda_dirty_read: Avoid + +rat_sda_non_repeatable_read: Avoid + +rat_sda_intermediate_read: Avoid + +rat_sda_intermediate_read_committed: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_delete: Avoid + +rat_sda_non_repeatable_read_predicate_based-phantom_insert: Avoid + +rat_sda_lost_self_update: Avoid + +rat_dda_write_read_skew: Anomaly + +rat_dda_write_read_skew_committed: Anomaly + +rat_dda_double_write_skew1: Avoid + +rat_dda_double_write_skew1_committed: Avoid + +rat_dda_double_write_skew2: Avoid + +rat_dda_read_skew: Avoid + +rat_dda_read_skew_predicate_based_delete: Avoid + +rat_dda_read_skew_predicate_based_insert: Avoid + +rat_dda_read_skew2: Avoid + +rat_dda_read_skew2_committed: Avoid + +rat_mda_step_rat: Anomaly + +rat_mda_step_rat_long_fork: Avoid + +rat_mda_step_rat_predicate_based_delete: Anomaly + +rat_mda_step_rat_predicate_based_insert: Anomaly + +wat_sda_dirty_write_1abort: Avoid + +wat_sda_dirty_write_2commit: Avoid + +wat_sda_full_write: Avoid + +wat_sda_full_write_committed: Avoid + +wat_sda_lost_update_c1: Anomaly + +wat_sda_lost_update_c2: Anomaly + +wat_sda_lost_self_update_committed: Avoid + +wat_dda_double_write_skew2_committed: Avoid + +wat_dda_full_write_skew_c1: Rollback + +wat_dda_full_write_skew_c2: Rollback + +wat_dda_full_write_skew_committed: Rollback + +wat_dda_read_write_skew1_c1: Anomaly + +wat_dda_read_write_skew1_c2: Anomaly + +wat_dda_read_write_skew2_c1: Anomaly + +wat_dda_read_write_skew2_c2: Anomaly + +wat_dda_read_write_skew2_committed: Anomaly + +wat_mda_step_wat_c1: Rollback + +wat_mda_step_wat_c2: Rollback + +iat_sda_non_repeatable_read_committed: Avoid + +iat_sda_lost_update_committed: Anomaly + +iat_dda_read_skew_committed: Avoid + +iat_dda_read_write_skew1_committed: Anomaly + +iat_dda_write_skew: Anomaly + +iat_dda_write_skew_predicate_based-intersecting_data: Anomaly + +iat_dda_write_skew_predicate_based-overdraft_protection: Anomaly + +iat_dda_write_skew_committed: Anomaly + +iat_mda_step_iat: Anomaly + +iat_mda_step_iat_predicate_based_delete: Anomaly + +iat_mda_step_iat_predicate_based_insert: Anomaly + +iat_mda_step_iat_uname_anomaly: Avoid + +iat_mda_step_iat_cross_phenomenon: Avoid + +iat_mda_step_iat_causality_violation_anomaly: Avoid + +iat_mda_step_iat_read_only_transaction_anomaly: Anomaly + diff --git a/result/testcase/iat_dda_read_skew_committed.txt b/result/testcase/iat_dda_read_skew_committed.txt new file mode 100644 index 00000000..6dc7af49 --- /dev/null +++ b/result/testcase/iat_dda_read_skew_committed.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=1 WHERE k=1; +5-2-UPDATE t1 SET v=1 WHERE k=0; +6-2-COMMIT; +7-1-SELECT * from t1 WHERE k=1; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-0,0 +7-1,0 +9-0,1 1,1 + +2-0,1 +7-1,1 +9-0,1 1,1 +} \ No newline at end of file diff --git a/result/testcase/iat_dda_read_write_skew1_committed.txt b/result/testcase/iat_dda_read_write_skew1_committed.txt new file mode 100644 index 00000000..794a5a36 --- /dev/null +++ b/result/testcase/iat_dda_read_write_skew1_committed.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=1; +5-2-UPDATE t1 SET v=1 WHERE k=0; +6-2-COMMIT; +7-1-UPDATE t1 SET v=1 WHERE k=1; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-0,0 +9-0,1 1,2 + +2-0,1 +9-0,1 1,1 +} diff --git a/result/testcase/iat_dda_write_skew.txt b/result/testcase/iat_dda_write_skew.txt new file mode 100644 index 00000000..744cb016 --- /dev/null +++ b/result/testcase/iat_dda_write_skew.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where k=0; +3-2-BEGIN; +4-2-select * from t1 where k=1; +5-2-update t1 set v=1 where k=0; +6-1-update t1 set v=1 where k=1; +7-1-COMMIT; +8-2-COMMIT; +9-3-select * from t1 ORDER BY k; +8-3-COMMIT; + +serializable { +2-0,0 +4-1,1 +9-0,1 1,1 + +2-0,1 +4-1,0 +9-0,1 1,1 +} diff --git a/result/testcase/iat_dda_write_skew_committed.txt b/result/testcase/iat_dda_write_skew_committed.txt new file mode 100644 index 00000000..d897428d --- /dev/null +++ b/result/testcase/iat_dda_write_skew_committed.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where k=0; +3-2-BEGIN; +4-2-select * from t1 where k=1; +5-2-update t1 set v=1 where k=0; +6-2-COMMIT; +7-1-update t1 set v=1 where k=1; +8-1-COMMIT; +9-3-select * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-0,0 +4-1,1 +9-0,1 1,1 + +2-0,1 +4-1,0 +9-0,1 1,1 +} diff --git a/result/testcase/iat_dda_write_skew_pred_insert.txt b/result/testcase/iat_dda_write_skew_pred_insert.txt new file mode 100644 index 00000000..575b255b --- /dev/null +++ b/result/testcase/iat_dda_write_skew_pred_insert.txt @@ -0,0 +1,25 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where v<2; +3-2-BEGIN; +4-2-select * from t1 where v>2; +5-2-INSERT INTO t1 VALUES (0, 1); +6-1-INSERT INTO t1 VALUES (1, 3); +7-1-COMMIT; +8-2-COMMIT; +9-3-select * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-null +4-1,3 +9-0,1 1,3 + +2-0,1 +4-null +9-0,1 1,3 +} + diff --git a/result/testcase/iat_mda_step_iat.txt b/result/testcase/iat_mda_step_iat.txt new file mode 100644 index 00000000..9f1a518a --- /dev/null +++ b/result/testcase/iat_mda_step_iat.txt @@ -0,0 +1,53 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-select * from t1 where k=2; +3-2-BEGIN; +4-2-select * from t1 where k=0; +5-3-BEGIN; +6-3-select * from t1 where k=1; +7-1-update t1 set v=1 where k=0; +8-2-update t1 set v=1 where k=1; +9-3-update t1 set v=1 where k=2; +10-1-COMMIT; +11-2-COMMIT; +12-3-COMMIT; +13-4-select * from t1 ORDER BY k; +14-4-COMMIT; + +serializable { +2-2,0 +4-0,1 +6-1,1 +13-0,1 1,1 2,1 + +2-2,0 +4-0,1 +6-1,0 +13-0,1 1,1 2,1 + +2-2,0 +4-0,0 +6-1,1 +13-0,1 1,1 2,1 + +2-2,1 +4-0,0 +6-1,1 +13-0,1 1,1 2,1 + +2-2,1 +4-0,1 +6-1,0 +13-0,1 1,1 2,1 + +2-2,1 +4-0,0 +6-1,0 +13-0,1 1,1 2,1 +} diff --git a/result/testcase/iat_sda_lost_update_committed.txt b/result/testcase/iat_sda_lost_update_committed.txt new file mode 100644 index 00000000..b8ecf732 --- /dev/null +++ b/result/testcase/iat_sda_lost_update_committed.txt @@ -0,0 +1,22 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-2-COMMIT; +6-1-UPDATE t1 SET v=1 WHERE k=0; +7-1-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +2-0,0 +8-0,2 + +2-0,2 +8-0,1 +} diff --git a/result/testcase/iat_sda_non_repeatable_read_committed.txt b/result/testcase/iat_sda_non_repeatable_read_committed.txt new file mode 100644 index 00000000..ab3a4efa --- /dev/null +++ b/result/testcase/iat_sda_non_repeatable_read_committed.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=1 WHERE k=0; +5-2-COMMIT; +6-1-SELECT * from t1 WHERE k=0; +7-1-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +2-0,0 +6-0,0 +8-0,1 + +2-0,1 +6-0,1 +8-0,1 +} diff --git a/result/testcase/rat_dda_double_write_skew1.txt b/result/testcase/rat_dda_double_write_skew1.txt new file mode 100644 index 00000000..83deae26 --- /dev/null +++ b/result/testcase/rat_dda_double_write_skew1.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-begin; +2-1-update t1 set v=1 where k=0; +3-2-begin; +4-2-update t1 set v=1 where k=1; +5-2-select * from t1 where k=0; +6-1-update t1 set v=2 where k=1; +7-2-commit; +8-1-commit; +9-3-SELECT * FROM t1 ORDER BY k; +10-3-COMMIT; + +serializable { +5-0,1 +9-0,1 1,1 + +5-0,0 +9-0,1 1,2 +} \ No newline at end of file diff --git a/result/testcase/rat_dda_double_write_skew1_committed.txt b/result/testcase/rat_dda_double_write_skew1_committed.txt new file mode 100644 index 00000000..bbe68e15 --- /dev/null +++ b/result/testcase/rat_dda_double_write_skew1_committed.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-begin; +2-1-update t1 set v=1 where k=0; +3-2-begin; +4-2-update t1 set v=1 where k=1; +5-2-select * from t1 where k=0; +6-2-commit; +7-1-update t1 set v=2 where k=1; +8-1-commit; +9-3-SELECT * FROM t1 ORDER BY k; +10-3-COMMIT; + +serializable { +5-0,1 +9-0,1 1,1 + +5-0,0 +9-0,1 1,2 +} diff --git a/result/testcase/rat_dda_double_write_skew2.txt b/result/testcase/rat_dda_double_write_skew2.txt new file mode 100644 index 00000000..9e81e864 --- /dev/null +++ b/result/testcase/rat_dda_double_write_skew2.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-begin; +2-1-update t1 set v=1 where k=0; +3-2-begin; +4-2-update t1 set v=1 where k=1; +5-2-update t1 set v=2 where k=0; +6-1-select * from t1 where k=1; +7-1-commit; +8-2-commit; +9-3-SELECT * FROM t1 ORDER BY k; +10-3-COMMIT; + +serializable { +6-1,0 +9-0,2 1,1 + +6-1,1 +9-0,1 1,1 +} \ No newline at end of file diff --git a/result/testcase/rat_dda_read_skew.txt b/result/testcase/rat_dda_read_skew.txt new file mode 100644 index 00000000..648f49b3 --- /dev/null +++ b/result/testcase/rat_dda_read_skew.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=1 WHERE k=1; +5-2-UPDATE t1 SET v=1 WHERE k=0; +6-1-SELECT * from t1 WHERE k=1; +7-2-COMMIT; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-0,0 +6-1,0 +9-0,1 1,1 + +2-0,1 +6-1,1 +9-0,1 1,1 +} diff --git a/result/testcase/rat_dda_read_skew2.txt b/result/testcase/rat_dda_read_skew2.txt new file mode 100644 index 00000000..a3a4691d --- /dev/null +++ b/result/testcase/rat_dda_read_skew2.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k=1; +5-2-SELECT * from t1 WHERE k=0; +6-1-UPDATE t1 SET v=1 WHERE k=1; +7-1-COMMIT; +8-2-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +4-1,1 +5-0,1 +9-0,1 1,1 + +4-1,0 +5-0,0 +9-0,1 1,1 +} diff --git a/result/testcase/rat_dda_read_skew2_committed.txt b/result/testcase/rat_dda_read_skew2_committed.txt new file mode 100644 index 00000000..4a43fdbc --- /dev/null +++ b/result/testcase/rat_dda_read_skew2_committed.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k=1; +5-2-SELECT * from t1 WHERE k=0; +6-2-COMMIT; +7-1-UPDATE t1 SET v=1 WHERE k=1; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +4-1,1 +5-0,1 +9-0,1 1,1 + +4-1,0 +5-0,0 +9-0,1 1,1 +} \ No newline at end of file diff --git a/result/testcase/rat_dda_write_read_skew.txt b/result/testcase/rat_dda_write_read_skew.txt new file mode 100644 index 00000000..90b9ada2 --- /dev/null +++ b/result/testcase/rat_dda_write_read_skew.txt @@ -0,0 +1,26 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-update t1 set v=1 where k=0; +3-2-BEGIN; +4-2-update t1 set v=1 where k=1; +5-2-select * from t1 where k=0; +6-1-select * from t1 where k=1; +7-2-COMMIT; +8-1-commit; +9-3-select * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +5-0,1 +6-1,0 +9-0,1 1,1 + +5-0,0 +6-1,1 +9-0,1 1,1 +} \ No newline at end of file diff --git a/result/testcase/rat_dda_write_read_skew_committed.txt b/result/testcase/rat_dda_write_read_skew_committed.txt new file mode 100644 index 00000000..764cb1a2 --- /dev/null +++ b/result/testcase/rat_dda_write_read_skew_committed.txt @@ -0,0 +1,29 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-update t1 set v=1 where k=0; +3-2-BEGIN; +4-2-update t1 set v=1 where k=1; +5-2-select * from t1 where k=0; +6-2-COMMIT; +7-1-select * from t1 where k=1; +8-1-COMMIT; +9-3-select * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +5-0,1 +7-1,0 +9-0,1 1,1 + +5-0,0 +7-1,1 +9-0,1 1,1 +} + + + diff --git a/result/testcase/rat_mda_step_rat.txt b/result/testcase/rat_mda_step_rat.txt new file mode 100644 index 00000000..6a3e0eb3 --- /dev/null +++ b/result/testcase/rat_mda_step_rat.txt @@ -0,0 +1,53 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-update t1 set v=1 where k=0; +3-2-BEGIN; +4-2-update t1 set v=1 where k=1; +5-2-select * from t1 where k=0; +6-3-BEGIN; +7-3-update t1 set v=1 where k=2; +8-3-select * from t1 where k=1; +9-1-select * from t1 where k=2; +10-1-COMMIT; +11-2-COMMIT; +12-3-COMMIT; +13-4-select * from t1 ORDER BY k; +14-4-COMMIT; + +serializable { +5-0,1 +8-1,1 +9-2,0 +13-0,1 1,1 2,1 + +5-0,1 +8-1,0 +9-2,0 +13-0,1 1,1 2,1 + +5-0,0 +8-1,1 +9-2,0 +13-0,1 1,1 2,1 + +5-0,0 +8-1,1 +9-2,1 +13-0,1 1,1 2,1 + +5-0,1 +8-1,0 +9-2,1 +13-0,1 1,1 2,1 + +5-0,0 +8-1,0 +9-2,1 +13-0,1 1,1 2,1 +} diff --git a/result/testcase/rat_sda_dirty_read.txt b/result/testcase/rat_sda_dirty_read.txt new file mode 100644 index 00000000..51a54867 --- /dev/null +++ b/result/testcase/rat_sda_dirty_read.txt @@ -0,0 +1,18 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k = 0; +5-1-ROLLBACK; +6-2-COMMIT; +7-3-SELECT * FROM t1; +8-3-COMMIT; + +serializable { +4-0,0 +7-0,0 +} diff --git a/result/testcase/rat_sda_intermediate_read.txt b/result/testcase/rat_sda_intermediate_read.txt new file mode 100644 index 00000000..7054534f --- /dev/null +++ b/result/testcase/rat_sda_intermediate_read.txt @@ -0,0 +1,23 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k=0; +5-1-UPDATE t1 SET v=2 WHERE k=0; +6-2-COMMIT; +7-1-COMMIT; +8-3-SELECT * from t1; +9-3-COMMIT; + +serializable { +4-0,2 +8-0,2 + +4-0,0 +8-0,2 +} + diff --git a/result/testcase/rat_sda_intermediate_read_committed.txt b/result/testcase/rat_sda_intermediate_read_committed.txt new file mode 100644 index 00000000..cd9132fe --- /dev/null +++ b/result/testcase/rat_sda_intermediate_read_committed.txt @@ -0,0 +1,23 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k=0; +5-2-COMMIT; +6-1-UPDATE t1 SET v=2 WHERE k=0; +7-1-COMMIT; +8-3-SELECT * from t1; +9-3-COMMIT; + +serializable { +4-0,2 +8-0,2 + +4-0,0 +8-0,2 +} + diff --git a/result/testcase/rat_sda_lost_self_update.txt b/result/testcase/rat_sda_lost_self_update.txt new file mode 100644 index 00000000..31745804 --- /dev/null +++ b/result/testcase/rat_sda_lost_self_update.txt @@ -0,0 +1,22 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-1-SELECT * from t1 WHERE k=0; +6-1-COMMIT; +7-2-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +5-0,1 +8-0,2 + +5-0,1 +8-0,1 +} diff --git a/result/testcase/rat_sda_non_repeatable_read.txt b/result/testcase/rat_sda_non_repeatable_read.txt new file mode 100644 index 00000000..18d8be0b --- /dev/null +++ b/result/testcase/rat_sda_non_repeatable_read.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN;; +4-2-UPDATE t1 SET v=1 WHERE k=0; +5-1-SELECT * from t1 WHERE k=0; +6-2-COMMIT; +7-1-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +2-0,0 +5-0,0 +8-0,1 + +2-0,1 +5-0,1 +8-0,1 +} \ No newline at end of file diff --git a/result/testcase/rat_sda_non_repeatable_read_pred_insert.txt b/result/testcase/rat_sda_non_repeatable_read_pred_insert.txt new file mode 100644 index 00000000..ec8a64b7 --- /dev/null +++ b/result/testcase/rat_sda_non_repeatable_read_pred_insert.txt @@ -0,0 +1,23 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE v>0; +3-2-BEGIN;; +4-2-INSERT INTO t1 VALUES (0, 1); +5-1-SELECT * from t1 WHERE v>0; +6-2-COMMIT; +7-1-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +2-null +5-null +8-0,1 + +2-0,1 +5-0,1 +8-0,1 +} \ No newline at end of file diff --git a/result/testcase/wat_dda_double_write_skew2_committed.txt b/result/testcase/wat_dda_double_write_skew2_committed.txt new file mode 100644 index 00000000..c925c802 --- /dev/null +++ b/result/testcase/wat_dda_double_write_skew2_committed.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-begin; +2-1-update t1 set v=1 where k=0; +3-2-begin; +4-2-update t1 set v=1 where k=1; +5-2-update t1 set v=2 where k=0; +6-2-commit; +7-1-select * from t1 where k=1; +8-1-commit; +9-3-SELECT * FROM t1 ORDER BY k; +10-3-COMMIT; + +serializable { +7-1,0 +9-0,2 1,1 + +7-1,1 +9-0,1 1,1 +} \ No newline at end of file diff --git a/result/testcase/wat_dda_full_write_skew_c1.txt b/result/testcase/wat_dda_full_write_skew_c1.txt new file mode 100644 index 00000000..2ad62d13 --- /dev/null +++ b/result/testcase/wat_dda_full_write_skew_c1.txt @@ -0,0 +1,22 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=1; +5-2-UPDATE t1 SET v=2 WHERE k=0; +6-1-UPDATE t1 SET v=1 WHERE k=1; +7-1-COMMIT; +8-2-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +9-0,1 1,1 + +9-0,2 1,2 +} diff --git a/result/testcase/wat_dda_full_write_skew_committed.txt b/result/testcase/wat_dda_full_write_skew_committed.txt new file mode 100644 index 00000000..de5b71d0 --- /dev/null +++ b/result/testcase/wat_dda_full_write_skew_committed.txt @@ -0,0 +1,22 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=1; +5-2-UPDATE t1 SET v=2 WHERE k=0; +6-2-COMMIT; +7-1-UPDATE t1 SET v=1 WHERE k=1; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +9-0,1 1,1 + +9-0,2 1,2 +} diff --git a/result/testcase/wat_dda_read_write_skew1_c1.txt b/result/testcase/wat_dda_read_write_skew1_c1.txt new file mode 100644 index 00000000..e129c548 --- /dev/null +++ b/result/testcase/wat_dda_read_write_skew1_c1.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=1; +5-2-UPDATE t1 SET v=1 WHERE k=0; +6-1-UPDATE t1 SET v=1 WHERE k=1; +7-1-COMMIT; +8-2-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +2-0,0 +9-0,1 1,2 + +2-0,1 +9-0,1 1,1 +} diff --git a/result/testcase/wat_dda_read_write_skew2_c1.txt b/result/testcase/wat_dda_read_write_skew2_c1.txt new file mode 100644 index 00000000..2b92f31a --- /dev/null +++ b/result/testcase/wat_dda_read_write_skew2_c1.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k=1; +5-2-UPDATE t1 SET v=2 WHERE k=0; +6-1-UPDATE t1 SET v=1 WHERE k=1; +7-1-COMMIT; +8-2-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +4-1,1 +9-0,2 1,1 + +4-1,0 +9-0,1 1,1 +} diff --git a/result/testcase/wat_dda_read_write_skew2_committed.txt b/result/testcase/wat_dda_read_write_skew2_committed.txt new file mode 100644 index 00000000..ade01f80 --- /dev/null +++ b/result/testcase/wat_dda_read_write_skew2_committed.txt @@ -0,0 +1,24 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-SELECT * from t1 WHERE k=1; +5-2-UPDATE t1 SET v=2 WHERE k=0; +6-2-COMMIT; +7-1-UPDATE t1 SET v=1 WHERE k=1; +8-1-COMMIT; +9-3-SELECT * from t1 ORDER BY k; +10-3-COMMIT; + +serializable { +4-1,1 +9-0,2 1,1 + +4-1,0 +9-0,1 1,1 +} diff --git a/result/testcase/wat_mda_step_wat_c1.txt b/result/testcase/wat_mda_step_wat_c1.txt new file mode 100644 index 00000000..1a57bfed --- /dev/null +++ b/result/testcase/wat_mda_step_wat_c1.txt @@ -0,0 +1,35 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-INSERT INTO t1 VALUES (1, 0); +0-1-INSERT INTO t1 VALUES (2, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-update t1 set v=1 where k=0; +3-2-BEGIN; +4-2-update t1 set v=2 where k=1; +5-2-update t1 set v=2 where k=0; +6-3-BEGIN; +7-3-update t1 set v=3 where k=2; +8-3-update t1 set v=3 where k=1; +9-1-update t1 set v=1 where k=2; +10-1-COMMIT; +11-2-COMMIT; +12-3-COMMIT; +13-4-select * from t1 ORDER BY k; +14-4-COMMIT; + +serializable { +13-0,2 1,3 2,3 + +13-0,2 1,2 2,3 + +13-0,1 1,3 2,3 + +13-0,1 1,3 2,1 + +13-0,2 1,2 2,1 + +13-0,1 1,2 2,1 +} diff --git a/result/testcase/wat_sda_dirty_write_2commit.txt b/result/testcase/wat_sda_dirty_write_2commit.txt new file mode 100644 index 00000000..736f479f --- /dev/null +++ b/result/testcase/wat_sda_dirty_write_2commit.txt @@ -0,0 +1,21 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-1-COMMIT; +6-2-COMMIT; +7-3-SELECT * FROM t1; +8-3-DROP TABLE IF EXISTS t1; +9-3-COMMIT; + + +serializable { +7-0,1 + +7-0,2 +} diff --git a/result/testcase/wat_sda_full_write.txt b/result/testcase/wat_sda_full_write.txt new file mode 100644 index 00000000..c4c9ceaf --- /dev/null +++ b/result/testcase/wat_sda_full_write.txt @@ -0,0 +1,20 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-1-UPDATE t1 SET v=3 WHERE k=0; +6-1-COMMIT; +7-2-COMMIT; +8-3-SELECT * from t1; +9-3-COMMIT; + +serializable { +8-0,2 + +8-0,3 +} diff --git a/result/testcase/wat_sda_full_write_committed.txt b/result/testcase/wat_sda_full_write_committed.txt new file mode 100644 index 00000000..97b442de --- /dev/null +++ b/result/testcase/wat_sda_full_write_committed.txt @@ -0,0 +1,20 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-2-COMMIT; +6-1-UPDATE t1 SET v=3 WHERE k=0; +7-1-COMMIT; +8-3-SELECT * from t1; +9-3-COMMIT; + +serializable { +8-0,2 + +8-0,3 +} \ No newline at end of file diff --git a/result/testcase/wat_sda_lost_self_update_committed.txt b/result/testcase/wat_sda_lost_self_update_committed.txt new file mode 100644 index 00000000..7b8a0059 --- /dev/null +++ b/result/testcase/wat_sda_lost_self_update_committed.txt @@ -0,0 +1,22 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-UPDATE t1 SET v=1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-2-COMMIT; +6-1-SELECT * from t1 WHERE k=0; +7-1-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +6-0,1 +8-0,2 + +6-0,1 +8-0,1 +} diff --git a/result/testcase/wat_sda_lost_update_c1.txt b/result/testcase/wat_sda_lost_update_c1.txt new file mode 100644 index 00000000..5bc21686 --- /dev/null +++ b/result/testcase/wat_sda_lost_update_c1.txt @@ -0,0 +1,22 @@ +ParamNum:2 +0-1-DROP TABLE IF EXISTS t1; +0-1-CREATE TABLE t1 (k INT PRIMARY KEY, v INT); +0-1-INSERT INTO t1 VALUES (0, 0); +0-1-COMMIT; +1-1-BEGIN; +2-1-SELECT * from t1 WHERE k=0; +3-2-BEGIN; +4-2-UPDATE t1 SET v=2 WHERE k=0; +5-1-UPDATE t1 SET v=1 WHERE k=0; +6-1-COMMIT; +7-2-COMMIT; +8-3-SELECT * FROM t1; +9-3-COMMIT; + +serializable { +2-0,0 +8-0,2 + +2-0,2 +8-0,1 +} \ No newline at end of file diff --git a/search.xml b/search.xml new file mode 100644 index 00000000..5ed1c30a --- /dev/null +++ b/search.xml @@ -0,0 +1,12 @@ + + + + 3TS-Coo + /index/ + 3TS-Coo

    3TS-Coo is a consistency check tool for transactional databases. Coo checks the consistency of databases in accurate (all types of anomalies), user-friendly (SQL-based test), and cost-effective (one-time checking in a few minutes) ways. You can check out the code and detailed result on GitHub branch. Contributions in any kind are welcome.

    +

    The original and executed schedules are available for analysis and debugging. You can click each hyperlink for more detailed test cases and executed results. The formal expressions of test cases are also available.

    +

    The result behaviors are classified into two types, i.e., anomaly (A) and consistency. For anomaly occurrence, data anomalies are not recognized by databases, resulting in data inconsistencies, meaning the executed schedule with no equivalent serializable execution (or a Partial Order Pair (POP) cycle). While for the consistent performance, databases either pass (P) the anomaly test cases with a serializable result (no POP cycle) or rollback transactions due to rules (R), deadlock detection (D), or timeout (T) reached. The isolation levels are Serializable (SER), Repeatable Read (RR), Read Committed (RC), Read Uncommitted (RU), and Snapshot Isolation (SI).

    +

    Follow up

    We are testing the scenarios with predicates. Please stay tuned!

    +]]>
    +
    +